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

Unified Diff: chrome/browser/resources/settings/settings_page/settings_section.css

Issue 1736733003: MD Settings: Custom expand/collapse section animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: function/rebase Created 4 years, 9 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.css
diff --git a/chrome/browser/resources/settings/settings_page/settings_section.css b/chrome/browser/resources/settings/settings_page/settings_section.css
index f0c37a9183a6db42cabba2641c71b2466de7081f..85d6e9166f08c022adfe96f14d84f1ec7a597348 100644
--- a/chrome/browser/resources/settings/settings_page/settings_section.css
+++ b/chrome/browser/resources/settings/settings_page/settings_section.css
@@ -7,15 +7,9 @@
* Common styles for Settings pages.
*/
:host {
- display: block;
-}
-
-:host(.expanded) {
- height: 100%;
-}
-
-:host(.expanded) #header {
- display: none;
+ display: flex;
+ flex-direction: column;
+ position: relative;
}
#header {
@@ -28,31 +22,28 @@
font-weight: 500;
}
-paper-material {
+#card {
background-color: white;
- box-sizing: border-box;
overflow: hidden;
}
-paper-material,
-#placeholder {
- margin-bottom: 16px;
+#card {
+ flex: 1;
}
-:host(.neon-animating) paper-material {
- position: fixed;
- z-index: 1;
+:host(.expanded) {
+ margin-bottom: 0;
}
-:host(.expanded) paper-material {
- margin-bottom: 0;
- min-height: 100%;
+:host(.expanded) #header {
+ display: none;
}
-#placeholder {
- visibility: hidden;
+:host(.frozen) #card {
+ position: fixed;
+ width: 100%;
}
-:host(:not(.neon-animating)) #placeholder {
- position: absolute;
+:host(.expanded.frozen) #card {
+ position: relative;
}

Powered by Google App Engine
This is Rietveld 408576698