• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2Copyright 2014 Google Inc
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8    https://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15-->
16
17<dom-module id="google-signin-styles">
18  <template>
19    <style>
20      :host {
21        display: inline-block;
22        position: relative;
23        box-sizing: border-box;
24        margin: 0 0.29em;
25        background: transparent;
26        text-align: center;
27        font: inherit;
28        outline: none;
29        border-radius: 3px;
30        -webkit-user-select: none;
31        user-select: none;
32        cursor: pointer;
33        z-index: 0;
34      }
35
36      :host([disabled]) {
37        cursor: auto;
38        pointer-events: none;
39      }
40
41      :host([disabled]) #button {
42        background: #eaeaea;
43        color: #a8a8a8;
44      }
45
46      #button {
47        position: relative;
48        outline: none;
49        font-size: 14px;
50        font-weight: 400;
51        font-family: 'RobotoDraft','Roboto',arial,sans-serif;
52        white-space: nowrap;
53        border-radius: inherit;
54      }
55
56      iron-icon {
57        width: 22px;
58        height: 22px;
59        margin: 6px;
60      }
61
62      .icon {
63        display: inline-block;
64        vertical-align: middle;
65      }
66
67      #shadow {
68        border-radius: inherit;
69      }
70
71      #ripple {
72        pointer-events: none;
73      }
74
75      .button-content {
76        outline: none;
77      }
78
79      .buttonText {
80        display: inline-block;
81        vertical-align: middle;
82        padding-right: .8em;
83      }
84
85      /*
86       * Dark Theme
87       */
88      .theme-dark {
89        background: #da4336;
90        color: #ffffff;
91        border: 1px solid transparent;
92      }
93
94      .theme-dark.signedIn-true.additionalAuth-false {
95        background: #999;
96        border: 1px solid #888;
97      }
98
99      .theme-dark.signedIn-true.additionalAuth-false:hover,
100      .theme-dark.signedIn-true.additionalAuth-false:focus {
101        background: #aaa;
102      }
103
104      :host([noink]) .theme-dark:hover,
105      :host([noink]) .theme-dark:focus {
106        background: #e74b37;
107      }
108
109      :host([noink]) .theme-dark.signedIn-true.additionalAuth-false:hover,
110      :host([noink]) .theme-dark.signedIn-true.additionalAuth-false:focus {
111        background: #aaa;
112      }
113
114      /*
115       * Light Theme
116       */
117      .theme-light {
118        background: #fff;
119        color: #737373;
120        border: 1px solid #d9d9d9;
121      }
122
123      .theme-light.signedIn-true.additionalAuth-false {
124        background: #c0c0c0;
125        color: #fff;
126        border: #888 1px solid;
127      }
128
129      .theme-light.signedIn-true.additionalAuth-false:hover,
130      .theme-light.signedIn-true.additionalAuth-false:focus {
131        background: #aaa;
132      }
133
134      :host([noink]) .theme-light .button-content:hover,
135      :host([noink]) .theme-light:focus {
136        border: 1px solid #c0c0c0;
137      }
138
139      :host([noink]) .theme-light.signedIn-true.additionalAuth-false:hover,
140      :host([noink]) .theme-light.signedIn-true.additionalAuth-false:focus {
141        background: #aaa;
142      }
143
144      /*
145       * Icon Only Width
146       */
147      .width-iconOnly .buttonText {
148        display: none;
149      }
150
151      /*
152       * Tall Height
153       */
154      .height-tall .buttonText {
155        font-size: 15px;
156        font-weight: 700;
157      }
158
159      .height-tall iron-icon {
160        width: 30px;
161        height: 30px;
162        margin: 8px;
163      }
164
165      /*
166       * Short Height
167       */
168      .height-short .buttonText {
169        font-size: 11px;
170      }
171
172      .height-short iron-icon {
173        width: 16px;
174        height: 16px;
175        margin: 3px;
176      }
177
178
179      /*
180       * Branding
181       */
182
183      /* Google Scopes */
184
185      /* Dark Theme */
186      .brand-google.theme-dark {
187        background: #4184F3;
188        color: #fff;
189        border: 1px solid #3266d5;
190      }
191
192      .brand-google.theme-dark .icon {
193        background: #fff;
194        border-top-left-radius: 2px;
195        border-bottom-left-radius: 2px;
196      }
197
198      .brand-google.theme-dark.width-iconOnly .icon {
199        border-radius: 2px;
200      }
201
202      .brand-google.theme-dark .buttonText {
203        padding-left: .8em;
204      }
205
206      .brand-google.theme-dark #ripple {
207        color: #1b39a8;
208      }
209
210      :host([noink]) .brand-google.theme-dark:hover,
211      :host([noink]) .brand-google.theme-dark:focus {
212        background: #e74b37;
213      }
214
215      .brand-google.theme-light .icon {
216        color: #4184F3;
217      }
218
219      .brand-google.theme-light.signedIn-true.additionalAuth-false .icon {
220        color: #fff;
221      }
222
223      .brand-google.theme-light #ripple {
224        color: #444;
225      }
226
227      :host([noink]) .brand-google.theme-light:hover,
228      :host([noink]) .brand-google.theme-light:focus {
229        border: 1px solid #c0c0c0;
230      }
231
232      .brand-google-plus.theme-dark {
233        background: #da4336;
234        color: #fff;
235        border: 1px solid transparent;
236      }
237
238      .brand-google-plus.theme-dark #ripple {
239        color: #c43828;
240      }
241
242      /* Light Theme */
243      .brand-google-plus.theme-light {
244        background: #fff;
245        color: #737373;
246        border: 1px solid #d9d9d9;
247      }
248
249      .brand-google-plus.theme-light .icon {
250        color: #e74b37;
251      }
252
253      .brand-google-plus.theme-light.signedIn-true.additionalAuth-false .icon {
254        color: #fff;
255      }
256
257      .brand-google-plus.theme-light #ripple {
258        color: #400;
259      }
260
261      :host([noink]) .brand-google-plus.theme-light:hover,
262      :host([noink]) .brand-google-plus.theme-light:focus {
263        border: 1px solid #c0c0c0;
264      }
265    </style>
266  </template>
267</dom-module>
268