add CSS variable for spacing + double spacing

This commit is contained in:
imohkay 2021-10-14 13:01:28 +05:30
commit 797902e90a
4 changed files with 24 additions and 21 deletions

View file

@ -41,7 +41,7 @@ main > .texts {
}
.text {
margin: 8px;
margin: var(--spacing);
h1 {
font-weight: bold;
font-size: 20px;
@ -49,9 +49,9 @@ main > .texts {
}
@media screen and (max-width: 799px) {
.text {
margin-bottom: 16px;
margin-bottom: var(--spacing-2);
h2 {
margin-bottom: 8px;
margin-bottom: var(--spacing);
}
}
}