material-sass 4.0.0.alpha5 → 4.0.0.alpha6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +7 -5
  3. data/app/assets/javascripts/material/addons-materialise/wave.js +11 -8
  4. data/app/assets/javascripts/material/src/floating-label.js +5 -5
  5. data/app/assets/javascripts/material/src/navdrawer.js +7 -7
  6. data/app/assets/javascripts/material/src/tab-switch.js +15 -18
  7. data/app/assets/javascripts/material/src/util.js +1 -1
  8. data/app/assets/javascripts/material.js +24 -27
  9. data/app/assets/stylesheets/material/_mixins.scss +2 -0
  10. data/app/assets/stylesheets/material/_utilities.scss +3 -0
  11. data/app/assets/stylesheets/material/_variables.scss +24 -2
  12. data/app/assets/stylesheets/material/base/_base.scss +5 -482
  13. data/app/assets/stylesheets/material/base/_grid.scss +11 -0
  14. data/app/assets/stylesheets/material/base/_normalize.scss +253 -0
  15. data/app/assets/stylesheets/material/base/_reboot.scss +239 -0
  16. data/app/assets/stylesheets/material/base/_typography.scss +0 -10
  17. data/app/assets/stylesheets/material/bootstrap/_alert.scss +0 -1
  18. data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +15 -10
  19. data/app/assets/stylesheets/material/bootstrap/_button-group.scss +21 -42
  20. data/app/assets/stylesheets/material/bootstrap/_carousel.scss +81 -126
  21. data/app/assets/stylesheets/material/bootstrap/_close.scss +1 -4
  22. data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +14 -16
  23. data/app/assets/stylesheets/material/bootstrap/_form.scss +95 -52
  24. data/app/assets/stylesheets/material/bootstrap/_media.scss +6 -67
  25. data/app/assets/stylesheets/material/bootstrap/_nav.scss +23 -45
  26. data/app/assets/stylesheets/material/bootstrap/_pagination.scss +4 -14
  27. data/app/assets/stylesheets/material/bootstrap/_popover.scss +7 -5
  28. data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +18 -5
  29. data/app/assets/stylesheets/material/bootstrap/{_animation.scss → _transition.scss} +11 -2
  30. data/app/assets/stylesheets/material/material/_card.scss +185 -123
  31. data/app/assets/stylesheets/material/material/_chip.scss +12 -12
  32. data/app/assets/stylesheets/material/material/_data-table.scss +0 -2
  33. data/app/assets/stylesheets/material/material/_dialog.scss +23 -17
  34. data/app/assets/stylesheets/material/material/_expansion-panel.scss +42 -183
  35. data/app/assets/stylesheets/material/material/_menu.scss +19 -4
  36. data/app/assets/stylesheets/material/material/_navdrawer.scss +16 -12
  37. data/app/assets/stylesheets/material/material/_progress-circular.scss +2 -2
  38. data/app/assets/stylesheets/material/material/_progress.scss +68 -92
  39. data/app/assets/stylesheets/material/material/_selection-control.scss +11 -28
  40. data/app/assets/stylesheets/material/material/_tab.scss +52 -117
  41. data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +9 -4
  42. data/app/assets/stylesheets/material/material/_text-field-input-group.scss +37 -35
  43. data/app/assets/stylesheets/material/material/_text-field.scss +41 -32
  44. data/app/assets/stylesheets/material/material/_toolbar.scss +192 -306
  45. data/app/assets/stylesheets/material/material/_tooltip.scss +19 -20
  46. data/app/assets/stylesheets/material/material.scss +2 -2
  47. data/app/assets/stylesheets/material/mixins/_border-radius.scss +9 -19
  48. data/app/assets/stylesheets/material/mixins/_breakpoint.scss +11 -3
  49. data/app/assets/stylesheets/material/mixins/_form.scss +15 -30
  50. data/app/assets/stylesheets/material/mixins/_grid-framework.scss +58 -0
  51. data/app/assets/stylesheets/material/mixins/_grid.scss +6 -78
  52. data/app/assets/stylesheets/material/mixins/_transform.scss +9 -0
  53. data/app/assets/stylesheets/material/utilities/_border.scss +31 -5
  54. data/app/assets/stylesheets/material/utilities/_display.scss +37 -8
  55. data/app/assets/stylesheets/material/utilities/_flex.scss +140 -0
  56. data/app/assets/stylesheets/material/utilities/_float.scss +5 -3
  57. data/app/assets/stylesheets/material/utilities/_position.scss +24 -0
  58. data/app/assets/stylesheets/material/utilities/_sizing.scss +16 -0
  59. data/app/assets/stylesheets/material/utilities/_spacing.scss +56 -46
  60. data/app/assets/stylesheets/material/utilities/_text.scss +5 -3
  61. data/app/assets/stylesheets/material/variables/_grid.scss +16 -10
  62. data/app/assets/stylesheets/material/variables/_spacer.scss +22 -3
  63. data/app/assets/stylesheets/material/variables/_typography.scss +2 -0
  64. data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +24 -17
  65. data/app/assets/stylesheets/material/variables/_variable-material.scss +47 -52
  66. data/lib/material-sass/version.rb +1 -1
  67. metadata +9 -2
