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

Unified Diff: ui/webui/resources/html/md_select_css.html

Issue 2938933002: WebUI: swap paper-dropdown-menu out for md-select. (Closed)
Patch Set: fix test Created 3 years, 6 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
« no previous file with comments | « chrome/test/data/webui/md_user_manager/create_profile_tests.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/html/md_select_css.html
diff --git a/ui/webui/resources/html/md_select_css.html b/ui/webui/resources/html/md_select_css.html
index 2eb49a79276c030c119f9ba802f8cd2d7e3a1447..22d029db5df738504c3bb6afbd5011ff37520e6b 100644
--- a/ui/webui/resources/html/md_select_css.html
+++ b/ui/webui/resources/html/md_select_css.html
@@ -4,9 +4,8 @@
<dom-module id="md-select">
<template>
<style>
- .md-select,
- .md-select-underline {
- --md-side-padding: 12px;
+ :root {
+ --md-select-side-padding: 12px;
}
.md-select {
@@ -16,14 +15,14 @@
--md-arrow-offset: 3%;
-webkit-appearance: none;
- -webkit-margin-end: calc(-1 * var(--md-side-padding));
+ -webkit-margin-end: calc(-1 * var(--md-select-side-padding));
/* Ensure that there is a 3px space between the text and the arrow. */
- -webkit-padding-end: calc(var(--md-side-padding) +
+ -webkit-padding-end: calc(var(--md-select-side-padding) +
var(--md-arrow-offset) + var(--md-arrow-width) + 3px);
- -webkit-padding-start: var(--md-side-padding);
+ -webkit-padding-start: var(--md-select-side-padding);
background: url(
chrome://resources/images/arrow_down.svg)
- calc(100% - var(--md-arrow-offset) - var(--md-side-padding))
+ calc(100% - var(--md-arrow-offset) - var(--md-select-side-padding))
center no-repeat;
background-size: var(--md-arrow-width);
border: none;
@@ -34,7 +33,7 @@
outline: none;
padding-bottom: 4px;
padding-top: 3px;
- width: calc(var(--md-select-width, 200px) + 2 * var(--md-side-padding));
+ width: calc(var(--md-select-width, 200px) + 2 * var(--md-select-side-padding));
}
/* Mirroring paper-dropdown-menu disabled style. */
@@ -49,14 +48,14 @@
}
:host-context([dir=rtl]) .md-select {
- background-position-x: calc(var(--md-side-padding) +
+ background-position-x: calc(var(--md-select-side-padding) +
var(--md-arrow-offset));
}
/* Persistent underline */
.md-select-underline {
-webkit-margin-end: 0;
- -webkit-margin-start: var(--md-side-padding);
+ -webkit-margin-start: var(--md-select-side-padding);
border-top: 1px solid var(--paper-grey-300);
display: block;
margin-bottom: 0;
« no previous file with comments | « chrome/test/data/webui/md_user_manager/create_profile_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698