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

Unified Diff: ui/webui/resources/cr_elements/shared_vars_css.html

Issue 2578793004: MD Settings: Fix size and padding of expand button (Closed)
Patch Set: Rebase Created 4 years 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: ui/webui/resources/cr_elements/shared_vars_css.html
diff --git a/ui/webui/resources/cr_elements/shared_vars_css.html b/ui/webui/resources/cr_elements/shared_vars_css.html
index b823816dcd34428725527a33c71305b9a88043fe..21d27d1d2bd7470dd3170d9b516ca72a6a962b76 100644
--- a/ui/webui/resources/cr_elements/shared_vars_css.html
+++ b/ui/webui/resources/cr_elements/shared_vars_css.html
@@ -9,10 +9,21 @@
--cr-focused-item-color: var(--google-grey-300);
/* Same padding as paper-icon-button. */
--cr-icon-padding: 8px;
- --cr-icon-size: {
- height: 20px;
- width: 20px;
+
+ /* The inner icon is 20px in size. paper-icon-button has 8px padding. */
+ --cr-icon-ripple-size: 36px;
+ --cr-icon-size: 20px;
+
+ --cr-icon-height-width: {
+ height: var(--cr-icon-size);
+ width: var(--cr-icon-size);
}
+
+ --cr-paper-icon-button-margin: {
+ -webkit-margin-end: -8px; /* Allow ripple to overlap the end. */
+ -webkit-margin-start: 16px;
+ }
+
--cr-selectable-focus: {
background-color: var(--cr-focused-item-color);
outline: none;

Powered by Google App Engine
This is Rietveld 408576698