Simplified Normalize from you-dont-need-bootstrap repo
Last active
December 26, 2023 07:00
-
-
Save RayyanNafees/774d2bd80f20e632ba2dcc3b96caa995 to your computer and use it in GitHub Desktop.
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
/* Intuitive box sizing */ | |
html { | |
box-sizing: border-box; | |
} | |
*, | |
*:before, | |
*:after { | |
box-sizing: inherit; | |
} | |
/*! TAKEN FROM: normalize.css v8.0.1 | github.com/necolas/normalize.css */ | |
body { | |
margin: 0; | |
-webkit-text-size-adjust: 100%; | |
font-size: 1rem; | |
font-weight: 400; | |
line-height: 1.15; | |
} | |
main { | |
display: block; | |
} | |
h1 { | |
font-size: 2em; | |
margin: 0.67em 0; | |
} | |
hr { | |
box-sizing: content-box; | |
height: 0; | |
overflow: visible; | |
} | |
button, | |
input, | |
optgroup, | |
select, | |
textarea { | |
font-family: inherit; | |
font-size: 100%; | |
line-height: 1.15; | |
margin: 0; | |
} | |
button, | |
input { | |
overflow: visible; | |
} | |
button, | |
select { | |
text-transform: none; | |
} | |
button, | |
[type="button"], | |
[type="reset"], | |
[type="submit"] { | |
-webkit-appearance: button; | |
} | |
[type="number"]::-webkit-inner-spin-button, | |
[type="number"]::-webkit-outer-spin-button { | |
height: auto; | |
} | |
[type="search"] { | |
-webkit-appearance: textfield; | |
outline-offset: -2px; | |
} | |
[type="search"]::-webkit-search-decoration { | |
-webkit-appearance: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment