Chromium Code Reviews| 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..8b19a9d90a48e4b024292004dac1a1ace94a4c8e |
| --- /dev/null |
| +++ b/chrome/browser/resources/settings/settings_page_css.html |
| @@ -0,0 +1,33 @@ |
| +<link rel="import" href="chrome://md-settings/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 { |
| + /* Account for padding in settings_page.css. */ |
|
michaelpg
2016/05/25 18:27:47
fix comment
dschuyler
2016/05/25 21:16:17
Done.
|
| + margin-top: -var(--settings-page-padding-top); |
| + } |
| + </style> |
| + </template> |
| +</dom-module> |