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 :root { | 6 :root { |
7 --checkbox-margin-start: 2px; | 7 --checkbox-margin-start: 2px; |
8 --checkbox-size: 16px; | 8 --checkbox-size: 16px; |
9 --checkbox-spacing: 18px; | 9 --checkbox-spacing: 18px; |
10 --iron-icon-fill-color: var(--paper-grey-600); | 10 --iron-icon-fill-color: var(--paper-grey-600); |
11 --iron-icon-height: 20px; | 11 --iron-icon-height: 20px; |
12 --iron-icon-spacing: 16px; | 12 --iron-icon-spacing: 16px; |
13 --iron-icon-width: 20px; | 13 --iron-icon-width: 20px; |
14 --paper-checkbox-label-color: inherit; | 14 --paper-checkbox-label-color: inherit; |
15 --paper-dialog-color: inherit; | 15 --paper-dialog-color: inherit; |
16 --paper-icon-button: { | 16 --paper-icon-button: { |
17 width: 36px; | 17 width: 36px; |
18 height: 36px; | 18 height: 36px; |
19 }; | 19 }; |
20 --paper-input-max-width: 264px; | 20 --paper-input-max-width: 264px; |
21 --paper-item: { | 21 --paper-item: { |
22 font-size: inherit; | 22 font-size: inherit; |
23 }; | 23 }; |
24 --paper-radio-button-label-color: inherit; | 24 --paper-radio-button-label-color: inherit; |
25 --paper-radio-group-item-padding: 0; | 25 --paper-radio-group-item-padding: 0; |
26 | 26 |
27 --paper-toggle-button-checked-bar-color: | |
28 var(--settings-toggle-button-color); | |
29 --paper-toggle-button-checked-button-color: | |
30 var(--settings-toggle-button-color); | |
31 --paper-toggle-button-checked-bar: { | |
32 height: var(--settings-toggle-button-bar-height); | |
33 width: var(--settings-toggle-button-bar-width); | |
34 }; | |
35 --paper-toggle-button-checked-button: { | |
36 height: var(--settings-toggle-button-button-size); | |
37 width: var(--settings-toggle-button-button-size); | |
38 }; | |
39 --paper-toggle-button-unchecked-bar: { | |
40 height: var(--settings-toggle-button-bar-height); | |
41 width: var(--settings-toggle-button-bar-width); | |
Dan Beam
2016/08/29 18:55:18
additional tip:
--settings-toggle-height-and-widt
dschuyler
2016/08/29 23:48:13
This works iff the the --settings vars are declare
| |
42 }; | |
43 --paper-toggle-button-unchecked-button: { | |
44 height: var(--settings-toggle-button-button-size); | |
45 width: var(--settings-toggle-button-button-size); | |
46 }; | |
47 | |
27 --settings-actionable: var(--cr-actionable); | 48 --settings-actionable: var(--cr-actionable); |
28 | 49 |
29 /* Custom grey for Alan (bettes@). */ | 50 /* Custom grey for Alan (bettes@). */ |
30 --settings-background-color: rgb(241, 241, 241); | 51 --settings-background-color: rgb(241, 241, 241); |
31 --settings-secondary: { | 52 --settings-secondary: { |
32 color: var(--paper-grey-600); | 53 color: var(--paper-grey-600); |
33 font-weight: 400; | 54 font-weight: 400; |
34 margin-top: 4px; | 55 margin-top: 4px; |
35 }; | 56 }; |
36 --settings-disabled-opacity: .65; | 57 --settings-disabled-opacity: .65; |
(...skipping 12 matching lines...) Expand all Loading... | |
49 | 70 |
50 --settings-page-vertical-margin: 21px; | 71 --settings-page-vertical-margin: 21px; |
51 | 72 |
52 --settings-row-min-height: 44px; | 73 --settings-row-min-height: 44px; |
53 --settings-row-two-line-min-height: 56px; | 74 --settings-row-two-line-min-height: 56px; |
54 --settings-separator-line: var(--cr-separator-line); | 75 --settings-separator-line: var(--cr-separator-line); |
55 | 76 |
56 --settings-title-bar-background-color: var(--google-blue-700); | 77 --settings-title-bar-background-color: var(--google-blue-700); |
57 --settings-title-bar-color: rgb(255, 255, 255); | 78 --settings-title-bar-color: rgb(255, 255, 255); |
58 --settings-title-search-color: rgb(192, 199, 205); | 79 --settings-title-search-color: rgb(192, 199, 205); |
80 | |
81 --settings-toggle-button-bar-height: 12px; | |
82 --settings-toggle-button-bar-width: 28px; | |
83 --settings-toggle-button-button-size: 16px; | |
84 --settings-toggle-button-color: var(--google-blue-500); | |
Dan Beam
2016/08/29 18:53:43
why are you declaring these AFTER using them? doe
dschuyler
2016/08/29 23:48:13
I had defined them above and then got a notice whe
| |
59 } | 85 } |
60 </style> | 86 </style> |
OLD | NEW |