materialize-rails 0.97.5.custom1

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