Skip to content

Instantly share code, notes, and snippets.

@sen0rxol0
Last active March 19, 2021 08:06
Show Gist options
  • Save sen0rxol0/a932ef62f01c251e93b15e952dcbd101 to your computer and use it in GitHub Desktop.
Save sen0rxol0/a932ef62f01c251e93b15e952dcbd101 to your computer and use it in GitHub Desktop.
Minimal CSS reset
:root {
box-sizing: border-box;
font-size: 16px;
}
*, *::before, *::after {
box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ol, ul {
margin: 0;
padding: 0;
font-weight: normal;
}
/* HTML5 elements in non-HTML5 browsers */
article, aside, footer, header, nav, section {
display: block;
}
img {
max-width: 100%;
height: auto;
vertical-align: middle;
}
button[disabled],
input[disabled] {
cursor: default;
}
/**
* 1. Remove default vertical scrollbar in IE 6/7/8/9.
* 2. Improve readability and alignment in all browsers.
*/
textarea {
overflow: auto; /* 1 */
vertical-align: top; /* 2 */
resize: vertical;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment