anc 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/_sass/anc.scss +9 -0
  3. data/_sass/anc/_base.scss +144 -0
  4. data/_sass/anc/_layout.scss +0 -0
  5. data/_sass/anc/_materialize.scss +42 -0
  6. data/_sass/anc/_syntax-highlighting.scss +78 -0
  7. data/_sass/anc/components/_variables.scss +343 -0
  8. data/_sass/materialize/components/_badges.scss +47 -0
  9. data/_sass/materialize/components/_buttons.scss +291 -0
  10. data/_sass/materialize/components/_cards.scss +196 -0
  11. data/_sass/materialize/components/_carousel.scss +90 -0
  12. data/_sass/materialize/components/_chips.scss +89 -0
  13. data/_sass/materialize/components/_collapsible.scss +84 -0
  14. data/_sass/materialize/components/_color.scss +412 -0
  15. data/_sass/materialize/components/_dropdown.scss +68 -0
  16. data/_sass/materialize/components/_global.scss +734 -0
  17. data/_sass/materialize/components/_grid.scss +156 -0
  18. data/_sass/materialize/components/_icons-material-design.scss +5 -0
  19. data/_sass/materialize/components/_materialbox.scss +43 -0
  20. data/_sass/materialize/components/_modal.scss +90 -0
  21. data/_sass/materialize/components/_navbar.scss +208 -0
  22. data/_sass/materialize/components/_normalize.scss +424 -0
  23. data/_sass/materialize/components/_preloader.scss +334 -0
  24. data/_sass/materialize/components/_pulse.scss +34 -0
  25. data/_sass/materialize/components/_roboto.scss +39 -0
  26. data/_sass/materialize/components/_sideNav.scss +214 -0
  27. data/_sass/materialize/components/_slider.scss +92 -0
  28. data/_sass/materialize/components/_table_of_contents.scss +33 -0
  29. data/_sass/materialize/components/_tabs.scss +93 -0
  30. data/_sass/materialize/components/_tapTarget.scss +103 -0
  31. data/_sass/materialize/components/_toast.scss +59 -0
  32. data/_sass/materialize/components/_tooltip.scss +31 -0
  33. data/_sass/materialize/components/_transitions.scss +13 -0
  34. data/_sass/materialize/components/_typography.scss +61 -0
  35. data/_sass/materialize/components/_variables.scss +343 -0
  36. data/_sass/materialize/components/_waves.scss +114 -0
  37. data/_sass/materialize/components/date_picker/_default.date.scss +456 -0
  38. data/_sass/materialize/components/date_picker/_default.scss +212 -0
  39. data/_sass/materialize/components/date_picker/_default.time.scss +267 -0
  40. data/_sass/materialize/components/forms/_checkboxes.scss +210 -0
  41. data/_sass/materialize/components/forms/_file-input.scss +44 -0
  42. data/_sass/materialize/components/forms/_forms.scss +22 -0
  43. data/_sass/materialize/components/forms/_input-fields.scss +333 -0
  44. data/_sass/materialize/components/forms/_radio-buttons.scss +115 -0
  45. data/_sass/materialize/components/forms/_range.scss +160 -0
  46. data/_sass/materialize/components/forms/_select.scss +182 -0
  47. data/_sass/materialize/components/forms/_switches.scss +89 -0
  48. data/_sass/materialize/materialize.scss +42 -0
  49. metadata +48 -1
