| 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 13 matching lines...) Expand all Loading... |
| 24 font-weight: 500; | 24 font-weight: 500; |
| 25 margin-bottom: 0; | 25 margin-bottom: 0; |
| 26 margin-top: var(--settings-page-vertical-margin); | 26 margin-top: var(--settings-page-vertical-margin); |
| 27 } | 27 } |
| 28 | 28 |
| 29 #card { | 29 #card { |
| 30 @apply(--shadow-elevation-2dp); | 30 @apply(--shadow-elevation-2dp); |
| 31 background-color: white; | 31 background-color: white; |
| 32 border-radius: 2px; | 32 border-radius: 2px; |
| 33 flex: 1; | 33 flex: 1; |
| 34 overflow: hidden; | |
| 35 } | 34 } |
| 36 | 35 |
| 37 :host(.expanded) #card { | 36 :host(.expanded) #card { |
| 38 border-radius: 0; | 37 border-radius: 0; |
| 39 } | 38 } |
| 40 | 39 |
| 41 :host(.expanding) #card, | 40 :host(.expanding) #card, |
| 42 :host(.collapsing) #card, | 41 :host(.collapsing) #card, |
| 43 :host(.expanded) #card { | 42 :host(.expanded) #card { |
| 44 @apply(--shadow-elevation-4dp); | 43 @apply(--shadow-elevation-4dp); |
| 44 overflow: hidden; |
| 45 /* A stacking context constrains sliding sub-pages to the card. */ | 45 /* A stacking context constrains sliding sub-pages to the card. */ |
| 46 z-index: 0; | 46 z-index: 0; |
| 47 } | 47 } |
| 48 | 48 |
| 49 :host(:not(.expanding):not(.expanded)) #card { | 49 :host(:not(.expanding):not(.expanded)) #card { |
| 50 /* Keep the fading-out neon-animatable inside the card. */ | 50 /* Keep the fading-out neon-animatable inside the card. */ |
| 51 position: relative; | 51 position: relative; |
| 52 } | 52 } |
| 53 | 53 |
| 54 :host(.expanded) #header { | 54 :host(.expanded) #header { |
| 55 display: none; | 55 display: none; |
| 56 } | 56 } |
| 57 | 57 |
| 58 :host([hidden-by-search]) { | 58 :host([hidden-by-search]) { |
| 59 display: none; | 59 display: none; |
| 60 } | 60 } |
| 61 </style> | 61 </style> |
| 62 <div id="header"> | 62 <div id="header"> |
| 63 <h2 class="title">{{pageTitle}}</h2> | 63 <h2 class="title">{{pageTitle}}</h2> |
| 64 </div> | 64 </div> |
| 65 <div id="card"> | 65 <div id="card"> |
| 66 <content id="content"></content> | 66 <content id="content"></content> |
| 67 </div> | 67 </div> |
| 68 </template> | 68 </template> |
| 69 <script src="settings_section.js"></script> | 69 <script src="settings_section.js"></script> |
| 70 </dom-module> | 70 </dom-module> |
| OLD | NEW |