commonStyle.css
2.1 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
/**
* @file 公共样式
*/
html,body{
/* we don't want to allow users to select text everywhere,
you can enable it on the places you think appropriate */
user-select: none;
-webkit-overflow-scrolling: touch;
font-family: -apple-system, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Source Han Sans", "Microsoft YaHei", sans-serif;
height: 100%;
scroll-behavior: smooth;
}
*, *:before, *:after {
/* suppressing the tap highlight */
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
box-sizing: border-box;
vertical-align: top;
padding: 0;
margin: 0;
-webkit-font-smoothing: antialiased;
}
*:focus {
/* the default outline doesn't play well with a mobile application,
I usually start without it,
but don't forget to research further to make your mobile app accessible. */
outline: 0;
}
a {
background: transparent;
text-decoration: none;
outline: none;
transition: all .1s linear;
}
a:active {
filter: brightness(1.1);
}
.clickBtn:active {
filter: brightness(1.1);
transform: scale(0.98);
}
*[contenteditable] {
user-select: auto !important;
-webkit-user-select: auto !important;
}
/**
* 有强迫症的同学总会觉得输入框文本位置整体偏上,感觉未居中心里就痒痒的。桌面端浏览器里声明line-height等于height就能解决,但移动端浏览器里还是未能解决,需将line-height声明为normal才行。
*/
input {
line-height: normal;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
background-color: transparent;
}
::-webkit-scrollbar-track {
background-color: transparent;
}
::-webkit-scrollbar-thumb {
border-radius: 3px;
background-color: #5d5d5d;
}
.van-toast {
min-width: 1.6rem!important;
border-radius: 0.08rem!important;
font-size: 0.38rem!important;
padding: 0.24rem 0.4rem!important;
line-height: 1.5!important;
}
.van-popup {
background-color: transparent!important;
width: 100%;
height: 100%;
}
.van-overlay{
background-color: rgba(0,0,0,.4)!important;
}
.van-overflow-hidden{
overflow: auto!important;
}
button {
border: none;
}