material-sass 0.0.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/fonts/MaterialIcons-Regular.eot +0 -0
  3. data/app/assets/fonts/MaterialIcons-Regular.ijmap +1 -0
  4. data/app/assets/fonts/MaterialIcons-Regular.ttf +0 -0
  5. data/app/assets/fonts/MaterialIcons-Regular.woff +0 -0
  6. data/app/assets/fonts/MaterialIcons-Regular.woff2 +0 -0
  7. data/app/assets/images/bg/amber.jpg +0 -0
  8. data/app/assets/images/bg/brand.jpg +0 -0
  9. data/app/assets/images/bg/green.jpg +0 -0
  10. data/app/assets/images/bg/purple.jpg +0 -0
  11. data/app/assets/images/bg/red.jpg +0 -0
  12. data/app/assets/images/bg/teal.jpg +0 -0
  13. data/app/assets/javascripts/material.js +664 -507
  14. data/app/assets/javascripts/material.min.js +2 -0
  15. data/app/assets/javascripts/material/_.js +6 -3
  16. data/app/assets/javascripts/material/bootstrap.js +6 -3
  17. data/app/assets/javascripts/material/datepicker.js +95 -64
  18. data/app/assets/javascripts/material/form-adv-label.js +49 -0
  19. data/app/assets/javascripts/material/form-adv-textarea.js +13 -0
  20. data/app/assets/javascripts/material/header.js +12 -56
  21. data/app/assets/javascripts/material/menu.js +188 -38
  22. data/app/assets/javascripts/material/modal.js +10 -8
  23. data/app/assets/javascripts/material/snackbar.js +116 -0
  24. data/app/assets/javascripts/material/tab.js +47 -27
  25. data/app/assets/javascripts/material/tile.js +169 -74
  26. data/app/assets/javascripts/material/wave.js +12 -7
  27. data/app/assets/stylesheets/material.min.css +13 -0
  28. data/app/assets/stylesheets/material/addons/_material-icons.scss +9 -0
  29. data/app/assets/stylesheets/material/addons/_waves.scss +44 -0
  30. data/app/assets/stylesheets/material/{addon/material-design-icon → addons/material-icons}/_core.scss +8 -8
  31. data/app/assets/stylesheets/material/{addon/material-design-icon → addons/material-icons}/_larger.scss +5 -2
  32. data/app/assets/stylesheets/material/addons/material-icons/_path.scss +11 -0
  33. data/app/assets/stylesheets/material/addons/material-icons/_variables.scss +3 -0
  34. data/app/assets/stylesheets/material/base.scss +39 -40
  35. data/app/assets/stylesheets/material/{_grid.scss → base/_grid.scss} +13 -12
  36. data/app/assets/stylesheets/material/{_reset.scss → base/_reset.scss} +160 -161
  37. data/app/assets/stylesheets/material/components/_avatar.scss +94 -0
  38. data/app/assets/stylesheets/material/{element → components}/_breadcrumb.scss +3 -4
  39. data/app/assets/stylesheets/material/components/_button-flat.scss +35 -0
  40. data/app/assets/stylesheets/material/components/_button-float.scss +187 -0
  41. data/app/assets/stylesheets/material/components/_button.scss +86 -0
  42. data/app/assets/stylesheets/material/components/_card.scss +175 -0
  43. data/app/assets/stylesheets/material/{_code.scss → components/_code.scss} +14 -12
  44. data/app/assets/stylesheets/material/components/_dropdown.scss +103 -0
  45. data/app/assets/stylesheets/material/components/_form-adv-checkbox.scss +161 -0
  46. data/app/assets/stylesheets/material/{element → components}/_form-adv-datepicker.scss +87 -108
  47. data/app/assets/stylesheets/material/{element → components}/_form-adv-label.scss +17 -23
  48. data/app/assets/stylesheets/material/components/_form-adv-switch.scss +96 -0
  49. data/app/assets/stylesheets/material/{element → components}/_form-adv-textarea.scss +1 -1
  50. data/app/assets/stylesheets/material/{element → components}/_form.scss +34 -95
  51. data/app/assets/stylesheets/material/components/_label.scss +23 -0
  52. data/app/assets/stylesheets/material/{element → components}/_modal.scss +43 -18
  53. data/app/assets/stylesheets/material/{element → components}/_nav.scss +15 -8
  54. data/app/assets/stylesheets/material/{element → components}/_progress-circular.scss +36 -32
  55. data/app/assets/stylesheets/material/{element → components}/_progress-loadbar.scss +15 -21
  56. data/app/assets/stylesheets/material/{element → components}/_progress.scss +40 -30
  57. data/app/assets/stylesheets/material/components/_snackbar.scss +60 -0
  58. data/app/assets/stylesheets/material/components/_tab.scss +85 -0
  59. data/app/assets/stylesheets/material/components/_table.scss +82 -0
  60. data/app/assets/stylesheets/material/components/_tile.scss +155 -0
  61. data/app/assets/stylesheets/material/elements/_content.scss +42 -0
  62. data/app/assets/stylesheets/material/elements/_footer.scss +10 -0
  63. data/app/assets/stylesheets/material/elements/_header.scss +145 -0
  64. data/app/assets/stylesheets/material/{theme → elements}/_menu.scss +92 -150
  65. data/app/assets/stylesheets/material/mixin/_grid.scss +1 -9
  66. data/app/assets/stylesheets/material/mixin/_responsive.scss +1 -1
  67. data/app/assets/stylesheets/material/mixin/_utilities.scss +1 -1
  68. data/app/assets/stylesheets/material/{_print.scss → utilities/_print.scss} +4 -4
  69. data/app/assets/stylesheets/material/{_utilities-responsive.scss → utilities/_utilities-responsive.scss} +1 -1
  70. data/app/assets/stylesheets/material/{_utilities.scss → utilities/_utilities.scss} +197 -110
  71. data/app/assets/stylesheets/material/var/_colours.scss +336 -0
  72. data/app/assets/stylesheets/material/var/_variables.scss +78 -0
  73. data/lib/material-sass/version.rb +1 -1
  74. metadata +55 -53
  75. data/app/assets/javascripts/material/content.js +0 -46
  76. data/app/assets/javascripts/material/dropdown.js +0 -18
  77. data/app/assets/javascripts/material/esc.js +0 -10
  78. data/app/assets/javascripts/material/footer.js +0 -6
  79. data/app/assets/javascripts/material/form-adv.js +0 -64
  80. data/app/assets/javascripts/material/get-target.js +0 -8
  81. data/app/assets/javascripts/material/toast.js +0 -79
  82. data/app/assets/javascripts/material/webfont.js +0 -47
  83. data/app/assets/javascripts/material/winresize.js +0 -28
  84. data/app/assets/stylesheets/material/_variable.scss +0 -120
  85. data/app/assets/stylesheets/material/addon/_material-design-icon.scss +0 -9
  86. data/app/assets/stylesheets/material/addon/_waves.scss +0 -45
  87. data/app/assets/stylesheets/material/addon/material-design-icon/_path.scss +0 -11
  88. data/app/assets/stylesheets/material/addon/material-design-icon/_variables.scss +0 -3
  89. data/app/assets/stylesheets/material/element/_avatar.scss +0 -67
  90. data/app/assets/stylesheets/material/element/_button-flat.scss +0 -32
  91. data/app/assets/stylesheets/material/element/_button-float.scss +0 -202
  92. data/app/assets/stylesheets/material/element/_button.scss +0 -95
  93. data/app/assets/stylesheets/material/element/_card.scss +0 -245
  94. data/app/assets/stylesheets/material/element/_dropdown.scss +0 -132
  95. data/app/assets/stylesheets/material/element/_form-adv-checkbox.scss +0 -109
  96. data/app/assets/stylesheets/material/element/_form-adv-switch.scss +0 -102
  97. data/app/assets/stylesheets/material/element/_label.scss +0 -22
  98. data/app/assets/stylesheets/material/element/_sortable.scss +0 -8
  99. data/app/assets/stylesheets/material/element/_tab.scss +0 -107
  100. data/app/assets/stylesheets/material/element/_table.scss +0 -48
  101. data/app/assets/stylesheets/material/element/_tile.scss +0 -193
  102. data/app/assets/stylesheets/material/element/_toast.scss +0 -67
  103. data/app/assets/stylesheets/material/project.scss +0 -8
  104. data/app/assets/stylesheets/material/theme/_content.scss +0 -74
  105. data/app/assets/stylesheets/material/theme/_footer.scss +0 -17
  106. data/app/assets/stylesheets/material/theme/_header.scss +0 -128
