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

Side by Side Diff: chrome/browser/resources/settings/settings_shared_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
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html"> 1 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
2 <link rel="import" href="/settings_vars_css.html"> 2 <link rel="import" href="/settings_vars_css.html">
3 3
4 <!-- Common styles for Material Design settings. --> 4 <!-- Common styles for Material Design settings. -->
5 <dom-module id="settings-shared"> 5 <dom-module id="settings-shared">
6 <template> 6 <template>
7 <style include="cr-shared-style"> 7 <style include="cr-shared-style">
8 /* Included here so we don't have to include "iron-positioning" in every 8 /* Included here so we don't have to include "iron-positioning" in every
9 * stylesheet. See crbug.com/498405. */ 9 * stylesheet. See crbug.com/498405. */
10 [hidden] { 10 [hidden] {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 align-items: center; 153 align-items: center;
154 display: flex; 154 display: flex;
155 min-height: var(--settings-row-min-height); 155 min-height: var(--settings-row-min-height);
156 } 156 }
157 157
158 paper-radio-group { 158 paper-radio-group {
159 width: 100%; 159 width: 100%;
160 } 160 }
161 161
162 .text-elide { 162 .text-elide {
163 overflow: hidden; 163 @apply(--settings-text-elide);
164 text-overflow: ellipsis;
165 white-space: nowrap;
166 } 164 }
167 165
168 /** 166 /**
169 * By default, flexbox children have min-width calculated to be the width 167 * By default, flexbox children have min-width calculated to be the width
170 * of the content. However, in some cases we might want to allow the 168 * of the content. However, in some cases we might want to allow the
171 * width to be smaller than the content (i.e. for long text to ellipsis). 169 * width to be smaller than the content (i.e. for long text to ellipsis).
172 * In such cases this class should be applied. 170 * In such cases this class should be applied.
173 * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=1108514#c5) 171 * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=1108514#c5)
174 */ 172 */
175 .no-min-width { 173 .no-min-width {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 /* Turns the arrow direction downwards, when the bubble is placed above 381 /* Turns the arrow direction downwards, when the bubble is placed above
384 * the anchor element */ 382 * the anchor element */
385 .search-bubble-innards.above::after { 383 .search-bubble-innards.above::after {
386 -webkit-transform: rotate(-135deg); 384 -webkit-transform: rotate(-135deg);
387 bottom: -5px; 385 bottom: -5px;
388 top: auto; 386 top: auto;
389 } 387 }
390 </style> 388 </style>
391 </template> 389 </template>
392 </dom-module> 390 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698