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

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

Issue 2384273005: MD Settings: Style native <select> down arrow. (Closed)
Patch Set: md-select-underline Created 4 years, 2 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/md_select_css.html
diff --git a/chrome/browser/resources/settings/md_select_css.html b/chrome/browser/resources/settings/md_select_css.html
index c04cf40bcd6faf998a169030d53c3efc9db4f665..28e235dcd1948a9e8ea0c3a3491169fda576a47f 100644
--- a/chrome/browser/resources/settings/md_select_css.html
+++ b/chrome/browser/resources/settings/md_select_css.html
@@ -3,8 +3,10 @@
<dom-module id="md-select">
<template>
<style>
- select {
- background-color: transparent;
+ .md-select {
+ -webkit-appearance: none;
+ background: url(images/arrow_down.svg) 97% 70% no-repeat;
+ background-size: 0.9em;
border-bottom: 1px solid var(--paper-grey-300);
border-left: none;
border-right: none;
@@ -18,7 +20,11 @@
width: 200px;
}
- .select-underline {
+ :host-context([dir=rtl]) .md-select {
+ background-position-x: 3%;
+ }
+
+ .md-select-underline {
border-top: 2px solid var(--paper-indigo-500);
display: block;
position: relative;
@@ -28,12 +34,12 @@
width: 100%;
}
- select:focus + .select-underline {
+ .md-select:focus + .md-select-underline {
transform: scale3d(1, 1, 1);
transition: transform 200ms ease-out;
}
- .select-wrapper {
+ .md-select-wrapper {
display: inline-block;
}
</style>

Powered by Google App Engine
This is Rietveld 408576698