-
Notifications
You must be signed in to change notification settings - Fork 25
/
holo-base-elements.css
executable file
·231 lines (213 loc) · 5.41 KB
/
holo-base-elements.css
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
/* Base Holo styles for elements
* Part of the Holo Web CSS library
*
* Copyright 2012-2015 Zachary Yaro
* Released under the MIT license
* http://holo.zmyaro.com/LICENSE.txt
*/
@import url(https://fonts.googleapis.com/css?family=Roboto:400,400italic,700,700italic);
::selection {
background-color: #33B5E5;
background-color: rgba(51, 181, 229, 0.5);
}
::-moz-selection {
background-color: #33B5E5;
background-color: rgba(51, 181, 229, 0.5);
}
body {
font-family: Roboto, "Droid Sans", sans-serif;
margin: 0;
padding: 16px;
}
body:before { /* This is used for the background gradient */
z-index: -1000;
content: "";
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
a {
color: #33B5E5;
}
button, *[role="button"], input, select {
-webkit-tap-highlight-color: transparent !important;
text-decoration: none;
cursor: default;
}
input[type="radio"], input[type="checkbox"], select:not([size]), select[size="1"],
input[type="range"], input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
-o-appearance: none;
appearance: none;
}
button, *[role="button"],
input[type="button"], input[type="submit"], input[type="reset"], input[type="radio"], input[type="checkbox"] {
outline-style: none;
outline-width: 0px;
}
button, *[role="button"],
input[type="button"], input[type="submit"], input[type="reset"],
select:not([size]), select[size="1"] {
margin: 6px;
padding: 4px 12px;
border-width: 1px;
border-style: solid;
border-color: transparent;
-webkit-border-radius: 1px;
-moz-border-radius: 1px;
border-radius: 1px;
outline-style: none;
outline-width: 0px;
font: inherit;
}
button, *[role="button"],
input[type="button"], input[type="submit"], input[type="reset"] {
display: inline-block;
-webkit-box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.2);
box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.2);
}
/* The “active” class is used to force the appearance of the active/pressed state */
button:enabled:active, *[role="button"]:active,
input[type="button"]:enabled:active, input[type="submit"]:enabled:active, input[type="reset"]:enabled:active,
select:active, select[size="1"]:active,
button:enabled.active, *[role="button"].active,
input[type="button"]:enabled.active, input[type="submit"]:enabled.active, input[type="reset"]:enabled.active,
select.active, select[size="1"].active {
-webkit-box-shadow: 0px 0px 0px 4px rgba(51, 181, 229, 0.4);
-moz-box-shadow: 0px 0px 0px 4px rgba(51, 181, 229, 0.4);
box-shadow: 0px 0px 0px 4px rgba(51, 181, 229, 0.4);
}
select:not([size]), select[size="1"] {
background-color: transparent;
border-width: 0 0 1px 0;
}
select::-ms-expand { /* Drop-down arrow in IE */
display: none;
}
input[type="radio"], input[type="checkbox"] {
margin: 10px;
width: 18px;
height: 18px;
border-style: solid;
border-width: 1px;
background-color: transparent;
background-repeat: no-repeat;
}
input[type="radio"]::-ms-check, input[type="checkbox"]::-ms-check {
display: none;
}
input[type="radio"] {
-webkit-border-radius: 26px;
-moz-border-radius: 26px;
border-radius: 26px;
}
input[type="checkbox"] {
-webkit-border-radius: 1px;
-moz-border-radius: 1px;
border-radius: 1px;
background-position: left bottom;
}
input[type="range"], progress {
height: 2px;
margin: 8px 6px;
border-style: none;
border-width: 0;
outline-style: none;
outline-width: 0;
overflow: visible;
}
input[type="range"] *, input[type="range"] {
overflow: visible;
}
input[type="range"]::-moz-range-track {
border-style: none;
border-width: 0;
}
input[type="range"]::-ms-track {
overflow: visible;
border-style: none;
border-width: 0;
}
input[type="range"]::-ms-ticks-before, input[type="range"]::-ms-ticks-after {
display: none;
}
input[type="range"]::-webkit-slider-thumb {
width: 28px;
height: 28px;
border: 2px solid transparent;
-webkit-border-radius: 14px;
-moz-border-radius: 14px;
border-radius: 14px;
}
input[type="range"]::-moz-range-thumb {
width: 28px;
height: 28px;
border: 2px solid transparent;
-moz-border-radius: 14px;
border-radius: 14px;
}
input[type="range"]::-ms-thumb {
width: 28px;
height: 28px;
border: 2px solid transparent;
border-radius: 14px;
}
input[type="range"]:focus::-webkit-slider-thumb, input[type="range"]:disabled::-webkit-slider-thumb {
width: 24px;
height: 24px;
-webkit-border-radius: 12px;
border-radius: 12px;
}
input[type="range"]:focus:not(:active)::-moz-range-thumb, input[type="range"]:disabled::-moz-range-thumb {
width: 24px;
height: 24px;
-moz-border-radius: 12px;
border-radius: 12px;
}
input[type="range"]:focus::-ms-thumb, input[type="range"]:disabled::-ms-thumb {
width: 24px;
height: 24px;
border-radius: 12px;
}
progress::-webkit-progress-bar-value, progress::-webkit-progress-value {
position: relative;
overflow: visible;
}
progress::-moz-progress-bar {
position: relative;
overflow: visible;
}
progress::-ms-fill {
position: relative;
overflow: visible;
}
progress::-webkit-progress-bar-value:after, progress::-webkit-progress-value:after {
content: "";
position: absolute;
right: 0px;
top: 0px;
width: 10px;
height: 2px;
}
progress::-moz-progress-bar:after {
content: "";
position: absolute;
right: 0px;
top: 0px;
width: 10px;
height: 2px;
}
progress::-ms-fill {
content: "";
position: absolute;
right: 0px;
top: 0px;
width: 10px;
height: 2px;
}
*:disabled {
opacity: 0.3;
}