uikit-sass-rails 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/CHANGELOG.md +5 -0
  4. data/LICENSE.md +155 -0
  5. data/README.md +78 -0
  6. data/lib/uikit-sass-rails.rb +1 -0
  7. data/lib/uikit/sass/rails.rb +2 -0
  8. data/lib/uikit/sass/rails/engine.rb +12 -0
  9. data/lib/uikit/sass/rails/version.rb +7 -0
  10. data/uikit-sass-rails.gemspec +24 -0
  11. data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
  12. data/vendor/assets/fonts/fontawesome-webfont.svg +504 -0
  13. data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
  14. data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
  15. data/vendor/assets/javascripts/uikit.js +14 -0
  16. data/vendor/assets/javascripts/uikit/addons/autocomplete.js +306 -0
  17. data/vendor/assets/javascripts/uikit/addons/datepicker.js +365 -0
  18. data/vendor/assets/javascripts/uikit/addons/form-password.js +62 -0
  19. data/vendor/assets/javascripts/uikit/addons/form-select.js +62 -0
  20. data/vendor/assets/javascripts/uikit/addons/htmleditor.js +594 -0
  21. data/vendor/assets/javascripts/uikit/addons/nestable.js +574 -0
  22. data/vendor/assets/javascripts/uikit/addons/notify.js +177 -0
  23. data/vendor/assets/javascripts/uikit/addons/pagination.js +146 -0
  24. data/vendor/assets/javascripts/uikit/addons/search.js +90 -0
  25. data/vendor/assets/javascripts/uikit/addons/sortable.js +494 -0
  26. data/vendor/assets/javascripts/uikit/addons/sticky.js +130 -0
  27. data/vendor/assets/javascripts/uikit/addons/timepicker.js +163 -0
  28. data/vendor/assets/javascripts/uikit/addons/upload.js +239 -0
  29. data/vendor/assets/javascripts/uikit/uikit.js +2573 -0
  30. data/vendor/assets/stylesheets/extra/font-awesome.scss +16 -0
  31. data/vendor/assets/stylesheets/uikit.scss +5 -0
  32. data/vendor/assets/stylesheets/uikit/addons/uikit.addons.scss +1326 -0
  33. data/vendor/assets/stylesheets/uikit/addons/uikit.almost-flat.addons.scss +1423 -0
  34. data/vendor/assets/stylesheets/uikit/addons/uikit.gradient.addons.scss +1445 -0
  35. data/vendor/assets/stylesheets/uikit/almost-flat.scss +5 -0
  36. data/vendor/assets/stylesheets/uikit/gradient.scss +5 -0
  37. data/vendor/assets/stylesheets/uikit/uikit.almost-flat.scss +8207 -0
  38. data/vendor/assets/stylesheets/uikit/uikit.gradient.scss +8264 -0
  39. data/vendor/assets/stylesheets/uikit/uikit.scss +7874 -0
  40. metadata +100 -0
