| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> |
| 3 <link rel="import" href="/animation/animation.html"> | 3 <link rel="import" href="/animation/animation.html"> |
| 4 | 4 |
| 5 <dom-module id="settings-section"> | 5 <dom-module id="settings-section"> |
| 6 <template> | 6 <template> |
| 7 <style> | 7 <style> |
| 8 :host { | 8 :host { |
| 9 display: flex; | 9 display: flex; |
| 10 flex-direction: column; | 10 flex-direction: column; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 @apply(--shadow-elevation-2dp); | 29 @apply(--shadow-elevation-2dp); |
| 30 background-color: white; | 30 background-color: white; |
| 31 flex: 1; | 31 flex: 1; |
| 32 overflow: hidden; | 32 overflow: hidden; |
| 33 } | 33 } |
| 34 | 34 |
| 35 :host(.expanding) #card, | 35 :host(.expanding) #card, |
| 36 :host(.collapsing) #card, | 36 :host(.collapsing) #card, |
| 37 :host(.expanded) #card { | 37 :host(.expanded) #card { |
| 38 @apply(--shadow-elevation-4dp); | 38 @apply(--shadow-elevation-4dp); |
| 39 /* A stacking context constrains sliding sub-pages to the card. */ |
| 40 z-index: 0; |
| 39 } | 41 } |
| 40 | 42 |
| 41 :host(:not(.expanding):not(.expanded)) #card { | 43 :host(:not(.expanding):not(.expanded)) #card { |
| 42 /* Keep the fading-out neon-animatable inside the card. */ | 44 /* Keep the fading-out neon-animatable inside the card. */ |
| 43 position: relative; | 45 position: relative; |
| 44 } | 46 } |
| 45 | 47 |
| 46 :host(.expanded) #header { | 48 :host(.expanded) #header { |
| 47 display: none; | 49 display: none; |
| 48 } | 50 } |
| 49 | 51 |
| 50 :host([hidden-by-search]) { | 52 :host([hidden-by-search]) { |
| 51 display: none; | 53 display: none; |
| 52 } | 54 } |
| 53 </style> | 55 </style> |
| 54 <div id="header"> | 56 <div id="header"> |
| 55 <div class="title">{{pageTitle}}</div> | 57 <div class="title">{{pageTitle}}</div> |
| 56 </div> | 58 </div> |
| 57 <div id="card"> | 59 <div id="card"> |
| 58 <content id="content"></content> | 60 <content id="content"></content> |
| 59 </div> | 61 </div> |
| 60 </template> | 62 </template> |
| 61 <script src="settings_section.js"></script> | 63 <script src="settings_section.js"></script> |
| 62 </dom-module> | 64 </dom-module> |
| OLD | NEW |