Skip to content

Instantly share code, notes, and snippets.

@missmatsuko
Last active August 21, 2019 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save missmatsuko/aee3db6c33bc8ce2bdf8c34ba4cf239d to your computer and use it in GitHub Desktop.
Save missmatsuko/aee3db6c33bc8ce2bdf8c34ba4cf239d to your computer and use it in GitHub Desktop.
reset.css
*,
*:after,
*:before {
box-sizing: border-box;
}
body,
html,
blockquote,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
ol,
ul,
button,
fieldset,
legend {
margin: 0;
padding: 0;
font-weight: inherit;
font-family: inherit;
font-size: inherit;
letter-spacing: inherit;
text-transform: inherit;
}
html, body {
max-width: 100%;
}
html {
box-sizing: border-box;
}
body {
-webkit-text-size-adjust: 100%; /* Stop iOS from increasing text it thinks is going to render too small */
font-feature-settings: 'lnum'; /* Makes numbers line up instead of decorative ascending/descending */
}
main {
display: block; /* Fixes <main> element not displaying as block on IE 11 */
}
table {
border-collapse: collapse;
border-spacing: 0;
}
a,
button {
color: inherit;
}
a {
text-decoration: none;
text-decoration-skip-ink: none;
}
button {
border: none;
background: none;
cursor: pointer;
}
fieldset {
border: none;
min-width: 0;
legend {
display: block;
}
}
select {
appearance: none;
&::-ms-expand {
display: none;
}
}
select,
textarea,
input {
font-size: inherit;
font-family: inherit;
background-color: transparent;
border-style: solid;
border-width: 1px;
color: inherit;
border-radius: 0;
min-width: 0;
}
select,
textarea,
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([size]) {
display: block;
width: 100%;
}
img {
max-width: 100%;
height: auto;
border: 0;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
cite,
address {
font-style: normal;
}
small {
font-size: 0.8em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment