Skip to content

Instantly share code, notes, and snippets.

@c7x43t
Last active September 1, 2021 14:15
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 c7x43t/fc999215a01f520fdabcba61435c2fd8 to your computer and use it in GitHub Desktop.
Save c7x43t/fc999215a01f520fdabcba61435c2fd8 to your computer and use it in GitHub Desktop.
// https://github.com/necolas/normalize.css/blob/master/normalize.css
// https://github.com/sindresorhus/modern-normalize/blob/main/modern-normalize.css
// https://meyerweb.com/eric/tools/css/reset/
// https://gist.github.com/marharyta/b83a3683085eb42867bbcefb34687af8 // Reboot css
// https://elad.medium.com/normalize-css-or-css-reset-9d75175c5d1e // typography
*,::before,::after{box-sizing:border-box}
html{line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent;-moz-tab-size:4;tab-size:4;font-size:16px}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Roboto','Oxygen','Ubuntu','Fira Sans','Droid Sans','Helvetica Neue',sans-serif;font-weight:400;font-size:1rem;text-align:left;background-color:#fff}
[tabindex="-1"]:focus{outline:none!important}
h1{font-size:2rem}
hr{box-sizing:content-box;height:0;color:inherit;overflow:visible}
a{background-color:transparent;text-decoration:none;-webkit-text-decoration-skip:objects;color:inherit;cursor:pointer}
a:hover{text-decoration:underline}
a:not([href]):not([tabindex]),a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}
a:not([href]):not([tabindex]):focus{outline:0}
abbr[title],abbr[data-original-title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0}
address{margin-bottom:1rem;font-style:normal;line-height:inherit}
th{text-align:inherit}
ol,ul,dl{margin-top:0;margin-bottom:1rem}
ol ol,ul ul,ol ul,ul ol{margin-bottom:0}
b,strong{font-weight:bolder}
code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;font-size:1em}
dt{font-weight:700}
dd{margin-bottom:.5rem;margin-left:0}
dfn{font-style:italic}
small{font-size:80%}
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
sub{bottom:-.25em}
sup{top:-.5em}
table{text-indent:0;border-color:inherit;border-collapse:collapse;border-spacing:0}
img{border-style:none;vertical-align:middle}
svg:not(:root){overflow:hidden}
article,aside,dialog,details,figcaption,figure,footer,header,hgroup,menu,main,nav,section{display:block}
ol,ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:'';font-family:inherit;font-size:100%;line-height:1.15;margin:0 0 1rem}
button{border-radius:0}
button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}
input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit;overflow:auto;resize:vertical}
fieldset{min-width:0;padding:0;margin:0;border:0}
button,input{overflow:visible}
button,select{text-transform:none}
button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button;background-color:transparent;color:inherit;border-width:0;padding:0;cursor:pointer}
a,area,button,[role="button"],input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}
label{display:inline-block;margin-bottom:.5rem}
button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0;margin:0}
button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}
:-moz-ui-invalid{box-shadow:none}
h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}
p{margin-top:0;margin-bottom:1rem}
cite{font-style:normal}
::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}
fieldset{border-width:0;padding:.35em .75em .625em;margin:0}
figure{margin:0 0 1rem}
legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;box-sizing:border-box;white-space:normal}
progress{vertical-align:baseline}
textarea{overflow:auto}
[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}
[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-cancel-button,[type="search"]::-webkit-search-decoration{-webkit-appearance:none}
::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}
input[type="date"],input[type="time"],input[type="datetime-local"],input[type="month"]{-webkit-appearance:listbox}
[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}
output{display:inline-block}
summary{display:list-item}
template{display:none}
[hidden]{display:none!important}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment