1
- /*
2
- headers.css should only contain the following imports
3
- once @import is available in shared folder
4
-
5
- @import url("headers/layout.css");
6
- @import url("headers/skin_default.css");
7
- @import url("headers/skin_comms.css");
8
- @import url("headers/skin_dark.css");
9
- @import url("headers/skin_organic.css");
10
- */
11
-
12
1
/* -------------------------------------------------------------------
13
2
HEADERS: layout
14
- This is our base CSS file.
15
3
Form factor or Skin dependent styles should NOT be defined here.
16
4
------------------------------------------------------------------- */
17
5
18
- section [role = "region" ] > header : first-child ,
19
- gaia-header {
6
+ section [role = "region" ] > header : first-child {
20
7
position : relative;
21
8
display : block;
22
9
z-index : 10 ;
@@ -25,8 +12,7 @@ gaia-header {
25
12
border : none;
26
13
}
27
14
28
- section [role = "region" ] > header : first-child h1 ,
29
- gaia-header h1 {
15
+ section [role = "region" ] > header : first-child h1 {
30
16
font-size : 2.3rem ;
31
17
line-height : 5rem ;
32
18
text-align : left;
@@ -42,62 +28,13 @@ gaia-header h1 {
42
28
text-align : center;
43
29
}
44
30
45
- section [role = "region" ] > header : first-child h1 em ,
46
- gaia-header h1 em {
31
+ section [role = "region" ] > header : first-child h1 em {
47
32
font-weight : 400 ;
48
33
font-size : 1.5rem ;
49
34
line-height : 1em ;
50
35
font-style : normal;
51
36
}
52
37
53
- /**
54
- * Forms in header are only used in email app.
55
- * Incorrect UI style.
56
- * Sould be removed after landing bug 1001298
57
- * (also rtl properties)
58
- */
59
-
60
- section [role = "region" ] > header : first-child form {
61
- display : block;
62
- overflow : hidden;
63
- position : relative;
64
- padding : 1rem 1rem 0 0.5rem ;
65
- margin-left : 3.5rem ;
66
- }
67
-
68
- section [role = "region" ] > header : first-child input [type = "text" ] {
69
- width : 100% ;
70
- height : 3rem ;
71
- box-sizing : border-box;
72
- padding : 0 0.8rem ;
73
- border : solid 0.1rem # 9d4123 ;
74
- border-top-color : # a6501e ;
75
- border-radius : 0 ;
76
- background : # fff ;
77
- font-size : 1.5rem ;
78
- line-height : 3em ;
79
- box-shadow : none;
80
- }
81
-
82
- section [role = "region" ] > header : first-child form button [type = "reset" ] {
83
- font-size : 0 ;
84
- overflow : hidden;
85
- position : absolute;
86
- right : 1rem ;
87
- top : 1rem ;
88
- bottom : 0 ;
89
- width : 3rem ;
90
- height : auto;
91
- margin : 0 ;
92
- display : none;
93
- border : none;
94
- background : url (headers/images/icons/clear.png) no-repeat center center / 1.7rem auto;
95
- }
96
-
97
- section [role = "region" ] > header : first-child input [type = "text" ]: valid + button [type = "reset" ] {
98
- display : block;
99
- }
100
-
101
38
section [role = "region" ] > header : first-child menu {
102
39
height : 100% ;
103
40
float : right;
@@ -110,9 +47,7 @@ section[role="region"] > header:first-child menu {
110
47
---------------------------------- */
111
48
112
49
section [role = "region" ] > header : first-child a ,
113
- section [role = "region" ] > header : first-child button ,
114
- gaia-header a ,
115
- gaia-header button {
50
+ section [role = "region" ] > header : first-child button {
116
51
box-sizing : border-box;
117
52
position : relative;
118
53
display : block;
@@ -136,13 +71,11 @@ gaia-header button {
136
71
}
137
72
138
73
/* Pressed state */
139
- section [role = "region" ] > header : first-child a : focus ,
140
- gaia-header a : focus {
74
+ section [role = "region" ] > header : first-child a : focus {
141
75
outline : none;
142
76
}
143
77
144
- section [role = "region" ] > header : first-child button ::-moz-focus-inner ,
145
- gaia-header button ::-moz-focus-inner {
78
+ section [role = "region" ] > header : first-child button ::-moz-focus-inner {
146
79
outline : none;
147
80
border : none;
148
81
margin-top : -0.2rem ; /* To fix line-height bug (697451) */
@@ -151,9 +84,7 @@ gaia-header button::-moz-focus-inner {
151
84
152
85
/* Disabled state */
153
86
section [role = "region" ] > header : first-child a [aria-disabled = "true" ],
154
- section [role = "region" ] > header : first-child button [disabled ],
155
- gaia-header a [aria-disabled = "true" ],
156
- gaia-header button [disabled ] {
87
+ section [role = "region" ] > header : first-child button [disabled ] {
157
88
opacity : 0.3 ;
158
89
pointer-events : none;
159
90
}
@@ -170,20 +101,6 @@ section[role="region"] > header:first-child .icon {
170
101
font-size : 0 ;
171
102
}
172
103
173
- gaia-header [data-icon ] {
174
- font-size : 0 ;
175
- }
176
-
177
- gaia-header [data-icon ]: before {
178
- position : absolute;
179
- content : "" ;
180
- width : 3rem ;
181
- height : 3rem ;
182
- background : transparent no-repeat center / 3rem auto;
183
- top : 1rem ;
184
- left : 1rem ;
185
- }
186
-
187
104
/* ----------------------------------
188
105
Subheader
189
106
---------------------------------- */
@@ -205,25 +122,12 @@ section[role="region"] header h2 {
205
122
right-to-left
206
123
---------------------------------- */
207
124
208
- html [dir = "rtl" ] section [role = "region" ] > header : first-child form {
209
- padding : 1rem .5rem 0 1rem ;
210
- margin-right : 3.5rem ;
211
- margin-left : 0 ;
212
- }
213
-
214
- html [dir = "rtl" ] section [role = "region" ] > header : first-child form button [type = "reset" ] {
215
- left : 1rem ;
216
- right : inherit;
217
- }
218
-
219
125
html [dir = "rtl" ] section [role = "region" ] > header : first-child menu {
220
126
float : left;
221
127
}
222
128
223
129
html [dir = "rtl" ] section [role = "region" ] > header : first-child button ,
224
- html [dir = "rtl" ] section [role = "region" ] > header : first-child a ,
225
- html [dir = "rtl" ] gaia-header button ,
226
- html [dir = "rtl" ] gaia-header a {
130
+ html [dir = "rtl" ] section [role = "region" ] > header : first-child a {
227
131
float : right;
228
132
}
229
133
@@ -242,85 +146,67 @@ section[role="region"] > header:first-child {
242
146
background-color : # f97c17 ;
243
147
}
244
148
245
- section [role = "region" ] > header : first-child h1 ,
246
- gaia-header h1 {
149
+ section [role = "region" ] > header : first-child h1 {
247
150
color : # fff ;
248
151
}
249
152
250
153
section [role = "region" ] > header : first-child a ,
251
- section [role = "region" ] > header : first-child button ,
252
- gaia-header a ,
253
- gaia-header button {
154
+ section [role = "region" ] > header : first-child button {
254
155
color : rgba (0 , 0 , 0 , 0.6 );
255
156
}
256
157
257
158
section [role = "region" ] > header : first-child a : active ,
258
159
section [role = "region" ] > header : first-child button : active ,
259
160
section [role = "region" ] > header : first-child a : hover ,
260
- section [role = "region" ] > header : first-child button : hover ,
261
- gaia-header a : active ,
262
- gaia-header button : active ,
263
- gaia-header a : hover ,
264
- gaia-header button : hover {
161
+ section [role = "region" ] > header : first-child button : hover {
265
162
background-color : rgba (0 , 0 , 0 , 0.07 );
266
163
}
267
164
268
165
/* ----------------------------------
269
166
Icons
270
167
---------------------------------- */
271
168
272
- section [role = "region" ] > header : first-child .icon-add ,
273
- gaia-header [data-icon = "add" ]: before {
169
+ section [role = "region" ] > header : first-child .icon-add {
274
170
background-image : url (headers/images/icons/add.png);
275
171
}
276
172
277
- section [role = "region" ] > header : first-child .icon-compose ,
278
- gaia-header [data-icon = "compose" ]: before {
173
+ section [role = "region" ] > header : first-child .icon-compose {
279
174
background-image : url (headers/images/icons/compose.png);
280
175
}
281
176
282
- section [role = "region" ] > header : first-child .icon-edit ,
283
- gaia-header [data-icon = "edit" ]: before {
177
+ section [role = "region" ] > header : first-child .icon-edit {
284
178
background-image : url (headers/images/icons/edit.png);
285
179
}
286
180
287
- section [role = "region" ] > header : first-child .icon-send ,
288
- gaia-header [data-icon = "send" ]: before {
181
+ section [role = "region" ] > header : first-child .icon-send {
289
182
background-image : url (headers/images/icons/send.png);
290
183
}
291
184
292
- section [role = "region" ] > header : first-child .icon-close ,
293
- gaia-header [data-icon = "close" ]: before {
185
+ section [role = "region" ] > header : first-child .icon-close {
294
186
background-image : url (headers/images/icons/close.png);
295
187
}
296
188
297
- section [role = "region" ] > header : first-child .icon-back ,
298
- gaia-header [data-icon = "back" ]: before {
189
+ section [role = "region" ] > header : first-child .icon-back {
299
190
background-image : url (headers/images/icons/back.png);
300
191
}
301
192
302
- section [role = "region" ] > header : first-child .icon-menu ,
303
- gaia-header [data-icon = "menu" ]: before {
193
+ section [role = "region" ] > header : first-child .icon-menu {
304
194
background-image : url (headers/images/icons/menu.png);
305
195
}
306
196
307
- section [role = "region" ] > header : first-child .icon-user ,
308
- gaia-header [data-icon = "user" ]: before {
197
+ section [role = "region" ] > header : first-child .icon-user {
309
198
background-image : url (headers/images/icons/user.png);
310
199
}
311
200
312
- section [role = "region" ] > header : first-child .icon-up ,
313
- gaia-header [data-icon = "up" ]: before {
201
+ section [role = "region" ] > header : first-child .icon-up {
314
202
background-image : url (headers/images/icons/up.png);
315
203
}
316
204
317
- section [role = "region" ] > header : first-child .icon-down ,
318
- gaia-header [data-icon = "down" ]: before {
205
+ section [role = "region" ] > header : first-child .icon-down {
319
206
background-image : url (headers/images/icons/down.png);
320
207
}
321
208
322
- section [role = "region" ] > header : first-child .icon-options ,
323
- gaia-header [data-icon = "options" ]: before {
209
+ section [role = "region" ] > header : first-child .icon-options {
324
210
background-image : url (headers/images/icons/options.png);
325
211
}
326
212
@@ -346,9 +232,7 @@ section[role="region"].skin-comms > header:first-child {
346
232
.skin-comms section [role = "region" ] > header : first-child a ,
347
233
.skin-comms section [role = "region" ] > header : first-child button ,
348
234
section [role = "region" ].skin-comms > header : first-child a ,
349
- section [role = "region" ].skin-comms > header : first-child button ,
350
- gaia-header [data-skin = "comms" ] a ,
351
- gaia-header [data-skin = "comms" ] button {
235
+ section [role = "region" ].skin-comms > header : first-child button {
352
236
color : rgba (0 , 0 , 0 , 0.5 );
353
237
}
354
238
@@ -359,9 +243,7 @@ gaia-header[data-skin="comms"] button {
359
243
section [role = "region" ].skin-comms > header : first-child a : active ,
360
244
section [role = "region" ].skin-comms > header : first-child button : active ,
361
245
section [role = "region" ].skin-comms > header : first-child a : hover ,
362
- section [role = "region" ].skin-comms > header : first-child button : hover ,
363
- gaia-header [data-skin = "comms" ] a : hover ,
364
- gaia-header [data-skin = "comms" ] button : hover {
246
+ section [role = "region" ].skin-comms > header : first-child button : hover {
365
247
background-color : rgba (0 , 0 , 0 , 0.1 );
366
248
}
367
249
@@ -378,9 +260,7 @@ section[role="region"].skin-dark > header:first-child,
378
260
.skin-dark section [role = "region" ] > header : first-child a ,
379
261
.skin-dark section [role = "region" ] > header : first-child button ,
380
262
section [role = "region" ].skin-dark > header : first-child a ,
381
- section [role = "region" ].skin-dark > header : first-child button ,
382
- gaia-header [data-skin = "dark" ] a ,
383
- gaia-header [data-skin = "dark" ] button {
263
+ section [role = "region" ].skin-dark > header : first-child button {
384
264
color : # 00aac5 ;
385
265
}
386
266
@@ -391,9 +271,7 @@ gaia-header[data-skin="dark"] button {
391
271
section [role = "region" ].skin-dark > header : first-child a : active ,
392
272
section [role = "region" ].skin-dark > header : first-child button : active ,
393
273
section [role = "region" ].skin-dark > header : first-child a : hover ,
394
- section [role = "region" ].skin-dark > header : first-child button : hover ,
395
- gaia-header [data-skin = "dark" ] a : hover ,
396
- gaia-header [data-skin = "dark" ] button : hover {
274
+ section [role = "region" ].skin-dark > header : first-child button : hover {
397
275
background-color : rgba (0 , 0 , 0 , 0.4 );
398
276
}
399
277
@@ -416,17 +294,14 @@ section[role="region"].skin-organic > header:first-child,
416
294
}
417
295
418
296
section [role = "region" ].skin-organic > header : first-child h1 ,
419
- .skin-organic section [role = "region" ] > header : first-child h1 ,
420
- gaia-header [data-skin = "organic" ] h1 {
297
+ .skin-organic section [role = "region" ] > header : first-child h1 {
421
298
color : # 868692 ;
422
299
}
423
300
424
301
section [role = "region" ].skin-organic > header : first-child a ,
425
302
section [role = "region" ].skin-organic > header : first-child button ,
426
303
.skin-organic section [role = "region" ] > header : first-child a ,
427
- .skin-organic section [role = "region" ] > header : first-child button ,
428
- gaia-header [data-skin = "organic" ] a ,
429
- gaia-header [data-skin = "organic" ] button {
304
+ .skin-organic section [role = "region" ] > header : first-child button {
430
305
color : # 00aac5 ;
431
306
}
432
307
@@ -435,26 +310,22 @@ gaia-header[data-skin="organic"] button {
435
310
---------------------------------- */
436
311
437
312
section [role = "region" ].skin-organic > header : first-child .icon-back ,
438
- .skin-organic section [role = "region" ] > header : first-child .icon-back ,
439
- gaia-header [data-skin = "organic" ] [data-icon = "back" ]: before {
313
+ .skin-organic section [role = "region" ] > header : first-child .icon-back {
440
314
background-image : url (headers/images/icons/organic/back.png);
441
315
}
442
316
443
317
section [role = "region" ].skin-organic > header : first-child .icon-close ,
444
- .skin-organic section [role = "region" ] > header : first-child .icon-close ,
445
- gaia-header [data-skin = "organic" ] [data-icon = "close" ]: before {
318
+ .skin-organic section [role = "region" ] > header : first-child .icon-close {
446
319
background-image : url (headers/images/icons/organic/close.png);
447
320
}
448
321
449
322
section [role = "region" ].skin-organic > header : first-child .icon-add ,
450
- .skin-organic section [role = "region" ] > header : first-child .icon-add ,
451
- gaia-header [data-skin = "organic" ] [data-icon = "add" ]: before {
323
+ .skin-organic section [role = "region" ] > header : first-child .icon-add {
452
324
background-image : url (headers/images/icons/organic/add.png);
453
325
}
454
326
455
327
section [role = "region" ].skin-organic > header : first-child .icon-edit ,
456
- .skin-organic section [role = "region" ] > header : first-child .icon-edit ,
457
- gaia-header [data-skin = "organic" ] [data-icon = "edit" ]: before {
328
+ .skin-organic section [role = "region" ] > header : first-child .icon-edit {
458
329
background-image : url (headers/images/icons/organic/edit.png);
459
330
}
460
331
0 commit comments