@@ -0,0 +1,68 @@
1
+ .dropdown-content {
2
+ @extend .z-depth-1;
3
+ background-color: $dropdown-bg-color;
4
+ margin: 0;
5
+ display: none;
6
+ min-width: 100px;
7
+ max-height: 650px;
8
+ overflow-y: auto;
9
+ opacity: 0;
10
+ position: absolute;
11
+ z-index: 999;
12
+ will-change: width, height;
13
+
14
+ li {
15
+ clear: both;
16
+ color: $off-black;
17
+ cursor: pointer;
18
+ min-height: $dropdown-item-height;
19
+ line-height: 1.5rem;
20
+ width: 100%;
21
+ text-align: left;
22
+ text-transform: none;
23
+
24
+ &:hover, &.active, &.selected {
25
+ background-color: $dropdown-hover-bg-color;
26
+ }
27
+
28
+ &.active.selected {
29
+ background-color: darken($dropdown-hover-bg-color, 5%);
30
+ }
31
+
32
+ &.divider {
33
+ min-height: 0;
34
+ height: 1px;
35
+ }
36
+
37
+ & > a, & > span {
38
+ font-size: 16px;
39
+ color: $dropdown-color;
40
+ display: block;
41
+ line-height: 22px;
42
+ padding: (($dropdown-item-height - 22) / 2) 16px;
43
+ }
44
+
45
+ & > span > label {
46
+ top: 1px;
47
+ left: 0;
48
+ height: 18px;
49
+ }
50
+
51
+ // Icon alignment override
52
+ & > a > i {
53
+ height: inherit;
54
+ line-height: inherit;
55
+ float: left;
56
+ margin: 0 24px 0 0;
57
+ width: 24px;
58
+ }
59
+ }
60
+ }
61
+
62
+ // Input field specificity bugfix
63
+ .input-field.col .dropdown-content [type="checkbox"] + label {
64
+ top: 1px;
65
+ left: 0;
66
+ height: 18px;
67
+ }
68
+
@@ -0,0 +1,734 @@
1
+ //Default styles
2
+
3
+ html {
4
+ box-sizing: border-box;
5
+ }
6
+ *, *:before, *:after {
7
+ box-sizing: inherit;
8
+ }
9
+
10
+ body {
11
+ // display: flex;
12
+ // min-height: 100vh;
13
+ // flex-direction: column;
14
+ }
15
+
16
+ main {
17
+ // flex: 1 0 auto;
18
+ }
19
+
20
+ ul {
21
+ &:not(.browser-default) {
22
+ padding-left: 0;
23
+ list-style-type: none;
24
+
25
+ & > li {
26
+ list-style-type: none;
27
+ }
28
+ }
29
+ }
30
+
31
+ a {
32
+ color: $link-color;
33
+ text-decoration: none;
34
+
35
+ // Gets rid of tap active state
36
+ -webkit-tap-highlight-color: transparent;
37
+ }
38
+
39
+
40
+ // Positioning
41
+ .valign-wrapper {
42
+ display: flex;
43
+ align-items: center;
44
+ }
45
+
46
+
47
+ // classic clearfix
48
+ .clearfix {
49
+ clear: both;
50
+ }
51
+
52
+
53
+ // Z-levels
54
+ .z-depth-0 {
55
+ box-shadow: none !important;
56
+ }
57
+ .z-depth-1 {
58
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
59
+ }
60
+ .z-depth-1-half {
61
+ box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2);
62
+ }
63
+ .z-depth-2 {
64
+ box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
65
+ }
66
+ .z-depth-3 {
67
+ box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.3);
68
+ }
69
+ .z-depth-4 {
70
+ box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.3);
71
+ }
72
+ .z-depth-5 {
73
+ box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.3);
74
+ }
75
+
76
+ .hoverable {
77
+ transition: box-shadow .25s;
78
+
79
+ &:hover {
80
+ box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
81
+ }
82
+ }
83
+
84
+ // Dividers
85
+
86
+ .divider {
87
+ height: 1px;
88
+ overflow: hidden;
89
+ background-color: color("grey", "lighten-2");
90
+ }
91
+
92
+
93
+ // Blockquote
94
+
95
+ blockquote {
96
+ margin: 20px 0;
97
+ padding-left: 1.5rem;
98
+ border-left: 5px solid $primary-color;
99
+ }
100
+
101
+ // Icon Styles
102
+
103
+ i {
104
+ line-height: inherit;
105
+
106
+ &.left {
107
+ float: left;
108
+ margin-right: 15px;
109
+ }
110
+ &.right {
111
+ float: right;
112
+ margin-left: 15px;
113
+ }
114
+ &.tiny {
115
+ font-size: 1rem;
116
+ }
117
+ &.small {
118
+ font-size: 2rem;
119
+ }
120
+ &.medium {
121
+ font-size: 4rem;
122
+ }
123
+ &.large {
124
+ font-size: 6rem;
125
+ }
126
+ }
127
+
128
+ // Images
129
+ img.responsive-img,
130
+ video.responsive-video {
131
+ max-width: 100%;
132
+ height: auto;
133
+ }
134
+
135
+
136
+ // Pagination
137
+
138
+ .pagination {
139
+
140
+ li {
141
+ display: inline-block;
142
+ border-radius: 2px;
143
+ text-align: center;
144
+ vertical-align: top;
145
+ height: 30px;
146
+
147
+ a {
148
+ color: #444;
149
+ display: inline-block;
150
+ font-size: 1.2rem;
151
+ padding: 0 10px;
152
+ line-height: 30px;
153
+ }
154
+
155
+ &.active a { color: #fff; }
156
+
157
+ &.active { background-color: $primary-color; }
158
+
159
+ &.disabled a {
160
+ cursor: default;
161
+ color: #999;
162
+ }
163
+
164
+ i {
165
+ font-size: 2rem;
166
+ }
167
+ }
168
+
169
+
170
+ li.pages ul li {
171
+ display: inline-block;
172
+ float: none;
173
+ }
174
+ }
175
+ @media #{$medium-and-down} {
176
+ .pagination {
177
+ width: 100%;
178
+
179
+ li.prev,
180
+ li.next {
181
+ width: 10%;
182
+ }
183
+
184
+ li.pages {
185
+ width: 80%;
186
+ overflow: hidden;
187
+ white-space: nowrap;
188
+ }
189
+ }
190
+ }
191
+
192
+ // Breadcrumbs
193
+ .breadcrumb {
194
+ font-size: 18px;
195
+ color: rgba(255,255,255, .7);
196
+
197
+ i,
198
+ [class^="mdi-"], [class*="mdi-"],
199
+ i.material-icons {
200
+ display: inline-block;
201
+ float: left;
202
+ font-size: 24px;
203
+ }
204
+
205
+ &:before {
206
+ content: '\E5CC';
207
+ color: rgba(255,255,255, .7);
208
+ vertical-align: top;
209
+ display: inline-block;
210
+ font-family: 'Material Icons';
211
+ font-weight: normal;
212
+ font-style: normal;
213
+ font-size: 25px;
214
+ margin: 0 10px 0 8px;
215
+ -webkit-font-smoothing: antialiased;
216
+ }
217
+
218
+ &:first-child:before {
219
+ display: none;
220
+ }
221
+
222
+ &:last-child {
223
+ color: #fff;
224
+ }
225
+ }
226
+
227
+ // Parallax
228
+ .parallax-container {
229
+ position: relative;
230
+ overflow: hidden;
231
+ height: 500px;
232
+
233
+ .parallax {
234
+ position: absolute;
235
+ top: 0;
236
+ left: 0;
237
+ right: 0;
238
+ bottom: 0;
239
+ z-index: -1;
240
+
241
+ img {
242
+ display: none;
243
+ position: absolute;
244
+ left: 50%;
245
+ bottom: 0;
246
+ min-width: 100%;
247
+ min-height: 100%;
248
+ transform: translate3d(0,0,0);
249
+ transform: translateX(-50%);
250
+ }
251
+ }
252
+ }
253
+
254
+ // Pushpin
255
+ .pin-top, .pin-bottom {
256
+ position: relative;
257
+ }
258
+ .pinned {
259
+ position: fixed !important;
260
+ }
261
+
262
+ /*********************
263
+ Transition Classes
264
+ **********************/
265
+
266
+ ul.staggered-list li {
267
+ opacity: 0;
268
+ }
269
+
270
+ .fade-in {
271
+ opacity: 0;
272
+ transform-origin: 0 50%;
273
+ }
274
+
275
+
276
+ /*********************
277
+ Media Query Classes
278
+ **********************/
279
+ .hide-on-small-only, .hide-on-small-and-down {
280
+ @media #{$small-and-down} {
281
+ display: none !important;
282
+ }
283
+ }
284
+ .hide-on-med-and-down {
285
+ @media #{$medium-and-down} {
286
+ display: none !important;
287
+ }
288
+ }
289
+ .hide-on-med-and-up {
290
+ @media #{$medium-and-up} {
291
+ display: none !important;
292
+ }
293
+ }
294
+ .hide-on-med-only {
295
+ @media only screen and (min-width: $small-screen) and (max-width: $medium-screen) {
296
+ display: none !important;
297
+ }
298
+ }
299
+ .hide-on-large-only {
300
+ @media #{$large-and-up} {
301
+ display: none !important;
302
+ }
303
+ }
304
+ .show-on-large {
305
+ @media #{$large-and-up} {
306
+ display: block !important;
307
+ }
308
+ }
309
+ .show-on-medium {
310
+ @media only screen and (min-width: $small-screen) and (max-width: $medium-screen) {
311
+ display: block !important;
312
+ }
313
+ }
314
+ .show-on-small {
315
+ @media #{$small-and-down} {
316
+ display: block !important;
317
+ }
318
+ }
319
+ .show-on-medium-and-up {
320
+ @media #{$medium-and-up} {
321
+ display: block !important;
322
+ }
323
+ }
324
+ .show-on-medium-and-down {
325
+ @media #{$medium-and-down} {
326
+ display: block !important;
327
+ }
328
+ }
329
+
330
+
331
+ // Center text on mobile
332
+ .center-on-small-only {
333
+ @media #{$small-and-down} {
334
+ text-align: center;
335
+ }
336
+ }
337
+
338
+ // Footer
339
+ .page-footer {
340
+ padding-top: 20px;
341
+ color: $footer-font-color;
342
+ background-color: $footer-bg-color;
343
+
344
+ .footer-copyright {
345
+ overflow: hidden;
346
+ min-height: 50px;
347
+ display: flex;
348
+ align-items: center;
349
+ padding: 10px 0px;
350
+ color: $footer-copyright-font-color;
351
+ background-color: $footer-copyright-bg-color;
352
+ @extend .light;
353
+ }
354
+ }
355
+
356
+ // Tables
357
+ table, th, td {
358
+ border: none;
359
+ }
360
+
361
+ table {
362
+ width:100%;
363
+ display: table;
364
+
365
+ &.bordered > thead > tr,
366
+ &.bordered > tbody > tr {
367
+ border-bottom: 1px solid $table-border-color;
368
+ }
369
+
370
+ &.striped > tbody {
371
+ > tr:nth-child(odd) {
372
+ background-color: $table-striped-color;
373
+ }
374
+
375
+ > tr > td {
376
+ border-radius: 0;
377
+ }
378
+ }
379
+
380
+ &.highlight > tbody > tr {
381
+ transition: background-color .25s ease;
382
+ &:hover {
383
+ background-color: $table-striped-color;
384
+ }
385
+ }
386
+
387
+ &.centered {
388
+ thead tr th, tbody tr td {
389
+ text-align: center;
390
+ }
391
+ }
392
+
393
+ }
394
+
395
+ thead {
396
+ border-bottom: 1px solid $table-border-color;
397
+ }
398
+
399
+ td, th{
400
+ padding: 15px 5px;
401
+ display: table-cell;
402
+ text-align: left;
403
+ vertical-align: middle;
404
+ border-radius: 2px;
405
+ }
406
+
407
+ // Responsive Table
408
+ @media #{$medium-and-down} {
409
+
410
+ table.responsive-table {
411
+ width: 100%;
412
+ border-collapse: collapse;
413
+ border-spacing: 0;
414
+ display: block;
415
+ position: relative;
416
+
417
+ td:empty:before {
418
+ content: '\00a0';
419
+ }
420
+
421
+ th,
422
+ td {
423
+ margin: 0;
424
+ vertical-align: top;
425
+ }
426
+
427
+ th { text-align: left; }
428
+ thead {
429
+ display: block;
430
+ float: left;
431
+
432
+ tr {
433
+ display: block;
434
+ padding: 0 10px 0 0;
435
+
436
+ th::before {
437
+ content: "\00a0";
438
+ }
439
+ }
440
+ }
441
+ tbody {
442
+ display: block;
443
+ width: auto;
444
+ position: relative;
445
+ overflow-x: auto;
446
+ white-space: nowrap;
447
+
448
+ tr {
449
+ display: inline-block;
450
+ vertical-align: top;
451
+ }
452
+ }
453
+ th {
454
+ display: block;
455
+ text-align: right;
456
+ }
457
+ td {
458
+ display: block;
459
+ min-height: 1.25em;
460
+ text-align: left;
461
+ }
462
+ tr { padding: 0 10px; }
463
+
464
+ /* sort out borders */
465
+ thead {
466
+ border: 0;
467
+ border-right: 1px solid $table-border-color;
468
+ }
469
+
470
+ &.bordered {
471
+ th { border-bottom: 0; border-left: 0; }
472
+ td { border-left: 0; border-right: 0; border-bottom: 0; }
473
+ tr { border: 0; }
474
+ tbody tr { border-right: 1px solid $table-border-color; }
475
+ }
476
+
477
+ }
478
+
479
+ }
480
+
481
+
482
+ // Collections
483
+ .collection {
484
+ margin: $element-top-margin 0 $element-bottom-margin 0;
485
+ border: 1px solid $collection-border-color;
486
+ border-radius: 2px;
487
+ overflow: hidden;
488
+ position: relative;
489
+
490
+ .collection-item {
491
+ background-color: $collection-bg-color;
492
+ line-height: $collection-line-height;
493
+ padding: 10px 20px;
494
+ margin: 0;
495
+ border-bottom: 1px solid $collection-border-color;
496
+
497
+ // Avatar Collection
498
+ &.avatar {
499
+ min-height: 84px;
500
+ padding-left: 72px;
501
+ position: relative;
502
+
503
+ // Don't style circles inside preloader classes.
504
+ &:not(.circle-clipper) > .circle,
505
+ :not(.circle-clipper) > .circle {
506
+ position: absolute;
507
+ width: 42px;
508
+ height: 42px;
509
+ overflow: hidden;
510
+ left: 15px;
511
+ display: inline-block;
512
+ vertical-align: middle;
513
+ }
514
+ i.circle {
515
+ font-size: 18px;
516
+ line-height: 42px;
517
+ color: #fff;
518
+ background-color: #999;
519
+ text-align: center;
520
+ }
521
+
522
+
523
+ .title {
524
+ font-size: 16px;
525
+ }
526
+
527
+ p {
528
+ margin: 0;
529
+ }
530
+
531
+ .secondary-content {
532
+ position: absolute;
533
+ top: 16px;
534
+ right: 16px;
535
+ }
536
+
537
+ }
538
+
539
+
540
+ &:last-child {
541
+ border-bottom: none;
542
+ }
543
+
544
+ &.active {
545
+ background-color: $collection-active-bg-color;
546
+ color: $collection-active-color;
547
+
548
+ .secondary-content {
549
+ color: #fff;
550
+ }
551
+ }
552
+ }
553
+ a.collection-item{
554
+ display: block;
555
+ transition: .25s;
556
+ color: $collection-link-color;
557
+ &:not(.active) {
558
+ &:hover {
559
+ background-color: $collection-hover-bg-color;
560
+ }
561
+ }
562
+ }
563
+
564
+ &.with-header {
565
+ .collection-header {
566
+ background-color: $collection-bg-color;
567
+ border-bottom: 1px solid $collection-border-color;
568
+ padding: 10px 20px;
569
+ }
570
+ .collection-item {
571
+ padding-left: 30px;
572
+ }
573
+ .collection-item.avatar {
574
+ padding-left: 72px;
575
+ }
576
+ }
577
+
578
+ }
579
+ // Made less specific to allow easier overriding
580
+ .secondary-content {
581
+ float: right;
582
+ color: $secondary-color;
583
+ }
584
+ .collapsible .collection {
585
+ margin: 0;
586
+ border: none;
587
+ }
588
+
589
+
590
+
591
+ // Responsive Videos
592
+ .video-container {
593
+ position: relative;
594
+ padding-bottom: 56.25%;
595
+ height: 0;
596
+ overflow: hidden;
597
+
598
+ iframe, object, embed {
599
+ position: absolute;
600
+ top: 0;
601
+ left: 0;
602
+ width: 100%;
603
+ height: 100%;
604
+ }
605
+ }
606
+
607
+ // Progress Bar
608
+ .progress {
609
+ position: relative;
610
+ height: 4px;
611
+ display: block;
612
+ width: 100%;
613
+ background-color: lighten($progress-bar-color, 40%);
614
+ border-radius: 2px;
615
+ margin: $element-top-margin 0 $element-bottom-margin 0;
616
+ overflow: hidden;
617
+ .determinate {
618
+ position: absolute;
619
+ top: 0;
620
+ left: 0;
621
+ bottom: 0;
622
+ background-color: $progress-bar-color;
623
+ transition: width .3s linear;
624
+ }
625
+ .indeterminate {
626
+ background-color: $progress-bar-color;
627
+ &:before {
628
+ content: '';
629
+ position: absolute;
630
+ background-color: inherit;
631
+ top: 0;
632
+ left:0;
633
+ bottom: 0;
634
+ will-change: left, right;
635
+ // Custom bezier
636
+ animation: indeterminate 2.1s cubic-bezier(0.650, 0.815, 0.735, 0.395) infinite;
637
+
638
+ }
639
+ &:after {
640
+ content: '';
641
+ position: absolute;
642
+ background-color: inherit;
643
+ top: 0;
644
+ left:0;
645
+ bottom: 0;
646
+ will-change: left, right;
647
+ // Custom bezier
648
+ animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.840, 0.440, 1.000) infinite;
649
+ animation-delay: 1.15s;
650
+ }
651
+ }
652
+ }
653
+ @keyframes indeterminate {
654
+ 0% {
655
+ left: -35%;
656
+ right:100%;
657
+ }
658
+ 60% {
659
+ left: 100%;
660
+ right: -90%;
661
+ }
662
+ 100% {
663
+ left: 100%;
664
+ right: -90%;
665
+ }
666
+ }
667
+
668
+ @keyframes indeterminate-short {
669
+ 0% {
670
+ left: -200%;
671
+ right: 100%;
672
+ }
673
+ 60% {
674
+ left: 107%;
675
+ right: -8%;
676
+ }
677
+ 100% {
678
+ left: 107%;
679
+ right: -8%;
680
+ }
681
+ }
682
+
683
+
684
+ /*******************
685
+ Utility Classes
686
+ *******************/
687
+
688
+ .hide {
689
+ display: none !important;
690
+ }
691
+
692
+ // Text Align
693
+ .left-align {
694
+ text-align: left;
695
+ }
696
+ .right-align {
697
+ text-align: right
698
+ }
699
+ .center, .center-align {
700
+ text-align: center;
701
+ }
702
+
703
+ .left {
704
+ float: left !important;
705
+ }
706
+ .right {
707
+ float: right !important;
708
+ }
709
+
710
+ // No Text Select
711
+ .no-select {
712
+ user-select: none;
713
+ }
714
+
715
+ .circle {
716
+ border-radius: 50%;
717
+ }
718
+
719
+ .center-block {
720
+ display: block;
721
+ margin-left: auto;
722
+ margin-right: auto;
723
+ }
724
+
725
+ .truncate {
726
+ display: block;
727
+ white-space: nowrap;
728
+ overflow: hidden;
729
+ text-overflow: ellipsis;
730
+ }
731
+
732
+ .no-padding {
733
+ padding: 0 !important;
734
+ }