Skip to content

Instantly share code, notes, and snippets.

@web-crab
Created January 17, 2019 14:29
Show Gist options
  • Save web-crab/9f871a7364bde1fdf4ef2a277db8fffe to your computer and use it in GitHub Desktop.
Save web-crab/9f871a7364bde1fdf4ef2a277db8fffe to your computer and use it in GitHub Desktop.
html {
line-height: 1.2;
text-decoration-skip: ink;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body,
p,
figure,
blockquote {
margin: 0;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
ul,
ol {
padding: 0;
margin: 0;
list-style-type: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
th {
font: inherit;
}
a {
background-color: transparent;
color: inherit;
}
a:hover {
text-decoration: none;
}
img {
border: 0;
max-width: 100%;
}
button,
input,
optgroup,
select,
textarea,
::-webkit-file-upload-button {
font: inherit;
margin: 0;
color: inherit;
letter-spacing: inherit;
}
button,
input {
overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font: inherit;
margin: 0;
}
button,
[type="button"],
[type="reset"],
[type="submit"],
::-webkit-file-upload-button {
-webkit-appearance: button;
cursor: pointer;
}
button:disabled,
[type="button"]:disabled,
[type="reset"]:disabled,
[type="submit"]:disabled {
cursor: not-allowed;
}
textarea {
resize: none;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border: 0;
padding: 0;
}
[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
padding: 0;
}
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
svg {
display: block;
width: 100%;
height: 100%;
fill: currentColor;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment