summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/settings/settings_shared_css.html
blob: 4c5cfc7ebe75193dfe47c2f90726c41f9e883173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<!-- Common styles for Material Design settings. -->
<dom-module id="settings-shared">
  <template>
    <style>
      :root {
        --checkbox-margin-start: 2px;
        --checkbox-size: 16px;
        --checkbox-spacing: 18px;
        --iron-icon-fill-color: var(--paper-grey-500);
        --iron-icon-height: 20px;
        --iron-icon-width: 20px;
        --paper-icon-button: {
          width: 36px;
          height: 36px;
        }
        --settings-background-color: var(--paper-blue-grey-50);
        --settings-secondary: {
          color: var(--paper-grey-500);
          font-weight: 400;
        }

        /* Some colors use non-MD colors.  These custom colors are specified by
         * UX design (bettes@). */
        --settings-side-nav-color: rgb(90, 90, 90);
        --settings-title-bar-background-color: rgb(52, 73, 94);
        --settings-title-bar-color: rgb(255, 255, 255);
      }

      h2 {
        @apply(--layout-center);
        color: var(--paper-grey-500);
        display: flex;
        font-size: 100%;
        font-weight: 500;
        margin: 0;
        min-height: 40px;
      }

      iron-icon[icon=check],
      iron-icon[icon=done] {
       --iron-icon-fill-color: var(--google-green-500);
      }

      paper-button {
        margin: 0;
        min-width: auto;
      }

      paper-button[toggles][active] {
        background-color: var(--paper-grey-300);
      }

      span ~ a {
        -webkit-margin-start: 4px;
      }

      [is='action-link'],
      [is='action-link']:active,
      [is='action-link']:hover,
      [is='action-link']:visited,
      paper-button.primary-button,
      paper-button.tertiary-button {
        color: var(--google-blue-700);
      }

      [is='action-link']:hover {
        /* TODO(dbeam): check with bettes@ on this one, but I'm pretty sure we
         * shouldn't be showing much :hover stuff on Polymer pages. */
        text-decoration: none;
      }

      paper-button.primary-button {
        --paper-button: {
          font-weight: 500;
          text-align: start;
        };
        margin: 0 -0.57em;  /* Offsets default paper-button padding. */
      }

      paper-button.secondary-button {
        --paper-button: {
          color: var(--paper-grey-700);
          text-decoration: none;
          font-weight: 500;
        };
      }

      paper-button.tertiary-button {
        --paper-button: {
          font-weight: 400;
          text-decoration: none;
        };
      }

      paper-radio-button {
        --paper-radio-button-checked-color: var(--google-blue-500);
        --paper-radio-button-label-spacing: 18px;
        --paper-radio-button-unchecked-color: var(--paper-grey-500);
        -webkit-margin-start: 2px;
      }

      .text-elide {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .button-row {
        display: flex;
        margin-top: 25px;
      }

      .button-strip {
        text-align: end;
      }

      .action-button {
        background: var(--google-blue-500);
        color: white;
        font-weight: 500;
      }

      .action-button[disabled] {
        opacity: .25;  /* TODO(dbeam): check this value with bettes. */
      }

      .list-frame {
        @apply(--layout-center);
        -webkit-padding-end: 20px;
        -webkit-padding-start: 48px;
        display: block;
        padding-bottom: 0;
        padding-top: 0;
      }

      .list-frame .secondary,
      .list-item .secondary {
        @apply(--settings-secondary);
      }

      .list-item {
        @apply(--layout-center);
        display: flex;
        min-height: 40px;
        padding: 0;
      }

      .list-item.underbar {
        border-bottom: 1px solid var(--paper-grey-300);
      }

      .list-item select {
        -webkit-margin-start: 4px;
      }

      .list-item > .middle {
        flex: 1;
        margin: 8px 12px;
        overflow: hidden;
        white-space: nowrap;
      }

      .list-item > .start {
        flex: 1;
        overflow: hidden;
        white-space: nowrap;
      }

      .list-item > paper-icon-item {
        padding: 0;
      }

      /* This button has no ink ripple. */
      .list-item.list-button {
        @apply(--layout-center);
        color: rgb(66, 133, 244);
        font-weight: 500;
      }

      .settings-box {
        @apply(--layout-center);
        border-top: 1px solid var(--paper-grey-300);
        display: flex;
        min-height: 40px;
        padding: 0 20px;
      }

      .settings-box.first {
        border-top: none;
      }

      .settings-box.block {
        display: block;
      }

      .settings-box.two-line {
        min-height: 52px;
      }

      .settings-box .secondary {
        @apply(--settings-secondary);
      }

      .settings-box .middle {
        -webkit-margin-start: 16px;
        align-items: center;
        flex: auto;
      }

      .settings-box .start {
        align-items: center;
        flex: auto;
      }

      /* The secondary-action wraps a clickable sub-area of a .settings-box.
       * An example is the |sign out| button on the People settings.
       * Here is an example with and without a secondary action box:
       *
       *  +-------------------------------------------------------+
       *  | Main action area .settings-box    | .secondary-action |
       *  +-------------------------------------------------------+
       *  | Another setting-box without a secondary-action        |
       *  +-------------------------------------------------------+
       */
      .settings-box .secondary-action {
        -webkit-border-start: 1px solid var(--paper-grey-300);
        -webkit-padding-start: 20px;
      }

      .settings-box paper-item iron-icon {
        /* Same padding as paper-icon-button. */
        padding: 8px;
      }

      .vertical-list > div:first-of-type {
        border-top: none;
      }

      .vertical-list > div {
        border-top: 1px solid var(--paper-grey-300);
      }

      .settings-checkbox-spacer {
        -webkit-margin-start: calc(
            var(--checkbox-margin-start) +
            var(--checkbox-size) +
            var(--checkbox-spacing));
      }
    </style>
  </template>
</dom-module>