/
base.styl
432 lines (366 loc) · 11.1 KB
/
base.styl
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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
$stage = 'base'
address
font-style: normal
font-weight: normal
q:before
content: open-quote
q:after
content: close-quote
cite, em, var, dfn
font-style: italic
code, samp, kbd
font-family: monospace
abbr[title], acronym[title]
border-bottom: 1px dotted
a
color: $base-anker-color
outline: 0
a:hover
color: $base-anker-color
text-decoration: underline
dt
font-weight: bold
margin-left: 20px
dd
margin-left: 20px
ins
text-decoration: underline
del
text-decoration: line-through
textarea
font-size: 100%
width: 75%
min-height: 60px
hr
height: 1px
border: none
border-top: 1px solid #CCC
margin: 0.5em auto
sub
vertical-align: sub
font-size: 0.83em
line-height: normal
sup
vertical-align: super
font-size: 0.83em
line-height: normal
fieldset
margin: 0 0 1em 0
padding: 8px 12px
border: 1px solid #CCC
border-radius: 4px
legend
padding: 2px 4px
iframe[width="100%"]
width: 99%
em
font-weight: bold
img
border: none
vertical-align: bottom
/* Table */
/*
table
text-align: left
border-collapse: collapse
margin: 1em 0.5em
tr
margin: 0
padding: 0
vertical-align: middle
th,
td
margin: 0
padding: 0.2em 0.6em
vertical-align: middle
line-height: 160%
border: 1px solid #DDD
th
text-align: left
font-weight: bold
background: #F5F5F5
*/
table img
vertical-align: middle
/*! Forms */
// Mobile Portrait Size to Mobile Landscape Size (devices and browsers)
//@media only screen and (max-width: 479px)
@media only screen and (max-width: $breakpoint-mini-max)
select
max-width: 270px
select
height: 28px
line-height: 28px
select.multiple,
select[multiple="multiple"]
height: auto
option
padding-right: 4px /*! for Firefox */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus
border: 1px solid #aaa
color: $base-text-color
box-shadow: 0 0 3px rgba(0,0,0,.2)
/* ========================================================================
Component: Button for Geeklog
========================================================================== */
/*
* Removes inner padding and border in Firefox 4+.
*/
input[type="submit"]::-moz-focus-inner,
input[type="button"]::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner
border: 0
padding: 0
/*
* 1. Correct inability to style clickable `input` types in iOS.
* 2. Remove margins in Chrome, Safari and Opera.
* 3. Remove borders for `button`.
* 4. Address `overflow` set to `hidden` in IE 8/9/10/11.
* 5. Correct `font` properties and `color` not being inherited for `button`.
* 6. Address inconsistent `text-transform` inheritance which is only inherit in Firefox and IE
* 7. Style
* 8. `line-height` is used to create a height
* 9. `min-height` is necessary for `input` elements in Firefox and Opera because `line-height` is not working.
* 10. Reset button group whitespace hack
* 11. Required for `a`.
*/
input[type="submit"],
input[type="button"],
input[type="reset"]
/* 1 */
-webkit-appearance: none
/* 2 */
margin: 0
/* 3 */
border: none
/* 4 */
overflow: visible
/* 5 */
font: inherit
color: #444444
/* 6 */
text-transform: none
/* 7 */
display: inline-block
-moz-box-sizing: border-box
box-sizing: border-box
padding: 0 12px
if $var-uikit-theme == 'default'
background: #eeeeee
if $var-uikit-theme == 'gradient'
background: #f7f7f7
if $var-uikit-theme == 'almost-flat'
background: #f5f5f5
vertical-align: middle
/* 8 */
line-height: 28px
/* 9 */
min-height: 30px
/* 10 */
font-size: 1rem
/* 11 */
text-decoration: none
text-align: center
if $var-uikit-theme == 'gradient'
border: 1px solid rgba(0, 0, 0, 0.2)
border-bottom-color: rgba(0, 0, 0, 0.3)
background-origin: border-box
background-image: -webkit-linear-gradient(top, #ffffff, #eeeeee)
background-image: linear-gradient(to bottom, #ffffff, #eeeeee)
border-radius: 4px
text-shadow: 0 1px 0 #ffffff
if $var-uikit-theme == 'almost-flat'
border: 1px solid rgba(0, 0, 0, 0.06)
border-radius: 4px
text-shadow: 0 1px 0 #ffffff
input[type="submit"]:not(:disabled),
input[type="button"]:not(:disabled),
input[type="reset"]:not(:disabled)
cursor: pointer
/*
* Hover
* 1. Apply hover style also to focus state
* 2. Remove default focus style
* 3. Required for `a` elements
*/
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus
if $var-uikit-theme == 'default'
background-color: #f5f5f5
if $var-uikit-theme == 'gradient'
background-color: #fafafa
if $var-uikit-theme == 'almost-flat'
background-color: #fafafa
color: #444444
/* 2 */
outline: none
/* 3 */
text-decoration: none
if $var-uikit-theme == 'gradient'
background-image: none
if $var-uikit-theme == 'almost-flat'
border-color: rgba(0, 0, 0, 0.16)
/* Active */
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"].uk-active,
input[type="button"].uk-active,
input[type="reset"].uk-active
if $var-uikit-theme == 'default'
background-color: #dddddd
if $var-uikit-theme == 'gradient'
background-color: #f5f5f5
if $var-uikit-theme == 'almost-flat'
background-color: #eeeeee
color: #444444
if $var-uikit-theme == 'gradient'
border-color: rgba(0, 0, 0, 0.2)
border-top-color: rgba(0, 0, 0, 0.3)
background-image: none
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1)
/* Disabled state
* Overrides also the color modifiers
========================================================================== */
/* Equal for all button types */
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled
if $var-uikit-theme == 'default'
background-color: #f5f5f5
if $var-uikit-theme == 'gradient'
background-color: #fafafa
if $var-uikit-theme == 'almost-flat'
background-color: #fafafa
color: #999999
if $var-uikit-theme == 'gradient'
border-color: rgba(0, 0, 0, 0.2)
background-image: none
box-shadow: none
text-shadow: 0 1px 0 #ffffff
if $var-uikit-theme == 'almost-flat'
border-color: rgba(0, 0, 0, 0.06);
box-shadow: none;
text-shadow: 0 1px 0 #ffffff;
/* Sub-object `uk-button-group`
========================================================================== */
/*
* Remove whitespace between child elements when using `inline-block`
*/
.uk-button-group input[type="submit"],
.uk-button-group input[type="button"],
.uk-button-group input[type="reset"]
vertical-align: top
if $var-uikit-theme == 'gradient'
/* Sub-object `uk-button-group`
========================================================================== */
/*
* Reset border-radius
*/
.uk-button-group > div:not(:first-child):not(:last-child) input[type="submit"],
.uk-button-group > div:not(:first-child):not(:last-child) input[type="button"],
.uk-button-group > div:not(:first-child):not(:last-child) input[type="reset"]
border-radius: 0
.uk-button-group > div:first-child input[type="submit"],
.uk-button-group > div:first-child input[type="button"],
.uk-button-group > div:first-child input[type="reset"]
border-top-right-radius: 0
border-bottom-right-radius: 0
.uk-button-group > div:last-child input[type="submit"],
.uk-button-group > div:last-child input[type="button"],
.uk-button-group > div:last-child input[type="reset"]
border-top-left-radius: 0
border-bottom-left-radius: 0
/*
* Collapse border
*/
.uk-button-group > div:nth-child(n+2) input[type="submit"],
.uk-button-group > div:nth-child(n+2) input[type="button"],
.uk-button-group > div:nth-child(n+2) input[type="reset"]
margin-left: -1px
if $var-uikit-theme == 'almost-flat'
/* Sub-object `uk-button-group`
========================================================================== */
/*
* Reset border-radius
*/
.uk-button-group > div:not(:first-child):not(:last-child) input[type="submit"],
.uk-button-group > div:not(:first-child):not(:last-child) input[type="button"],
.uk-button-group > div:not(:first-child):not(:last-child) input[type="reset"]
border-left-color: rgba(0,0,0,0.1)
border-right-color: rgba(0,0,0,0.1)
border-radius: 0
.uk-button-group > div:first-child input[type="submit"],
.uk-button-group > div:first-child input[type="button"],
.uk-button-group > div:first-child input[type="reset"]
border-right-color: rgba(0,0,0,0.1)
border-top-right-radius: 0
border-bottom-right-radius: 0
.uk-button-group > div:last-child input[type="submit"],
.uk-button-group > div:last-child input[type="button"],
.uk-button-group > div:last-child input[type="reset"]
border-left-color: rgba(0,0,0,0.1)
border-top-left-radius: 0
border-bottom-left-radius: 0
/*
* Collapse border
*/
.uk-button-group > div:nth-child(n+2) input[type="submit"],
.uk-button-group > div:nth-child(n+2) input[type="button"],
.uk-button-group > div:nth-child(n+2) input[type="reset"]
margin-left: -1px
/* ========================================================================
Component: Contrast for Geeklog
========================================================================== */
.uk-contrast input[type="submit"],
.uk-contrast input[type="button"],
.uk-contrast input[type="reset"]
color: #444444
background: #ffffff
if $var-uikit-theme == 'gradient'
border-color: transparent
if $var-uikit-theme == 'almost-flat'
border-color: transparent
.uk-contrast input[type="submit"]:hover,
.uk-contrast input[type="button"]:hover,
.uk-contrast input[type="reset"]:hover,
.uk-contrast input[type="submit"]:focus,
.uk-contrast input[type="button"]:focus,
.uk-contrast input[type="reset"]:focus
background-color: rgba(255, 255, 255, 0.8)
color: #444444
if $var-uikit-theme == 'gradient'
border-color: transparent
if $var-uikit-theme == 'almost-flat'
border-color: transparent
.uk-contrast input[type="submit"]:active,
.uk-contrast input[type="button"]:active,
.uk-contrast input[type="reset"]:active,
.uk-contrast input[type="submit"].uk-active,
.uk-contrast input[type="button"].uk-active,
.uk-contrast input[type="reset"].uk-active
background-color: rgba(255, 255, 255, 0.7)
color: #444444
if $var-uikit-theme == 'gradient'
box-shadow: none
/*! Modify UIkit */
.uk-form input,
.uk-form button,
.uk-form select,
.uk-form textarea
margin 0 1px 2px
.uk-form input[type="checkbox"],
.uk-form input[type="radio"]
margin-left: 3px
margin-right: 3px
vertical-align: middle
.uk-form > .admin-list-search
margin-bottom: 0.5em
hook-root($stage)