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

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

Issue 2356653002: [MD settings] icons for clickable rows (Closed)
Patch Set: review nits 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
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 button[is='paper-icon-button-light'] {
9 --paper-icon-button-light-ripple: {
10 /* Center the ripple on the icon button. */
11 height: 36px;
12 left: -8px;
13 top: -8px;
14 width: 36px;
15 };
16 -webkit-margin-start: 16px;
17 background-size: cover;
18 flex-shrink: 0;
19 height: 20px;
20 width: 20px;
21 }
22
23 [actionable] button[is="paper-icon-button-light"].icon-arrow-right {
24 background-image: url(images/arrow_right.svg);
25 }
26
27 [actionable] button[is="paper-icon-button-light"].icon-external {
28 background-image: url(images/open_in_new.svg);
29 }
30
8 /* Use <h2> as the "sub-header" mentioned in the UX design docs. */ 31 /* Use <h2> as the "sub-header" mentioned in the UX design docs. */
9 h2 { 32 h2 {
10 align-items: center; 33 align-items: center;
11 align-self: flex-start; 34 align-self: flex-start;
12 color: var(--paper-grey-600); 35 color: var(--paper-grey-600);
13 display: flex; 36 display: flex;
14 font-size: inherit; 37 font-size: inherit;
15 font-weight: 500; 38 font-weight: 500;
16 margin: 0; 39 margin: 0;
17 padding-top: 24px; 40 padding-top: 24px;
18 padding-bottom: 12px; 41 padding-bottom: 12px;
19 } 42 }
20 43
21 iron-icon[icon='cr:check'], 44 iron-icon[icon='cr:check'],
22 iron-icon[icon='settings:done'] { 45 iron-icon[icon='settings:done'] {
23 --iron-icon-fill-color: var(--google-green-500); 46 --iron-icon-fill-color: var(--google-green-500);
24 } 47 }
25 48
26 paper-button { 49 paper-button {
50 height: 32px;
27 margin: 0; 51 margin: 0;
28 } 52 }
29 53
30 paper-button[toggles][active] { 54 paper-button[toggles][active] {
31 background-color: var(--paper-grey-300); 55 background-color: var(--paper-grey-300);
32 } 56 }
33 57
34 paper-toggle-button { 58 paper-toggle-button {
35 @apply(--settings-actionable); 59 @apply(--settings-actionable);
36 height: 20px; 60 height: var(--settings-row-min-height);
37 width: 31px; 61 width: 31px;
38 } 62 }
39 63
40 paper-dropdown-menu-light { 64 paper-dropdown-menu-light {
41 --iron-icon-fill-color: var(--paper-grey-600); 65 --iron-icon-fill-color: var(--paper-grey-600);
42 --paper-font-subhead: { 66 --paper-font-subhead: {
43 font-size: inherit; 67 font-size: inherit;
44 }; 68 };
45 --paper-dropdown-menu-input: { 69 --paper-dropdown-menu-input: {
46 border-bottom-color: var(--paper-grey-300); 70 border-bottom-color: var(--paper-grey-300);
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 justify-content: center; 315 justify-content: center;
292 } 316 }
293 317
294 /* The lower line of text in a .settings-box.two-line. */ 318 /* The lower line of text in a .settings-box.two-line. */
295 .settings-box .secondary { 319 .settings-box .secondary {
296 @apply(--settings-secondary); 320 @apply(--settings-secondary);
297 } 321 }
298 322
299 /* The middle part (horizontally) of a row. */ 323 /* The middle part (horizontally) of a row. */
300 .settings-box .middle { 324 .settings-box .middle {
301 -webkit-margin-start: 16px; 325 -webkit-padding-start: 16px;
302 align-items: center; 326 align-items: center;
303 flex: auto; 327 flex: auto;
304 } 328 }
305 329
330 .settings-box .middle.two-line {
331 display: flex;
332 min-height: var(--settings-row-two-line-min-height);
333 }
334
306 /* The start (left in LTR) part (horizontally) of a row. */ 335 /* The start (left in LTR) part (horizontally) of a row. */
307 .settings-box .start { 336 .settings-box .start {
308 align-items: center; 337 align-items: center;
309 flex: auto; 338 flex: auto;
310 } 339 }
311 340
341 .settings-box .start.two-line {
342 display: flex;
343 min-height: var(--settings-row-two-line-min-height);
344 }
345
312 /* The secondary-action wraps a clickable sub-area of a .settings-box. 346 /* The secondary-action wraps a clickable sub-area of a .settings-box.
313 * An example is the |sign out| button on the People settings. 347 * An example is the |sign out| button on the People settings.
314 * Here is an example with and without a secondary action box: 348 * Here is an example with and without a secondary action box:
315 * 349 *
316 * +-------------------------------------------------------+ 350 * +-------------------------------------------------------+
317 * | Main action area .settings-box | .secondary-action | 351 * | Main action area .settings-box | .secondary-action |
318 * +-------------------------------------------------------+ 352 * +-------------------------------------------------------+
319 * | Another setting-box without a secondary-action | 353 * | Another setting-box without a secondary-action |
320 * +-------------------------------------------------------+ */ 354 * +-------------------------------------------------------+ */
321 .settings-box .secondary-action { 355 .settings-box .secondary-action {
322 -webkit-border-start: var(--settings-separator-line); 356 -webkit-border-start: var(--settings-separator-line);
357 -webkit-margin-start: 20px;
323 -webkit-padding-start: 20px; 358 -webkit-padding-start: 20px;
359 align-items: center;
360 display: flex;
324 flex-shrink: 0; 361 flex-shrink: 0;
362 height: var(--settings-row-min-height);
325 } 363 }
326 364
327 .settings-box paper-item iron-icon { 365 .settings-box paper-item iron-icon {
328 /* Same padding as paper-icon-button. */ 366 /* Same padding as paper-icon-button. */
329 padding: 8px; 367 padding: 8px;
330 } 368 }
331 369
332 /* Helper for a list frame to automatically avoid the separator line. */ 370 /* Helper for a list frame to automatically avoid the separator line. */
333 .vertical-list > *:not(:first-of-type) { 371 .vertical-list > *:not(:first-of-type) {
334 border-top: var(--settings-separator-line); 372 border-top: var(--settings-separator-line);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 /* Turns the arrow direction downwards, when the bubble is placed above 422 /* Turns the arrow direction downwards, when the bubble is placed above
385 * the anchor element */ 423 * the anchor element */
386 .search-bubble-innards.above::after { 424 .search-bubble-innards.above::after {
387 -webkit-transform: rotate(-135deg); 425 -webkit-transform: rotate(-135deg);
388 bottom: -5px; 426 bottom: -5px;
389 top: auto; 427 top: auto;
390 } 428 }
391 </style> 429 </style>
392 </template> 430 </template>
393 </dom-module> 431 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | chrome/browser/resources/settings/settings_vars_css.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698