forked from javaLuo/react-luo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss.css
More file actions
113 lines (109 loc) · 2.52 KB
/
Copy pathcss.css
File metadata and controls
113 lines (109 loc) · 2.52 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
/* 全局配置 */
* {
-webkit-overflow-scrolling: touch; /* 允许独立滚动区域,解决IOS上的非body元素滚动条滚动时卡顿 */
-webkit-tap-highlight-color: transparent; /* 覆盖IOS上用户点击连接时的默认高亮颜色 */
outline: none;
}
body {
margin: 0;
padding: 0;
background-color: #fff;
-webkit-font-smoothing: antialiased; /* 平滑字体 */
-moz-osx-font-smoothing: grayscale; /* 平滑字体 */
-ms-touch-action: manipulation; /* 允许触摸驱动的平移和拖拽缩放 */
touch-action: manipulation; /* 允许触摸驱动的平移和拖拽缩放 */
-webkit-text-size-adjust: 100%; /* 关闭IOS横屏时,自动调整字体大小的功能 */
font-family: "Segoe UI", "Lucida Grande", "Microsoft YaHei", sans-serif;
font-size: 14px;
scroll-behavior: smooth; /* 平滑滚动 */
}
ul {
position: relative;
margin: 0;
padding: 0;
} /* ul样式重置 */
li {
position: relative;
list-style: none;
margin: 0;
padding: 0;
} /* li样式重置 */
img {
border: 0;
}
input {
line-height: normal;
}
img,
a:focus,
a:hover,
a:active {
outline: none;
}
label {
cursor: pointer;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
} /* 重新定义上标和下标的表现 */
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* 常用功能 */
.all_nowarp {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} /* 禁止换行,末尾省略 */
.all_nowarp2 {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
} /* 禁止换行,2行,末尾省略,div的高度需要正好是2行的高度 */
.all_nowarp3 {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 3;
} /* 禁止换行,3行,末尾省略,div的高度需要正好是2行的高度 */
.all_warp {
word-break: break-all;
word-wrap: break-word;
} /* 强制换行 */
.all_b {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
} /* 内框模式 */
.all_clear:after {
content: ".";
height: 0;
overflow: hidden;
visibility: hidden;
display: block;
clear: both;
} /* 清楚浮动 */
.all_trans {
transition: all 200ms;
-webkit-transition: all 200ms;
} /* 过渡效果 */
/* 美化滚动条 */
::-webkit-scrollbar {
width: 6px;
height: 6px;
background-color: transparent;
}
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
background-color: #333;
}