updated scaling for mobile
This commit is contained in:
@ -5,6 +5,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>dangrubb.net</title>
|
<title>dangrubb.net</title>
|
||||||
<link rel="icon" href="/src/img/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/src/img/favicon.ico" type="image/x-icon">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" href="/src/img/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/src/img/favicon.ico" type="image/x-icon">
|
||||||
<link rel="stylesheet" href="./style.css">
|
<link rel="stylesheet" href="./style.css">
|
||||||
|
|
||||||
|
35
style.css
35
style.css
@ -7,23 +7,38 @@ body {
|
|||||||
|
|
||||||
.bard {
|
.bard {
|
||||||
margin: 0 auto 40px;
|
margin: 0 auto 40px;
|
||||||
width: 65em;
|
/* Remove fixed width in pixels */
|
||||||
height: 62em;
|
width: 100%;
|
||||||
|
max-width: 65em; /* Keep the same max size for desktop */
|
||||||
|
height: auto;
|
||||||
|
aspect-ratio: 1 / 0.95; /* Maintains the proportion of the artwork */
|
||||||
font-size: 2px;
|
font-size: 2px;
|
||||||
}
|
}
|
||||||
@media (min-width: 360px) {
|
|
||||||
|
/* Adjust media queries for better scaling */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
body {
|
||||||
|
padding: 20px 10px; /* Smaller padding on mobile */
|
||||||
|
}
|
||||||
|
|
||||||
.bard {
|
.bard {
|
||||||
font-size: 3px;
|
font-size: 3px; /* Slightly larger base size for small screens */
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
max-width: 320px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 600px) {
|
|
||||||
|
/* For very small screens */
|
||||||
|
@media (max-width: 400px) {
|
||||||
.bard {
|
.bard {
|
||||||
font-size: 4px;
|
aspect-ratio: 1 / 1; /* Slightly different ratio for tiny screens */
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@media (min-width: 1000px) {
|
p {
|
||||||
.bard {
|
font-size: 0.75rem;
|
||||||
font-size: 5px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user