8 flex-direction: column;
9 min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
11 word-wrap: break-word;
12 background-color: $card-bg;
13 background-clip: border-box;
14 border: $card-border-width solid $card-border-color;
15 @include border-radius($card-border-radius);
24 border-bottom: inherit;
28 @include border-top-radius($card-inner-border-radius);
32 border-bottom-width: 0;
33 @include border-bottom-radius($card-inner-border-radius);
37 // Due to specificity of the above selector (`.card > .list-group`), we must
38 // use a child selector here to prevent double borders.
39 > .card-header + .list-group,
40 > .list-group + .card-footer {
46 // Enable `flex-grow: 1` for decks and groups so that card blocks take up
47 // as much space as possible, ensuring footers are aligned to the bottom.
49 // Workaround for the image size bug in IE
50 // See: https://github.com/twbs/bootstrap/pull/28855
52 padding: $card-spacer-x;
57 margin-bottom: $card-spacer-y;
61 margin-top: -$card-spacer-y * .5;
65 .card-text:last-child {
71 text-decoration: none;
75 margin-left: $card-spacer-x;
80 // Optional textual caps
84 //padding: $card-spacer-y $card-spacer-x;
85 padding: $card-spacer-yt $card-spacer-x $card-spacer-yb $card-spacer-x; // Nick
86 margin-bottom: 0; // Removes the default margin-bottom of <hN>
87 color: $card-cap-color;
88 background-color: $card-cap-bg;
89 border-bottom: $card-border-width solid $card-border-color;
92 @include border-radius($card-inner-border-radius $card-inner-border-radius 0 0);
97 //padding: $card-spacer-y $card-spacer-x;
98 padding: $card-spacer-yt $card-spacer-x $card-spacer-yb $card-spacer-x; // Nick
99 color: $card-cap-color;
100 background-color: $card-cap-bg;
101 border-top: $card-border-width solid $card-border-color;
104 @include border-radius(0 0 $card-inner-border-radius $card-inner-border-radius);
114 margin-right: -$card-spacer-x * .5;
115 margin-bottom: -$card-spacer-y;
116 margin-left: -$card-spacer-x * .5;
121 margin-right: -$card-spacer-x * .5;
122 margin-left: -$card-spacer-x * .5;
132 padding: $card-img-overlay-padding;
133 @include border-radius($card-inner-border-radius);
139 flex-shrink: 0; // For IE: https://github.com/twbs/bootstrap/issues/29396
140 width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
145 @include border-top-radius($card-inner-border-radius);
150 @include border-bottom-radius($card-inner-border-radius);
158 margin-bottom: $card-deck-margin;
161 @include media-breakpoint-up(sm) {
164 margin-right: -$card-deck-margin;
165 margin-left: -$card-deck-margin;
168 // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
170 margin-right: $card-deck-margin;
171 margin-bottom: 0; // Override the default
172 margin-left: $card-deck-margin;
183 // The child selector allows nested `.card` within `.card-group`
184 // to display properly.
186 margin-bottom: $card-group-margin;
189 @include media-breakpoint-up(sm) {
192 // The child selector allows nested `.card` within `.card-group`
193 // to display properly.
195 // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
204 // Handle rounded corners
205 @if $enable-rounded {
207 @include border-right-radius(0);
211 // stylelint-disable-next-line property-disallowed-list
212 border-top-right-radius: 0;
216 // stylelint-disable-next-line property-disallowed-list
217 border-bottom-right-radius: 0;
221 &:not(:first-child) {
222 @include border-left-radius(0);
226 // stylelint-disable-next-line property-disallowed-list
227 border-top-left-radius: 0;
231 // stylelint-disable-next-line property-disallowed-list
232 border-bottom-left-radius: 0;
247 margin-bottom: $card-columns-margin;
250 @include media-breakpoint-up(sm) {
251 column-count: $card-columns-count;
252 column-gap: $card-columns-gap;
257 display: inline-block; // Don't let them vertically span multiple columns
258 width: 100%; // Don't let their width change
269 overflow-anchor: none;
274 &:not(:last-of-type) {
276 @include border-bottom-radius(0);
279 &:not(:first-of-type) {
280 @include border-top-radius(0);
284 @include border-radius(0);
285 margin-bottom: -$card-border-width;