OLD | NEW |
1 /* Copyright 2015 The Chromium Authors. All rights reserved. | 1 /* Copyright 2015 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview | 6 * @fileoverview |
7 * Common styles for Settings pages. | 7 * Common styles for Settings pages. |
8 */ | 8 */ |
9 :host { | 9 :host { |
10 display: block; | 10 display: flex; |
11 } | 11 flex-direction: column; |
12 | 12 position: relative; |
13 :host(.expanded) { | |
14 height: 100%; | |
15 } | |
16 | |
17 :host(.expanded) #header { | |
18 display: none; | |
19 } | 13 } |
20 | 14 |
21 #header { | 15 #header { |
22 margin-bottom: 12px; | 16 margin-bottom: 12px; |
23 } | 17 } |
24 | 18 |
25 #header .title { | 19 #header .title { |
26 color: rgb(104, 113, 116); | 20 color: rgb(104, 113, 116); |
27 font-size: 13px; | 21 font-size: 13px; |
28 font-weight: 500; | 22 font-weight: 500; |
29 } | 23 } |
30 | 24 |
31 paper-material { | 25 #card { |
32 background-color: white; | 26 background-color: white; |
33 box-sizing: border-box; | |
34 overflow: hidden; | 27 overflow: hidden; |
35 } | 28 } |
36 | 29 |
37 paper-material, | 30 #card { |
38 #placeholder { | 31 flex: 1; |
39 margin-bottom: 16px; | |
40 } | 32 } |
41 | 33 |
42 :host(.neon-animating) paper-material { | 34 :host(.expanded) { |
43 position: fixed; | 35 margin-bottom: 0; |
44 z-index: 1; | |
45 } | 36 } |
46 | 37 |
47 :host(.expanded) paper-material { | 38 :host(.expanded) #header { |
48 margin-bottom: 0; | 39 display: none; |
49 min-height: 100%; | |
50 } | 40 } |
51 | 41 |
52 #placeholder { | 42 :host(.frozen) #card { |
53 visibility: hidden; | 43 position: fixed; |
| 44 width: 100%; |
54 } | 45 } |
55 | 46 |
56 :host(:not(.neon-animating)) #placeholder { | 47 :host(.expanded.frozen) #card { |
57 position: absolute; | 48 position: relative; |
58 } | 49 } |
OLD | NEW |