expressionui 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,689 @@
1
+ @import expressionui/loading/spinner
2
+ @import expressionui/loading/dots_round
3
+ @import expressionui/loading/three_dots
4
+ @import expressionui/loading/spinner
5
+ @import expressionui/loading/progress
6
+
7
+ $circle_color: $accent
8
+ $error: #F35919 // Green
9
+ $success: #45A03B // Success
10
+ $tip: #01C8E4 // Blue
11
+ $info: #FDE200 // Yellow
12
+ $font_size: 18px
13
+
14
+ // Content Display
15
+ .content_visible
16
+ position: relative
17
+ +group
18
+ .content_hidden
19
+ visibility: hidden
20
+ position: relative
21
+ +group
22
+ .content_overlay
23
+ position: relative
24
+ +group
25
+ &:before
26
+ position: absolute
27
+ content: '' !important
28
+ top: 0
29
+ left: 0
30
+ bottom: 0
31
+ right: 0
32
+ background: rgba(black, 0.45)
33
+ display: block !important
34
+ z-index: 2999
35
+
36
+
37
+ // Base Notify
38
+ .notify
39
+ display: block
40
+ width: auto
41
+ height: auto
42
+ font-size: $font_size
43
+ position: relative
44
+ z-index: 3000
45
+ visibility: visible !important
46
+ color: white
47
+ .notify_wrap
48
+ width: auto
49
+ padding: $pad*2 58px $pad*2 $pad
50
+
51
+ .msg
52
+ p, ul, li
53
+ margin: 0 !important
54
+ padding: 0 !important
55
+ width: auto !important
56
+ height: auto !important
57
+ float: none !important
58
+ border: none !important
59
+ a
60
+ color: white
61
+ text-decoration: underline
62
+ .notify_close
63
+ display: block
64
+ position: absolute
65
+ overflow: hidden
66
+ font-size: 18px
67
+ line-height: 18px
68
+ text-align: center
69
+ top: 0
70
+ bottom: 0
71
+ right: 0
72
+ width: 44px
73
+ height: 100%
74
+ padding-bottom: initial
75
+ border-bottom: initial
76
+ +border-radius(0 0 5px 0)
77
+ +icon_font
78
+ span
79
+ cursor: pointer
80
+ position: absolute
81
+ top: 50%
82
+ left: 0
83
+ right: 0
84
+ width: 100%
85
+ margin-top: -9px
86
+
87
+ // Base Error
88
+ &.style_error
89
+ background: $error
90
+ .notify_wrap .notify_close
91
+ color: shade($error, 60%)
92
+
93
+ // Base Success
94
+ &.style_success
95
+ background: $success
96
+ .notify_wrap .notify_close
97
+ color: shade($success, 60%)
98
+
99
+
100
+ // Base Tip
101
+ &.style_tip
102
+ background: $tip
103
+ .notify_wrap .notify_close
104
+ color: shade($tip, 60%)
105
+
106
+
107
+ // Base Info
108
+ &.style_info
109
+ background: $info
110
+ color: shade($info, 60%)
111
+ .notify_wrap .notify_close
112
+ color: shade($info, 70%)
113
+ .msg a
114
+ color: shade($info, 70%)
115
+
116
+
117
+ // CLEAN?
118
+ &.invert_false
119
+ &.invert_true
120
+
121
+
122
+ &.icon_true
123
+ .notify_wrap
124
+ padding-left: $pad*7
125
+ .icon
126
+ color: rgba(white, 0.28)
127
+ display: block
128
+ position: absolute
129
+ top: 50%
130
+ left: 15px
131
+ font-size: 50px
132
+ margin-top: -0.7em
133
+ &.icon_flase
134
+ .icon
135
+ display: none
136
+
137
+ // COVER AND PUSH SHOULD CONTROL THE CONTENT INTERACTIONS
138
+ // POSITION SHOULD BE TOP, BOTTOM, OR MIDDLE
139
+
140
+ // position: top, bottom, middle, push_down
141
+
142
+
143
+ &.position_top
144
+ position: absolute !important
145
+ +box-shadow(rgba(black, 0.18) 0 2px 0)
146
+ &.position_bottom
147
+ position: absolute !important
148
+ +box-shadow(rgba(black, 0.18) 0 -2px 0)
149
+ top: auto
150
+ bottom: 0
151
+ &.position_middle
152
+ position: absolute !important
153
+ top: 50%
154
+ margin-top: -19px
155
+ &.position_full
156
+ position: absolute !important
157
+ +box-shadow(rgba(black, 0.18) 0 2px 0)
158
+ top: 0
159
+ bottom: 0
160
+ &.position_push_down
161
+ margin-bottom: $pad/2
162
+ position: relative
163
+ +box-shadow(rgba(black, 0.18) 0 2px 0)
164
+
165
+
166
+ // Not sure how I would use auto?
167
+ // Whitepsace adds padding around the edge
168
+
169
+ &.width_full
170
+ +box-sizing(content-box)
171
+ width: 100%
172
+ position: relative
173
+ &.width_whitespace
174
+ +border-bottom-radius(5px)
175
+ margin: 0 $pad/2 $pad/2 $pad/2
176
+
177
+ // LOADING
178
+ &.loading_spinner
179
+ .notify_wrap
180
+ margin: 0 auto
181
+ &:before
182
+ display: none
183
+ .indicator
184
+ overflow: hidden
185
+ text-indent: -2000em
186
+ margin: 0 auto
187
+ background: url('/assets/spinner.svg') no-repeat
188
+ background-size: 100% !important
189
+ width: 40px
190
+ height: 40px
191
+ display: block
192
+ -webkit-animation-name: spin
193
+ -webkit-animation-duration: .9s
194
+ -webkit-animation-iteration-count: infinite
195
+ -webkit-animation-timing-function: linear
196
+ -moz-animation-name: spin
197
+ -moz-animation-duration: .9s
198
+ -moz-animation-iteration-count: infinite
199
+ -moz-animation-timing-function: linear
200
+ -o-animation-name: spin
201
+ -o-animation-duration: .9s
202
+ -o-animation-iteration-count: infinite
203
+ -o-animation-timing-function: linear
204
+ -ms-animation-name: spin
205
+ -ms-animation-duration: .9s
206
+ -ms-animation-iteration-count: infinite
207
+ -ms-animation-timing-function: linear
208
+ .msg
209
+ display: block !important
210
+ color: #555 !important
211
+ text-align: center !important
212
+ margin: 5px 0 0 0 !important
213
+ font-size: 14px !important
214
+ font-weight: normal !important
215
+
216
+ &.style_none
217
+ overflow: visible !important
218
+ +box-shadow(none)
219
+ height: $spinner_height
220
+ margin-top: -$spinner_height/2
221
+ background: none
222
+ top: 50%
223
+ position: absolute
224
+ .notify_wrap
225
+ position: absolute
226
+ width: 200px
227
+ left: 50%
228
+ height: $spinner_height
229
+ margin-left: -100px
230
+ display: block
231
+ padding: 0
232
+ &.position_push
233
+ margin-top: 0
234
+ position: static
235
+ .notify_wrap
236
+ margin: 0 auto
237
+ position: static
238
+ &.position_cover
239
+ margin-top: 0
240
+ top: $pad*2
241
+ .notify_wrap
242
+
243
+ &.loading_dots
244
+ .notify_wrap
245
+ margin: 0 auto
246
+ &:before
247
+ display: none
248
+ .indicator
249
+ width: 70px
250
+ height: 70px
251
+ display: block
252
+ margin: 0 auto
253
+ //+scale(5)
254
+ .dot1, .dot2, .dot3, .dot4, .dot5, .dot6, .dot7, .dot8
255
+ +border-radius(100px)
256
+ width: 7px
257
+ height: 7px
258
+ display: block
259
+ background: rgba($dot_color, 0.2)
260
+ position: absolute
261
+ left: 50%
262
+ margin-left: -5px
263
+ bottom: 25%
264
+ -webkit-animation-name: fade
265
+ -webkit-animation-duration: 1s
266
+ -webkit-animation-iteration-count: infinite
267
+ -webkit-animation-timing-function: linear
268
+ -moz-animation-name: fade
269
+ -moz-animation-duration: 1s
270
+ -moz-animation-iteration-count: infinite
271
+ -moz-animation-timing-function: linear
272
+ -o-animation-name: fade
273
+ -o-animation-duration: 1s
274
+ -o-animation-iteration-count: infinite
275
+ -o-animation-timing-function: linear
276
+ -ms-animation-name: fade
277
+ -ms-animation-duration: 1s
278
+ -ms-animation-iteration-count: infinite
279
+ -ms-animation-timing-function: linear
280
+ .dot1
281
+ +transform( rotate( $dot_deg -$dot_deg + deg) translate(0, $dot_offset) )
282
+ -webkit-animation-delay: 0.3s
283
+ -moz-animation-delay: 0.3s
284
+ -o-animation-delay: 0.3s
285
+ -ms-animation-delay: 0.3s
286
+ .dot2
287
+ +transform( rotate( $dot_deg + deg) translate(0, $dot_offset) )
288
+ -webkit-animation-delay: 0.4s
289
+ -moz-animation-delay: 0.4s
290
+ -o-animation-delay: 0.4s
291
+ -ms-animation-delay: 0.4s
292
+ .dot3
293
+ +transform( rotate( $dot_deg * 2 + deg) translate(0, $dot_offset) )
294
+ -webkit-animation-delay: 0.5s
295
+ -moz-animation-delay: 0.5s
296
+ -o-animation-delay: 0.5s
297
+ -ms-animation-delay: 0.5s
298
+ .dot4
299
+ +transform( rotate( $dot_deg * 3 + deg) translate(0, $dot_offset) )
300
+ -webkit-animation-delay: 0.6s
301
+ -moz-animation-delay: 0.6s
302
+ -o-animation-delay: 0.6s
303
+ -ms-animation-delay: 0.6s
304
+ .dot5
305
+ +transform( rotate( $dot_deg * 4 + deg) translate(0, $dot_offset) )
306
+ -webkit-animation-delay: 0.7s
307
+ -moz-animation-delay: 0.7s
308
+ -o-animation-delay: 0.7s
309
+ -ms-animation-delay: 0.7s
310
+ .dot6
311
+ +transform( rotate( $dot_deg * 5 + deg) translate(0, $dot_offset) )
312
+ -webkit-animation-delay: 0.8s
313
+ -moz-animation-delay: 0.8s
314
+ -o-animation-delay: 0.8s
315
+ -ms-animation-delay: 0.8s
316
+ .dot7
317
+ +transform( rotate( $dot_deg * 6 + deg) translate(0, $dot_offset) )
318
+ -webkit-animation-delay: 0.9s
319
+ -moz-animation-delay: 0.9s
320
+ -o-animation-delay: 0.9s
321
+ -ms-animation-delay: 0.9s
322
+ .dot8
323
+ +transform( rotate( $dot_deg * 7 + deg) translate(0, $dot_offset) )
324
+ -webkit-animation-delay: 1s
325
+ -moz-animation-delay: 1s
326
+ -o-animation-delay: 1s
327
+ -ms-animation-delay: 1s
328
+ .msg
329
+ display: block !important
330
+ color: #555 !important
331
+ text-align: center !important
332
+ margin: 5px 0 0 0 !important
333
+ font-size: 14px !important
334
+ font-weight: normal !important
335
+ &.style_none
336
+ overflow: visible !important
337
+ +box-shadow(none)
338
+ height: $spinner_height
339
+ margin-top: -round($spinner_height/2)
340
+ background: none
341
+ top: 50%
342
+ position: absolute
343
+ .notify_wrap
344
+ position: absolute
345
+ width: 200px
346
+ left: 50%
347
+ height: $spinner_height
348
+ margin-left: -100px
349
+ display: block
350
+ padding: 0
351
+ &.position_push
352
+ margin-top: 0
353
+ position: static
354
+ .notify_wrap
355
+ margin: 0 auto
356
+ position: static
357
+ &.position_cover
358
+ margin-top: 0
359
+ top: $pad*2
360
+ .notify_wrap
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+ &.loading_circles
369
+ .notify_wrap
370
+ margin: 0 auto
371
+ &:before
372
+ display: none
373
+ .indicator
374
+ width: 76px
375
+ height: 20px
376
+ display: block
377
+ margin: 0 auto
378
+ .circle1, .circle2, .circle3
379
+ $circle_size: 15px
380
+ background-color: $circle_color
381
+ float: left
382
+ margin: 0 round($circle_size/3)
383
+ height: $circle_size
384
+ width: $circle_size
385
+ +border-radius(100px)
386
+ +opacity(0.3)
387
+ -webkit-animation-name: circle_fade
388
+ -webkit-animation-duration: 1.5s
389
+ -webkit-animation-iteration-count: infinite
390
+ -webkit-animation-direction: linear
391
+ .circle1
392
+ -webkit-animation-delay: .3s
393
+ .circle2
394
+ -webkit-animation-delay: .7s
395
+ .circle3
396
+ -webkit-animation-delay: .9s
397
+ .msg
398
+ display: block !important
399
+ color: #555 !important
400
+ text-align: center !important
401
+ margin: 5px 0 0 0 !important
402
+ font-size: 14px !important
403
+ font-weight: normal !important
404
+ .content_overlay &
405
+ .notify_wrap
406
+ &:before
407
+ .indicator
408
+ .circle1, .circle2, .circle3
409
+ background-color: white !important
410
+ &.style_none
411
+ overflow: visible !important
412
+ +box-shadow(none)
413
+ height: $spinner_height
414
+ margin-top: -$spinner_height/2
415
+ background: none
416
+ top: 50%
417
+ position: absolute
418
+ .notify_wrap
419
+ position: absolute
420
+ width: 200px
421
+ left: 50%
422
+ height: $spinner_height
423
+ margin-left: -100px
424
+ display: block
425
+ padding: 0
426
+ &.position_push
427
+ margin-top: 0
428
+ position: static
429
+ .notify_wrap
430
+ margin: 0 auto
431
+ position: static
432
+ &.position_cover
433
+ margin-top: 0
434
+ top: $pad*2
435
+ .notify_wrap
436
+
437
+
438
+
439
+
440
+
441
+ &.loading_bars
442
+ .notify_wrap
443
+ margin: 0 auto
444
+ &:before
445
+ display: none
446
+ .indicator
447
+ overflow: hidden
448
+ text-indent: -2000em
449
+ margin: 0 auto
450
+ border: 1px solid shade(#1C60AA, 50%)
451
+ +border-radius(5px)
452
+ +background-image(linear_gradient(#6796C6 30%, #1C60AA) )
453
+ width: 200px
454
+ height: 10px
455
+ display: block
456
+ position: relative
457
+ .progress
458
+ content: ' '
459
+ +border-radius(5px)
460
+ +opacity(0.2)
461
+ display: block
462
+ +background-image( image-url('/assets/loading_bars.svg') )
463
+ -webkit-animation-name: bars
464
+ -webkit-animation-duration: .9s
465
+ -webkit-animation-iteration-count: infinite
466
+ -webkit-animation-timing-function: linear
467
+ -moz-animation-name: bars
468
+ -moz-animation-duration: .9s
469
+ -moz-animation-iteration-count: infinite
470
+ -moz-animation-timing-function: linear
471
+ -o-animation-name: bars
472
+ -o-animation-duration: .9s
473
+ -o-animation-iteration-count: infinite
474
+ -o-animation-timing-function: linear
475
+ -ms-animation-name: bars
476
+ -ms-animation-duration: .9s
477
+ -ms-animation-iteration-count: infinite
478
+ -ms-animation-timing-function: linear
479
+ position: absolute
480
+ top: 0
481
+ left: 0
482
+ width: 100%
483
+ height: 100%
484
+ .msg
485
+ display: block !important
486
+ color: #555 !important
487
+ text-align: center !important
488
+ margin: 5px 0 0 0 !important
489
+ font-size: 14px !important
490
+ font-weight: normal !important
491
+ &.text_align_left
492
+ .notify_wrap .msg
493
+ display: block !important
494
+ color: #555 !important
495
+ text-align: center !important
496
+ margin: 5px 0 0 0 !important
497
+ font-size: 14px !important
498
+ font-weight: normal !important
499
+ &.style_none
500
+ overflow: visible !important
501
+ +box-shadow(none)
502
+ height: $spinner_height
503
+ margin-top: -$spinner_height/2
504
+ background: none
505
+ top: 50%
506
+ position: absolute
507
+ .notify_wrap
508
+ position: absolute
509
+ width: 200px
510
+ left: 50%
511
+ height: $spinner_height
512
+ margin-left: -100px
513
+ display: block
514
+ padding: $pad 0
515
+ &.position_push
516
+ margin-top: 0
517
+ position: static
518
+ .notify_wrap
519
+ margin: 0 auto
520
+ position: static
521
+ &.position_cover
522
+ margin-top: 0
523
+ top: $pad*2
524
+ .notify_wrap
525
+
526
+
527
+
528
+
529
+
530
+ &.style_loading
531
+ +box-shadow(inset rgba(black, 0.3) 0 2px 4px)
532
+ +smart_gradient(#219cdf, top)
533
+ +smart_border(#219cdf)
534
+ +min_height(10px)
535
+ margin-top: 0 !important
536
+ .notify_wrap .notify_close
537
+ display: none
538
+ .notify_wrap
539
+ margin: 0 auto
540
+ padding: 0
541
+ &:before
542
+ display: none
543
+ .progress
544
+ +opacity(0.2)
545
+ +background-image( image-url('/assets/loading_bars.svg') )
546
+ -webkit-animation-name: bars
547
+ -webkit-animation-duration: .9s
548
+ -webkit-animation-iteration-count: infinite
549
+ -webkit-animation-timing-function: linear
550
+ -webkit-animation-delay: 5s
551
+ -moz-animation-name: bars
552
+ -moz-animation-duration: .9s
553
+ -moz-animation-iteration-count: infinite
554
+ -moz-animation-timing-function: linear
555
+ -o-animation-name: bars
556
+ -o-animation-duration: .9s
557
+ -o-animation-iteration-count: infinite
558
+ -o-animation-timing-function: linear
559
+ -ms-animation-name: bars
560
+ -ms-animation-duration: .9s
561
+ -ms-animation-iteration-count: infinite
562
+ -ms-animation-timing-function: linear
563
+ position: absolute
564
+ top: 0
565
+ left: 0
566
+ width: 100%
567
+ height: 100%
568
+ display: block
569
+ .msg
570
+ padding: $pad/2
571
+ text-transform: uppercase
572
+ font-size: 10px
573
+ display: block
574
+ text-align: center
575
+ +text_color(#219cdf)
576
+
577
+
578
+ // This could be moved???
579
+ .load_more
580
+ display: block
581
+ text-align: center
582
+ color: rgba($highlight, 0.5)
583
+ margin-bottom: $pad*3
584
+ span.start
585
+ display: block
586
+ .ind
587
+ +icon_font
588
+ font-size: 40px
589
+ .msg
590
+ font-size: 18px
591
+ font-weight: bold
592
+ span.end
593
+ position: relative
594
+ .ind
595
+ width: 48px
596
+ height: 48px
597
+ display: block
598
+ position: relative
599
+ margin: 0 auto
600
+ +scale(0.6)
601
+ .dot1, .dot2, .dot3, .dot4, .dot5, .dot6, .dot7, .dot8
602
+ +border-radius(5px)
603
+ height: 9px
604
+ width: 9px
605
+ display: block
606
+ position: absolute
607
+ -webkit-animation-name: fade
608
+ -webkit-animation-duration: 0.56s
609
+ -webkit-animation-iteration-count: infinite
610
+ -webkit-animation-timing-function: linear
611
+ -moz-animation-name: fade
612
+ -moz-animation-duration: 0.56s
613
+ -moz-animation-iteration-count: infinite
614
+ -moz-animation-timing-function: linear
615
+ -o-animation-name: fade
616
+ -o-animation-duration: 0.56s
617
+ -o-animation-iteration-count: infinite
618
+ -o-animation-timing-function: linear
619
+ -ms-animation-name: fade
620
+ -ms-animation-duration: 0.56s
621
+ -ms-animation-iteration-count: infinite
622
+ -ms-animation-timing-function: linear
623
+ .dot1
624
+ left: 0
625
+ top: 20px
626
+ -moz-animation-delay: 0.21s
627
+ -webkit-animation-delay: 0.21s
628
+ -o-animation-delay: 0.21s
629
+ -ms-animation-delay: 0.21s
630
+ animation-delay: 0.21s
631
+ .dot2
632
+ left: 6px
633
+ top: 6px
634
+ -moz-animation-delay: 0.28s
635
+ -webkit-animation-delay: 0.28s
636
+ -o-animation-delay: 0.28s
637
+ -ms-animation-delay: 0.28s
638
+ animation-delay: 0.28s
639
+ .dot3
640
+ left: 20px
641
+ top: 0
642
+ -moz-animation-delay: 0.35s
643
+ -webkit-animation-delay: 0.35s
644
+ -o-animation-delay: 0.35s
645
+ -ms-animation-delay: 0.35s
646
+ animation-delay: 0.35s
647
+ .dot4
648
+ right: 6px
649
+ top: 6px
650
+ -moz-animation-delay: 0.42s
651
+ -webkit-animation-delay: 0.42s
652
+ -o-animation-delay: 0.42s
653
+ -ms-animation-delay: 0.42s
654
+ animation-delay: 0.42s
655
+ .dot5
656
+ right: 0
657
+ top: 20px
658
+ -moz-animation-delay: 0.49s
659
+ -webkit-animation-delay: 0.49s
660
+ -o-animation-delay: 0.49s
661
+ -ms-animation-delay: 0.49s
662
+ animation-delay: 0.49s
663
+ .dot6
664
+ right: 6px
665
+ bottom: 6px
666
+ -moz-animation-delay: 0.56s
667
+ -webkit-animation-delay: 0.56s
668
+ -o-animation-delay: 0.56s
669
+ -ms-animation-delay: 0.56s
670
+ animation-delay: 0.56s
671
+ .dot7
672
+ left: 20px
673
+ bottom: 0
674
+ -moz-animation-delay: 0.63s
675
+ -webkit-animation-delay: 0.63s
676
+ -o-animation-delay: 0.63s
677
+ -ms-animation-delay: 0.63s
678
+ animation-delay: 0.63s
679
+ .dot8
680
+ left: 6px
681
+ bottom: 6px
682
+ -moz-animation-delay: 0.7s
683
+ -webkit-animation-delay: 0.7s
684
+ -o-animation-delay: 0.7s
685
+ -ms-animation-delay: 0.7s
686
+ animation-delay: 0.7s
687
+ .msg
688
+ font-size: 18px
689
+ font-weight: bold
@@ -0,0 +1,30 @@
1
+ .popover_container
2
+ position: absolute
3
+ +box-shadow(rgba(black, 0.2) 0 3px 2px)
4
+ +border-radius(4px)
5
+ &:before
6
+ content: '4'
7
+ +icon_font
8
+ font-size: 32px
9
+ line-height: 32px
10
+ position: absolute
11
+ display: block
12
+ color: #F2F2F2
13
+ +rotate(90deg)
14
+ z-index: 1
15
+ +text-shadow(rgba(black, 0.5) 1px 0 0)
16
+ &.topleft:before
17
+ top: -20px
18
+ left: 27px
19
+ +rotate(270deg)
20
+ &.bottomleft:before
21
+ bottom: -20px
22
+ left: 27px
23
+ &.topright:before
24
+ top: -20px
25
+ right: 35px
26
+ +rotate(270deg)
27
+ &.bottomright:before
28
+ bottom: -20px
29
+ right: 35px
30
+