@@ -0,0 +1,1423 @@
1
+ /*! UIkit 2.8.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
+
3
+ /* ========================================================================
4
+ Component: Dotnav
5
+ ========================================================================== */
6
+ /*
7
+ * 1. Remove default list style
8
+ * 2. Remove whitespace between child elements when using `inline-block`
9
+ */
10
+
11
+ .uk-dotnav {
12
+ /* 1 */
13
+ padding: 0;
14
+ list-style: none;
15
+ /* 2 */
16
+ font-size: 0.001px;
17
+ > li {
18
+ display: inline-block;
19
+ /* 1 */
20
+ font-size: 1rem;
21
+ /* 2 */
22
+ vertical-align: top;
23
+ &:nth-child(n+2) {
24
+ margin-left: 15px;
25
+ }
26
+ > a {
27
+ display: inline-block;
28
+ -moz-box-sizing: content-box;
29
+ box-sizing: content-box;
30
+ width: 20px;
31
+ height: 20px;
32
+ border-radius: 50%;
33
+ background: rgba(50, 50, 50, 0.1);
34
+ /* 1 */
35
+ vertical-align: top;
36
+ /* 2 */
37
+ overflow: hidden;
38
+ text-indent: -999%;
39
+ -webkit-transition: all 0.2s ease-in-out;
40
+ transition: all 0.2s ease-in-out;
41
+ &:hover, &:focus {
42
+ background: rgba(50, 50, 50, 0.4);
43
+ /* 2 */
44
+ outline: none;
45
+ }
46
+ &:active {
47
+ background: rgba(50, 50, 50, 0.6);
48
+ }
49
+ }
50
+ &.uk-active > a {
51
+ background: rgba(50, 50, 50, 0.4);
52
+ -webkit-transform: scale(1.3);
53
+ transform: scale(1.3);
54
+ }
55
+ }
56
+ }
57
+
58
+ /* Items
59
+ ========================================================================== */
60
+ /*
61
+ * 1. Reset whitespace hack
62
+ * 2. Remove the gap at the bottom of it container
63
+ */
64
+
65
+ /*
66
+ * Items
67
+ * 1. Remove the gap at the bottom of it container
68
+ * 2. Hide text if present
69
+ */
70
+
71
+ /*
72
+ * Hover
73
+ * 1. Apply hover style also to focus state
74
+ * 2. Remove default focus style
75
+ */
76
+
77
+ /* OnClick */
78
+
79
+ /* Active */
80
+
81
+ /* Modifier: 'dotnav-vertical'
82
+ ========================================================================== */
83
+
84
+ .uk-dotnav-vertical > li {
85
+ display: block;
86
+ &:nth-child(n+2) {
87
+ margin-left: 0;
88
+ margin-top: 15px;
89
+ }
90
+ }
91
+
92
+ /* ========================================================================
93
+ Component: Slidenav
94
+ ========================================================================== */
95
+ /*
96
+ * 1. Required for `a` elements
97
+ * 2. Dimension
98
+ * 3. Style
99
+ */
100
+
101
+ .uk-slidenav {
102
+ /* 1 */
103
+ display: inline-block;
104
+ /* 2 */
105
+ -moz-box-sizing: border-box;
106
+ box-sizing: border-box;
107
+ width: 60px;
108
+ height: 60px;
109
+ /* 3 */
110
+ line-height: 60px;
111
+ color: rgba(50, 50, 50, 0.4);
112
+ font-size: 60px;
113
+ text-align: center;
114
+ &:hover, &:focus {
115
+ /* 2 */
116
+ outline: none;
117
+ /* 3 */
118
+ text-decoration: none;
119
+ /* 4 */
120
+ color: rgba(50, 50, 50, 0.7);
121
+ cursor: pointer;
122
+ }
123
+ &:active {
124
+ color: rgba(50, 50, 50, 0.9);
125
+ }
126
+ }
127
+
128
+ /*
129
+ * Hover
130
+ * 1. Apply hover style also to focus state
131
+ * 2. Remove default focus style
132
+ * 3. Required for `a` elements
133
+ * 4. Style
134
+ */
135
+
136
+ /* Active */
137
+
138
+ /*
139
+ * Icons
140
+ */
141
+
142
+ .uk-slidenav-previous:before {
143
+ content: "\f104";
144
+ font-family: FontAwesome;
145
+ }
146
+
147
+ .uk-slidenav-next:before {
148
+ content: "\f105";
149
+ font-family: FontAwesome;
150
+ }
151
+
152
+ /* Sub-object: `uk-slidenav-position`
153
+ ========================================================================== */
154
+ /*
155
+ * 1. Container width fits its content
156
+ * 2. Corrects max-width behavior (3.) if padding and border are used
157
+ * 3. Responsive behavior
158
+ * 4. Create position context for dropdowns
159
+ */
160
+
161
+ .uk-slidenav-position {
162
+ /* 1 */
163
+ display: inline-block;
164
+ /* 2 */
165
+ -moz-box-sizing: border-box;
166
+ box-sizing: border-box;
167
+ /* 3 */
168
+ max-width: 100%;
169
+ /* 4 */
170
+ position: relative;
171
+ .uk-slidenav {
172
+ display: none;
173
+ position: absolute;
174
+ top: 50%;
175
+ margin-top: -30px;
176
+ }
177
+ &:hover .uk-slidenav {
178
+ display: block;
179
+ }
180
+ .uk-slidenav-previous {
181
+ left: 20px;
182
+ }
183
+ .uk-slidenav-next {
184
+ right: 20px;
185
+ }
186
+ }
187
+
188
+ /*
189
+ * Center vertically
190
+ */
191
+
192
+ /* ========================================================================
193
+ Component: Form advanced
194
+ Note: Only works in Webkit at the moment
195
+ ========================================================================== */
196
+ /*
197
+ * 1. Style
198
+ * 2. Makes box more robust so it clips the child element
199
+ * 3. Vertical alignment
200
+ * 4. Remove default style
201
+ * 5. Fix black background on iOS
202
+ */
203
+
204
+ .uk-form input {
205
+ &[type="radio"], &[type="checkbox"] {
206
+ /* 1 */
207
+ display: inline-block;
208
+ height: 14px;
209
+ width: 14px;
210
+ border: 1px solid #aaaaaa;
211
+ /* 2 */
212
+ overflow: hidden;
213
+ /* 3 */
214
+ margin-top: -4px;
215
+ vertical-align: middle;
216
+ /* 4 */
217
+ -webkit-appearance: none;
218
+ outline: 0;
219
+ /* 5 */
220
+ background: transparent;
221
+ }
222
+ &[type="radio"] {
223
+ border-radius: 50%;
224
+ }
225
+ &[type=checkbox]:checked:before {
226
+ display: block;
227
+ }
228
+ &[type=radio]:checked:before {
229
+ display: block;
230
+ content: '';
231
+ width: 8px;
232
+ height: 8px;
233
+ margin: 2px auto 0;
234
+ border-radius: 50%;
235
+ background: #00a8e6;
236
+ }
237
+ &[type=checkbox]:checked:before {
238
+ content: "\f00c";
239
+ font-family: FontAwesome;
240
+ font-size: 12px;
241
+ -webkit-font-smoothing: antialiased;
242
+ text-align: center;
243
+ line-height: 12px;
244
+ color: #00a8e6;
245
+ }
246
+ &[type=radio]:disabled, &[type=checkbox]:disabled {
247
+ border-color: #dddddd;
248
+ }
249
+ &[type=radio]:disabled:checked:before {
250
+ background-color: #aaaaaa;
251
+ }
252
+ &[type=checkbox]:disabled:checked:before {
253
+ color: #aaaaaa;
254
+ }
255
+ }
256
+
257
+ /* Radio */
258
+
259
+ /*
260
+ * Checked
261
+ */
262
+
263
+ /* Radio */
264
+
265
+ /* Checkbox */
266
+
267
+ /*
268
+ * Disabled
269
+ */
270
+
271
+ /* ========================================================================
272
+ Component: Form file
273
+ ========================================================================== */
274
+ /*
275
+ * 1. Behave like form elements
276
+ * 2. Create position context for dropdowns
277
+ * 3. Clip content
278
+ */
279
+
280
+ .uk-form-file {
281
+ /* 1 */
282
+ display: inline-block;
283
+ vertical-align: middle;
284
+ /* 2 */
285
+ position: relative;
286
+ /* 3 */
287
+ overflow: hidden;
288
+ input[type="file"] {
289
+ position: absolute;
290
+ top: 0;
291
+ z-index: 1;
292
+ width: 100%;
293
+ opacity: 0;
294
+ cursor: pointer;
295
+ /* 1 */
296
+ left: 0;
297
+ /* 2 */
298
+ font-size: 500px;
299
+ }
300
+ }
301
+
302
+ /*
303
+ * 1. Required for Firefox
304
+ * 2. Expand height and required for the cursor
305
+ */
306
+
307
+ /* ========================================================================
308
+ Component: Form password
309
+ ========================================================================== */
310
+
311
+ .uk-form-password {
312
+ position: relative;
313
+ display: inline-block;
314
+ max-width: 100%;
315
+ }
316
+
317
+ .uk-form-password-toggle {
318
+ display: block;
319
+ position: absolute;
320
+ top: 50%;
321
+ right: 10px;
322
+ margin-top: -6px;
323
+ font-size: 13px;
324
+ line-height: 13px;
325
+ color: #999999;
326
+ &:hover {
327
+ color: #999999;
328
+ text-decoration: none;
329
+ }
330
+ }
331
+
332
+ .uk-form-password > input {
333
+ padding-right: 50px !important;
334
+ }
335
+
336
+ /* ========================================================================
337
+ Component: Form select
338
+ ========================================================================== */
339
+ /*
340
+ * 1. Behave like form elements
341
+ * 2. Create position context for dropdowns
342
+ * 3. Clip content
343
+ */
344
+
345
+ .uk-form-select {
346
+ /* 1 */
347
+ display: inline-block;
348
+ vertical-align: middle;
349
+ /* 2 */
350
+ position: relative;
351
+ /* 3 */
352
+ overflow: hidden;
353
+ select {
354
+ position: absolute;
355
+ top: 0;
356
+ z-index: 1;
357
+ width: 100%;
358
+ height: 100%;
359
+ opacity: 0;
360
+ cursor: pointer;
361
+ /* 1 */
362
+ left: 0;
363
+ /* 2 */
364
+ -webkit-appearance: none;
365
+ }
366
+ }
367
+
368
+ /*
369
+ * 1. Required for Firefox
370
+ * 1. Required for Webkit to make `height` work
371
+ */
372
+
373
+ /* ========================================================================
374
+ Component: Placeholder
375
+ ========================================================================== */
376
+
377
+ .uk-placeholder {
378
+ margin-bottom: 15px;
379
+ padding: 20px;
380
+ border: 1px dashed #dddddd;
381
+ background: #fafafa;
382
+ color: #444444;
383
+ }
384
+
385
+ /*
386
+ * Add margin if adjacent element
387
+ */
388
+
389
+ * + .uk-placeholder {
390
+ margin-top: 15px;
391
+ }
392
+
393
+ /*
394
+ * Remove margin from the last-child
395
+ */
396
+
397
+ .uk-placeholder > :last-child {
398
+ margin-bottom: 0;
399
+ }
400
+
401
+ /* Modifier: `uk-placeholder-large`
402
+ ========================================================================== */
403
+
404
+ .uk-placeholder-large {
405
+ padding-top: 80px;
406
+ padding-bottom: 80px;
407
+ }
408
+
409
+ /* ========================================================================
410
+ Component: Autocomplete
411
+ ========================================================================== */
412
+ /*
413
+ * 1. Behave like form elements
414
+ * 2. Create position context for dropdowns
415
+ */
416
+
417
+ .uk-autocomplete {
418
+ /* 1 */
419
+ display: inline-block;
420
+ vertical-align: middle;
421
+ /* 2 */
422
+ position: relative;
423
+ }
424
+
425
+ /* Nav modifier `uk-nav-autocomplete`
426
+ ========================================================================== */
427
+ /*
428
+ * Items
429
+ */
430
+
431
+ .uk-nav-autocomplete {
432
+ > li {
433
+ > a {
434
+ color: #444444;
435
+ }
436
+ &.uk-active > a {
437
+ background: #00a8e6;
438
+ color: #ffffff;
439
+ /* 1 */
440
+ outline: none;
441
+ box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
442
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1);
443
+ }
444
+ }
445
+ .uk-nav-header {
446
+ color: #999999;
447
+ }
448
+ .uk-nav-divider {
449
+ border-top: 1px solid #dddddd;
450
+ }
451
+ }
452
+
453
+ /*
454
+ * Active
455
+ * 1. Remove default focus style
456
+ */
457
+
458
+ /*
459
+ * Sub-object: `uk-nav-header`
460
+ */
461
+
462
+ /*
463
+ * Sub-object: `uk-nav-divider`
464
+ */
465
+
466
+ /* ========================================================================
467
+ Component: Datepicker
468
+ ========================================================================== */
469
+ /*
470
+ * Reset dropdown width
471
+ */
472
+
473
+ .uk-datepicker {
474
+ width: auto;
475
+ }
476
+
477
+ /* Sub-object: `uk-datepicker-nav`
478
+ ========================================================================== */
479
+
480
+ .uk-datepicker-nav {
481
+ margin-bottom: 15px;
482
+ text-align: center;
483
+ line-height: 20px;
484
+ &:before {
485
+ content: " ";
486
+ display: table;
487
+ }
488
+ &:after {
489
+ content: " ";
490
+ display: table;
491
+ clear: both;
492
+ }
493
+ a {
494
+ color: #444444;
495
+ text-decoration: none;
496
+ &:hover {
497
+ color: #444444;
498
+ }
499
+ }
500
+ }
501
+
502
+ /*
503
+ * Micro clearfix
504
+ */
505
+
506
+ /*
507
+ * Previous and next navigation
508
+ */
509
+
510
+ .uk-datepicker-previous {
511
+ float: left;
512
+ }
513
+
514
+ .uk-datepicker-next {
515
+ float: right;
516
+ }
517
+
518
+ .uk-datepicker-previous:after, .uk-datepicker-next:after {
519
+ width: 20px;
520
+ font-family: FontAwesome;
521
+ }
522
+
523
+ .uk-datepicker-previous:after {
524
+ content: "\f053";
525
+ }
526
+
527
+ .uk-datepicker-next:after {
528
+ content: "\f054";
529
+ }
530
+
531
+ /* Sub-object: `uk-datepicker-heading`
532
+ ========================================================================== */
533
+ /* Sub-object: `uk-datepicker-table`
534
+ ========================================================================== */
535
+ /* Block element behavior */
536
+
537
+ .uk-datepicker-table {
538
+ width: 100%;
539
+ th, td {
540
+ padding: 2px;
541
+ }
542
+ th {
543
+ font-size: 12px;
544
+ }
545
+ a {
546
+ display: block;
547
+ width: 26px;
548
+ line-height: 24px;
549
+ text-align: center;
550
+ color: #444444;
551
+ text-decoration: none;
552
+ border: 1px solid transparent;
553
+ border-radius: 4px;
554
+ }
555
+ }
556
+
557
+ /*
558
+ * Item
559
+ */
560
+
561
+ /*
562
+ * Sub-object: `uk-datepicker-table-muted`
563
+ */
564
+
565
+ a.uk-datepicker-table-muted {
566
+ color: #999999;
567
+ }
568
+
569
+ /*
570
+ * Hover
571
+ * 1. Apply hover style also to focus state
572
+ * 2. Remove default focus style
573
+ */
574
+
575
+ .uk-datepicker-table a {
576
+ &:hover, &:focus {
577
+ background-color: #fafafa;
578
+ color: #444444;
579
+ /* 2 */
580
+ outline: none;
581
+ border-color: rgba(0, 0, 0, 0.16);
582
+ text-shadow: 0 1px 0 #ffffff;
583
+ }
584
+ &:active {
585
+ background-color: #eeeeee;
586
+ color: #444444;
587
+ }
588
+ &.uk-active {
589
+ background: #00a8e6;
590
+ color: #ffffff;
591
+ box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
592
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1);
593
+ }
594
+ }
595
+
596
+ /* OnClick */
597
+
598
+ /*
599
+ * Active
600
+ */
601
+
602
+ /* ========================================================================
603
+ Component: HTML editor
604
+ ========================================================================== */
605
+ /* Sub-object `uk-htmleditor-navbar`
606
+ ========================================================================== */
607
+
608
+ .uk-htmleditor-navbar {
609
+ background: #f5f5f5;
610
+ border: 1px solid rgba(0, 0, 0, 0.06);
611
+ border-top-left-radius: 4px;
612
+ border-top-right-radius: 4px;
613
+ &:before {
614
+ content: " ";
615
+ display: table;
616
+ }
617
+ &:after {
618
+ content: " ";
619
+ display: table;
620
+ clear: both;
621
+ }
622
+ }
623
+
624
+ /*
625
+ * Micro clearfix
626
+ */
627
+
628
+ /* Sub-object `uk-htmleditor-navbar-nav`
629
+ ========================================================================== */
630
+
631
+ .uk-htmleditor-navbar-nav {
632
+ margin: 0;
633
+ padding: 0;
634
+ list-style: none;
635
+ float: left;
636
+ > li {
637
+ float: left;
638
+ > a {
639
+ display: block;
640
+ -moz-box-sizing: border-box;
641
+ box-sizing: border-box;
642
+ text-decoration: none;
643
+ /* 1 */
644
+ height: 41px;
645
+ padding: 0 15px;
646
+ line-height: 40px;
647
+ /* 2 */
648
+ color: #444444;
649
+ font-size: 11px;
650
+ cursor: pointer;
651
+ margin-top: -1px;
652
+ margin-left: -1px;
653
+ border: 1px solid transparent;
654
+ border-bottom-width: 0;
655
+ text-shadow: 0 1px 0 #ffffff;
656
+ }
657
+ &:hover > a {
658
+ background-color: #fafafa;
659
+ color: #444444;
660
+ outline: none;
661
+ /* 2 */
662
+ position: relative;
663
+ z-index: 1;
664
+ border-left-color: rgba(0, 0, 0, 0.1);
665
+ border-right-color: rgba(0, 0, 0, 0.1);
666
+ border-top-color: rgba(0, 0, 0, 0.1);
667
+ }
668
+ > a {
669
+ &:focus {
670
+ background-color: #fafafa;
671
+ color: #444444;
672
+ outline: none;
673
+ /* 2 */
674
+ position: relative;
675
+ z-index: 1;
676
+ border-left-color: rgba(0, 0, 0, 0.1);
677
+ border-right-color: rgba(0, 0, 0, 0.1);
678
+ border-top-color: rgba(0, 0, 0, 0.1);
679
+ }
680
+ &:active {
681
+ background-color: #eeeeee;
682
+ color: #444444;
683
+ border-left-color: rgba(0, 0, 0, 0.1);
684
+ border-right-color: rgba(0, 0, 0, 0.1);
685
+ border-top-color: rgba(0, 0, 0, 0.2);
686
+ }
687
+ }
688
+ &.uk-active > a {
689
+ background-color: #fafafa;
690
+ color: #444444;
691
+ border-left-color: rgba(0, 0, 0, 0.1);
692
+ border-right-color: rgba(0, 0, 0, 0.1);
693
+ border-top-color: rgba(0, 0, 0, 0.1);
694
+ }
695
+ }
696
+ }
697
+
698
+ /*
699
+ * 1. Dimensions
700
+ * 2. Style
701
+ */
702
+
703
+ /*
704
+ * Hover
705
+ * 1. Apply hover style also to focus state
706
+ * 2. Remove default focus style
707
+ */
708
+
709
+ /* OnClick */
710
+
711
+ /* Active */
712
+
713
+ /* Sub-object: `uk-htmleditor-navbar-flip`
714
+ ========================================================================== */
715
+
716
+ .uk-htmleditor-navbar-flip {
717
+ float: right;
718
+ }
719
+
720
+ /* Sub-object for special buttons
721
+ ========================================================================== */
722
+
723
+ [data-mode='split'] {
724
+ .uk-htmleditor-button-code, .uk-htmleditor-button-preview {
725
+ display: none;
726
+ }
727
+ }
728
+
729
+ /* Sub-object `uk-htmleditor-content`
730
+ ========================================================================== */
731
+
732
+ .uk-htmleditor-content {
733
+ border-left: 1px solid #dddddd;
734
+ border-right: 1px solid #dddddd;
735
+ border-bottom: 1px solid #dddddd;
736
+ background: #ffffff;
737
+ border-bottom-left-radius: 4px;
738
+ border-bottom-right-radius: 4px;
739
+ &:before {
740
+ content: " ";
741
+ display: table;
742
+ }
743
+ &:after {
744
+ content: " ";
745
+ display: table;
746
+ clear: both;
747
+ }
748
+ }
749
+
750
+ /*
751
+ * Micro clearfix
752
+ */
753
+
754
+ /* Modifier `uk-htmleditor-fullscreen`
755
+ ========================================================================== */
756
+
757
+ .uk-htmleditor-fullscreen {
758
+ position: fixed;
759
+ top: 0;
760
+ left: 0;
761
+ right: 0;
762
+ bottom: 0;
763
+ z-index: 990;
764
+ .uk-htmleditor-content {
765
+ position: absolute;
766
+ top: 41px;
767
+ left: 0;
768
+ right: 0;
769
+ bottom: 0;
770
+ }
771
+ .uk-icon-expand:before {
772
+ content: "\f066";
773
+ }
774
+ }
775
+
776
+ /* Sub-objects `uk-htmleditor-code` and `uk-htmleditor-preview`
777
+ ========================================================================== */
778
+
779
+ .uk-htmleditor-code {
780
+ -moz-box-sizing: border-box;
781
+ box-sizing: border-box;
782
+ }
783
+
784
+ .uk-htmleditor-preview {
785
+ -moz-box-sizing: border-box;
786
+ box-sizing: border-box;
787
+ padding: 20px;
788
+ overflow-y: scroll;
789
+ }
790
+
791
+ /*
792
+ * Tab view
793
+ */
794
+
795
+ [data-mode='tab'] {
796
+ &[data-active-tab='code'] .uk-htmleditor-preview, &[data-active-tab='preview'] .uk-htmleditor-code {
797
+ display: none;
798
+ }
799
+ }
800
+
801
+ /*
802
+ * Split view
803
+ */
804
+
805
+ [data-mode='split'] {
806
+ .uk-htmleditor-code, .uk-htmleditor-preview {
807
+ float: left;
808
+ width: 50%;
809
+ }
810
+ .uk-htmleditor-code {
811
+ border-right: 1px solid #eeeeee;
812
+ }
813
+ }
814
+
815
+ /* CodeMirror modifications
816
+ ========================================================================== */
817
+
818
+ .uk-htmleditor .CodeMirror {
819
+ padding: 10px;
820
+ -moz-box-sizing: border-box;
821
+ box-sizing: border-box;
822
+ }
823
+
824
+ /*
825
+ * Apply same `border-radius` as `uk-htmleditor-navbar`
826
+ */
827
+
828
+ .uk-htmleditor-navbar-nav:first-child > li:first-child > a {
829
+ border-top-left-radius: 4px;
830
+ }
831
+
832
+ /*
833
+ * Sub-modifier `uk-htmleditor-navbar-flip`
834
+ */
835
+ /* Collapse border */
836
+
837
+ .uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav {
838
+ > li > a {
839
+ margin-left: 0;
840
+ margin-right: -1px;
841
+ }
842
+ &:first-child > li:first-child > a {
843
+ border-top-left-radius: 0;
844
+ }
845
+ &:last-child > li:last-child > a {
846
+ border-top-right-radius: 4px;
847
+ }
848
+ }
849
+
850
+ /* Apply same `border-radius` as `uk-htmleditor-navbar` */
851
+
852
+ /*
853
+ * Sub-modifier `uk-htmleditor-fullscreen`
854
+ */
855
+
856
+ .uk-htmleditor-fullscreen {
857
+ .uk-htmleditor-navbar {
858
+ border-top: none;
859
+ border-left: none;
860
+ border-right: none;
861
+ border-radius: 0;
862
+ }
863
+ .uk-htmleditor-content {
864
+ border: none;
865
+ border-radius: 0;
866
+ }
867
+ .uk-htmleditor-navbar-nav > li > a {
868
+ border-radius: 0 !important;
869
+ }
870
+ }
871
+
872
+ /* ========================================================================
873
+ Component: Nestable
874
+ ========================================================================== */
875
+
876
+ .uk-nestable {
877
+ padding: 0;
878
+ list-style: none;
879
+ }
880
+
881
+ /* Sub-object `uk-nestable-list`
882
+ ========================================================================== */
883
+
884
+ .uk-nestable-list {
885
+ margin: 0;
886
+ padding-left: 40px;
887
+ list-style: none;
888
+ }
889
+
890
+ /* Sub-modifier `uk-nestable-list-dragged`
891
+ ========================================================================== */
892
+
893
+ .uk-nestable-list-dragged {
894
+ position: absolute;
895
+ z-index: 1050;
896
+ padding-left: 0;
897
+ pointer-events: none;
898
+ }
899
+
900
+ /* Sub-object `uk-nestable-item`
901
+ ========================================================================== */
902
+
903
+ .uk-nestable-item {
904
+ margin-bottom: 10px;
905
+ padding: 5px;
906
+ background: #f5f5f5;
907
+ border-radius: 4px;
908
+ border: 1px solid rgba(0, 0, 0, 0.06);
909
+ text-shadow: 0 1px 0 #ffffff;
910
+ }
911
+
912
+ /* Sub-object `uk-nestable-placeholder`
913
+ * The placeholder which marks the drop area
914
+ ========================================================================== */
915
+
916
+ .uk-nestable-placeholder {
917
+ -moz-box-sizing: border-box;
918
+ box-sizing: border-box;
919
+ margin-bottom: 10px;
920
+ border: 1px dashed #dddddd;
921
+ }
922
+
923
+ /* Sub-object `uk-nestable-empty`
924
+ * The style of an empty list
925
+ ========================================================================== */
926
+
927
+ .uk-nestable-empty {
928
+ min-height: 40px;
929
+ }
930
+
931
+ /* Sub-object `uk-nestable-handle`
932
+ ========================================================================== */
933
+
934
+ .uk-nestable-handle {
935
+ display: inline-block;
936
+ font-size: 18px;
937
+ color: #dddddd;
938
+ &:hover {
939
+ cursor: move;
940
+ }
941
+ &:after {
942
+ content: "\f0c9";
943
+ font-family: FontAwesome;
944
+ }
945
+ }
946
+
947
+ /* Hover */
948
+
949
+ /* Icon */
950
+
951
+ /* Sub-object `uk-nestable-moving`
952
+ ========================================================================== */
953
+
954
+ .uk-nestable-moving {
955
+ cursor: move;
956
+ * {
957
+ cursor: move;
958
+ }
959
+ }
960
+
961
+ /* Sub-object `[data-action='toggle']`
962
+ ========================================================================== */
963
+ /* Hidden by default */
964
+
965
+ [data-nestable-action='toggle'] {
966
+ display: inline-block;
967
+ color: #999999;
968
+ visibility: hidden;
969
+ &:hover {
970
+ color: #444444;
971
+ cursor: pointer;
972
+ }
973
+ &:after {
974
+ content: "\f147";
975
+ font-family: FontAwesome;
976
+ }
977
+ }
978
+
979
+ /* Hover */
980
+
981
+ /* Icon */
982
+
983
+ /*
984
+ * Show if nested
985
+ */
986
+
987
+ .uk-parent > .uk-nestable-item [data-nestable-action='toggle'] {
988
+ visibility: visible;
989
+ }
990
+
991
+ /*
992
+ * Collapsed
993
+ */
994
+
995
+ .uk-collapsed {
996
+ > .uk-nestable-item [data-nestable-action='toggle']:after {
997
+ content: "\f196";
998
+ }
999
+ .uk-nestable-list {
1000
+ display: none;
1001
+ }
1002
+ }
1003
+
1004
+ /* ========================================================================
1005
+ Component: Notify
1006
+ ========================================================================== */
1007
+ /*
1008
+ * Message container for positioning
1009
+ */
1010
+
1011
+ .uk-notify {
1012
+ position: fixed;
1013
+ top: 10px;
1014
+ left: 10px;
1015
+ z-index: 1040;
1016
+ -moz-box-sizing: border-box;
1017
+ box-sizing: border-box;
1018
+ width: 350px;
1019
+ }
1020
+
1021
+ /* Position modifiers
1022
+ ========================================================================== */
1023
+
1024
+ .uk-notify-top-right, .uk-notify-bottom-right {
1025
+ left: auto;
1026
+ right: 10px;
1027
+ }
1028
+
1029
+ .uk-notify-top-center, .uk-notify-bottom-center {
1030
+ left: 50%;
1031
+ margin-left: -175px;
1032
+ }
1033
+
1034
+ .uk-notify-bottom-left, .uk-notify-bottom-right, .uk-notify-bottom-center {
1035
+ top: auto;
1036
+ bottom: 10px;
1037
+ }
1038
+
1039
+ /* Responsiveness
1040
+ ========================================================================== */
1041
+ /* Phones portrait and smaller */
1042
+ @media (max-width: 479px) {
1043
+ /*
1044
+ * Fit in small screen
1045
+ */
1046
+ .uk-notify {
1047
+ left: 10px;
1048
+ right: 10px;
1049
+ width: auto;
1050
+ margin: 0;
1051
+ }
1052
+ }
1053
+
1054
+ /* Sub-object: `uk-notify-message`
1055
+ ========================================================================== */
1056
+
1057
+ .uk-notify-message {
1058
+ position: relative;
1059
+ margin-bottom: 10px;
1060
+ padding: 15px;
1061
+ background: #444444;
1062
+ color: #ffffff;
1063
+ font-size: 16px;
1064
+ line-height: 22px;
1065
+ cursor: pointer;
1066
+ border: 1px solid #444444;
1067
+ border-radius: 4px;
1068
+ > .uk-close {
1069
+ visibility: hidden;
1070
+ float: right;
1071
+ }
1072
+ &:hover > .uk-close {
1073
+ visibility: visible;
1074
+ }
1075
+ }
1076
+
1077
+ /* Close in notify
1078
+ ========================================================================== */
1079
+
1080
+ /* Modifier: `uk-alert-info`
1081
+ ========================================================================== */
1082
+
1083
+ .uk-notify-message-primary {
1084
+ background: #ebf7fd;
1085
+ color: #2d7091;
1086
+ border-color: rgba(45, 112, 145, 0.3);
1087
+ }
1088
+
1089
+ /* Modifier: `uk-alert-success`
1090
+ ========================================================================== */
1091
+
1092
+ .uk-notify-message-success {
1093
+ background: #f2fae3;
1094
+ color: #659f13;
1095
+ border-color: rgba(101, 159, 19, 0.3);
1096
+ }
1097
+
1098
+ /* Modifier: `uk-notify-message-warning`
1099
+ ========================================================================== */
1100
+
1101
+ .uk-notify-message-warning {
1102
+ background: #fffceb;
1103
+ color: #e28327;
1104
+ border-color: rgba(226, 131, 39, 0.3);
1105
+ }
1106
+
1107
+ /* Modifier: `uk-notify-message-danger`
1108
+ ========================================================================== */
1109
+
1110
+ .uk-notify-message-danger {
1111
+ background: #fff1f0;
1112
+ color: #d85030;
1113
+ border-color: rgba(216, 80, 48, 0.3);
1114
+ }
1115
+
1116
+ /* ========================================================================
1117
+ Component: Search
1118
+ ========================================================================== */
1119
+ /*
1120
+ * 1. Create position context for dropdowns
1121
+ * 2. Needed for `form` element
1122
+ */
1123
+
1124
+ .uk-search {
1125
+ display: inline-block;
1126
+ /* 1 */
1127
+ position: relative;
1128
+ /* 2 */
1129
+ margin: 0;
1130
+ &:before {
1131
+ content: "\f002";
1132
+ position: absolute;
1133
+ top: 0;
1134
+ left: 0;
1135
+ width: 30px;
1136
+ line-height: 30px;
1137
+ text-align: center;
1138
+ font-family: FontAwesome;
1139
+ font-size: 14px;
1140
+ color: rgba(0, 0, 0, 0.2);
1141
+ }
1142
+ }
1143
+
1144
+ /*
1145
+ * Icon
1146
+ */
1147
+
1148
+ /* Sub-object `uk-search-field`
1149
+ ========================================================================== */
1150
+ /*
1151
+ * 1. Needed to reset iOS `input[type="search"]` appearance
1152
+ */
1153
+
1154
+ .uk-search-field {
1155
+ width: 120px;
1156
+ height: 30px;
1157
+ padding: 0 30px;
1158
+ border: 1px solid rgba(0, 0, 0, 0);
1159
+ background: rgba(0, 0, 0, 0);
1160
+ color: #444444;
1161
+ -webkit-transition: all linear 0.2s;
1162
+ transition: all linear 0.2s;
1163
+ /* 1 */
1164
+ border-radius: 0;
1165
+ }
1166
+
1167
+ /*
1168
+ * Needed to reset iOS `input[type="search"]` appearance
1169
+ * Higher specificity to override appearance set by normalize.less
1170
+ */
1171
+
1172
+ input.uk-search-field {
1173
+ -webkit-appearance: none;
1174
+ }
1175
+
1176
+ /* Placeholder */
1177
+
1178
+ .uk-search-field {
1179
+ &:-ms-input-placeholder, &::-moz-placeholder, &::-webkit-input-placeholder {
1180
+ color: #999999;
1181
+ }
1182
+ &::-ms-clear {
1183
+ display: none;
1184
+ }
1185
+ &:focus {
1186
+ outline: 0;
1187
+ width: 180px;
1188
+ }
1189
+ }
1190
+
1191
+ /* Removes cancel button in IE10 */
1192
+
1193
+ /* Focus */
1194
+
1195
+ /* Focus + active */
1196
+
1197
+ .uk-search.uk-active .uk-search-field {
1198
+ width: 180px;
1199
+ }
1200
+
1201
+ /* Sub-object `uk-search-close`
1202
+ ========================================================================== */
1203
+ /*
1204
+ * 1. Required for `button` elements
1205
+ * 2. Needed for Safari
1206
+ */
1207
+
1208
+ .uk-search-close {
1209
+ display: none;
1210
+ position: absolute;
1211
+ top: 0;
1212
+ right: 0;
1213
+ width: 30px;
1214
+ line-height: 30px;
1215
+ text-align: center;
1216
+ font-size: 14px;
1217
+ color: rgba(0, 0, 0, 0.2);
1218
+ /* 1. */
1219
+ padding: 0;
1220
+ border: 0;
1221
+ -webkit-appearance: none;
1222
+ /* 2. */
1223
+ background: transparent;
1224
+ }
1225
+
1226
+ .uk-loading > .uk-search-close, .uk-active > .uk-search-close {
1227
+ display: block;
1228
+ }
1229
+
1230
+ /*
1231
+ * Icon
1232
+ */
1233
+
1234
+ .uk-search-close:after {
1235
+ display: block;
1236
+ content: "\f00d";
1237
+ font-family: FontAwesome;
1238
+ }
1239
+
1240
+ /* Loading icon */
1241
+
1242
+ .uk-loading > .uk-search-close:after {
1243
+ content: "\f110";
1244
+ -webkit-animation: uk-spin 2s infinite linear;
1245
+ animation: uk-spin 2s infinite linear;
1246
+ }
1247
+
1248
+ /* Dropdown modifier: `uk-dropdown-search`
1249
+ ========================================================================== */
1250
+
1251
+ .uk-dropdown-search {
1252
+ width: 300px;
1253
+ margin-top: 0;
1254
+ background: #ffffff;
1255
+ color: #444444;
1256
+ }
1257
+
1258
+ .uk-open > .uk-dropdown-search {
1259
+ -webkit-animation: uk-slide-top-fixed 0.2s ease-in-out;
1260
+ animation: uk-slide-top-fixed 0.2s ease-in-out;
1261
+ }
1262
+
1263
+ /*
1264
+ * Dependency `uk-navbar-flip`
1265
+ */
1266
+
1267
+ .uk-navbar-flip .uk-dropdown-search {
1268
+ margin-top: 12px;
1269
+ margin-right: -16px;
1270
+ }
1271
+
1272
+ /* Nav modifier `uk-nav-search`
1273
+ ========================================================================== */
1274
+ /*
1275
+ * Items
1276
+ */
1277
+
1278
+ .uk-nav-search {
1279
+ > li {
1280
+ > a {
1281
+ color: #444444;
1282
+ }
1283
+ &.uk-active > a {
1284
+ background: #00a8e6;
1285
+ color: #ffffff;
1286
+ /* 1 */
1287
+ outline: none;
1288
+ box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
1289
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1);
1290
+ }
1291
+ }
1292
+ .uk-nav-header {
1293
+ color: #999999;
1294
+ }
1295
+ .uk-nav-divider {
1296
+ border-top: 1px solid #dddddd;
1297
+ }
1298
+ ul a {
1299
+ color: #0077dd;
1300
+ &:hover {
1301
+ color: #005599;
1302
+ }
1303
+ }
1304
+ }
1305
+
1306
+ /*
1307
+ * Active
1308
+ * 1. Remove default focus style
1309
+ */
1310
+
1311
+ /*
1312
+ * Sub-object: `uk-nav-header`
1313
+ */
1314
+
1315
+ /*
1316
+ * Sub-object: `uk-nav-divider`
1317
+ */
1318
+
1319
+ /*
1320
+ * Nested items
1321
+ */
1322
+
1323
+ /* Search in offcanvas
1324
+ ========================================================================== */
1325
+
1326
+ .uk-offcanvas {
1327
+ .uk-search {
1328
+ display: block;
1329
+ margin: 20px 15px;
1330
+ &:before {
1331
+ color: #777777;
1332
+ }
1333
+ }
1334
+ .uk-search-field {
1335
+ width: 100%;
1336
+ border-color: rgba(0, 0, 0, 0);
1337
+ background: #1a1a1a;
1338
+ color: #cccccc;
1339
+ &:-ms-input-placeholder, &::-moz-placeholder, &::-webkit-input-placeholder {
1340
+ color: #777777;
1341
+ }
1342
+ }
1343
+ }
1344
+
1345
+ /* ========================================================================
1346
+ Component: Sortable
1347
+ ========================================================================== */
1348
+
1349
+ .uk-sortable {
1350
+ position: relative;
1351
+ > * {
1352
+ -moz-user-select: none;
1353
+ -webkit-user-select: none;
1354
+ -ms-user-select: none;
1355
+ user-select: none;
1356
+ * {
1357
+ -webkit-user-drag: none;
1358
+ user-drag: none;
1359
+ }
1360
+ }
1361
+ }
1362
+
1363
+ /*
1364
+ * Makes text unselectable
1365
+ */
1366
+
1367
+ /*
1368
+ * Prevents images and links from being dragged (default browser behavior)
1369
+ * Currently only works in Webkit
1370
+ */
1371
+
1372
+ /* Sub-modifier `uk-sortable-dragged`
1373
+ ========================================================================== */
1374
+
1375
+ .uk-sortable-dragged {
1376
+ position: absolute;
1377
+ z-index: 1050;
1378
+ pointer-events: none;
1379
+ }
1380
+
1381
+ /* Sub-modifier `uk-sortable-placeholder`
1382
+ ========================================================================== */
1383
+
1384
+ .uk-sortable-placeholder {
1385
+ opacity: 0;
1386
+ }
1387
+
1388
+ /* Sub-modifier `uk-sortable-over`
1389
+ * Only if `warp:true`
1390
+ ========================================================================== */
1391
+
1392
+ .uk-sortable-over {
1393
+ opacity: 0.3;
1394
+ }
1395
+
1396
+ /* Sub-object `uk-nestable-moving`
1397
+ ========================================================================== */
1398
+
1399
+ .uk-sortable-moving {
1400
+ cursor: move;
1401
+ * {
1402
+ cursor: move;
1403
+ }
1404
+ }
1405
+
1406
+ /* ========================================================================
1407
+ Component: Sticky
1408
+ ========================================================================== */
1409
+
1410
+ .uk-sticky {
1411
+ z-index: 980;
1412
+ }
1413
+
1414
+ /* ========================================================================
1415
+ Component: Upload
1416
+ ========================================================================== */
1417
+ /*
1418
+ * Create a box-shadow when dragging a file over the upload area
1419
+ */
1420
+
1421
+ .uk-dragover {
1422
+ box-shadow: 0 0 20px rgba(100, 100, 100, 0.3);
1423
+ }