Last active
December 6, 2016 10:48
-
-
Save solarsailer/b58d26924c4998151d0fef33e62bbc95 to your computer and use it in GitHub Desktop.
CSS globals.
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
@charset "UTF-8"; | |
/* ---------------------------------------------------------- *\ | |
* # Globals | |
\* ---------------------------------------------------------- */ | |
/** | |
* Box-model: | |
* 1. Change default box-model to border-box. | |
* 2. All elements will inherit from the <html> box-model. | |
*/ | |
html { | |
box-sizing: border-box; /* 1 */ | |
} | |
*, | |
*::before, | |
*::after { | |
box-sizing: inherit; /* 2 */ | |
} | |
/** | |
* Typography: | |
* 1. Change default typography (10px, 140% line-height, sans-serif). | |
* 2. Set a flexible font-size on the document (1.5em, ie. 15px). | |
*/ | |
html { | |
font: 62.5%/1.4 Verdana, sans-serif; /* 1 */ | |
} | |
body { | |
font-size: 1.5em; /* 2 */ | |
} | |
/** | |
* Full-viewport body. | |
*/ | |
body { | |
position: relative; | |
min-height: 100vh; | |
margin: 0; | |
} | |
/** | |
* Colors: | |
* 1. Content. | |
* 2. Overscroll. | |
* 3. Document background. | |
* 4. Selection. | |
*/ | |
html { | |
color: black; /* 1 */ | |
background: tomato; /* 2 */ | |
} | |
body { | |
background: white; /* 3 */ | |
} | |
::selection { /* 4 */ | |
color: white; | |
background: tomato; | |
} | |
/* ---------------------------------------------------------- *\ | |
* # App | |
\* ---------------------------------------------------------- */ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment