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

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

Issue 1949533003: MD Settings: replace paper-material with paper-material-shared-styles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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-material/paper-ma terial.html"> 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 <link rel="import" type="css" href="settings_section.css">
7 <template> 6 <template>
7 <style>
8 :host {
9 display: flex;
10 flex-direction: column;
11 position: relative;
12 }
13
14 #header {
15 margin-bottom: 12px;
16 }
17
18 #header .title {
19 color: rgb(104, 113, 116); /* Custom color from bettes@ */
20 font-size: 13px;
21 font-weight: 500;
22 }
23
24 #card {
25 @apply(--shadow-elevation-2dp);
26 background-color: white;
27 flex: 1;
28 overflow: hidden;
29 }
30
31 :host(.expanded) {
32 margin-bottom: 0;
33 }
34
35 :host(.expanded) #header {
36 display: none;
37 }
38
39 :host(.frozen) #card {
40 position: fixed;
41 width: 100%;
42 }
43
44 :host(.expanded.frozen) #card {
45 position: relative;
46 }
47 </style>
8 <div id="header"> 48 <div id="header">
9 <div class="title">{{pageTitle}}</div> 49 <div class="title">{{pageTitle}}</div>
10 </div> 50 </div>
11 <paper-material id="card" animated> 51 <div id="card">
12 <content id="content"></content> 52 <content id="content"></content>
13 </paper-material> 53 </div>
14 </template> 54 </template>
15 <script src="settings_section.js"></script> 55 <script src="settings_section.js"></script>
16 </dom-module> 56 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698