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

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

Issue 2264353004: MD Settings: Keep sliding subpages within card (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TransitionsNoTestsFakeRebase
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 18 matching lines...) Expand all
29 @apply(--shadow-elevation-2dp); 29 @apply(--shadow-elevation-2dp);
30 background-color: white; 30 background-color: white;
31 flex: 1; 31 flex: 1;
32 overflow: hidden; 32 overflow: hidden;
33 } 33 }
34 34
35 :host(.expanding) #card, 35 :host(.expanding) #card,
36 :host(.collapsing) #card, 36 :host(.collapsing) #card,
37 :host(.expanded) #card { 37 :host(.expanded) #card {
38 @apply(--shadow-elevation-4dp); 38 @apply(--shadow-elevation-4dp);
39 /* A stacking context constrains sliding sub-pages to the card. */
40 z-index: 0;
39 } 41 }
40 42
41 :host(:not(.expanding):not(.expanded)) #card { 43 :host(:not(.expanding):not(.expanded)) #card {
42 /* Keep the fading-out neon-animatable inside the card. */ 44 /* Keep the fading-out neon-animatable inside the card. */
43 position: relative; 45 position: relative;
44 } 46 }
45 47
46 :host(.expanded) #header { 48 :host(.expanded) #header {
47 display: none; 49 display: none;
48 } 50 }
49 51
50 :host([hidden-by-search]) { 52 :host([hidden-by-search]) {
51 display: none; 53 display: none;
52 } 54 }
53 </style> 55 </style>
54 <div id="header"> 56 <div id="header">
55 <div class="title">{{pageTitle}}</div> 57 <div class="title">{{pageTitle}}</div>
56 </div> 58 </div>
57 <div id="card"> 59 <div id="card">
58 <content id="content"></content> 60 <content id="content"></content>
59 </div> 61 </div>
60 </template> 62 </template>
61 <script src="settings_section.js"></script> 63 <script src="settings_section.js"></script>
62 </dom-module> 64 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698