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/neon-animation/neon-ani mation-runner-behavior.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani mation-runner-behavior.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l"> |
| 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 23 matching lines...) Expand all Loading... | |
| 34 } | 34 } |
| 35 | 35 |
| 36 :host(.frozen) #card { | 36 :host(.frozen) #card { |
| 37 position: fixed; | 37 position: fixed; |
| 38 width: 100%; | 38 width: 100%; |
| 39 } | 39 } |
| 40 | 40 |
| 41 :host(.expanded.frozen) #card { | 41 :host(.expanded.frozen) #card { |
| 42 position: relative; | 42 position: relative; |
| 43 } | 43 } |
| 44 | |
| 45 :host(.hidden-for-search) { | |
|
Dan Beam
2016/08/09 22:01:38
can we maybe make this a property and use reflectT
dpapad
2016/08/09 23:03:02
What would be the benefit? Current approach is nat
Dan Beam
2016/08/09 23:05:01
classes set from external code are overly tightly
dpapad
2016/08/09 23:30:29
Changed to attribute.
| |
| 46 display: none; | |
| 47 } | |
| 44 </style> | 48 </style> |
| 45 <div id="header"> | 49 <div id="header"> |
| 46 <div class="title">{{pageTitle}}</div> | 50 <div class="title">{{pageTitle}}</div> |
| 47 </div> | 51 </div> |
| 48 <div id="card"> | 52 <div id="card"> |
| 49 <content id="content"></content> | 53 <content id="content"></content> |
| 50 </div> | 54 </div> |
| 51 </template> | 55 </template> |
| 52 <script src="settings_section.js"></script> | 56 <script src="settings_section.js"></script> |
| 53 </dom-module> | 57 </dom-module> |
| OLD | NEW |