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

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

Issue 2401093002: MD Settings: Ensure that long text does not overlap with <select> arrow. (Closed)
Patch Set: Use var 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
« no previous file with comments | « chrome/browser/resources/settings/images/arrow_down.svg ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 .md-select { 6 .md-select {
7 --md-arrow-width: 0.9em;
7 -webkit-appearance: none; 8 -webkit-appearance: none;
8 background: url(images/arrow_down.svg) 97% 70% no-repeat; 9 /* Ensure that the text does not overlap with the down arrow. */
9 background-size: 0.9em; 10 -webkit-padding-end: calc(var(--md-arrow-width) * 1.8);
11 background: url(images/arrow_down.svg) 97% center no-repeat;
12 background-size: var(--md-arrow-width);
10 border-bottom: 1px solid var(--paper-grey-300); 13 border-bottom: 1px solid var(--paper-grey-300);
11 border-left: none; 14 border-left: none;
12 /* Override Mac's default border-radius */ 15 /* Override Mac's default border-radius */
13 border-radius: 0; 16 border-radius: 0;
14 border-right: none; 17 border-right: none;
15 border-top: none; 18 border-top: none;
16 color: var(--primary-text-color); 19 color: var(--primary-text-color);
17 cursor: pointer; 20 cursor: pointer;
18 font-family: inherit; 21 font-family: inherit;
19 font-size: inherit; 22 font-size: inherit;
20 outline: none; 23 outline: none;
21 padding: 3px 0; 24 padding-bottom: 3px;
25 padding-top: 3px;
22 width: 200px; 26 width: 200px;
23 } 27 }
24 28
25 :host-context([dir=rtl]) .md-select { 29 :host-context([dir=rtl]) .md-select {
26 background-position-x: 3%; 30 background-position-x: 3%;
27 } 31 }
28 32
29 .md-select-underline { 33 .md-select-underline {
30 border-top: 2px solid var(--google-blue-500); 34 border-top: 2px solid var(--google-blue-500);
31 display: block; 35 display: block;
32 position: relative; 36 position: relative;
33 top: -1px; 37 top: -1px;
34 transform: scale3d(0, 1, 1); 38 transform: scale3d(0, 1, 1);
35 transition: transform 200ms ease-in; 39 transition: transform 200ms ease-in;
36 width: 100%; 40 width: 100%;
37 } 41 }
38 42
39 .md-select:focus + .md-select-underline { 43 .md-select:focus + .md-select-underline {
40 transform: scale3d(1, 1, 1); 44 transform: scale3d(1, 1, 1);
41 transition: transform 200ms ease-out; 45 transition: transform 200ms ease-out;
42 } 46 }
43 47
44 .md-select-wrapper { 48 .md-select-wrapper {
45 display: inline-block; 49 display: inline-block;
46 } 50 }
47 </style> 51 </style>
48 </template> 52 </template>
49 </dom-module> 53 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/images/arrow_down.svg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698