@arelive/reset.css
Version:
just another resetter for default CSS of the browser
501 lines (418 loc) • 6.45 kB
CSS
/*
CSS reset v1.1 by Arelive
https://github.com/arebaka/reset.css
License: MIT
*/
/* === Global === */
*,
:before,
:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
font: 100% inherit;
vertical-align: baseline;
background-repeat: no-repeat;
border: none;
text-shadow: none;
box-shadow: none;
}
:hover,
:focus,
:active {
outline: none;
}
::-moz-selection,
::selection {
text-shadow: none;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
display: block;
}
[hidden] {
display: none;
}
/* === Document === */
:root {
-webkit-tab-size: 4;
-moz-tab-size: 4;
-ms-tab-size: 4;
-o-tab-size: 4;
-webkit-tap-highlight-color: transparent;
-moz-tap-highlight-color: transparent;
-ms-tap-highlight-color: transparent;
-o-tap-highlight-color: transparent;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-o-text-size-adjust: 100%;
tab-size: 4;
line-height: 1.5;
text-size-adjust: 100%;
overflow-wrap: break-word;
cursor: default;
}
body {
scroll-behavior: smooth;
min-height: 100vh;
color: black;
background-color: white;
}
/* === Lists === */
ol,
ul {
list-style: none;
}
ol {
list-style-type: decimal;
}
ul {
list-style-type: disc;
}
nav ol,
nav ul {
list-style-type: none;
}
li {
display: list-item;
}
menu {
list-style-type: disc;
}
/* === Quoting === */
blockquote,
q {
quotes: none;
}
cite {
quotes: none;
font-style: italic;
}
blockquote:before,
blockquote:after,
q:before,
q:after,
cite:before,
cite:after {
content: "";
content: none;
}
/* === Tables === */
table {
text-indent: 0;
border-collapse: collapse;
border-spacing: 0;
border-color: currentColor;
}
thead {
display: table-header-group;
vertical-align: middle;
border-color: inherit;
}
tbody {
display: table-row-group;
vertical-align: middle;
border-color: inherit;
}
tfoot {
display: table-footer-group;
vertical-align: middle;
border-color: inherit;
}
col {
display: table-column;
}
colgroup {
display: table-column-group;
}
tr {
display: table-row;
vertical-align: inherit;
border-color: inherit;
}
th {
display: table-cell;
vertical-align: inherit;
font-weight: bold;
text-align: center;
}
td {
display: table-cell;
vertical-align: inherit;
}
/* === Forms === */
label,
legend {
font: inherit;
white-space: normal;
color: inherit;
cursor: default;
}
legend {
display: table;
}
input,
textarea,
select,
button {
display: inline-block;
max-width: 100%;
height: auto;
font: inherit;
line-height: normal;
letter-spacing: inherit;
color: inherit;
background-color: transparent;
border: 1px solid;
border-radius: 0;
}
select,
button {
text-transform: none;
}
optgroup {
font: inherit;
line-height: normal;
text-transform: none;
}
button,
input[type=button],
input[type=reset],
input[type=submit] {
-webkit-appearance: button;
-moz-appearance: button;
-ms-appearance: button;
-o-appearance: button;
overflow: visible;
cursor: pointer;
appearance: button;
}
button:disabled,
input:disabled {
cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
padding: 0;
border: 0;
}
button:-moz-focusring,
input:-moz-focusring {
outline: none;
}
input[type=search] {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
-ms-box-sizing: content-box;
-o-box-sizing: content-box;
-webkit-appearance: none;
-moz-appearance: none;
-moz-appearance: none;
-o-appearance: none;
box-sizing: content-box;
appearance: none;
outline: none;
}
::-webkit-search-cancel-button,
::-webkit-search-decoration,
::-webkit-search-results-button,
::-webkit-search-results-decoration {
-webkit-appearance: none;
-moz-appearance: none;
-moz-appearance: none;
-o-appearance: none;
appearance: none;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
height: auto;
}
textarea {
overflow: auto;
resize: vertical;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
-moz-appearance: button;
-moz-appearance: button;
-o-appearance: button;
font: inherit;
appearance: button;
}
/* === Media & Objects === */
img,
audio,
video,
canvas,
svg,
iframe {
max-width: 100%;
height: auto;
vertical-align: middle;
border: none;
}
img,
audio,
video,
canvas,
svg {
-ms-interpolation-mode: bicubic;
display: inline-block;
}
iframe {
display: block;
}
/* === Special === */
address {
font-style: italic;
}
abbr[title] {
text-decoration: underline dotted;
border-bottom: 0;
}
caption {
display: table-caption;
text-align: center;
}
fieldset {
border: none;
}
summary {
display: list-item;
}
template {
display: none;
}
/* === Links === */
a {
text-decoration: underline;
color: blue;
background-color: transparent;
cursor: pointer;
}
/* === Formatting === */
b,
strong {
font-weight: bold;
}
dfn,
em,
i,
var {
font-style: italic;
}
code,
kbd,
samp,
tt {
font: 1em monospace;
}
pre {
overflow: auto;
display: block;
font: 1em monospace;
white-space: pre;
}
del,
s,
strike {
text-decoration: line-through;
}
ins {
text-decoration: underline;
}
mark {
color: black;
background-color: yellow;
}
sup {
font-size: smaller;
vertical-align: super;
}
sub {
font-size: smaller;
vertical-align: sub;
}
big {
font-size: larger;
}
small {
font-size: smaller;
}
center {
text-align: center;
}
/* === Headlines === */
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: bold;
text-align: center;
}
h1 {
font-size: 2em;
line-height: 3.34em;
}
h2 {
font-size: 1.5em;
line-height: 3.16em;
}
h3 {
font-size: 1.17em;
line-height: 3.17em;
}
h4 {
font-size: 1em;
line-height: 3.66em;
}
h5 {
font-size: .83em;
line-height: 4.17em;
}
h6 {
font-size: .67em;
line-height: 5.33em;
}
/* === Horizonral rule === */
hr {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
-ms-box-sizing: content-box;
-o-box-sizing: content-box;
box-sizing: content-box;
display: block;
margin: .5em auto;
height: 0;
border: 1px inset;
}
@media (prefers-reduced-motion: reduce) {
*,
:before,
:after {
animation-delay: -1ms ;
animation-duration: 1ms ;
animation-iteration-count: 1 ;
background-attachment: initial ;
scroll-behavior: auto ;
transition-delay: 0s ;
transition-duration: 0s ;
}
}