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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <link rel="import" href="/settings_vars_css.html"> 1 <link rel="import" href="/settings_vars_css.html">
2 2
3 <dom-module id="md-select"> 3 <dom-module id="md-select">
4 <template> 4 <template>
5 <style> 5 <style>
6 select { 6 .md-select {
7 background-color: transparent; 7 -webkit-appearance: none;
8 background: url(images/arrow_down.svg) 97% 70% no-repeat;
9 background-size: 0.9em;
8 border-bottom: 1px solid var(--paper-grey-300); 10 border-bottom: 1px solid var(--paper-grey-300);
9 border-left: none; 11 border-left: none;
10 border-right: none; 12 border-right: none;
11 border-top: none; 13 border-top: none;
12 color: var(--primary-text-color); 14 color: var(--primary-text-color);
13 cursor: pointer; 15 cursor: pointer;
14 font-family: inherit; 16 font-family: inherit;
15 font-size: inherit; 17 font-size: inherit;
16 outline: none; 18 outline: none;
17 padding: 3px 0; 19 padding: 3px 0;
18 width: 200px; 20 width: 200px;
19 } 21 }
20 22
21 .select-underline { 23 :host-context([dir=rtl]) .md-select {
24 background-position-x: 3%;
25 }
26
27 .md-select-underline {
22 border-top: 2px solid var(--paper-indigo-500); 28 border-top: 2px solid var(--paper-indigo-500);
23 display: block; 29 display: block;
24 position: relative; 30 position: relative;
25 top: -1px; 31 top: -1px;
26 transform: scale3d(0, 1, 1); 32 transform: scale3d(0, 1, 1);
27 transition: transform 200ms ease-in; 33 transition: transform 200ms ease-in;
28 width: 100%; 34 width: 100%;
29 } 35 }
30 36
31 select:focus + .select-underline { 37 .md-select:focus + .md-select-underline {
32 transform: scale3d(1, 1, 1); 38 transform: scale3d(1, 1, 1);
33 transition: transform 200ms ease-out; 39 transition: transform 200ms ease-out;
34 } 40 }
35 41
36 .select-wrapper { 42 .md-select-wrapper {
37 display: inline-block; 43 display: inline-block;
38 } 44 }
39 </style> 45 </style>
40 </template> 46 </template>
41 </dom-module> 47 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698