@@ -1,41 +1,40 @@
1
1
  .nav {
2
+ display: flex;
2
3
  list-style: none;
3
4
  margin-bottom: 0;
4
5
  padding-left: 0;
5
6
  }
6
7
 
7
8
  .nav-link {
8
- display: inline-block;
9
- position: relative;
9
+ display: block;
10
+ padding: $nav-link-padding;
10
11
 
11
12
  // active, focus, hover
12
13
  @include active-focus-hover {
13
- @if ($link-decoration-active != "none") {
14
- text-decoration: none;
15
- }
14
+ text-decoration: none;
16
15
  }
17
16
 
18
17
  // disabled
19
18
  &.disabled {
19
+ color: $nav-link-color-disabled;
20
20
  cursor: $cursor-disabled;
21
-
22
- @include plain-active-focus-hover {
23
- color: $nav-link-color-disabled;
24
- }
25
21
  }
26
22
  }
27
23
 
28
24
  //
29
- // inline
25
+ // justified
30
26
  //
31
- .nav-inline {
27
+ .nav-fill {
32
28
  .nav-item {
33
- display: inline-block;
29
+ flex: 1 1 auto;
30
+ text-align: center;
34
31
  }
32
+ }
35
33
 
36
- .nav-item + .nav-item,
37
- .nav-link + .nav-link {
38
- margin-left: $nav-inline-item-spacer;
34
+ .nav-justified {
35
+ .nav-item {
36
+ flex: 1 1 100%;
37
+ text-align: center;
39
38
  }
40
39
  }
41
40
 
@@ -43,20 +42,8 @@
43
42
  // pills
44
43
  //
45
44
  .nav-pills {
46
- @include clearfix;
47
-
48
- .nav-item {
49
- float: left;
50
-
51
- + .nav-item {
52
- margin-left: $nav-item-margin;
53
- }
54
- }
55
-
56
45
  .nav-link {
57
46
  color: $nav-link-color;
58
- display: block;
59
- padding: $nav-link-padding;
60
47
  @include border-radius($border-radius);
61
48
  @include transition-standard(background-color, color);
62
49
 
@@ -65,33 +52,24 @@
65
52
  color: $nav-link-color-active;
66
53
  }
67
54
 
55
+ &.active {
56
+ background-color: $nav-link-bg-active;
57
+ color: $nav-link-color-active;
58
+ cursor: default;
59
+ }
60
+
68
61
  // disabled
69
62
  &.disabled {
70
63
  color: $nav-link-color-disabled;
71
64
  }
72
65
  }
73
66
 
74
- .nav-link.active,
75
- .nav-item.open .nav-link {
76
- cursor: default;
77
-
78
- @include plain-active-focus-hover {
67
+ // open
68
+ .nav-item.show .nav-link {
79
69
  background-color: $nav-link-bg-active;
80
70
  color: $nav-link-color-active;
71
+ cursor: default;
81
72
  }
82
- }
83
- }
84
-
85
- .nav-stacked {
86
- .nav-item {
87
- display: block;
88
- float: none;
89
-
90
- + .nav-item {
91
- margin-top: $nav-item-margin;
92
- margin-left: 0;
93
- }
94
- }
95
73
  }
96
74
 
97
75
  //
@@ -1,20 +1,14 @@
1
1
  .pagination {
2
2
  background-color: $pagination-bg;
3
- display: inline-block;
3
+ display: flex;
4
+ list-style: none;
4
5
  padding: $pagination-padding-y $pagination-padding-x;
5
- position: relative;
6
- vertical-align: middle;
7
- }
8
-
9
- .page-item {
10
- display: inline;
11
6
  }
12
7
 
13
8
  .page-link {
14
- background-color: transparent;
15
9
  color: $btn-color;
10
+ cursor: pointer;
16
11
  display: block;
17
- float: left;
18
12
  font-size: $btn-font-size;
19
13
  font-weight: $btn-font-weight;
20
14
  line-height: 1;
@@ -22,7 +16,6 @@
22
16
  padding: $btn-padding-y $btn-padding-x;
23
17
  position: relative;
24
18
  text-align: center;
25
- vertical-align: middle;
26
19
  white-space: nowrap;
27
20
  @include border-radius($border-radius);
28
21
  @include transition-standard(background-color, color);
@@ -31,10 +24,7 @@
31
24
  @include active-focus-hover {
32
25
  background-color: $btn-bg-active;
33
26
  color: $btn-color;
34
-
35
- @if ($link-decoration-active != "none") {
36
- text-decoration: none;
37
- }
27
+ text-decoration: none;
38
28
  }
39
29
 
40
30
  &:focus {
@@ -18,6 +18,12 @@
18
18
  @include border-radius($border-radius);
19
19
  @include reset-text;
20
20
 
21
+ &,
22
+ &.fade,
23
+ &.fade.show {
24
+ transition-property: opacity;
25
+ }
26
+
21
27
  &.bs-tether-element-attached-bottom,
22
28
  &.popover-top {
23
29
  margin-top: ($tooltip-margin * -1);
@@ -37,11 +43,6 @@
37
43
  &.popover-bottom {
38
44
  margin-top: $tooltip-margin;
39
45
  }
40
-
41
- &.fade,
42
- &.fade.in {
43
- transition-property: opacity;
44
- }
45
46
  }
46
47
 
47
48
  .popover-content {
@@ -53,6 +54,7 @@
53
54
  padding: $dialog-inner-padding;
54
55
  padding-bottom: 0;
55
56
  @include typography-title;
57
+
56
58
  &:empty {
57
59
  display: none;
58
60
  }
@@ -1,9 +1,14 @@
1
1
  .embed-responsive {
2
2
  display: block;
3
- height: 0;
4
3
  overflow: hidden;
5
4
  padding: 0;
6
5
  position: relative;
6
+ width: 100%;
7
+
8
+ &::before {
9
+ content: "";
10
+ display: block;
11
+ }
7
12
 
8
13
  embed,
9
14
  iframe,
@@ -21,17 +26,25 @@
21
26
  }
22
27
 
23
28
  .embed-responsive-1by1 {
24
- padding-bottom: percentage(1 / 1);
29
+ &::before {
30
+ padding-top: percentage(1 / 1);
31
+ }
25
32
  }
26
33
 
27
34
  .embed-responsive-4by3 {
28
- padding-bottom: percentage(3 / 4);
35
+ &::before {
36
+ padding-top: percentage(3 / 4);
37
+ }
29
38
  }
30
39
 
31
40
  .embed-responsive-16by9 {
32
- padding-bottom: percentage(9 / 16);
41
+ &::before {
42
+ padding-top: percentage(9 / 16);
43
+ }
33
44
  }
34
45
 
35
46
  .embed-responsive-21by9 {
36
- padding-bottom: percentage(9 / 21);
47
+ &::before {
48
+ padding-top: percentage(9 / 21);
49
+ }
37
50
  }
@@ -1,11 +1,20 @@
1
1
  .collapse {
2
2
  display: none;
3
3
 
4
- &.in {
4
+ &.show {
5
5
  display: block;
6
6
  }
7
7
  }
8
8
 
9
+ // specific cases for .collapse.show
10
+ tbody.collapse.show {
11
+ display: table-row-group;
12
+ }
13
+
14
+ tr.collapse.show {
15
+ display: table-row;
16
+ }
17
+
9
18
  .collapsing {
10
19
  height: 0;
11
20
  overflow: hidden;
@@ -18,7 +27,7 @@
18
27
  transform: scale(0.87);
19
28
  @include transition-acceleration(opacity, transform);
20
29
 
21
- &.in {
30
+ &.show {
22
31
  opacity: 1;
23
32
  transform: scale(1);
24
33
  @include transition-deceleration(opacity, transform);
@@ -1,30 +1,23 @@
1
1
  .card {
2
2
  background-color: $card-bg;
3
- border: 0;
4
3
  box-shadow: map-get($card-elevation-shadow, shadow);
5
- display: block;
6
- margin-bottom: $card-margin-bottom;
4
+ display: flex;
5
+ flex-direction: column;
7
6
  position: relative;
8
- @include border-radius($border-radius);
9
7
  z-index: map-get($card-elevation-shadow, elevation);
8
+ @include border-radius($border-radius);
10
9
  }
11
10
 
12
- .card[href]:not([tabindex]) {
11
+ .card[href],
12
+ .card[tabindex] {
13
13
  // active, focus, hover
14
14
  @include active-focus-hover {
15
- @if ($link-decoration-active != "none") {
16
- text-decoration: none;
17
- }
18
- }
19
-
20
- &:active,
21
- &.active {
22
15
  box-shadow: map-get($card-elevation-shadow-active, shadow);
16
+ text-decoration: none;
23
17
  z-index: map-get($card-elevation-shadow-active, elevation);
24
18
  }
25
19
 
26
20
  &:focus {
27
- box-shadow: map-get($card-elevation-shadow-active, shadow);
28
21
  outline: 0;
29
22
  }
30
23
  }
@@ -48,7 +41,8 @@
48
41
  // action
49
42
  //
50
43
  .card-actions {
51
- padding: $card-action-spacer-y $card-action-spacer-x;
44
+ display: flex;
45
+ padding: $card-action-spacer-y ($card-action-spacer-x / 2);
52
46
  @include clearfix;
53
47
 
54
48
  &:first-child {
@@ -60,54 +54,53 @@
60
54
  }
61
55
 
62
56
  .btn {
57
+ margin-right: ($card-action-spacer-x / 2);
58
+ margin-left: ($card-action-spacer-x / 2);
63
59
  min-width: 0;
60
+ overflow-x: hidden;
64
61
  padding-right: $card-action-spacer-x;
65
62
  padding-left: $card-action-spacer-x;
66
-
67
- + .btn {
68
- margin-left: $card-action-spacer-x;
69
- }
63
+ text-overflow: ellipsis;
70
64
  }
71
- }
72
65
 
73
- .card-actions-bordered {
74
- border-top: $card-border-width solid $card-border-color;
75
- border-bottom: $card-border-width solid $card-border-color;
76
-
77
- &:first-child {
78
- border-top: 0;
79
- }
66
+ // vertical
67
+ &.flex-column,
68
+ &.flex-column-reverse {
69
+ .btn {
70
+ display: table;
80
71
 
81
- &:last-child {
82
- border-bottom: 0;
83
- }
72
+ + .btn {
73
+ margin-top: ($card-action-spacer-y / 2);
74
+ }
75
+ }
76
+ }
84
77
  }
85
78
 
86
- .card-actions-vertical {
87
- align-items: flex-start;
88
- display: flex;
89
- flex-direction: column;
79
+ .card-link {
80
+ // active, focus, hover
81
+ @include active-focus-hover {
82
+ text-decoration: none;
83
+ }
90
84
 
91
- .btn + .btn,
92
- .card-link + .card-link {
93
- margin-top: $card-action-spacer-y;
94
- margin-left: 0;
85
+ + .card-link {
86
+ margin-left: $card-action-spacer-x;
95
87
  }
96
88
  }
97
89
 
98
- .card-link + .card-link {
99
- margin-left: $card-action-spacer-x;
100
- }
101
-
102
90
  //
103
91
  // block
104
92
  //
105
93
  .card-block {
94
+ flex: 1 1 auto;
106
95
  padding: $card-spacer-inner-y $card-spacer-inner-x;
107
- @include clearfix;
108
96
 
109
- > :last-child {
110
- margin-bottom: 0;
97
+ &:first-child,
98
+ .card-img-top + & {
99
+ padding-top: ($card-spacer-inner-y * 1.5);
100
+ }
101
+
102
+ &:last-child {
103
+ padding-bottom: ($card-spacer-inner-y * 1.5);
111
104
  }
112
105
  }
113
106
 
@@ -115,8 +108,12 @@
115
108
  // footer
116
109
  //
117
110
  .card-footer {
118
- border-top: $card-border-width solid $card-border-color;
119
- padding: $card-spacer-inner-y $card-spacer-inner-x;
111
+ padding: 0 $card-spacer-inner-x $card-spacer-inner-y;
112
+
113
+ &:first-child {
114
+ padding-top: $card-spacer-inner-y;
115
+ @include border-top-radius($border-radius);
116
+ }
120
117
 
121
118
  &:last-child {
122
119
  @include border-bottom-radius($border-radius);
@@ -127,18 +124,73 @@
127
124
  // header
128
125
  //
129
126
  .card-header {
130
- border-bottom: $card-border-width solid $card-border-color;
131
- margin-top: 0;
132
127
  margin-bottom: 0;
133
- padding: $card-spacer-inner-y $card-spacer-inner-x;
134
- @include clearfix;
128
+ padding: $card-spacer-inner-y $card-spacer-inner-x 0;
129
+
130
+ &:first-child,
131
+ .card-img-top + & {
132
+ padding-top: ($card-spacer-inner-y * 1.5);
133
+ }
135
134
 
136
135
  &:first-child {
137
136
  @include border-top-radius($border-radius);
138
137
  }
139
138
 
140
- > :last-child {
141
- margin-bottom: 0;
139
+ &:last-child {
140
+ padding-bottom: ($card-spacer-inner-y * 1.5);
141
+ @include border-bottom-radius($border-radius);
142
+ }
143
+ }
144
+
145
+ .card-header-pills {
146
+ margin-top: ($card-action-spacer-y - $card-spacer-inner-y);
147
+ margin-right: ($card-action-spacer-x - $card-spacer-inner-x);
148
+ margin-bottom: $card-action-spacer-y;
149
+ margin-left: ($card-action-spacer-x - $card-spacer-inner-x);
150
+
151
+ .card-header:first-child &,
152
+ .card-img-top + .card-header & {
153
+ margin-top: ($card-action-spacer-y - $card-spacer-inner-y * 1.5);
154
+ }
155
+
156
+ .nav-item + .nav-item,
157
+ .nav-link + .nav-link {
158
+ margin-left: $card-action-spacer-x;
159
+ }
160
+
161
+ .nav-link {
162
+ padding-right: $card-action-spacer-x;
163
+ padding-left: $card-action-spacer-x;
164
+ }
165
+
166
+ // vertical
167
+ &.flex-column,
168
+ &.flex-column-reverse {
169
+ .nav-item,
170
+ .nav-link {
171
+ display: table;
172
+ }
173
+
174
+ .nav-item + .nav-item,
175
+ .nav-link + .nav-link {
176
+ margin-top: ($card-action-spacer-y / 2);
177
+ margin-left: 0;
178
+ }
179
+ }
180
+ }
181
+
182
+ .card-header-tabs {
183
+ margin-top: ($card-spacer-inner-y * -1);
184
+ margin-right: ($card-spacer-inner-x * -1);
185
+ margin-left: ($card-spacer-inner-x * -1);
186
+
187
+ .card-header:first-child &,
188
+ .card-img-top + .card-header & {
189
+ margin-top: ($card-spacer-inner-y * -1.5);
190
+ }
191
+
192
+ .card-header:last-child & {
193
+ margin-bottom: ($card-spacer-inner-y * -1.5);
142
194
  }
143
195
  }
144
196
 
@@ -161,103 +213,98 @@
161
213
  // image overlay
162
214
  //
163
215
  .card-img-overlay {
164
- padding: $card-spacer-inner-y $card-spacer-inner-x;
216
+ max-height: 100%;
217
+ padding: ($card-spacer-inner-y * 1.5) $card-spacer-inner-x;
165
218
  position: absolute;
166
- top: 0;
167
219
  right: 0;
168
220
  bottom: 0;
169
221
  left: 0;
170
222
  }
171
223
 
172
- .card-img-overlay-body {
173
- display: block;
174
- }
175
-
176
- .card-img-overlay-bottom {
177
- @if $enable-flex {
178
- display: flex;
179
- flex-direction: column;
180
- justify-content: flex-end;
181
- } @else {
182
- white-space: nowrap;
183
-
184
- &::after {
185
- content: "";
186
- display: inline-block;
187
- height: 100%;
188
- width: 1px;
189
- }
190
-
191
- .card-img-overlay-body {
192
- display: inline-block;
193
- white-space: normal;
194
- width: 100%;
195
- }
196
- }
197
- }
198
-
199
224
  //
200
225
  // set
201
226
  //
202
227
  .card-columns {
203
- margin-bottom: $card-margin-bottom;
228
+ column-count: 2;
229
+ column-gap: 0;
230
+ margin-right: ($card-spacer-outer-x / -2);
231
+ margin-left: ($card-spacer-outer-x / -2);
204
232
 
205
233
  .card {
234
+ display: inline-block;
235
+ margin-right: ($card-spacer-outer-x / 2);
206
236
  margin-bottom: $card-spacer-outer-y;
237
+ margin-left: ($card-spacer-outer-x / 2);
238
+ width: calc(100% - #{$card-spacer-outer-x});
207
239
  }
208
240
 
209
241
  @include media-breakpoint-up(sm) {
210
- column-count: 2;
211
- column-gap: 0;
242
+ column-count: 3;
243
+ }
244
+ }
245
+
246
+ .card-deck {
247
+ @include media-breakpoint-up(sm) {
248
+ display: flex;
249
+ flex-flow: row wrap;
212
250
  margin-right: ($card-spacer-outer-x / -2);
213
- margin-bottom: ($card-margin-bottom - $card-spacer-outer-y);
214
251
  margin-left: ($card-spacer-outer-x / -2);
215
252
 
216
253
  .card {
217
- display: inline-block;
254
+ flex: 1 0 0;
218
255
  margin-right: ($card-spacer-outer-x / 2);
256
+ margin-bottom: $card-spacer-outer-y;
219
257
  margin-left: ($card-spacer-outer-x / 2);
220
- width: calc(100% - #{$card-spacer-outer-x});
221
258
  }
222
259
  }
223
-
224
- @include media-breakpoint-up(md) {
225
- column-count: 3;
226
- }
227
260
  }
228
261
 
229
- .card-deck,
230
262
  .card-group {
231
- margin-bottom: $card-margin-bottom;
263
+ @include media-breakpoint-up(sm) {
264
+ display: flex;
265
+ flex-flow: row wrap;
232
266
 
233
- .card {
234
- margin-bottom: $card-spacer-outer-y;
235
- }
236
- }
267
+ .card {
268
+ flex: 1 0 0;
269
+
270
+ &:first-child {
271
+ @include border-right-radius(0);
272
+
273
+ .card-actions,
274
+ .card-footer,
275
+ .card-header,
276
+ .card-img,
277
+ .card-img-bottom,
278
+ .card-img-top {
279
+ @include border-right-radius(0);
280
+ }
281
+ }
237
282
 
238
- @if $enable-flex {
239
- @include media-breakpoint-up(sm) {
240
- }
241
- } @else {
242
- @include media-breakpoint-up(sm) {
243
- .card-deck,
244
- .card-group {
245
- border-spacing: $card-spacer-outer-x 0;
246
- display: table;
247
- table-layout: fixed;
248
- width: 100%;
249
-
250
- .card {
251
- display: table-cell;
252
- margin-bottom: 0;
253
- vertical-align: top;
283
+ &:last-child {
284
+ @include border-left-radius(0);
285
+
286
+ .card-actions,
287
+ .card-footer,
288
+ .card-header,
289
+ .card-img,
290
+ .card-img-bottom,
291
+ .card-img-top {
292
+ @include border-left-radius(0);
293
+ }
254
294
  }
255
- }
256
295
 
257
- .card-deck-wrapper,
258
- .card-group-wrapper {
259
- margin-right: ($card-spacer-outer-x * -1);
260
- margin-left: ($card-spacer-outer-x * -1);
296
+ &:not(:first-child):not(:last-child) {
297
+ @include border-radius(0);
298
+
299
+ .card-actions,
300
+ .card-footer,
301
+ .card-header,
302
+ .card-img,
303
+ .card-img-bottom,
304
+ .card-img-top {
305
+ @include border-radius(0);
306
+ }
307
+ }
261
308
  }
262
309
  }
263
310
  }
@@ -265,22 +312,37 @@
265
312
  //
266
313
  // text and title
267
314
  //
315
+ .card-blockquote {
316
+ border-left: 0;
317
+ margin-bottom: 0;
318
+ padding: 0;
319
+ }
320
+
268
321
  .card-subtitle {
269
- margin-top: ($card-spacer-inner-y / -2);
322
+ margin-top: ($card-spacer-inner-y * -1);
270
323
  margin-bottom: 0;
271
324
  @include typography-body-1;
272
325
  }
273
326
 
274
- .card-text:last-child {
275
- margin-bottom: 0;
327
+ .card-text {
328
+ &:last-child {
329
+ margin-bottom: 0;
330
+ }
276
331
  }
277
332
 
278
333
  .card-title {
279
- margin-top: $card-title-additonal-margin;
280
334
  margin-bottom: $card-spacer-inner-y;
281
335
  @include typography-headline;
282
336
 
283
- &:only-child {
337
+ &:last-child {
338
+ margin-bottom: 0;
339
+ }
340
+
341
+ .card-block:not(:first-child) > &:first-child {
342
+ margin-top: ($card-spacer-inner-y / 2);
343
+ }
344
+
345
+ .card-img-top + .card-block > &:first-child {
284
346
  margin-top: 0;
285
347
  }
286
348
  }