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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/settings_page/settings_section.html
diff --git a/chrome/browser/resources/settings/settings_page/settings_section.html b/chrome/browser/resources/settings/settings_page/settings_section.html
index ed4e2632c1b5c55b0f9a5d63d63d343e9120156f..cac8012145a8efc0aea95830eea69d93a09db208 100644
--- a/chrome/browser/resources/settings/settings_page/settings_section.html
+++ b/chrome/browser/resources/settings/settings_page/settings_section.html
@@ -1,16 +1,56 @@
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animation-runner-behavior.html">
-<link rel="import" href="chrome://resources/polymer/v1_0/paper-material/paper-material.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.html">
<dom-module id="settings-section">
- <link rel="import" type="css" href="settings_section.css">
<template>
+ <style>
+ :host {
+ display: flex;
+ flex-direction: column;
+ position: relative;
+ }
+
+ #header {
+ margin-bottom: 12px;
+ }
+
+ #header .title {
+ color: rgb(104, 113, 116); /* Custom color from bettes@ */
+ font-size: 13px;
+ font-weight: 500;
+ }
+
+ #card {
+ @apply(--shadow-elevation-2dp);
+ background-color: white;
+ flex: 1;
+ overflow: hidden;
+ }
+
+ :host(.expanded) {
+ margin-bottom: 0;
+ }
+
+ :host(.expanded) #header {
+ display: none;
+ }
+
+ :host(.frozen) #card {
+ position: fixed;
+ width: 100%;
+ }
+
+ :host(.expanded.frozen) #card {
+ position: relative;
+ }
+ </style>
<div id="header">
<div class="title">{{pageTitle}}</div>
</div>
- <paper-material id="card" animated>
+ <div id="card">
<content id="content"></content>
- </paper-material>
+ </div>
</template>
<script src="settings_section.js"></script>
</dom-module>

Powered by Google App Engine
This is Rietveld 408576698