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

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

Issue 2661533002: MD Settings: fix settings-toggle-button label text overflow. (Closed)
Patch Set: do text-elide and no-min-width in a cleaner way Created 3 years, 10 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/settings_shared_css.html ('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="chrome://resources/cr_elements/shared_vars_css.html"> 1 <link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html "> 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html ">
3 3
4 <!-- Common css variables for Material Design settings. --> 4 <!-- Common css variables for Material Design settings. -->
5 <style is="custom-style"> 5 <style is="custom-style">
6 /* We keep our vars in sort order, though some vars must be defined prior to 6 /* We keep our vars in sort order, though some vars must be defined prior to
7 * others. The --settings-* vars are defined explicitly prior to the --paper-* 7 * others. The --settings-* vars are defined explicitly prior to the --paper-*
8 * and --iron-* vars. 8 * and --iron-* vars.
9 */ 9 */
10 :root { 10 :root {
(...skipping 24 matching lines...) Expand all
35 /* These are used for row items such as radio buttons, check boxes, list 35 /* These are used for row items such as radio buttons, check boxes, list
36 * items etc. */ 36 * items etc. */
37 --settings-row-min-height: 44px; 37 --settings-row-min-height: 44px;
38 --settings-row-two-line-min-height: 56px; 38 --settings-row-two-line-min-height: 56px;
39 39
40 /* These are used for the settings-box containers, which may contain one or 40 /* These are used for the settings-box containers, which may contain one or
41 * more "row items". */ 41 * more "row items". */
42 --settings-box-min-height: 48px; 42 --settings-box-min-height: 48px;
43 --settings-box-two-line-min-height: 60px; 43 --settings-box-two-line-min-height: 60px;
44 44
45 --settings-text-elide: {
46 overflow: hidden;
47 text-overflow: ellipsis;
48 white-space: nowrap;
49 };
50
45 --settings-secondary: { 51 --settings-secondary: {
46 color: var(--paper-grey-600); 52 color: var(--paper-grey-600);
47 font-weight: 400; 53 font-weight: 400;
48 margin-top: 4px; 54 margin-top: 4px;
49 }; 55 };
50 --settings-separator-line: var(--cr-separator-line); 56 --settings-separator-line: var(--cr-separator-line);
51 57
52 --settings-title-bar-background-color: var(--google-blue-700); 58 --settings-title-bar-background-color: var(--google-blue-700);
53 --settings-title-bar-color: rgb(255, 255, 255); 59 --settings-title-bar-color: rgb(255, 255, 255);
54 --settings-title-search-color: rgb(192, 199, 205); 60 --settings-title-search-color: rgb(192, 199, 205);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 --paper-toggle-button-checked-button: { 104 --paper-toggle-button-checked-button: {
99 @apply(--settings-toggle-button-size); 105 @apply(--settings-toggle-button-size);
100 transform: translate(14px, 0); 106 transform: translate(14px, 0);
101 }; 107 };
102 --paper-toggle-button-checked-button-color: var(--settings-toggle-color); 108 --paper-toggle-button-checked-button-color: var(--settings-toggle-color);
103 --paper-toggle-button-label-spacing: 0; 109 --paper-toggle-button-label-spacing: 0;
104 --paper-toggle-button-unchecked-bar: var(--settings-toggle-bar-size); 110 --paper-toggle-button-unchecked-bar: var(--settings-toggle-bar-size);
105 --paper-toggle-button-unchecked-button: var(--settings-toggle-button-size); 111 --paper-toggle-button-unchecked-button: var(--settings-toggle-button-size);
106 } 112 }
107 </style> 113 </style>
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_shared_css.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698