TabBar.less
2.78 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
.tabpanel{
position: absolute;
width: 100%;
height:100%;
}
.wev-comp-TabBar {
-webkit-font-smoothing: antialiased;
display: table;
width: 100%;
// height: 50 * @hd;
padding: 0;
table-layout: fixed;
border-top: 1px solid #ddd;
border-bottom: 0;
background-color: white;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
box-sizing: border-box;
visibility: hidden;
}
.wev-comp-TabBar.wev-fix-top {
border-top: 0;
border-bottom: 1px solid #ddd;
display: flex;
overflow-x: auto;
overflow-y: hidden;
.wev-tabbar-item {
padding: 10px 15px 10px 15px;
padding-top: 12px;
width: auto;
}
}
.page-header .wev-comp-TabBar {
visibility: visible;
}
.page-footer .wev-comp-TabBar{
visibility: visible;
}
.wev-tabbar-item {
display: table-cell;
width: 1%;
height: 50px;
color: #929292;
text-align: center;
vertical-align: middle;
text-decoration: none;
-webkit-tap-highlight-color: transparent;
box-sizing: border-box;
position: relative;
}
.wev-fix-top .wev-tabbar-item {
height: 43px;
font-size: @font-size-base;
color: #333;
}
.wev-fix-top .wev-tabbar-item .wev-ellipsis{
max-width: 120px;
}
.wev-tabbar-item.wev-tabbar-active, .wev-tabbar-item:active {
color: var(--themeColor);
}
.wev-fix-top .wev-tabbar-item.wev-tabbar-active:after {
content: '';
position: absolute;
height: 2px;
bottom: 0px;
left: 13px;
right: 12px;
background: var(--themeColor);
}
.wev-tabbar-item .wev-tabbar-icon {
position: relative;
top: 3px;
display: inline-block;
width: 24 * @hd;
height: 24 * @hd;
padding-top: 0;
padding-bottom: 0;
box-sizing: border-box;
z-index: 20;
}
.wev-tabbar-item.wev-fix-top .wev-tabbar-icon {
top: 0;
width: 20 * @hd;
height: 20 * @hd;
vertical-align: bottom;
}
.wev-tabbar-item.wev-tabbar-noimg .wev-tabbar-icon{
display: none;
}
.wev-tabbar-item .wev-tabbar-icon img{
width: 100%;
height: 100%;
}
.wev-tabbar-item .wev-tabbar-icon img.icon-active{
display: none;
}
.wev-tabbar-item.wev-tabbar-active .wev-tabbar-icon img.icon-active{
display: inline;
}
.wev-tabbar-item.wev-tabbar-active .wev-tabbar-icon img.icon-normal{
display: none;
}
.wev-tabbar-item.wev-tabbar-singleimg .wev-tabbar-icon img.icon-normal{
opacity: 0.5;
-webkit-opacity: 0.5;
-moz-opacity: 0.5;
-khtml-opacity: 0.5;
filter:alpha(opacity=50);
}
.wev-tabbar-item .wev-tabbar-icon ~ .wev-tabbar-label {
display: block;
font-size: @font-size-icontext;
box-sizing: border-box;
}
.wev-tabbar-item.wev-fix-top .wev-tabbar-icon ~ .wev-tabbar-label {
display: inline;
font-size: 14px;
line-height: 18 * @hd;
}
.wev-tabbar-item > .wev-badge {
position: absolute;
top: 2px;
right: 25%;
-ms-transform: translateX(150%);
transform: translateX(150%);
width: 22px;
height: 22px;
padding: 0;
line-height: 22px;
border-radius: 22px;
z-index:99;
}