@@ -1,109 +0,0 @@
1
- .checkbox-adv {
2
- font-size: $font-size;
3
- line-height: $line-height;
4
- [class^="circle"] {
5
- display: block;
6
- height: $font-size;
7
- position: absolute;
8
- top: (($line-height - $font-size) / 2 - 1);
9
- left: 0;
10
- width: $font-size;
11
- }
12
- .circle {
13
- border: 2px solid $black-sec;
14
- transition: border-color 0.3s $timing;
15
- }
16
- &.disabled,
17
- fieldset[disabled] & {
18
- .circle {
19
- border-color: $black-hint !important;
20
- }
21
- }
22
- input.access-hide:focus ~ .circle {
23
- border-color: $black-text;
24
- }
25
- input.access-hide:checked ~ .circle {
26
- border-color: $brand-color;
27
- }
28
- .circle-check {
29
- background-color: transparent;
30
- transform: scale(0);
31
- transition: all 0.3s $timing;
32
- transition-property: background-color, transform;
33
- &:after {
34
- background-color: $brand-color;
35
- border-radius: 50%;
36
- content: "";
37
- display: block;
38
- height: ($font-size * 5);
39
- opacity: 0;
40
- position: absolute;
41
- top: ($font-size * -2);
42
- left: ($font-size * -2);
43
- width: ($font-size * 5);
44
- }
45
- }
46
- &.disabled,
47
- fieldset[disabled] & {
48
- .circle-check:after {
49
- background-color: $black-hint;
50
- }
51
- }
52
- input.access-hide:checked ~ .circle-check {
53
- transform: scale(0.5);
54
- &:after {
55
- animation: circle-check 0.6s;
56
- }
57
- }
58
- .circle-icon {
59
- background-color: transparent;
60
- color: transparent;
61
- transform: scale(0.5);
62
- transition: all 0.3s $timing;
63
- transition-property: background-color, color, transform;
64
- &:before {
65
- // position
66
- top: auto;
67
- }
68
- }
69
- input.access-hide:checked ~ .circle-icon {
70
- background-color: $brand-color;
71
- color: $white;
72
- transform: scale(1);
73
- }
74
- &.disabled,
75
- fieldset[disabled] & {
76
- input.access-hide:checked ~ .circle-icon {
77
- background-color: $black-hint;
78
- }
79
- }
80
- }
81
-
82
- .radio-adv {
83
- @extend .checkbox-adv;
84
- [class^="circle"] {
85
- border-radius: 50%;
86
- }
87
- input.access-hide:checked ~ .circle-check {
88
- background-color: $brand-color;
89
- }
90
- &.disabled,
91
- fieldset[disabled] & {
92
- input.access-hide:checked ~ .circle-check {
93
- background-color: $black-hint;
94
- }
95
- }
96
- }
97
-
98
- // animation
99
- @keyframes circle-check {
100
- 0% {
101
- opacity: 0;
102
- }
103
- 25% {
104
- opacity: 0.25;
105
- }
106
- 100% {
107
- opacity: 0;
108
- }
109
- }
@@ -1,102 +0,0 @@
1
- .switch {
2
- position: relative;
3
- &.checkbox,
4
- &.radio {
5
- label {
6
- padding-left: ($font-size-h4 + ($font-size * 5 - $font-size-h4) / 4 + $grid-gutter / 2);
7
- }
8
- }
9
- }
10
-
11
- .switch-toggle {
12
- background-color: $black-hint;
13
- border-radius: ($font-size-h6 / 2);
14
- cursor: pointer;
15
- display: inline-block;
16
- height: $font-size-h6;
17
- margin-right: ($grid-gutter / 2);
18
- position: relative;
19
- transition: background-color 0.3s $timing;
20
- vertical-align: middle;
21
- width: ($font-size-h4 + ($font-size * 5 - $font-size-h4) / 4);
22
- &:after {
23
- background-color: $white;
24
- border-radius: 50%;
25
- box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25);
26
- content: "";
27
- display: block;
28
- height: $font-size-h4;
29
- position: absolute;
30
- top:(($font-size-h4 - $font-size-h6) / -2);
31
- left: 0;
32
- transition: background-color 0.3s $timing, box-shadow 0.15s $timing, left 0.3s $timing;
33
- width: $font-size-h4;
34
- }
35
- input[type="checkbox"]:checked + &,
36
- input[type="radio"]:checked + & {
37
- background-color: lighten($link-color, 15%);
38
- &:after {
39
- background-color: $link-color;
40
- // position
41
- left: (($font-size * 5 - $font-size-h4) / 4);
42
- }
43
- }
44
- .checkbox.switch &,
45
- .radio.switch & {
46
- position: absolute;
47
- top: (($line-height - $font-size-h6) / 2);
48
- left: 0;
49
- }
50
- .no-touch & {
51
- &:active:after {
52
- box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(0, 0, 0, 0.1);
53
- }
54
- }
55
- .no-touch input[type="checkbox"]:checked + &,
56
- .no-touch input[type="radio"]:checked + & {
57
- &:active:after {
58
- box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red($link-color), green($link-color), blue($link-color), 0.25);
59
- }
60
- }
61
- .touch & {
62
- transition: background-color 0.3s $timing 0.15s;
63
- &:after {
64
- transition: background-color 0.3s $timing 0.15s, box-shadow 0.15s $timing, left 0.3s $timing 0.15s;
65
- }
66
- &.switch-toggle-on:after {
67
- box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red($link-color), green($link-color), blue($link-color), 0.25);
68
- }
69
- }
70
- .touch input[type="checkbox"]:checked + &,
71
- .touch input[type="radio"]:checked + & {
72
- &.switch-toggle-on:after {
73
- box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(0, 0, 0, 0.1);
74
- }
75
- }
76
- }
77
-
78
- // colour
79
- @each $color in $palette-list {
80
- $i: index($palette-list, $color);
81
-
82
- .switch-toggle-#{$color} {
83
- input[type="checkbox"]:checked + &,
84
- input[type="radio"]:checked + & {
85
- background-color: nth($palette-color-light-m, $i);
86
- &:after {
87
- background-color: nth($palette-color, $i);
88
- }
89
- }
90
- .no-touch input[type="checkbox"]:checked + &,
91
- .no-touch input[type="radio"]:checked + & {
92
- &:active:after {
93
- box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red(nth($palette-color, $i)), green(nth($palette-color, $i)), blue(nth($palette-color, $i)), 0.25);
94
- }
95
- }
96
- .touch & {
97
- &.switch-toggle-on:after {
98
- box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red(nth($palette-color, $i)), green(nth($palette-color, $i)), blue(nth($palette-color, $i)), 0.25);
99
- }
100
- }
101
- }
102
- }
@@ -1,22 +0,0 @@
1
- .label {
2
- background-color: $black-sec;
3
- border-radius: 2px;
4
- color: $white;
5
- display: inline;
6
- font-size: 75%;
7
- font-style: normal;
8
- font-weight: $font-weight;
9
- line-height: 1;
10
- padding: 0.2em 0.6em;
11
- vertical-align: baseline;
12
- white-space: nowrap;
13
- }
14
-
15
- // colour
16
- @each $color in $palette-list {
17
- $i: index($palette-list, $color);
18
-
19
- .label-#{$color} {
20
- background-color: nth($palette-color, $i);
21
- }
22
- }
@@ -1,8 +0,0 @@
1
- .sortable-ghost {
2
- opacity: 0.5;
3
- }
4
-
5
- .sortable-handle {
6
- cursor: move;
7
- cursor: -webkit-grab;
8
- }
@@ -1,107 +0,0 @@
1
- .tab-nav {
2
- box-shadow: 0 1px 0 $black-bg;
3
- margin-top: $line-height;
4
- margin-bottom: $line-height;
5
- position: relative;
6
- .nav {
7
- margin-top: 0 !important;
8
- margin-bottom: 0 !important;
9
- > li {
10
- vertical-align: bottom;
11
- > a,
12
- > .a {
13
- border-bottom: 2px solid transparent;
14
- color: $black-text;
15
- padding-right: ($grid-gutter / 2);
16
- padding-bottom: ($line-height / 2 - 2);
17
- padding-left: ($grid-gutter / 2);
18
- text-transform: uppercase;
19
- transition: border-bottom-color 0s;
20
- &:focus,
21
- &:hover {
22
- border-bottom-color: lighten($link-color, 30%);
23
- color: $link-color;
24
- transition: border-bottom-color 0.3s $timing;
25
- }
26
- }
27
- &.active > a,
28
- &.active > .a {
29
- border-bottom-color: $link-color;
30
- color: $link-color;
31
- transition: border-bottom-color 0s 0.45s;
32
- }
33
- }
34
- }
35
- }
36
-
37
- .tab-nav-indicator {
38
- background-color: $link-color;
39
- height: 2px;
40
- position: absolute;
41
- bottom: 0;
42
- transition: left 0.3s $timing 0.15s, right 0.3s $timing;
43
- &.reverse {
44
- transition: left 0.3s $timing, right 0.3s $timing 0.15s;
45
- }
46
- }
47
-
48
- // colour
49
- .tab-nav-offwhite {
50
- .nav {
51
- > li {
52
- > a,
53
- > .a {
54
- color: $white;
55
- &:focus,
56
- &:hover {
57
- border-bottom-color: rgba(255, 255, 255, 0.5);
58
- color: $white;
59
- }
60
- }
61
- &.active > a,
62
- &.active > .a {
63
- border-bottom-color: $white;
64
- color: $white;
65
- }
66
- }
67
- }
68
- .tab-nav-indicator {
69
- background-color: $white;
70
- }
71
- }
72
-
73
- @each $color in $palette-list {
74
- $i: index($palette-list, $color);
75
-
76
- .tab-nav-#{$color} {
77
- .nav {
78
- > li {
79
- > a,
80
- > .a {
81
- &:focus,
82
- &:hover {
83
- border-bottom-color: nth($palette-color-light, $i);
84
- color: nth($palette-color, $i);
85
- }
86
- }
87
- &.active > a,
88
- &.active > .a {
89
- border-bottom-color: nth($palette-color, $i);
90
- color: nth($palette-color, $i);
91
- }
92
- }
93
- }
94
- .tab-nav-indicator {
95
- background-color: nth($palette-color, $i);
96
- }
97
- }
98
- }
99
-
100
- .tab-pane {
101
- display: none;
102
- visibility: hidden;
103
- &.active {
104
- display: block;
105
- visibility: visible;
106
- }
107
- }
@@ -1,48 +0,0 @@
1
- .table {
2
- background-color: $white;
3
- margin-top: $line-height;
4
- margin-bottom: $line-height;
5
- width: 100%;
6
- td,
7
- th {
8
- border: 1px solid $black-bg;
9
- line-height: $line-height;
10
- padding: (($cell-height - $line-height) / 2) $grid-gutter (($cell-height - $line-height) / 2 - 1);
11
- vertical-align: top;
12
- &.nowrap {
13
- white-space: nowrap;
14
- width: 1%;
15
- }
16
- }
17
- > thead {
18
- td,
19
- th {
20
- background-color: $white-bg;
21
- color: $black-sec;
22
- vertical-align: bottom;
23
- }
24
- }
25
- }
26
-
27
- .table-stripe > tbody > tr:nth-child(odd) {
28
- background-color: $white-bg-light;
29
- }
30
-
31
- .table-hover > tbody > tr:hover {
32
- background-color: $white-bg-dark;
33
- }
34
-
35
- // responsive
36
- .table-responsive {
37
- margin-top: $line-height;
38
- margin-bottom: $line-height;
39
- min-height: 0.01%;
40
- overflow-x: auto;
41
- overflow-y: hidden;
42
- -webkit-overflow-scrolling: touch;
43
- -ms-overflow-style: -ms-autohiding-scrollbar;
44
- .table {
45
- margin-top: 0;
46
- margin-bottom: 0;
47
- }
48
- }
@@ -1,193 +0,0 @@
1
- .tile {
2
- background-color: $white;
3
- box-shadow: 0 -1px 0 $black-bg, 0 0 2px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.15);
4
- display: block;
5
- position: relative;
6
- @include clearfix();
7
- &[href] {
8
- color: $black-text;
9
- &:focus,
10
- &:hover {
11
- color: $link-color;
12
- text-decoration: none;
13
- }
14
- }
15
- &.active {
16
- margin-top: $line-height !important;
17
- margin-bottom: $line-height !important;
18
- }
19
- .tile-wrap-animation & {
20
- opacity: 0;
21
- transform: translate(0, 100%);
22
- transition: all 0.6s $timing;
23
- transition-property: opacity, transform;
24
- }
25
- .tile-wrap-animation.isinview & {
26
- opacity: 1;
27
- transform: translate(0, 0) !important;
28
- }
29
- // no boxshadow
30
- .no-boxshadow & {
31
- border: 1px solid $black-bg;
32
- + .tile {
33
- margin-top: -1px;
34
- }
35
- }
36
- }
37
-
38
- // colour
39
- .tile-offwhite {
40
- background-color: $white-bg;
41
- }
42
-
43
- @each $color in $palette-list {
44
- $i: index($palette-list, $color);
45
-
46
- .tile-#{$color} {
47
- background-color: nth($palette-color, $i);
48
- color: $white;
49
- a {
50
- color: nth($palette-color-light, $i);
51
- }
52
- }
53
- }
54
-
55
- .tile-action {
56
- @extend .card-action;
57
- border-top: 0;
58
- float: right;
59
- user-select: none;
60
- .no-touch &,
61
- .touch .tile-collapse & {
62
- display: none;
63
- }
64
- .no-touch .tile:hover &,
65
- .tile-collapse.active & {
66
- display: block;
67
- }
68
- }
69
-
70
- .tile-action-show {
71
- display: block !important;
72
- }
73
-
74
- .tile-active-show {
75
- transition: height 0.15s linear;
76
- }
77
-
78
- .tile-collapse {
79
- transition: margin 0.15s linear;
80
- &.active {
81
- margin-right: ($grid-gutter * -1 + 1);
82
- margin-left: ($grid-gutter * -1 + 1);
83
- }
84
- .tile-wrap-animation & {
85
- transition: all 0.6s $timing, margin 0.15s linear;
86
- transition-property: margin, opacity, transform;
87
- }
88
- }
89
-
90
- .tile-collapse-full {
91
- // 1056 - 1439
92
- @media only screen and (min-width: ($grid-gutter * 4 + $screen-md)) and (max-width: ($screen-lg - 1)) {
93
- &.active {
94
- margin-right: ($grid-gutter * -4 + 1);
95
- margin-left: ($grid-gutter * -4 + 1);
96
- }
97
- }
98
- // 1504
99
- @media only screen and (min-width: ($grid-gutter * 4 + $screen-lg)) {
100
- &.active {
101
- margin-right: ($grid-gutter * -4 + 1);
102
- margin-left: ($grid-gutter * -4 + 1);
103
- }
104
- }
105
- }
106
-
107
- .tile-footer {
108
- background-color: $white-bg;
109
- border-top: 1px solid $black-bg;
110
- position: relative;
111
- @include clearfix();
112
- &:first-child {
113
- border-top: 0;
114
- }
115
- .nav {
116
- margin-top: 0;
117
- margin-bottom: 0;
118
- }
119
- }
120
-
121
- // colour
122
- .tile-offwhite .tile-footer {
123
- background-color: $white-bg-dark;
124
- }
125
-
126
- @each $color in $palette-list {
127
- $i: index($palette-list, $color);
128
-
129
- .tile-#{$color} .tile-footer {
130
- background-color: nth($palette-color-dark-m, $i);
131
- border-top-color: nth($palette-color-dark-m, $i);
132
- .nav > li {
133
- > a,
134
- > .a {
135
- color: $white;
136
- }
137
- }
138
- }
139
- }
140
-
141
- .tile-inner {
142
- padding: ($line-height / 2) $grid-gutter;
143
- position: relative;
144
- .tile-action ~ &,
145
- .tile-side ~ & {
146
- overflow: hidden;
147
- }
148
- }
149
-
150
- .tile-side {
151
- @extend .card-inner-side;
152
- }
153
-
154
- .tile-side-container {
155
- padding: 0 !important;
156
- }
157
-
158
- .tile-sub {
159
- display: inline-block;
160
- padding-right: $grid-gutter;
161
- padding-left: $grid-gutter;
162
- position: relative;
163
- width: 100%;
164
- &:before {
165
- border-top: 1px solid $black-bg;
166
- content: "";
167
- display: block;
168
- position: absolute;
169
- top: 0;
170
- left: 0;
171
- width: 100%;
172
- }
173
- }
174
-
175
- // colour
176
- @each $color in $palette-list {
177
- $i: index($palette-list, $color);
178
-
179
- .tile-#{$color} .tile-sub:before {
180
- border-top-color: nth($palette-color-dark-m, $i);
181
- }
182
- }
183
-
184
- .tile-toggle {
185
- cursor: pointer;
186
- @include clearfix();
187
- }
188
-
189
- .tile-wrap {
190
- margin-top: $line-height;
191
- margin-bottom: $line-height;
192
- position: relative;
193
- }