Repository navigation
Expand file tree
/
Copy pathreset.css
More file actions
154 lines (130 loc) · 2.86 KB
/
Copy pathreset.css
File metadata and controls
154 lines (130 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
@charset "UTF-8";
textarea {
/*去掉右下三角*/
resize: none;
}
html {
max-height: 100%;
}
textarea {
/*去掉右下三角*/
resize: none;
}
html,
body {
width: 100%;
/*min-height: 100%;*/
height: 100%;
/* background:#fff; */
line-height: 1;
color: var(--color-main, #333);
}
a {
color: inherit;
text-decoration: none;
cursor: pointer;
}
img {
width: 100%;
height: auto;
vertical-align: bottom;
}
input {
background-color: transparent;
font-size: inherit;
}
/*占位符样式*/
/*用逗号隔开无效*/
::-webkit-input-placeholder
/* 使用webkit内核的浏览器 */
{
color: var(--placeholder-color, #999);
font-size: 1em;
}
:-moz-placeholder {
color: var(--placeholder-color, #999);
font-size: 1em;
}
::-moz-placeholder
/* Firefox版本4-18 */
{
color: var(--placeholder-color, #999);
font-size: 1em;
}
:-ms-input-placeholde
/* Firefox版本19+ */
{
color: var(--placeholder-color, #999);
font-size: 1em;
}
/* 自定义的溢出滚动条 */
.user-defined-scrollbar::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
/*高宽分别对应横竖滚动条的尺寸*/
height: 4px;
background: #f5f5f9;
}
.user-defined-scrollbar::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 10px;
width: 50px;
background: #a79dbd;
}
.user-defined-scrollbar::-webkit-scrollbar-track {
/*滚动条里面轨道*/
box-shadow: inset 0 0 5px #d5d5e6;
border-radius: 10px;
background: #ededed;
}
.user-defined-scrollbar::-webkit-scrollbar {
background: #f5f5f9;
}
@media screen and (max-width: 550px) {
.user-defined-scrollbar::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
/*高宽分别对应横竖滚动条的尺寸*/
height: 1px;
background: #f5f5f9;
}
.user-defined-scrollbar::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
/*高宽分别对应横竖滚动条的尺寸*/
height: 1px;
background: #f5f5f9;
}
}
/*重设默认样式*/
body, html,
header,section,footer,aside,/*语意标签*/
div,p,/*块级元素*/
span,img,i,
h1,h2,h3,h4,h5,h6,
ol,li,ul,dl,dd,dt,/*列表*/
button, input,textarea {/**/
font-family: inherit;
padding: 0;
margin: 0;
-webkit-margin-before: 0em;/*css3新增*/
-webkit-margin-after: 0em;/*css3新增*/
-webkit-margin-start: 0px;/*css3新增*/
-webkit-margin-end: 0px;/*css3新增*/
text-decoration: none;
border: 0;
box-sizing: border-box;
line-height: inherit;
outline: 0;
font-weight: 400;
position: unset;
font-style: normal;
/* background-color: inherit; */
}
ol,li,ul,dl,dd,dt{
list-style: none;
padding-inline-start: 0;
}
h1,h2,h3,h4,h5,h6{
text-align: center;
}