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
@@ -0,0 +1,94 @@
1
+ .avatar {
2
+ background-color: $offwhite;
3
+ border-radius: 50%;
4
+ color: inherit;
5
+ display: block;
6
+ height: $avatar-height;
7
+ line-height: $avatar-height;
8
+ text-align: center;
9
+ width: $avatar-height;
10
+ &[href]:focus,
11
+ &[href]:hover {
12
+ color: inherit;
13
+ text-decoration: none;
14
+ }
15
+ .card-header-side > & {
16
+ &:first-child {
17
+ margin-top: (($avatar-height - $line-height) / -2);
18
+ }
19
+ &:last-child {
20
+ margin-bottom: (($avatar-height - $line-height) / -2);
21
+ }
22
+ }
23
+ .nav a > &,
24
+ .nav .a > & {
25
+ margin-top: (($avatar-height - $line-height) / -2);
26
+ margin-bottom: (($avatar-height - $line-height) / -2);
27
+ }
28
+ img {
29
+ border-radius: 50%;
30
+ height: 100%;
31
+ vertical-align: top;
32
+ width: 100%;
33
+ }
34
+ .fa {
35
+ display: block;
36
+ height: 100%;
37
+ line-height: inherit;
38
+ text-align: center;
39
+ }
40
+ .fa-text {
41
+ font-family: inherit;
42
+ }
43
+ }
44
+
45
+ // colour
46
+ @each $color in $palette-list-class {
47
+ $i: index($palette-list-class, $color);
48
+
49
+ .avatar-#{$color} {
50
+ background-color: nth($palette-list-color, $i);
51
+ color: nth($palette-list-text, $i);
52
+ &:focus,
53
+ &:hover {
54
+ color: nth($palette-list-text, $i);
55
+ }
56
+ }
57
+ }
58
+
59
+ // size
60
+ .avatar-lg {
61
+ height: ($avatar-height * 2);
62
+ line-height: ($avatar-height * 2);
63
+ width: ($avatar-height * 2);
64
+ }
65
+
66
+ .avatar-sm {
67
+ height: ($avatar-height * 0.8);
68
+ line-height: ($avatar-height * 0.8);
69
+ width: ($avatar-height * 0.8);
70
+ .card-header-side > & {
71
+ &:first-child {
72
+ margin-top: (($avatar-height * 0.8 - $line-height) / -2);
73
+ }
74
+ &:last-child {
75
+ margin-bottom: (($avatar-height * 0.8 - $line-height) / -2);
76
+ }
77
+ }
78
+ .nav a > &,
79
+ .nav .a > & {
80
+ margin-top: (($avatar-height * 0.8 - $line-height) / -2);
81
+ margin-bottom: (($avatar-height * 0.8 - $line-height) / -2);
82
+ }
83
+ }
84
+
85
+ .avatar-xs {
86
+ font-size: $font-size-h6;
87
+ height: $line-height;
88
+ line-height: $line-height;
89
+ width: $line-height;
90
+ }
91
+
92
+ .avatar-inline {
93
+ display: inline-block;
94
+ }
@@ -1,17 +1,16 @@
1
1
  .breadcrumb {
2
2
  list-style: none;
3
- margin: $line-height 0;
4
- padding: ($line-height / 2) 0;
3
+ margin: $margin-md 0;
4
+ padding: 0;
5
5
  @include clearfix();
6
6
  > li {
7
7
  display: block;
8
8
  float: left;
9
9
  + li:before {
10
10
  @extend .icon;
11
- color: $black-hint;
11
+ color: $black-sec;
12
12
  content: "chevron_right";
13
13
  display: inline-block;
14
- line-height: $line-height;
15
14
  margin-left: 0.4em;
16
15
  }
17
16
  }
@@ -0,0 +1,35 @@
1
+ .btn-flat {
2
+ background-color: transparent;
3
+ box-shadow: none;
4
+ &:after {
5
+ background-color: $offwhite-dark;
6
+ box-shadow: none;
7
+ display: block !important;
8
+ }
9
+ &:active:after,
10
+ &:focus:after,
11
+ &:hover:after {
12
+ opacity: 0.5;
13
+ }
14
+ &:not(.waves-attach):active:after {
15
+ opacity: 1;
16
+ }
17
+ &.disabled,
18
+ &[disabled],
19
+ fieldset[disabled] & {
20
+ background-color: transparent !important;
21
+ }
22
+ }
23
+
24
+ // colour
25
+ @each $color in $palette-list-class {
26
+ $i: index($palette-list-class, $color);
27
+
28
+ .btn-flat.btn-#{$color} {
29
+ color: nth($palette-list-color, $i);
30
+ &[disabled],
31
+ fieldset[disabled] & {
32
+ color: nth($palette-list-light, $i);
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,187 @@
1
+ .fbtn {
2
+ background-color: $offwhite-solid;
3
+ border-radius: 50%;
4
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 1px 3px 1px rgba(0, 0, 0, 0.3);
5
+ clear: both;
6
+ color: $black-text-solid;
7
+ cursor: pointer;
8
+ display: block;
9
+ font-size: $line-height;
10
+ height: $fbtn-height;
11
+ margin: $margin-sm auto;
12
+ padding: (($fbtn-height - $line-height) / 2) 0;
13
+ position: relative;
14
+ text-align: center;
15
+ transition-duration: 0.3s;
16
+ transition-property: opacity, transform;
17
+ transition-timing-function: $timing;
18
+ width: $fbtn-height;
19
+ &:active,
20
+ &:focus,
21
+ &:hover {
22
+ color: $black-text-solid;
23
+ }
24
+ &:after {
25
+ border-radius: 50%;
26
+ box-shadow: 0 6px 9px rgba(0, 0, 0, 0.15);
27
+ content: "";
28
+ display: block;
29
+ height: 100%;
30
+ opacity: 0;
31
+ position: absolute;
32
+ top: 0;
33
+ left: 0;
34
+ transition: opacity 0.3s $timing;
35
+ width: 100%;
36
+ }
37
+ &:active:after {
38
+ opacity: 1;
39
+ }
40
+ }
41
+
42
+ // colour
43
+ @each $color in $palette-list-class {
44
+ $i: index($palette-list-class, $color);
45
+
46
+ .fbtn-#{$color} {
47
+ background-color: nth($palette-list-color, $i);
48
+ color: nth($palette-list-text, $i);
49
+ &:active,
50
+ &:focus,
51
+ &:hover {
52
+ background-color: nth($palette-list-color, $i);
53
+ color: nth($palette-list-text, $i);
54
+ }
55
+ }
56
+ }
57
+
58
+ // size
59
+ .fbtn-lg {
60
+ height: ($fbtn-height + $base * 2);
61
+ padding-top: (($fbtn-height + $base * 2 - $line-height) / 2);
62
+ padding-bottom: (($fbtn-height + $base * 2 - $line-height) / 2);
63
+ width: ($fbtn-height + $base * 2);
64
+ .fbtn-sub {
65
+ // position
66
+ top: (($fbtn-height + $base * 2 - $line-height) / 2);
67
+ }
68
+ }
69
+
70
+ .fbtn-container {
71
+ backface-visibility: hidden;
72
+ position: fixed;
73
+ right: $grid-gutter;
74
+ bottom: $margin-sm;
75
+ transition: transform 0.3s $timing;
76
+ z-index: ($content-base + 1);
77
+ // 992
78
+ @include responsive(md) {
79
+ transform: translateY(0) !important;
80
+ }
81
+ }
82
+
83
+ .fbtn-dropdown {
84
+ position: absolute;
85
+ bottom: 100%;
86
+ left: 0;
87
+ transform: scale(0, 0);
88
+ transition: transform 0s 0.3s;
89
+ width: 100%;
90
+ .fbtn-inner.open & {
91
+ transform: scale(1, 1);
92
+ transition: none;
93
+ }
94
+ .fbtn {
95
+ opacity: 0;
96
+ transform: scale(0, 0);
97
+ .fbtn-inner.open & {
98
+ opacity: 1;
99
+ transform: scale(1, 1);
100
+ }
101
+ }
102
+ }
103
+
104
+ .fbtn-inner {
105
+ position: relative;
106
+ }
107
+
108
+ .fbtn-ori,
109
+ .fbtn-sub {
110
+ transition-duration: 0.3s;
111
+ transition-property: opacity, transform;
112
+ transition-timing-function: $timing;
113
+ &.#{$mdicon-css-prefix} {
114
+ vertical-align: bottom;
115
+ }
116
+ }
117
+
118
+ .fbtn-ori {
119
+ .fbtn-inner.open & {
120
+ opacity: 0;
121
+ transform: rotate(225deg);
122
+ }
123
+ }
124
+
125
+ .fbtn-rotate {
126
+ transition-duration: 0.3s;
127
+ transition-property: opacity, transform;
128
+ transition-timing-function: $timing;
129
+ .fbtn-inner.open & {
130
+ transform: rotate(225deg);
131
+ }
132
+ }
133
+
134
+ .fbtn-sub {
135
+ margin-left: ($line-height / -2);
136
+ opacity: 0;
137
+ position: absolute;
138
+ top: (($fbtn-height - $line-height) / 2);
139
+ left: 50%;
140
+ text-align: center;
141
+ transform: rotate(-225deg);
142
+ width: $line-height;
143
+ .fbtn-inner.open & {
144
+ opacity: 1;
145
+ transform: rotate(0);
146
+ }
147
+ }
148
+
149
+ .fbtn-text {
150
+ background-color: $black-text;
151
+ border-radius: 2px;
152
+ color: $white-text-solid;
153
+ display: none;
154
+ font-size: $font-size-h6;
155
+ line-height: $line-height;
156
+ margin-top: ($line-height / -2 - 2);
157
+ margin-right: $grid-gutter;
158
+ padding: 2px ($grid-gutter / 2);
159
+ position: absolute;
160
+ top: 50%;
161
+ right: 100%;
162
+ white-space: nowrap;
163
+ .fbtn-inner.open & {
164
+ display: block;
165
+ }
166
+ // touch
167
+ html.no-touchevents & {
168
+ display: block;
169
+ opacity: 0;
170
+ transform: scale(0, 0);
171
+ transition: opacity 0.3s $timing, transform 0s 0.3s;
172
+ }
173
+ html.no-touchevents .fbtn:hover > & {
174
+ opacity: 1;
175
+ transform: scale(1, 1);
176
+ transition: opacity 0.3s $timing;
177
+ }
178
+ }
179
+
180
+ .fbtn-wave {
181
+ border-radius: 50%;
182
+ height: 100%;
183
+ position: absolute;
184
+ top: 0;
185
+ left: 0;
186
+ width: 100%;
187
+ }
@@ -0,0 +1,86 @@
1
+ .btn {
2
+ background-color: $offwhite;
3
+ background-image: none;
4
+ background-position: 50% 50%;
5
+ background-size: 100% 100%;
6
+ border: 0;
7
+ border-radius: 2px;
8
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
9
+ color: inherit;
10
+ cursor: pointer;
11
+ display: inline-block;
12
+ font-size: $font-size;
13
+ font-weight: $font-weight-medium;
14
+ line-height: $line-height;
15
+ margin-bottom: 0;
16
+ max-width: 100%;
17
+ padding: (($btn-height - $line-height) / 2) ($grid-gutter / 2);
18
+ position: relative;
19
+ text-align: center;
20
+ text-transform: uppercase;
21
+ user-select: none;
22
+ vertical-align: middle;
23
+ white-space: nowrap;
24
+ &:active,
25
+ &:focus,
26
+ &:hover {
27
+ color: inherit;
28
+ outline: 0;
29
+ text-decoration: none;
30
+ }
31
+ &:after {
32
+ background-color: $offwhite;
33
+ border-radius: 2px;
34
+ box-shadow: 0 3px 9px rgba(0, 0, 0, 0.3);
35
+ content: "";
36
+ display: block;
37
+ height: 100%;
38
+ opacity: 0;
39
+ position: absolute;
40
+ top: 0;
41
+ left: 0;
42
+ transition: opacity 0.3s $timing;
43
+ width: 100%;
44
+ }
45
+ &:active:after,
46
+ &:focus:after {
47
+ opacity: 1;
48
+ }
49
+ &.waves-attach:after {
50
+ background-color: transparent;
51
+ }
52
+ &.disabled,
53
+ &[disabled],
54
+ fieldset[disabled] & {
55
+ box-shadow: none !important;
56
+ cursor: not-allowed;
57
+ opacity: 0.78;
58
+ &:after {
59
+ display: none;
60
+ }
61
+ .waves-ripple {
62
+ display: none;
63
+ }
64
+ }
65
+ }
66
+
67
+ // colour
68
+ @each $color in $palette-list-class {
69
+ $i: index($palette-list-class, $color);
70
+
71
+ .btn-#{$color} {
72
+ background-color: nth($palette-list-color, $i);
73
+ color: nth($palette-list-text, $i);
74
+ &:active,
75
+ &:focus,
76
+ &:hover {
77
+ color: nth($palette-list-text, $i);
78
+ }
79
+ }
80
+ }
81
+
82
+ .btn-block {
83
+ display: block;
84
+ white-space: normal;
85
+ width: 100%;
86
+ }
@@ -0,0 +1,175 @@
1
+ .card {
2
+ background-color: $white;
3
+ border-radius: 2px;
4
+ box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06), 0 0 3px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.18);
5
+ display: block;
6
+ display: flex;
7
+ margin-top: $margin-md;
8
+ margin-bottom: $margin-md;
9
+ position: relative;
10
+ &[href]:focus,
11
+ &[href]:hover {
12
+ text-decoration: none;
13
+ }
14
+ .card-wrap & {
15
+ margin-top: 0;
16
+ }
17
+ }
18
+
19
+ // colour
20
+ @each $color in $palette-list-class {
21
+ $i: index($palette-list-class, $color);
22
+
23
+ .card-#{$color} {
24
+ background-color: nth($palette-list-color, $i);
25
+ color: nth($palette-list-text, $i);
26
+ a,
27
+ a:focus,
28
+ a:hover {
29
+ color: inherit;
30
+ }
31
+ }
32
+ }
33
+
34
+ .card-action {
35
+ border-top: 1px solid $black-divider;
36
+ min-height: $nav-height;
37
+ position: relative;
38
+ @include clearfix();
39
+ &:first-child {
40
+ border-top: 0;
41
+ }
42
+ }
43
+
44
+ .card-action-btn {
45
+ margin: (($nav-height - $btn-height) / 2) ($grid-gutter / 2);
46
+ white-space: nowrap;
47
+ .btn + .btn {
48
+ margin-left: ($grid-gutter / 2);
49
+ }
50
+ }
51
+
52
+ .card-header {
53
+ border-bottom: 1px solid $black-divider;
54
+ display: flex;
55
+ min-height: $header-height;
56
+ position: relative;
57
+ &:last-child {
58
+ border-bottom: 0;
59
+ }
60
+ }
61
+
62
+ .card-header-side {
63
+ min-width: 0;
64
+ padding-top: (($header-height - $line-height) / 2);
65
+ padding-bottom: (($header-height - $line-height) / 2);
66
+ &.pull-left {
67
+ order: -1;
68
+ padding-left: $grid-gutter;
69
+ }
70
+ &.pull-right {
71
+ order: 1;
72
+ padding-right: $grid-gutter;
73
+ }
74
+ }
75
+
76
+ .card-heading {
77
+ display: block;
78
+ font-size: $font-size-h4;
79
+ line-height: $line-height-h4;
80
+ margin-top: $margin-md;
81
+ margin-bottom: $margin-md;
82
+ .card-header & {
83
+ margin-top: 0;
84
+ margin-bottom: 0;
85
+ }
86
+ }
87
+
88
+ .card-img {
89
+ display: block;
90
+ overflow: hidden;
91
+ position: relative;
92
+ &:first-child {
93
+ border-radius: 2px 2px 0 0;
94
+ }
95
+ &:last-child {
96
+ border-radius: 0 0 2px 2px;
97
+ }
98
+ img {
99
+ display: block;
100
+ height: auto;
101
+ margin-right: auto;
102
+ margin-left: auto;
103
+ }
104
+ }
105
+
106
+ .card-img-heading {
107
+ background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
108
+ color: $white-text-solid;
109
+ font-size: $font-size-h4;
110
+ line-height: $line-height-h4;
111
+ margin: 0;
112
+ padding: $margin-sm $grid-gutter;
113
+ position: absolute;
114
+ bottom: 0;
115
+ left: 0;
116
+ width: 100%;
117
+ }
118
+
119
+ .card-inner {
120
+ margin: $margin-md $grid-gutter;
121
+ min-width: 0;
122
+ position: relative;
123
+ .card-header & {
124
+ flex: 1;
125
+ font-size: $font-size-h5;
126
+ line-height: $line-height-h5;
127
+ margin-top: (($header-height - $line-height-h5) / 2);
128
+ margin-bottom: (($header-height - $line-height-h5) / 2);
129
+ }
130
+ }
131
+
132
+ .card-main {
133
+ flex: 1;
134
+ min-width: 0;
135
+ }
136
+
137
+ .card-side {
138
+ background-color: $offwhite-solid;
139
+ border-radius: 2px 0 0 2px;
140
+ max-width: 33.33333%;
141
+ padding-right: $grid-gutter;
142
+ padding-left: $grid-gutter;
143
+ &[href] {
144
+ color: inherit;
145
+ &:focus,
146
+ &:hover {
147
+ text-decoration: none;
148
+ }
149
+ }
150
+ &.card-side-img {
151
+ overflow: hidden;
152
+ padding-right: 0;
153
+ padding-left: 0;
154
+ }
155
+ &.pull-right {
156
+ border-radius: 0 2px 2px 0;
157
+ order: 1;
158
+ }
159
+ }
160
+
161
+ // colour
162
+ @each $color in $palette-list-class {
163
+ $i: index($palette-list-class, $color);
164
+
165
+ .card-#{$color} .card-side {
166
+ background-color: nth($palette-list-dark, $i);
167
+ color: nth($palette-list-text-dark, $i);
168
+ }
169
+ }
170
+
171
+ .card-wrap {
172
+ margin-top: $margin-md;
173
+ margin-bottom: ($margin-md * -1);
174
+ @include clearfix();
175
+ }