You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
379 lines
5.0 KiB
379 lines
5.0 KiB
2 years ago
|
@import "var";
|
||
|
// reset 初始化浏览器样式
|
||
|
* {
|
||
|
box-sizing: border-box;
|
||
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||
|
}
|
||
|
|
||
|
*:before,
|
||
|
*:after {
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
|
||
|
html {
|
||
|
-ms-text-size-adjust: 100%;
|
||
|
-webkit-text-size-adjust: 100%;
|
||
|
}
|
||
|
|
||
|
body,
|
||
|
div,
|
||
|
dl,
|
||
|
dt,
|
||
|
dd,
|
||
|
ul,
|
||
|
ol,
|
||
|
li,
|
||
|
h1,
|
||
|
h2,
|
||
|
h3,
|
||
|
h4,
|
||
|
h5,
|
||
|
h6,
|
||
|
form,
|
||
|
fieldset,
|
||
|
legend,
|
||
|
input,
|
||
|
textarea,
|
||
|
p,
|
||
|
blockquote,
|
||
|
hr,
|
||
|
button,
|
||
|
article,
|
||
|
aside,
|
||
|
details,
|
||
|
figcaption,
|
||
|
figure,
|
||
|
footer,
|
||
|
header,
|
||
|
hgroup,
|
||
|
menu,
|
||
|
nav,
|
||
|
section {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
input,
|
||
|
select,
|
||
|
textarea {
|
||
|
font-family: inherit;
|
||
|
font-size: inherit;
|
||
|
line-height: inherit;
|
||
|
}
|
||
|
|
||
|
input::-ms-clear,
|
||
|
input::-ms-reveal {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
ol, ul {
|
||
|
li {
|
||
|
list-style: none;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
h1 {
|
||
|
font-size: 2em;
|
||
|
margin: 0.67em 0;
|
||
|
}
|
||
|
|
||
|
article,
|
||
|
aside,
|
||
|
footer,
|
||
|
header,
|
||
|
nav,
|
||
|
section {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
figcaption,
|
||
|
figure,
|
||
|
main {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
figure {
|
||
|
margin: 1em 40px;
|
||
|
}
|
||
|
|
||
|
li:focus {
|
||
|
outline-width: 0;
|
||
|
}
|
||
|
|
||
|
i {
|
||
|
font-style: normal;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 1. Remove the gray background on active links in IE 10.
|
||
|
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
|
||
|
*/
|
||
|
|
||
|
a {
|
||
|
background-color: transparent;
|
||
|
-webkit-text-decoration-skip: objects;
|
||
|
text-decoration: none;
|
||
|
color: inherit;
|
||
|
}
|
||
|
|
||
|
a:active {
|
||
|
color: inherit;
|
||
|
}
|
||
|
|
||
|
a:active,
|
||
|
a:hover,
|
||
|
a:focus {
|
||
|
outline-width: 0;
|
||
|
}
|
||
|
|
||
|
abbr[title] {
|
||
|
border-bottom: none;
|
||
|
text-decoration: underline;
|
||
|
text-decoration: underline dotted;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
|
||
|
*/
|
||
|
|
||
|
b,
|
||
|
strong {
|
||
|
font-weight: inherit;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Add the correct font weight in Chrome, Edge, and Safari.
|
||
|
*/
|
||
|
|
||
|
b,
|
||
|
strong {
|
||
|
font-weight: bolder;
|
||
|
}
|
||
|
|
||
|
pre,
|
||
|
code,
|
||
|
kbd,
|
||
|
samp {
|
||
|
font-family: monospace, monospace;
|
||
|
font-size: 1em;
|
||
|
}
|
||
|
|
||
|
dfn {
|
||
|
font-style: italic;
|
||
|
}
|
||
|
|
||
|
mark {
|
||
|
background-color: #ff0;
|
||
|
color: #000;
|
||
|
}
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
audio,
|
||
|
video {
|
||
|
display: inline-block;
|
||
|
}
|
||
|
|
||
|
audio:not([controls]) {
|
||
|
display: none;
|
||
|
height: 0;
|
||
|
}
|
||
|
|
||
|
img {
|
||
|
border-style: none;
|
||
|
vertical-align: middle;
|
||
|
}
|
||
|
|
||
|
svg:not(:root) {
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
input,
|
||
|
optgroup,
|
||
|
select,
|
||
|
textarea {
|
||
|
font-size: 100%;
|
||
|
line-height: 1.15;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
input {
|
||
|
overflow: visible;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
select {
|
||
|
text-transform: none;
|
||
|
}
|
||
|
|
||
|
button:focus {
|
||
|
outline: none;
|
||
|
}
|
||
|
|
||
|
button,
|
||
|
html [type="button"],
|
||
|
[type="reset"],
|
||
|
[type="submit"] {
|
||
|
-webkit-appearance: button;
|
||
|
}
|
||
|
|
||
|
button::-moz-focus-inner,
|
||
|
[type="button"]::-moz-focus-inner,
|
||
|
[type="reset"]::-moz-focus-inner,
|
||
|
[type="submit"]::-moz-focus-inner {
|
||
|
border-style: none;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Restore the focus styles unset by the previous rule.
|
||
|
*/
|
||
|
|
||
|
button:-moz-focusring,
|
||
|
[type="button"]:-moz-focusring,
|
||
|
[type="reset"]:-moz-focusring,
|
||
|
[type="submit"]:-moz-focusring {
|
||
|
outline: 1px dotted ButtonText;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Change the border, margin, and padding in all browsers (opinionated).
|
||
|
*/
|
||
|
|
||
|
fieldset {
|
||
|
border: 1px solid #c0c0c0;
|
||
|
margin: 0 2px;
|
||
|
padding: 0.35em 0.625em 0.75em;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 1. Correct the text wrapping in Edge and IE.
|
||
|
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
||
|
* 3. Remove the padding so developers are not caught out when they zero out
|
||
|
* `fieldset` elements in all browsers.
|
||
|
*/
|
||
|
|
||
|
legend {
|
||
|
box-sizing: border-box; /* 1 */
|
||
|
color: inherit; /* 2 */
|
||
|
display: table; /* 1 */
|
||
|
max-width: 100%; /* 1 */
|
||
|
padding: 0; /* 3 */
|
||
|
white-space: normal; /* 1 */
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 1. Add the correct display in IE 9-.
|
||
|
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
||
|
*/
|
||
|
|
||
|
progress {
|
||
|
display: inline-block; /* 1 */
|
||
|
vertical-align: baseline; /* 2 */
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Remove the default vertical scrollbar in IE.
|
||
|
*/
|
||
|
|
||
|
textarea {
|
||
|
overflow: auto;
|
||
|
resize: vertical;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 1. Add the correct box sizing in IE 10-.
|
||
|
* 2. Remove the padding in IE 10-.
|
||
|
*/
|
||
|
|
||
|
[type="checkbox"],
|
||
|
[type="radio"] {
|
||
|
box-sizing: border-box; /* 1 */
|
||
|
padding: 0; /* 2 */
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Correct the cursor style of increment and decrement buttons in Chrome.
|
||
|
*/
|
||
|
|
||
|
[type="number"]::-webkit-inner-spin-button,
|
||
|
[type="number"]::-webkit-outer-spin-button {
|
||
|
height: auto;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 1. Correct the odd appearance in Chrome and Safari.
|
||
|
* 2. Correct the outline style in Safari.
|
||
|
*/
|
||
|
|
||
|
[type="search"] {
|
||
|
-webkit-appearance: textfield; /* 1 */
|
||
|
outline-offset: -2px; /* 2 */
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
|
||
|
*/
|
||
|
|
||
|
[type="search"]::-webkit-search-cancel-button,
|
||
|
[type="search"]::-webkit-search-decoration {
|
||
|
-webkit-appearance: none;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 1. Correct the inability to style clickable types in iOS and Safari.
|
||
|
* 2. Change font properties to `inherit` in Safari.
|
||
|
*/
|
||
|
|
||
|
::-webkit-file-upload-button {
|
||
|
-webkit-appearance: button; /* 1 */
|
||
|
font: inherit; /* 2 */
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* Add the correct display in IE 9-.
|
||
|
* 1. Add the correct display in Edge, IE, and Firefox.
|
||
|
*/
|
||
|
|
||
|
details, /* 1 */
|
||
|
menu {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* Add the correct display in all browsers.
|
||
|
*/
|
||
|
|
||
|
summary {
|
||
|
display: list-item;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Add the correct display in IE 9-.
|
||
|
*/
|
||
|
|
||
|
canvas {
|
||
|
display: inline-block;
|
||
|
}
|