Created
November 25, 2019 13:27
-
-
Save pinkhominid/c59aa716fb9598d3e547a87305ef198d to your computer and use it in GitHub Desktop.
2020 CSS Starter
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
html { | |
box-sizing: border-box; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} | |
html:before { | |
padding: 200px; | |
position: fixed; | |
background-color: #222; | |
color: #fff; | |
font-size: 50px; | |
font-family: sans-serif; | |
height: 100%; | |
width: 100%; | |
content: 'You are using an outdated browser. Try latest Firefox, Opera, Chrome, Edge, or Safari.'; | |
z-index: 9999999999; | |
} | |
@supports (grid-area: auto) { | |
html:before { display: none; } | |
} | |
body { | |
margin: 0; | |
width: -moz-fit-content; | |
width: fit-content; | |
min-height: 100vh; | |
min-width: 100vw; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment