weui.css
2.61 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
/* 重置WEUI样式 */
.g-window {
.weui-mask_transparent {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 99;
background-color: #000;
opacity: 0.3;
}
.weui-cells {
margin-top: 0;
font-size: inherit;
background-color: transparent;
}
.weui-cell {
font-size: 1.08rem;
padding: 0.5rem 0.7rem;
.vux-label-desc {
font-size: 0.8rem;
color: #999;
}
&:before {
/*left: 0;*/
}
}
/* 按钮组 */
.weui-btn {
font-size: 1rem;
&:after {
border: none;
}
}
.weui-btn_default {
color: $color_button_primary;
}
.weui-btn_transparent {
color: $color_white;
background-color: inherit;
}
.weui-btn_primary, .weui-btn_warn {
width: 90%;
}
.weui-btn_primary {
background-color: $color_button_primary;
}
.weui-btn_warn {
background-color: $color_button_warn;
}
/* 输入框组 */
.weui-input {
font-size: 1.08rem;
}
/* switch 元件 */
.weui-switch:checked, .weui-switch-cp__input:checked ~ .weui-switch-cp__box {
background-color: inherit;
border-color: inherit;
}
/* 导航元件 */
.vux-tab {
.vux-tab-item {
font-size: inherit;
& > a {
display: inline-block;
width: inherit;
height: inherit;
}
&.vux-tab-selected {
color: inherit;
}
}
}
.vux-button-group {
& > a.vux-button-group-current, & > a.hover, & > a:active {
background-color: inherit;
}
}
.vux-header {
.vux-header-title, h1 {
margin: 0 20%;
color: inherit;
}
.vux-header-left, .vux-header-right {
color: inherit;
a, button {
color: inherit;
}
}
}
.weui-cell__ft {
font-size: 0.96rem;
color: inherit;
}
.weui-search-bar {
background-color: transparent;
}
.weui-icon-search {
line-height: 2rem;
}
.weui-icon-warn {
font-size: inherit;
}
.weui-search-bar__box {
.weui-search-bar__input, .weui-icon-search {
line-height: 2rem;
font-size: 1.08rem;
}
}
.vux-label-desc {
display: inline-block;
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.vux-datetime.weui-cell {
padding: 0;
}
.left-arrow {
&:before {
content: "";
position: absolute;
width: 8px !important;
height: 8px !important;
border: 1px solid #ccc;
border-width: 1px 0 0 1px;
-webkit-transform: rotate(315deg);
-moz-transform: rotate(315deg);
transform: rotate(315deg);
top: 8px;
left: 7px;
}
}
}