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

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

Issue 2388443003: MD Settings: disable border-radius when cards are expanded (Closed)
Patch Set: Created 4 years, 2 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 16 matching lines...) Expand all
27 } 27 }
28 28
29 #card { 29 #card {
30 @apply(--shadow-elevation-2dp); 30 @apply(--shadow-elevation-2dp);
31 background-color: white; 31 background-color: white;
32 border-radius: 2px; 32 border-radius: 2px;
33 flex: 1; 33 flex: 1;
34 overflow: hidden; 34 overflow: hidden;
35 } 35 }
36 36
37 :host(.expanded) #card {
38 border-radius: 0;
39 }
40
37 :host(.expanding) #card, 41 :host(.expanding) #card,
38 :host(.collapsing) #card, 42 :host(.collapsing) #card,
39 :host(.expanded) #card { 43 :host(.expanded) #card {
40 @apply(--shadow-elevation-4dp); 44 @apply(--shadow-elevation-4dp);
41 /* A stacking context constrains sliding sub-pages to the card. */ 45 /* A stacking context constrains sliding sub-pages to the card. */
42 z-index: 0; 46 z-index: 0;
43 } 47 }
44 48
45 :host(:not(.expanding):not(.expanded)) #card { 49 :host(:not(.expanding):not(.expanded)) #card {
46 /* Keep the fading-out neon-animatable inside the card. */ 50 /* Keep the fading-out neon-animatable inside the card. */
(...skipping 10 matching lines...) Expand all
57 </style> 61 </style>
58 <div id="header"> 62 <div id="header">
59 <h2 class="title">{{pageTitle}}</h2> 63 <h2 class="title">{{pageTitle}}</h2>
60 </div> 64 </div>
61 <div id="card"> 65 <div id="card">
62 <content id="content"></content> 66 <content id="content"></content>
63 </div> 67 </div>
64 </template> 68 </template>
65 <script src="settings_section.js"></script> 69 <script src="settings_section.js"></script>
66 </dom-module> 70 </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