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

Side by Side Diff: chrome/browser/resources/settings/md_select_css.html

Issue 2384273005: MD Settings: Style native <select> down arrow. (Closed)
Patch Set: Nit 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 select {
7 background-color: transparent; 7 -webkit-appearance: none;
8 border-bottom: 1px solid var(--paper-grey-300); 8 border-bottom: 1px solid var(--paper-grey-300);
9 border-left: none; 9 border-left: none;
10 border-right: none; 10 border-right: none;
11 border-top: none; 11 border-top: none;
12 color: var(--primary-text-color); 12 color: var(--primary-text-color);
13 cursor: pointer; 13 cursor: pointer;
14 font-family: inherit; 14 font-family: inherit;
15 font-size: inherit; 15 font-size: inherit;
16 outline: none; 16 outline: none;
17 padding: 3px 0; 17 padding: 3px 0;
18 width: 200px; 18 width: 200px;
19 } 19 }
20 20
21 :host-context([dir=ltr]) select {
22 background: url(images/arrow_down.svg) 97% 70% no-repeat;
23 background-size: 0.9em;
24 }
25
26 :host-context([dir=rtl]) select {
27 background: url(images/arrow_down.svg) 3% 70% no-repeat;
28 background-size: 0.9em;
Dan Beam 2016/10/04 22:12:33 can this be select { background: url(images/arr
dpapad 2016/10/04 22:26:34 Done.
29 }
30
21 .select-underline { 31 .select-underline {
22 border-top: 2px solid var(--paper-indigo-500); 32 border-top: 2px solid var(--paper-indigo-500);
23 display: block; 33 display: block;
24 position: relative; 34 position: relative;
25 top: -1px; 35 top: -1px;
26 transform: scale3d(0, 1, 1); 36 transform: scale3d(0, 1, 1);
27 transition: transform 200ms ease-in; 37 transition: transform 200ms ease-in;
28 width: 100%; 38 width: 100%;
29 } 39 }
30 40
31 select:focus + .select-underline { 41 select:focus + .select-underline {
32 transform: scale3d(1, 1, 1); 42 transform: scale3d(1, 1, 1);
33 transition: transform 200ms ease-out; 43 transition: transform 200ms ease-out;
34 } 44 }
35 45
36 .select-wrapper { 46 .select-wrapper {
37 display: inline-block; 47 display: inline-block;
38 } 48 }
39 </style> 49 </style>
40 </template> 50 </template>
41 </dom-module> 51 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/images/arrow_down.svg ('k') | chrome/browser/resources/settings/settings_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698