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

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

Issue 2847583002: [MD settings] css for row separator (Closed)
Patch Set: review changes 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 :host-context([dir=rtl]) button[is='paper-icon-button-light'] { 8 :host-context([dir=rtl]) button[is='paper-icon-button-light'] {
9 transform: scaleX(-1); /* Flip on the X axis (aka mirror). */ 9 transform: scaleX(-1); /* Flip on the X axis (aka mirror). */
10 } 10 }
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 align-items: center; 310 align-items: center;
311 flex: auto; 311 flex: auto;
312 } 312 }
313 313
314 .no-outline, 314 .no-outline,
315 [scrollable] .no-outline { 315 [scrollable] .no-outline {
316 background: none; 316 background: none;
317 outline: none; 317 outline: none;
318 } 318 }
319 319
320 /* The secondary-action wraps a clickable sub-area of a .settings-box. 320 /* TODO(dschuyler): replace with .separator.
321 * An example is the |sign out| button on the People settings. 321 * The secondary-action wraps a clickable sub-area of a .settings-box.
322 * Here is an example with and without a secondary action box: 322 * Here is an example with and without a secondary action box:
323 * 323 *
324 * +-------------------------------------------------------+ 324 * +-------------------------------------------------------+
325 * | Main action area .settings-box | .secondary-action | 325 * | Main action area .settings-box | .secondary-action |
326 * +-------------------------------------------------------+ 326 * +-------------------------------------------------------+
327 * | Another setting-box without a secondary-action | 327 * | Another setting-box without a secondary-action |
328 * +-------------------------------------------------------+ */ 328 * +-------------------------------------------------------+ */
329 :-webkit-any(.settings-box, .list-item) .secondary-action { 329 :-webkit-any(.settings-box, .list-item) .secondary-action {
330 -webkit-border-start: var(--settings-separator-line); 330 -webkit-border-start: var(--settings-separator-line);
331 -webkit-margin-start: 20px; 331 -webkit-margin-start: 20px;
332 -webkit-padding-start: 20px; 332 -webkit-padding-start: 20px;
333 align-items: center; 333 align-items: center;
334 display: flex; 334 display: flex;
335 flex-shrink: 0; 335 flex-shrink: 0;
336 height: 36px; 336 height: 36px;
337 } 337 }
338 338
339 :-webkit-any(.settings-box, .list-item).two-line .secondary-action { 339 :-webkit-any(.settings-box, .list-item).two-line .secondary-action {
340 height: 46px; 340 height: 46px;
341 } 341 }
342 342
343 /* Helper for a list frame to automatically avoid the separator line. */ 343 /* Helper for a list frame to automatically avoid the separator line. */
344 .vertical-list > *:not(:first-of-type) { 344 .vertical-list > *:not(:first-of-type) {
345 border-top: var(--settings-separator-line); 345 border-top: var(--settings-separator-line);
346 } 346 }
347 347
348 /* The separator a vertical line like a horizontal rule <hr> tag, but goes
349 * the other way. An example is near the |sign out| button on the People
350 * settings. */
351 :-webkit-any(.settings-box, .list-item) .separator {
352 -webkit-border-start: var(--settings-separator-line);
353 -webkit-margin-end: var(--settings-box-row-padding);
354 -webkit-margin-start: var(--settings-box-row-padding);
355 flex-shrink: 0;
356 --settings-separator-gaps: 9px;
357 height: calc(var(--settings-row-min-height) -
358 var(--settings-separator-gaps));
359 }
360
361 :-webkit-any(.settings-box, .list-item).two-line .separator {
362 height: calc(var(--settings-row-two-line-min-height) -
363 2 * var(--settings-separator-gaps));
364 }
365
348 .settings-checkbox-spacer { 366 .settings-checkbox-spacer {
349 -webkit-margin-start: calc( 367 -webkit-margin-start: calc(
350 var(--checkbox-margin-start) + 368 var(--checkbox-margin-start) +
351 var(--checkbox-size) + 369 var(--checkbox-size) +
352 var(--settings-control-spacing)); 370 var(--settings-control-spacing));
353 } 371 }
354 372
355 .favicon-image { 373 .favicon-image {
356 background-repeat: no-repeat; 374 background-repeat: no-repeat;
357 background-size: contain; 375 background-size: contain;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 transform: rotate(-135deg); 412 transform: rotate(-135deg);
395 } 413 }
396 414
397 .column-header { 415 .column-header {
398 color: var(--paper-grey-600); 416 color: var(--paper-grey-600);
399 font-weight: 500; 417 font-weight: 500;
400 } 418 }
401 </style> 419 </style>
402 </template> 420 </template>
403 </dom-module> 421 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698