Chromium Code Reviews| 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; | 
| 11 /* Margin so the box-shadow isn't clipped during animations. */ | 11 /* Margin so the box-shadow isn't clipped during animations. */ | 
| 12 margin-left: 3px; | 12 margin-left: 3px; | 
| 13 margin-right: 3px; | 13 margin-right: 3px; | 
| 14 position: relative; | 14 position: relative; | 
| 15 } | 15 } | 
| 16 | 16 | 
| 17 #header { | 17 #header { | 
| 18 margin-bottom: 12px; | 18 margin-bottom: 12px; | 
| 19 } | 19 } | 
| 20 | 20 | 
| 21 .title { | |
| 22 margin-bottom: 0; | |
| 
 
Dan Beam
2016/08/31 18:43:41
nit: just put this in #header .title below
 
hcarmona
2016/08/31 19:07:49
Done.
 
 | |
| 23 } | |
| 24 | |
| 21 #header .title { | 25 #header .title { | 
| 22 color: var(--paper-grey-600); | 26 color: var(--paper-grey-600); | 
| 23 font-size: 13px; | 27 font-size: 13px; | 
| 24 font-weight: 500; | 28 font-weight: 500; | 
| 25 margin-top: var(--settings-page-vertical-margin); | 29 margin-top: var(--settings-page-vertical-margin); | 
| 26 } | 30 } | 
| 27 | 31 | 
| 28 #card { | 32 #card { | 
| 29 @apply(--shadow-elevation-2dp); | 33 @apply(--shadow-elevation-2dp); | 
| 30 background-color: white; | 34 background-color: white; | 
| (...skipping 16 matching lines...) Expand all Loading... | |
| 47 | 51 | 
| 48 :host(.expanded) #header { | 52 :host(.expanded) #header { | 
| 49 display: none; | 53 display: none; | 
| 50 } | 54 } | 
| 51 | 55 | 
| 52 :host([hidden-by-search]) { | 56 :host([hidden-by-search]) { | 
| 53 display: none; | 57 display: none; | 
| 54 } | 58 } | 
| 55 </style> | 59 </style> | 
| 56 <div id="header"> | 60 <div id="header"> | 
| 57 <div class="title">{{pageTitle}}</div> | 61 <h2 class="title">{{pageTitle}}</h2> | 
| 58 </div> | 62 </div> | 
| 59 <div id="card"> | 63 <div id="card"> | 
| 60 <content id="content"></content> | 64 <content id="content"></content> | 
| 61 </div> | 65 </div> | 
| 62 </template> | 66 </template> | 
| 63 <script src="settings_section.js"></script> | 67 <script src="settings_section.js"></script> | 
| 64 </dom-module> | 68 </dom-module> | 
| OLD | NEW |