Files
genshin-world/assets/css/normalize.scss
2025-07-15 01:15:37 +02:00

198 lines
3.0 KiB
SCSS

html {
box-sizing: border-box;
font-size: 16px;
height: 100vh;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
width: 100vw;
}
* {
box-sizing: border-box;
position: relative;
&:before, &:after {
box-sizing: border-box;
}
//&:focus {
// outline: none;
//}
}
body {
height: 100vh;
margin: 0;
width: 100vw;
}
main {
display: block;
}
a {
background-color: transparent;
color: inherit;
text-decoration: none;
&:visited, &:hover, &:active, &:focus {
color: inherit;
}
}
abbr[title] {
border-bottom: none;
text-decoration: underline dotted;
}
b, strong {
font-weight: bolder;
}
button, input, optgroup, select, textarea {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
button, input {
overflow: visible;
}
button, select {
text-transform: none;
}
details {
display: block;
}
div, textarea, table, td, th, code, pre, samp {
word-wrap: break-word;
hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
}
fieldset {
padding: 0.35em 0.75em 0.625em;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
hr {
box-sizing: content-box;
height: 0;
overflow: visible;
}
img {
border-style: none;
max-width: 100%;
height: auto;
}
a, button, input, select, textarea {
&:focus {
outline: none;
}
}
legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
pre, code, kbd, samp {
font-family: monospace, monospace;
font-size: 1em;
white-space: pre-wrap;
}
progress {
vertical-align: baseline;
}
small {
font-size: 80%;
}
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
summary {
display: list-item;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
textarea {
overflow: auto;
}
template {
display: none;
}
button, [type="button"], [type="reset"], [type="submit"] {
-webkit-appearance: button;
&:hover {
cursor: pointer;
}
&::-moz-focus-inner, &::-moz-focus-inner, &::-moz-focus-inner, &::-moz-focus-inner {
border-style: none;
padding: 0;
}
&:-moz-focusring, &:-moz-focusring, &:-moz-focusring, &:-moz-focusring {
outline: 1px dotted ButtonText;
}
}
[type="checkbox"], [type="radio"] {
padding: 0;
}
[type="number"] {
//-moz-appearance: textfield;
&::-webkit-inner-spin-button, &::-webkit-outer-spin-button {
height: auto;
//-webkit-appearance: none;
}
}
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
&::-webkit-search-decoration {
-webkit-appearance: none;
}
}
[hidden] {
display: none !important;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}