Blame view

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