Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Side by Side Diff: chrome/browser/resources/settings/settings_page/settings_section.html

Issue 2207353002: Consolidate some Settings styles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@RemoveProperties
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698