OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
1 <link rel="import" href="/settings_page/main_page_behavior.html"> | 2 <link rel="import" href="/settings_page/main_page_behavior.html"> |
2 | 3 |
3 <dom-module id="settings-page-styles"> | 4 <dom-module id="settings-page-styles"> |
4 <template> | 5 <template> |
5 <style include="main-page-styles"> | 6 <style> |
6 :host { | 7 :host { |
7 box-sizing: border-box; | 8 box-sizing: border-box; |
8 display: block; | 9 display: block; |
9 height: inherit; | 10 height: inherit; |
10 margin: 0 auto; | 11 margin: 0 auto; |
11 max-width: 960px; | 12 max-width: 960px; |
12 min-width: 622px; | 13 min-width: 622px; |
13 position: relative; | 14 position: relative; |
14 width: 96%; | 15 width: 96%; |
15 } | 16 } |
16 | 17 |
17 :host > div { | 18 :host > div { |
18 height: inherit; | 19 height: inherit; |
19 } | 20 } |
20 | 21 |
21 :host > div > * { | 22 :host > div > :not(.expanded) { |
22 /* The margin and padding here are doing two things: make the total | 23 /* The margin and padding here are doing two things: make the total |
23 * separation 24px; and make scrollIntoView align the section header | 24 * separation 24px; and make scrollIntoView align the section header |
24 * with the top item in the side nav menu. Both things are desired | 25 * with the top item in the side nav menu. Both things are desired |
25 * by Alan (bettes@). */ | 26 * by Alan (bettes@). */ |
26 margin-bottom: 3px; | 27 margin-bottom: 3px; |
27 } | 28 } |
| 29 |
| 30 .expanded { |
| 31 min-height: 100%; |
| 32 } |
| 33 |
| 34 .expanding, |
| 35 .collapsing { |
| 36 /* Must be lower than the paper-header-panel's z-index. |
| 37 * See settings_ui.html. */ |
| 38 z-index: 1; |
| 39 } |
28 </style> | 40 </style> |
29 </template> | 41 </template> |
30 </dom-module> | 42 </dom-module> |
OLD | NEW |