Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 22 matching lines...) Expand all Loading... | |
| 33 --settings-page-vertical-margin: 21px; | 33 --settings-page-vertical-margin: 21px; |
| 34 | 34 |
| 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: 64px; |
| 44 | 44 |
| 45 --settings-secondary: { | 45 --settings-secondary: { |
| 46 color: var(--paper-grey-600); | 46 color: var(--paper-grey-600); |
| 47 font-weight: 400; | 47 font-weight: 400; |
| 48 margin-top: 4px; | |
|
dschuyler
2017/01/28 02:24:26
Just so I know if I'm following this correctly, th
scottchen
2017/01/30 22:39:28
You're correct!
| |
| 49 }; | 48 }; |
| 50 --settings-separator-line: var(--cr-separator-line); | 49 --settings-separator-line: var(--cr-separator-line); |
| 51 | 50 |
| 52 --settings-title-bar-background-color: var(--google-blue-700); | 51 --settings-title-bar-background-color: var(--google-blue-700); |
| 53 --settings-title-bar-color: rgb(255, 255, 255); | 52 --settings-title-bar-color: rgb(255, 255, 255); |
| 54 --settings-title-search-color: rgb(192, 199, 205); | 53 --settings-title-search-color: rgb(192, 199, 205); |
| 55 --settings-toggle-bar-size: { | 54 --settings-toggle-bar-size: { |
| 56 height: 12px; | 55 height: 12px; |
| 57 left: 4px; | 56 left: 4px; |
| 58 width: 24px; | 57 width: 28px; |
| 59 }; | 58 }; |
| 60 --settings-toggle-button-size: { | 59 --settings-toggle-button-size: { |
| 61 box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4); | 60 box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4); |
| 62 height: 16px; | 61 height: 16px; |
| 63 top: -2px; | 62 top: -2px; |
| 64 width: 16px; | 63 width: 16px; |
| 65 }; | 64 }; |
| 65 --settings-toggle-ink-size: { | |
| 66 height: 40px; | |
| 67 top: -12px; | |
| 68 left: -12px; | |
| 69 width: 40px; | |
| 70 }; | |
| 66 --settings-toggle-color: var(--google-blue-500); | 71 --settings-toggle-color: var(--google-blue-500); |
| 67 | 72 |
| 68 --checkbox-margin-start: 2px; | 73 --checkbox-margin-start: 2px; |
| 69 --checkbox-size: 16px; | 74 --checkbox-size: 16px; |
| 70 --checkbox-spacing: 18px; | 75 --checkbox-spacing: 18px; |
| 71 --iron-icon-fill-color: var(--paper-grey-600); | 76 --iron-icon-fill-color: var(--paper-grey-600); |
| 72 --iron-icon-height: var(--cr-icon-size); | 77 --iron-icon-height: var(--cr-icon-size); |
| 73 --iron-icon-width: var(--cr-icon-size); | 78 --iron-icon-width: var(--cr-icon-size); |
| 74 --paper-checkbox-label-color: inherit; | 79 --paper-checkbox-label-color: inherit; |
| 75 --paper-dialog-color: inherit; | 80 --paper-dialog-color: inherit; |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 90 }; | 95 }; |
| 91 --paper-radio-button-ink-size: 40px; | 96 --paper-radio-button-ink-size: 40px; |
| 92 --paper-radio-button-label-color: inherit; | 97 --paper-radio-button-label-color: inherit; |
| 93 --paper-radio-button-size: 16px; | 98 --paper-radio-button-size: 16px; |
| 94 --paper-radio-group-item-padding: 0; | 99 --paper-radio-group-item-padding: 0; |
| 95 | 100 |
| 96 --paper-toggle-button-checked-bar: var(--settings-toggle-bar-size); | 101 --paper-toggle-button-checked-bar: var(--settings-toggle-bar-size); |
| 97 --paper-toggle-button-checked-bar-color: var(--settings-toggle-color); | 102 --paper-toggle-button-checked-bar-color: var(--settings-toggle-color); |
| 98 --paper-toggle-button-checked-button: { | 103 --paper-toggle-button-checked-button: { |
| 99 @apply(--settings-toggle-button-size); | 104 @apply(--settings-toggle-button-size); |
| 100 transform: translate(14px, 0); | 105 transform: translate(18px, 0); |
| 101 }; | 106 }; |
| 102 --paper-toggle-button-checked-button-color: var(--settings-toggle-color); | 107 --paper-toggle-button-checked-button-color: var(--settings-toggle-color); |
| 103 --paper-toggle-button-label-spacing: 0; | 108 --paper-toggle-button-label-spacing: 0; |
| 104 --paper-toggle-button-unchecked-bar: var(--settings-toggle-bar-size); | 109 --paper-toggle-button-unchecked-bar: var(--settings-toggle-bar-size); |
| 105 --paper-toggle-button-unchecked-button: var(--settings-toggle-button-size); | 110 --paper-toggle-button-unchecked-button: var(--settings-toggle-button-size); |
| 111 --paper-toggle-button-unchecked-ink: var(--settings-toggle-ink-size); | |
| 112 | |
| 113 --settings-input-underline: { | |
| 114 border-color: var(--paper-grey-300); | |
| 115 } | |
| 116 | |
| 117 --paper-input-container-underline: var(--settings-input-underline); | |
| 106 } | 118 } |
| 107 </style> | 119 </style> |
| OLD | NEW |