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

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: 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 -webkit-appearance: none; 7 -webkit-appearance: none;
8 background: url(images/arrow_down.svg) 97% 70% no-repeat; 8 /* Ensure that the text does not overlap with the down arrow. */
9 -webkit-padding-end: calc(0.9em * 1.8);
dpapad 2016/10/07 18:01:12 Increased to 1.8, because 1.5 still seemed overly
michaelpg 2016/10/07 18:25:26 opt nit: make it harder to break --md-arrow-wid
dpapad 2016/10/07 19:14:04 Done.
10 background: url(images/arrow_down.svg) 97% center no-repeat;
9 background-size: 0.9em; 11 background-size: 0.9em;
10 border-bottom: 1px solid var(--paper-grey-300); 12 border-bottom: 1px solid var(--paper-grey-300);
11 border-left: none; 13 border-left: none;
12 /* Override Mac's default border-radius */ 14 /* Override Mac's default border-radius */
13 border-radius: 0; 15 border-radius: 0;
14 border-right: none; 16 border-right: none;
15 border-top: none; 17 border-top: none;
16 color: var(--primary-text-color); 18 color: var(--primary-text-color);
17 cursor: pointer; 19 cursor: pointer;
18 font-family: inherit; 20 font-family: inherit;
(...skipping 21 matching lines...) Expand all
40 transform: scale3d(1, 1, 1); 42 transform: scale3d(1, 1, 1);
41 transition: transform 200ms ease-out; 43 transition: transform 200ms ease-out;
42 } 44 }
43 45
44 .md-select-wrapper { 46 .md-select-wrapper {
45 display: inline-block; 47 display: inline-block;
46 } 48 }
47 </style> 49 </style>
48 </template> 50 </template>
49 </dom-module> 51 </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