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

Unified Diff: chrome/browser/resources/settings/settings_page_css.html

Issue 2002353002: [MD settings] remove settings_page.css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge with master 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_css.html
diff --git a/chrome/browser/resources/settings/settings_page_css.html b/chrome/browser/resources/settings/settings_page_css.html
new file mode 100644
index 0000000000000000000000000000000000000000..d888b44147e284753760bb725eaace1dd8092713
--- /dev/null
+++ b/chrome/browser/resources/settings/settings_page_css.html
@@ -0,0 +1,32 @@
+<link rel="import" href="/settings_page/main_page_behavior.html">
+
+<dom-module id="settings-page-styles">
+ <template>
+ <style include="main-page-styles">
+ :host {
+ --settings-page-padding-top: 21px;
+ box-sizing: border-box;
+ display: block;
+ height: 100%;
+ margin: 0 auto;
+ max-width: 960px;
+ min-width: 622px;
+ position: relative;
+ width: 96%;
+ }
+
+ :host > * {
+ /* The margin and padding here are doing two things: make the total
+ * separation 24px; and make scrollIntoView align the section header
+ * with the top item in the side nav menu. Both things are desired
+ * by Alan (bettes@). */
+ margin-bottom: 3px;
+ padding-top: var(--settings-page-padding-top);
+ }
+
+ .expanded.frozen {
+ margin-top: -var(--settings-page-padding-top);
+ }
+ </style>
+ </template>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698