Created
October 17, 2017 19:11
-
-
Save allusis/0ed43dd9ec5c65ba038abf5e28b4aa3c to your computer and use it in GitHub Desktop.
css4 variables
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 { | |
--color-text: #444; | |
--color-background: white; | |
--color-link: #1589ee; | |
--color-link-active: #0b5392; | |
--font-family-body: "Helvetica", sans-serif; | |
--font-family-head: "Helvetica", sans-serif; | |
--font-weight-body: 400; | |
--font-weight-head: 400; | |
--font-size-body: 14px; | |
--font-size-h1: 2rem; | |
--font-size-h2: 1.5rem; | |
--font-size-h3: 1.25rem; | |
--font-size-h4: 1.125rem; | |
--font-size-h5: 14px; | |
--font-size-h6: 0.875rem; | |
--font-leading-body: 1.428571429; | |
--font-leading-head: 1.3333333; | |
} | |
*, *:before, *:after { | |
-webkit-box-sizing: inherit; | |
box-sizing: inherit; | |
} | |
html { | |
position: relative; | |
min-height: 100%; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
font-size: 14px; | |
font-size: var(--font-size-body); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment