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

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

Issue 2849663002: [MD settings] replace secondary-action with separator (Closed)
Patch Set: set upstream Created 3 years, 7 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 align-items: center; 311 align-items: center;
312 flex: auto; 312 flex: auto;
313 } 313 }
314 314
315 .no-outline, 315 .no-outline,
316 [scrollable] .no-outline { 316 [scrollable] .no-outline {
317 background: none; 317 background: none;
318 outline: none; 318 outline: none;
319 } 319 }
320 320
321 /* TODO(dschuyler): replace with .separator.
322 * The secondary-action wraps a clickable sub-area of a .settings-box.
323 * Here is an example with and without a secondary action box:
324 *
325 * +-------------------------------------------------------+
326 * | Main action area .settings-box | .secondary-action |
327 * +-------------------------------------------------------+
328 * | Another setting-box without a secondary-action |
329 * +-------------------------------------------------------+ */
330 :-webkit-any(.settings-box, .list-item) .secondary-action {
331 -webkit-border-start: var(--settings-separator-line);
332 -webkit-margin-start: 20px;
333 -webkit-padding-start: 20px;
334 align-items: center;
335 display: flex;
336 flex-shrink: 0;
337 height: 36px;
338 }
339
340 :-webkit-any(.settings-box, .list-item).two-line .secondary-action {
341 height: 46px;
342 }
343
344 /* Helper for a list frame to automatically avoid the separator line. */ 321 /* Helper for a list frame to automatically avoid the separator line. */
345 .vertical-list > *:not(:first-of-type) { 322 .vertical-list > *:not(:first-of-type) {
346 border-top: var(--settings-separator-line); 323 border-top: var(--settings-separator-line);
347 } 324 }
348 325
349 /* The vertical-rule-line is a separator line like a horizontal rule 326 /* The vertical-rule-line is a separator line like a horizontal rule
350 * <hr> tag, but goes the other way. 327 * <hr> tag, but goes the other way.
351 * An example is near the |sign out| button on the People settings. */ 328 * An example is near the |sign out| button on the People settings. */
352 :-webkit-any(.settings-box, .list-item) .separator { 329 :-webkit-any(.settings-box, .list-item) .separator {
353 -webkit-border-start: var(--settings-separator-line); 330 -webkit-border-start: var(--settings-separator-line);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 transform: rotate(-135deg); 390 transform: rotate(-135deg);
414 } 391 }
415 392
416 .column-header { 393 .column-header {
417 color: var(--paper-grey-600); 394 color: var(--paper-grey-600);
418 font-weight: 500; 395 font-weight: 500;
419 } 396 }
420 </style> 397 </style>
421 </template> 398 </template>
422 </dom-module> 399 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698