Debian Codegraph @

dojox/mobile/themes/common/TabBar.less

raw
1 /* dojox.mobile.TabBar */
2 .mblTabBar {
3 position: relative;
4 margin: 0px;
5 overflow: hidden;
6 white-space: nowrap;
7 text-overflow: ellipsis;
8 padding: 0px 6px;
9 height: 42px;
10 text-align: center;
11 color: white;
12 border-top: 1px solid @heading-border-top-color;
13 border-bottom: 1px solid @heading-border-bottom-color;
14 .mblTabBar-styles;
15 }
16
17 /* dojox.mobile.TabBarButton */
18 .mblTabBarFill .mblTabBarButton {
19 box-sizing: border-box;
20 -moz-box-sizing: border-box;
21 -webkit-box-sizing: border-box;
22 }
23
24 .mblTabBarButton {
25 overflow: hidden;
26 cursor: pointer;
27 .tap-highlight-color(rgba(255,255,255,0));
28 position: relative;
29 list-style-type: none;
30 float: left;
31 }
32 .mblTabBarButtonIconArea {
33 margin: 0 auto;
34 width: 29px;
35 }
36 .mblTabBarButtonIconParent1 {
37 display: block;
38 }
39 .mblTabBarButtonIconParent2 {
40 display: none;
41 }
42 .mblTabBarButtonSelected .mblTabBarButtonIconParent1 {
43 display: none;
44 }
45 .mblTabBarButtonSelected .mblTabBarButtonIconParent2 {
46 display: block;
47 }
48
49 /* barType="tabBar" */
50 .mblTabBarTabBar {
51 height: 48px;
52 border-top: 1px solid #000000;
53 .mblTabBarTabBar-styles;
54
55 .mblTabBarButton {
56 .mblTabBarTabBarButton-styles;
57 }
58 .mblTabBarButtonIconArea {
59 padding-top: 4px;
60 .mblTabBarTabBarButtonIconArea-styles;
61 }
62 .mblTabBarButtonLabel {
63 font-family: "Helvetica Neue", Helvetica;
64 font-size: 11px;
65 .mblTabBarTabBarButtonLabel-styles;
66 }
67 .mblTabBarButtonSelected {
68 border-radius: 3px;
69 .mblTabBarTabBarButtonSelected-styles;
70 }
71 .mblTabBarButtonSelected .mblTabBarButtonLabel {
72 .mblTabBarTabBarButtonLabelSelected-styles;
73 }
74 }
75 /* barType="segmentedControl" */
76 .mblTabBarSegmentedControl {
77 .heading-background-image();
78 .mblTabBarSegmentedControl-styles;
79
80 &.mblTabBarNoText {
81 .mblTabBarButton {
82 width: auto;
83 padding: 0 3px;
84 }
85 .mblTabBarButtonIconArea {
86 position: relative;
87 }
88 }
89 .mblTabBarButton {
90 margin: 6px 0;
91 width: 100px;
92 height: 29px;
93 border-width: 1px 1px 1px 0px;
94 font-family: Helvetica;
95 font-size: 13px;
96 font-weight: bold;
97 text-align: center;
98 line-height: 29px;
99 .mblTabBarSegmentedControlButton-styles;
100 &:first-child {
101 border-left-width: 1px;
102 border-top-left-radius: @mbl-tab-bar-segmented-control-border-radius;
103 border-bottom-left-radius: @mbl-tab-bar-segmented-control-border-radius;
104 }
105 &:last-child {
106 border-top-right-radius: @mbl-tab-bar-segmented-control-border-radius;
107 border-bottom-right-radius: @mbl-tab-bar-segmented-control-border-radius;
108 }
109 }
110 .mblTabBarButtonIconArea {
111 position: absolute;
112 top: 0px;
113 left: 0px;
114 }
115 .mblTabBarButtonSelected {
116 .mblTabBarSegmentedControlButtonSelected-styles;
117 }
118 }
119 .mblHeading .mblTabBarSegmentedControl {
120 display: inline;
121 float: left;
122 height: auto;
123 border: none;
124 }
125
126 /* barType="standardTab" */
127 .mblTabBarStandardTab {
128 .heading-background-image();
129 .mblTabBarStandardTab-styles;
130
131 .mblTabBarButton {
132 margin-top: 9px;
133 padding: 9px;
134 border: 1px solid #62676d;
135 border-top-left-radius: 4px;
136 border-top-right-radius: 4px;
137 font-family: Helvetica;
138 font-size: 14px;
139 font-weight: bold;
140 .mblTabBarStandardTabButton-styles;
141 }
142 .mblTabBarButtonIconArea {
143 position: absolute;
144 top: 3px;
145 left: 0px;
146 .mblTabBarStandardTabButtonIconArea-styles;
147 }
148 .mblTabBarButtonLabel {
149 .mblTabBarStandardTabButtonLabel-styles;
150 }
151 .mblTabBarButtonSelected {
152 .mblTabBarStandardTabButtonSelected-styles;
153 }
154 .mblTabBarButtonSelected .mblTabBarButtonLabel {
155 .mblTabBarStandardTabButtonLabelSelected-styles;
156 }
157 .mblTabBarButtonHasIcon .mblTabBarButtonLabel {
158 margin-left: 20px;
159 }
160 }
161
162 /* barType="slimTab" */
163 .mblTabBarSlimTab {
164 height: 30px;
165 padding: 0px;
166 border: 1px solid @heading-border-bottom-color;
167 background-color: #000000;
168 .background-image-linear-gradient-top-bottom-2-stops(#2d2d2d, #000000, 0.5, #141414, 0.5, #000000);
169
170 .mblTabBarButton {
171 padding: 7px;
172 border-right: 1px solid #4e4e4e;
173 .background-image-linear-gradient-top-bottom-2-stops(#2d2d2d, #000000, 0.5, #141414, 0.5, #000000);
174 font-family: Helvetica;
175 font-size: 14px;
176 font-weight: bold;
177 color: white;
178 text-shadow: rgba(100, 100, 100, 0.6) 0px -1px 0px;
179 text-align: center;
180 &:first-child {
181 border-left: 1px solid #4e4e4e;
182 }
183 &:last-child {
184 }
185 }
186 .mblTabBarButtonIconArea {
187 position: absolute;
188 top: 0px;
189 left: 0px;
190 }
191 .mblTabBarButtonSelected {
192 background-color: #404040;
193 .background-image-linear-gradient-top-bottom-2-stops(#313031, #959595, 0.5, #5a555a, 0.5, #616161);
194 }
195 .mblTabBarButtonHasIcon .mblTabBarButtonLabel {
196 margin-left: 20px;
197 }
198 }
199
200 /* barType="flatTab" */
201 .mblTabBarFlatTab {
202 height: 30px;
203 padding: 0px;
204 border-style: none;
205 background-color: transparent;
206 background-image: none;
207
208 .mblTabBarButton {
209 padding: 7px;
210 background-image: none;
211 font-family: Helvetica;
212 font-size: 14px;
213 font-weight: bold;
214 text-shadow: rgba(100, 100, 100, 0.6) 0px -1px 0px;
215 text-align: center;
216 }
217 .mblTabBarButtonIconArea {
218 position: absolute;
219 top: 0px;
220 left: 0px;
221 }
222 .mblTabBarButtonHasIcon .mblTabBarButtonLabel {
223 margin-left: 20px;
224 }
225 }
226
227 /* barType="tallTab" */
228 .mblTabBarTallTab {
229 height: 64px;
230 border-top: 1px solid #cdd5df;
231 border-bottom: 2px solid #949694;
232 .mblTabBarTallTab-styles;
233
234 .mblTabBarButton {
235 margin-top: 3px;
236 margin-right: 2px;
237 width: 78px;
238 height: 61px;
239 border-width: 0px 1px 0px 1px;
240 border-style: solid;
241 border-color: black #182018 black #393c39;
242 .background-image-linear-gradient-top-bottom-1-stop(#181818, #100c10, 0.1, #313031);
243 font-family: Helvetica;
244 font-size: 13px;
245 color: white;
246 text-align: center;
247 .mblTabBarTallTabButton-styles;
248 &:first-child {
249 .mblTabBarTallTabButton-FirstChild-styles;
250 }
251 &:last-child {
252 .mblTabBarTallTabButton-LastChild-styles;
253 }
254 }
255 .mblTabBarButtonIconArea {
256 margin-top: 8px;
257 .mblTabBarTallTabButtonIconArea-styles;
258 }
259 .mblTabBarButtonLabel {
260 font-family: "Helvetica Neue", Helvetica;
261 font-size: 11px;
262 .mblTabBarTallTabButtonLabel-styles;
263 }
264 .mblTabBarButtonSelected {
265 .background-image-linear-gradient-top-bottom(#a59ea5, #848284);
266 .mblTabBarTallTabButtonSelected-styles;
267 }
268 .mblTabBarButtonSelected .mblTabBarButtonLabel {
269 .mblTabBarTallTabButtonLabelSelected-styles;
270 }
271 .mblTabBarButtonHasIcon .mblTabBarButtonLabel {
272 }
273 }