Created
September 19, 2019 09:47
-
-
Save bultas/a7a811edf5f73b2a7b90e87bb64ccb8b to your computer and use it in GitHub Desktop.
CSS base framework
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
font-family: var(--default-font-family); | |
/* font-size: 1.125rem; */ | |
font-size: calc(1rem + 0.333vw); | |
} | |
html, body { | |
height: 100%; | |
width: 100%; | |
} | |
body { | |
color: var(--color-gray-900); | |
font-weight: var(--font-weight); | |
} | |
h1 { | |
font-size: 3rem; | |
} | |
h2 { | |
font-size: 1.75rem; | |
} | |
h3 { | |
font-size: 1.5rem; | |
} | |
h1, h2, h3 { | |
line-height: 1.3; | |
} | |
p { | |
line-height: var(--text-line-height); | |
} | |
h1, h2, h3, p { | |
margin: auto; | |
max-width: var(--max-block-width); | |
} | |
h1, h2, h3, strong { | |
font-weight: var(--font-weight-strong); | |
} | |
h1 + p { | |
margin-top: 3rem; | |
} | |
p + p, h2 + p, h3 + p { | |
margin-top: 1.5rem; | |
} | |
* + section { | |
margin-top: 6rem; | |
} | |
/* | |
SPECIALITY | |
*/ | |
header hgroup h1 + h2 { | |
font-weight: var(--font-weight); | |
margin-top: 1rem; | |
} | |
/* | |
RESPONSIVITY | |
*/ | |
@media only screen and (max-width: 1200px) { | |
h1, h2, h3, p { | |
padding: 0 1rem; | |
} | |
} | |
@media only screen and (min-width: 600px) { | |
/* :root { | |
font-size: 1.3rem; | |
} */ | |
* + section { | |
margin-top: 9rem; | |
} | |
} | |
@media only screen and (min-width: 1800px) { | |
/* :root { | |
font-size: 1.5rem; | |
} */ | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment