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 11 matching lines...) Expand all Loading... |
22 margin-top: var(--settings-page-vertical-margin); | 22 margin-top: var(--settings-page-vertical-margin); |
23 } | 23 } |
24 | 24 |
25 #card { | 25 #card { |
26 @apply(--shadow-elevation-2dp); | 26 @apply(--shadow-elevation-2dp); |
27 background-color: white; | 27 background-color: white; |
28 flex: 1; | 28 flex: 1; |
29 overflow: hidden; | 29 overflow: hidden; |
30 } | 30 } |
31 | 31 |
32 :host(.expanded) { | |
33 margin-bottom: 0; | |
34 } | |
35 | |
36 :host(.expanded) #header { | 32 :host(.expanded) #header { |
37 display: none; | 33 display: none; |
38 } | 34 } |
39 | 35 |
40 :host(.frozen) #card { | 36 :host(.frozen) #card { |
41 position: fixed; | 37 position: fixed; |
42 width: 100%; | 38 width: 100%; |
43 } | 39 } |
44 | 40 |
45 :host(.expanded.frozen) #card { | 41 :host(.expanded.frozen) #card { |
46 position: relative; | 42 position: relative; |
47 } | 43 } |
48 </style> | 44 </style> |
49 <div id="header"> | 45 <div id="header"> |
50 <div class="title">{{pageTitle}}</div> | 46 <div class="title">{{pageTitle}}</div> |
51 </div> | 47 </div> |
52 <div id="card"> | 48 <div id="card"> |
53 <content id="content"></content> | 49 <content id="content"></content> |
54 </div> | 50 </div> |
55 </template> | 51 </template> |
56 <script src="settings_section.js"></script> | 52 <script src="settings_section.js"></script> |
57 </dom-module> | 53 </dom-module> |
OLD | NEW |