1
1
//
2
2
// Bars
3
3
// --------------------------------------------------
4
-
5
4
.#{$namespace } bar {
6
5
position : fixed ;
7
6
right : 0 ;
16
15
-webkit-backface-visibility : hidden ; // Make sure the bar is visible when a modal animates in.
17
16
backface-visibility : hidden ;
18
17
}
19
-
20
18
// fixed by fxy
21
- .#{$namespace } bar {
22
- .#{$namespace } title {
19
+ .#{$namespace } bar {
20
+ .#{$namespace } title {
23
21
width : auto ;
24
22
left : 40px ;
25
23
right : 40px ;
31
29
.#{$namespace } backdrop {
32
30
background : none ;
33
31
}
34
-
35
32
}
36
-
37
33
// Modifier class to dock any bar below .#{$namespace}bar-nav
38
34
.#{$namespace } bar-header-secondary {
39
35
top : $bar-base-height ;
40
36
}
41
-
42
37
// Modifier class for footer bars
43
38
.#{$namespace } bar-footer {
44
39
bottom : 0 ;
45
40
}
46
-
47
41
// Modifier class to dock any bar above a standard bar
48
42
.#{$namespace } bar-footer-secondary {
49
43
bottom : $bar-base-height ;
50
44
}
51
-
52
45
// Modifier class to dock any bar above a .#{$namespace}bar-tab
53
46
.#{$namespace } bar-footer-secondary-tab {
54
47
bottom : $bar-tab-height ;
55
48
}
56
-
57
49
// Give the footers the correct border
58
50
.#{$namespace } bar-footer ,
59
51
.#{$namespace } bar-footer-secondary ,
60
52
.#{$namespace } bar-footer-secondary-tab {
61
53
border-top : 0 ;
62
54
}
63
-
64
-
65
55
// Nav bar
66
56
// --------------------------------------------------
67
-
68
57
// Bar docked to top of viewport for showing page title and actions
58
+ .#{$namespace } bar-transparent {
59
+ top : 0 ;
60
+ background-color : rgba (247 ,247 ,247 ,0 ); // 应该设置成变量
61
+ -webkit-box-shadow : none ;
62
+ box-shadow : none ;
63
+ }
69
64
.#{$namespace } bar-nav {
70
65
top : 0 ;
71
- -webkit-box-shadow : 0 px 1px 6px #CCC ;
72
- box-shadow : 0 px 1px 6px #CCC ;
73
- ~ .#{$namespace } content .#{$namespace } anchor {
66
+ -webkit-box-shadow : 0 1px 6px #CCC ;
67
+ box-shadow : 0 1px 6px #CCC ;
68
+ ~ .#{$namespace } content .#{$namespace } anchor {
74
69
display : block ;
75
70
height : 45px ;
76
71
margin-top : -45px ;
77
72
visibility : hidden ;
78
73
}
79
- & .#{$namespace } bar .#{$namespace } icon {
74
+ & .#{$namespace } bar .#{$namespace } icon {
80
75
margin-left : -10px ;
81
76
margin-right : -10px ;
82
77
padding-left : 10px ;
83
78
padding-right : 10px ;
84
79
}
85
80
}
86
-
87
81
// Centered text in the .#{$namespace}bar-nav
88
82
//
89
83
// We position the absolutely to make sure the title is always centered
104
98
.#{$namespace } title a {
105
99
color : inherit ;
106
100
}
107
-
108
-
109
101
// Tab bar
110
102
// --------------------------------------------------
111
-
112
103
// Bar docked to bottom and used for primary app navigation
113
104
.#{$namespace } bar-tab {
114
105
display : table ;
119
110
table-layout : fixed ;
120
111
border-top : 0 ;
121
112
border-bottom : 0 ;
122
- -webkit-touch-callout : none ;// 选项卡上禁止长按弹出菜单;
123
-
113
+ -webkit-touch-callout : none ; // 选项卡上禁止长按弹出菜单;
124
114
// Navigational tab (Nested to be more specific for the icons in tab-items)
125
115
.#{$namespace } tab-item {
126
116
display : table-cell ;
133
123
overflow : hidden ;
134
124
text-overflow : ellipsis ;
135
125
white-space : nowrap ;
136
-
137
126
// Active states for the tab bar
138
127
& .#{$namespace } active {
139
128
color : $primary-color ;
140
129
}
141
-
142
130
// Tab icon
143
131
.#{$namespace } icon {
144
132
top : 3px ;
145
133
width : 24px ;
146
134
height : 24px ;
147
135
padding-top : 0 ;
148
136
padding-bottom : 0 ;
149
-
150
137
// Make the text smaller if it's used with an icon
151
138
~ .#{$namespace } tab-label {
152
139
display : block ;
161
148
}
162
149
}
163
150
}
164
- .#{$namespace } focusin >.#{$namespace } bar-nav ,.#{$namespace } focusin >.#{$namespace } bar-header-secondary {
165
- position :absolute ;
151
+ .#{$namespace } focusin >.#{$namespace } bar-nav ,
152
+ .#{$namespace } focusin >.#{$namespace } bar-header-secondary {
153
+ position : absolute ;
166
154
}
167
- .#{$namespace } focusin >.#{$namespace } bar ~.#{$namespace } content {
155
+ .#{$namespace } focusin >.#{$namespace } bar ~.#{$namespace } content {
168
156
padding-bottom : 0 ;
169
157
}
170
-
171
158
// Bars with buttons
172
159
// --------------------------------------------------
173
-
174
160
.#{$namespace } bar .#{$namespace } btn {
175
161
position : relative ;
176
162
top : 7px ;
177
163
z-index : z (" bar" ," btn" ); // Position the buttons on top of .#{$namespace}title
178
164
padding : 6px 12px 7px ;
179
165
margin-top : 0 ;
180
166
font-weight : $font-weight-light ;
181
-
182
167
// Give buttons that are floated left and right side margin
183
168
& .#{$namespace } pull-right {
184
169
margin-left : $bar-side-spacing ;
187
172
margin-right : $bar-side-spacing ;
188
173
}
189
174
}
190
-
191
175
// Bars with link buttons (Line the text up with content)
192
176
.#{$namespace } bar .#{$namespace } btn-link {
193
177
top : 0 ;
196
180
line-height : $bar-base-height ;
197
181
color : $primary-color ;
198
182
border : 0 ;
199
-
200
183
& :active ,
201
- & .#{$namespace } active {
184
+ & .#{$namespace } active {
202
185
color : darken ($primary-color , 10% );
203
186
}
204
187
}
205
-
206
188
// Bars with block buttons
207
189
//
208
190
// Add proper padding
212
194
margin-bottom : 0 ;
213
195
font-size : 16px ; // Scale down font size to fit in bar.
214
196
}
215
-
216
197
// Nav buttons (Only applicable within bars)
217
198
//
218
199
// Buttons inside bars that sit closer against the viewport.
219
200
.#{$namespace } bar .#{$namespace } btn-nav {
220
201
& .#{$namespace } pull-left {
221
202
margin-left : -5px ;
222
-
223
203
.#{$namespace } icon-left-nav {
224
204
margin-right : -3px ;
225
205
}
226
206
}
227
207
& .#{$namespace } pull-right {
228
208
margin-right : -5px ;
229
-
230
209
.#{$namespace } icon-right-nav {
231
210
margin-left : -3px ;
232
211
}
233
212
}
234
- & :active {
235
- opacity : .3 ;
213
+ & :active {
214
+ opacity : 0 .3 ;
236
215
// background-color: rgba(0,0,0,.07);
237
216
}
238
217
}
239
-
240
-
241
218
// Bars with Muiicons
242
219
// --------------------------------------------------
243
-
244
220
.#{$namespace } bar {
245
221
.#{$namespace } icon {
246
222
position : relative ;
247
223
z-index : z (" bar" ," icon" ); // Position the buttons on top of .#{$namespace}title
248
224
padding-top : 10px ;
249
225
padding-bottom : 10px ;
250
226
font-size : 24px ;
251
-
252
227
& :active {
253
- opacity : .3 ;
228
+ opacity : 0 .3 ;
254
229
// background-color: rgba(0,0,0,.07);
255
230
}
256
231
}
257
-
258
232
// Vertical center the larger icons in btns.
259
233
.#{$namespace } btn .#{$namespace } icon {
260
234
top : 1px ;
261
235
padding : 0 ;
262
- margin :0 ;
236
+ margin : 0 ;
263
237
}
264
-
265
238
// Handle carets in the titles
266
239
.#{$namespace } title .#{$namespace } icon {
267
240
padding : 0 ;
268
- margin :0 ;
241
+ margin : 0 ;
269
242
// Specific postioning of the caret icon within a title. Used with popover.js.
270
243
& .#{$namespace } icon-caret {
271
244
top : 4px ;
272
245
margin-left : -5px ;
273
246
}
274
247
}
275
248
}
276
-
277
-
278
249
// Bars for search forms
279
250
// --------------------------------------------------
280
-
281
251
// Position/size search bar within the bar
282
252
.#{$namespace } bar input [type = " search" ] {
283
253
height : 29px ;
284
254
margin : 6px 0 ;
285
255
}
286
- .#{$namespace } bar .#{$namespace } input-row .#{$namespace } btn {
256
+ .#{$namespace } bar .#{$namespace } input-row .#{$namespace } btn {
287
257
padding : 12px 10px ;
288
258
}
289
- .#{$namespace } bar .#{$namespace } search :before {
290
- margin-top : -10px ;
291
- }
292
- .#{$namespace } bar .#{$namespace } input-row .#{$namespace } input-clear ~.#{$namespace } icon-clear , .#{$namespace } bar .#{$namespace } input-row .#{$namespace } input-speech ~.#{$namespace } icon-speech {
259
+ .#{$namespace } bar .#{$namespace } search :before {
260
+ margin-top : -10px ;
261
+ }
262
+ .#{$namespace } bar .#{$namespace } input-row .#{$namespace } input-clear ~.#{$namespace } icon-clear ,
263
+ .#{$namespace } bar .#{$namespace } input-row .#{$namespace } input-speech ~.#{$namespace } icon-speech {
293
264
top : 0 ;
294
265
right : 12px ;
295
266
}
296
- .#{$namespace } bar.#{$namespace } bar-header-secondary .#{$namespace } input-row .#{$namespace } input-clear ~.#{$namespace } icon-clear , .#{$namespace } bar.#{$namespace } bar-header-secondary .#{$namespace } input-row .#{$namespace } input-speech ~.#{$namespace } icon-speech {
267
+ .#{$namespace } bar.#{$namespace } bar-header-secondary .#{$namespace } input-row .#{$namespace } input-clear ~.#{$namespace } icon-clear ,
268
+ .#{$namespace } bar.#{$namespace } bar-header-secondary .#{$namespace } input-row .#{$namespace } input-speech ~.#{$namespace } icon-speech {
297
269
top : 0 ;
298
270
right : 0 ;
299
271
}
300
-
301
272
// Bars with segmented controls
302
273
// --------------------------------------------------
303
-
304
274
// Position the control correctly inside a bar.
305
275
.#{$namespace } bar .#{$namespace } segmented-control {
306
276
top : 7px ;
307
277
margin : 0 auto ;
308
278
width : auto ;
309
279
}
310
280
.#{$namespace } bar.#{$namespace } bar-header-secondary .#{$namespace } segmented-control {
311
- top : 0 px ;
312
- }
281
+ top : 0 ;
282
+ }
0 commit comments