devme-jekyll-theme 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. checksums.yaml +7 -0
  2. data/.gemspec +9 -0
  3. data/.gitignore +8 -0
  4. data/Gemfile +30 -0
  5. data/Gemfile.lock +255 -0
  6. data/README.md +2 -0
  7. data/_config.yml +57 -0
  8. data/_includes/head.html +7 -0
  9. data/_includes/scripts.html +2 -0
  10. data/_layouts/default.html +12 -0
  11. data/_sass/bootstrap-jekyll-theme.scss +4 -0
  12. data/_sass/bootstrap/scss/_alert.scss +51 -0
  13. data/_sass/bootstrap/scss/_badge.scss +54 -0
  14. data/_sass/bootstrap/scss/_breadcrumb.scss +42 -0
  15. data/_sass/bootstrap/scss/_button-group.scss +163 -0
  16. data/_sass/bootstrap/scss/_buttons.scss +139 -0
  17. data/_sass/bootstrap/scss/_card.scss +278 -0
  18. data/_sass/bootstrap/scss/_carousel.scss +197 -0
  19. data/_sass/bootstrap/scss/_close.scss +41 -0
  20. data/_sass/bootstrap/scss/_code.scss +48 -0
  21. data/_sass/bootstrap/scss/_custom-forms.scss +521 -0
  22. data/_sass/bootstrap/scss/_dropdown.scss +191 -0
  23. data/_sass/bootstrap/scss/_forms.scss +338 -0
  24. data/_sass/bootstrap/scss/_functions.scss +134 -0
  25. data/_sass/bootstrap/scss/_grid.scss +69 -0
  26. data/_sass/bootstrap/scss/_images.scss +42 -0
  27. data/_sass/bootstrap/scss/_input-group.scss +191 -0
  28. data/_sass/bootstrap/scss/_jumbotron.scss +17 -0
  29. data/_sass/bootstrap/scss/_list-group.scss +158 -0
  30. data/_sass/bootstrap/scss/_media.scss +8 -0
  31. data/_sass/bootstrap/scss/_mixins.scss +47 -0
  32. data/_sass/bootstrap/scss/_modal.scss +239 -0
  33. data/_sass/bootstrap/scss/_nav.scss +120 -0
  34. data/_sass/bootstrap/scss/_navbar.scss +324 -0
  35. data/_sass/bootstrap/scss/_pagination.scss +73 -0
  36. data/_sass/bootstrap/scss/_popover.scss +170 -0
  37. data/_sass/bootstrap/scss/_print.scss +141 -0
  38. data/_sass/bootstrap/scss/_progress.scss +46 -0
  39. data/_sass/bootstrap/scss/_reboot.scss +482 -0
  40. data/_sass/bootstrap/scss/_root.scss +20 -0
  41. data/_sass/bootstrap/scss/_spinners.scss +55 -0
  42. data/_sass/bootstrap/scss/_tables.scss +185 -0
  43. data/_sass/bootstrap/scss/_toasts.scss +44 -0
  44. data/_sass/bootstrap/scss/_tooltip.scss +115 -0
  45. data/_sass/bootstrap/scss/_transitions.scss +20 -0
  46. data/_sass/bootstrap/scss/_type.scss +125 -0
  47. data/_sass/bootstrap/scss/_utilities.scss +17 -0
  48. data/_sass/bootstrap/scss/_variables.scss +1143 -0
  49. data/_sass/bootstrap/scss/bootstrap-grid.scss +29 -0
  50. data/_sass/bootstrap/scss/bootstrap-reboot.scss +12 -0
  51. data/_sass/bootstrap/scss/bootstrap.scss +44 -0
  52. data/_sass/bootstrap/scss/mixins/_alert.scss +13 -0
  53. data/_sass/bootstrap/scss/mixins/_background-variant.scss +22 -0
  54. data/_sass/bootstrap/scss/mixins/_badge.scss +17 -0
  55. data/_sass/bootstrap/scss/mixins/_border-radius.scss +63 -0
  56. data/_sass/bootstrap/scss/mixins/_box-shadow.scss +20 -0
  57. data/_sass/bootstrap/scss/mixins/_breakpoints.scss +123 -0
  58. data/_sass/bootstrap/scss/mixins/_buttons.scss +110 -0
  59. data/_sass/bootstrap/scss/mixins/_caret.scss +62 -0
  60. data/_sass/bootstrap/scss/mixins/_clearfix.scss +7 -0
  61. data/_sass/bootstrap/scss/mixins/_deprecate.scss +10 -0
  62. data/_sass/bootstrap/scss/mixins/_float.scss +14 -0
  63. data/_sass/bootstrap/scss/mixins/_forms.scss +177 -0
  64. data/_sass/bootstrap/scss/mixins/_gradients.scss +45 -0
  65. data/_sass/bootstrap/scss/mixins/_grid-framework.scss +71 -0
  66. data/_sass/bootstrap/scss/mixins/_grid.scss +69 -0
  67. data/_sass/bootstrap/scss/mixins/_hover.scss +37 -0
  68. data/_sass/bootstrap/scss/mixins/_image.scss +36 -0
  69. data/_sass/bootstrap/scss/mixins/_list-group.scss +21 -0
  70. data/_sass/bootstrap/scss/mixins/_lists.scss +7 -0
  71. data/_sass/bootstrap/scss/mixins/_nav-divider.scss +11 -0
  72. data/_sass/bootstrap/scss/mixins/_pagination.scss +22 -0
  73. data/_sass/bootstrap/scss/mixins/_reset-text.scss +17 -0
  74. data/_sass/bootstrap/scss/mixins/_resize.scss +6 -0
  75. data/_sass/bootstrap/scss/mixins/_screen-reader.scss +34 -0
  76. data/_sass/bootstrap/scss/mixins/_size.scss +7 -0
  77. data/_sass/bootstrap/scss/mixins/_table-row.scss +39 -0
  78. data/_sass/bootstrap/scss/mixins/_text-emphasis.scss +17 -0
  79. data/_sass/bootstrap/scss/mixins/_text-hide.scss +11 -0
  80. data/_sass/bootstrap/scss/mixins/_text-truncate.scss +8 -0
  81. data/_sass/bootstrap/scss/mixins/_transition.scss +16 -0
  82. data/_sass/bootstrap/scss/mixins/_visibility.scss +8 -0
  83. data/_sass/bootstrap/scss/utilities/_align.scss +8 -0
  84. data/_sass/bootstrap/scss/utilities/_background.scss +19 -0
  85. data/_sass/bootstrap/scss/utilities/_borders.scss +75 -0
  86. data/_sass/bootstrap/scss/utilities/_clearfix.scss +3 -0
  87. data/_sass/bootstrap/scss/utilities/_display.scss +26 -0
  88. data/_sass/bootstrap/scss/utilities/_embed.scss +39 -0
  89. data/_sass/bootstrap/scss/utilities/_flex.scss +51 -0
  90. data/_sass/bootstrap/scss/utilities/_float.scss +11 -0
  91. data/_sass/bootstrap/scss/utilities/_overflow.scss +5 -0
  92. data/_sass/bootstrap/scss/utilities/_position.scss +32 -0
  93. data/_sass/bootstrap/scss/utilities/_screenreaders.scss +11 -0
  94. data/_sass/bootstrap/scss/utilities/_shadows.scss +6 -0
  95. data/_sass/bootstrap/scss/utilities/_sizing.scss +20 -0
  96. data/_sass/bootstrap/scss/utilities/_spacing.scss +73 -0
  97. data/_sass/bootstrap/scss/utilities/_stretched-link.scss +19 -0
  98. data/_sass/bootstrap/scss/utilities/_text.scss +72 -0
  99. data/_sass/bootstrap/scss/utilities/_visibility.scss +13 -0
  100. data/_sass/bootstrap/scss/vendor/_rfs.scss +204 -0
  101. data/assets/css/style.scss +3 -0
  102. data/assets/js/bootstrap/dist/js/bootstrap.bundle.min.js +7 -0
  103. data/assets/js/jquery/dist/jquery.min.js +2 -0
  104. data/gulpfile.js +46 -0
  105. data/index.html +5 -0
  106. data/package-lock.json +4258 -0
  107. data/package.json +11 -0
  108. metadata +147 -0
@@ -0,0 +1,54 @@
1
+ // Base class
2
+ //
3
+ // Requires one of the contextual, color modifier classes for `color` and
4
+ // `background-color`.
5
+
6
+ .badge {
7
+ display: inline-block;
8
+ padding: $badge-padding-y $badge-padding-x;
9
+ @include font-size($badge-font-size);
10
+ font-weight: $badge-font-weight;
11
+ line-height: 1;
12
+ text-align: center;
13
+ white-space: nowrap;
14
+ vertical-align: baseline;
15
+ @include border-radius($badge-border-radius);
16
+ @include transition($badge-transition);
17
+
18
+ @at-root a#{&} {
19
+ @include hover-focus() {
20
+ text-decoration: none;
21
+ }
22
+ }
23
+
24
+ // Empty badges collapse automatically
25
+ &:empty {
26
+ display: none;
27
+ }
28
+ }
29
+
30
+ // Quick fix for badges in buttons
31
+ .btn .badge {
32
+ position: relative;
33
+ top: -1px;
34
+ }
35
+
36
+ // Pill badges
37
+ //
38
+ // Make them extra rounded with a modifier to replace v3's badges.
39
+
40
+ .badge-pill {
41
+ padding-right: $badge-pill-padding-x;
42
+ padding-left: $badge-pill-padding-x;
43
+ @include border-radius($badge-pill-border-radius);
44
+ }
45
+
46
+ // Colors
47
+ //
48
+ // Contextual variations (linked badges get darker on :hover).
49
+
50
+ @each $color, $value in $theme-colors {
51
+ .badge-#{$color} {
52
+ @include badge-variant($value);
53
+ }
54
+ }
@@ -0,0 +1,42 @@
1
+ .breadcrumb {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ padding: $breadcrumb-padding-y $breadcrumb-padding-x;
5
+ margin-bottom: $breadcrumb-margin-bottom;
6
+ @include font-size($breadcrumb-font-size);
7
+ list-style: none;
8
+ background-color: $breadcrumb-bg;
9
+ @include border-radius($breadcrumb-border-radius);
10
+ }
11
+
12
+ .breadcrumb-item {
13
+ // The separator between breadcrumbs (by default, a forward-slash: "/")
14
+ + .breadcrumb-item {
15
+ padding-left: $breadcrumb-item-padding;
16
+
17
+ &::before {
18
+ display: inline-block; // Suppress underlining of the separator in modern browsers
19
+ padding-right: $breadcrumb-item-padding;
20
+ color: $breadcrumb-divider-color;
21
+ content: escape-svg($breadcrumb-divider);
22
+ }
23
+ }
24
+
25
+ // IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built
26
+ // without `<ul>`s. The `::before` pseudo-element generates an element
27
+ // *within* the .breadcrumb-item and thereby inherits the `text-decoration`.
28
+ //
29
+ // To trick IE into suppressing the underline, we give the pseudo-element an
30
+ // underline and then immediately remove it.
31
+ + .breadcrumb-item:hover::before {
32
+ text-decoration: underline;
33
+ }
34
+ // stylelint-disable-next-line no-duplicate-selectors
35
+ + .breadcrumb-item:hover::before {
36
+ text-decoration: none;
37
+ }
38
+
39
+ &.active {
40
+ color: $breadcrumb-active-color;
41
+ }
42
+ }
@@ -0,0 +1,163 @@
1
+ // stylelint-disable selector-no-qualifying-type
2
+
3
+ // Make the div behave like a button
4
+ .btn-group,
5
+ .btn-group-vertical {
6
+ position: relative;
7
+ display: inline-flex;
8
+ vertical-align: middle; // match .btn alignment given font-size hack above
9
+
10
+ > .btn {
11
+ position: relative;
12
+ flex: 1 1 auto;
13
+
14
+ // Bring the hover, focused, and "active" buttons to the front to overlay
15
+ // the borders properly
16
+ @include hover() {
17
+ z-index: 1;
18
+ }
19
+ &:focus,
20
+ &:active,
21
+ &.active {
22
+ z-index: 1;
23
+ }
24
+ }
25
+ }
26
+
27
+ // Optional: Group multiple button groups together for a toolbar
28
+ .btn-toolbar {
29
+ display: flex;
30
+ flex-wrap: wrap;
31
+ justify-content: flex-start;
32
+
33
+ .input-group {
34
+ width: auto;
35
+ }
36
+ }
37
+
38
+ .btn-group {
39
+ // Prevent double borders when buttons are next to each other
40
+ > .btn:not(:first-child),
41
+ > .btn-group:not(:first-child) {
42
+ margin-left: -$btn-border-width;
43
+ }
44
+
45
+ // Reset rounded corners
46
+ > .btn:not(:last-child):not(.dropdown-toggle),
47
+ > .btn-group:not(:last-child) > .btn {
48
+ @include border-right-radius(0);
49
+ }
50
+
51
+ > .btn:not(:first-child),
52
+ > .btn-group:not(:first-child) > .btn {
53
+ @include border-left-radius(0);
54
+ }
55
+ }
56
+
57
+ // Sizing
58
+ //
59
+ // Remix the default button sizing classes into new ones for easier manipulation.
60
+
61
+ .btn-group-sm > .btn { @extend .btn-sm; }
62
+ .btn-group-lg > .btn { @extend .btn-lg; }
63
+
64
+
65
+ //
66
+ // Split button dropdowns
67
+ //
68
+
69
+ .dropdown-toggle-split {
70
+ padding-right: $btn-padding-x * .75;
71
+ padding-left: $btn-padding-x * .75;
72
+
73
+ &::after,
74
+ .dropup &::after,
75
+ .dropright &::after {
76
+ margin-left: 0;
77
+ }
78
+
79
+ .dropleft &::before {
80
+ margin-right: 0;
81
+ }
82
+ }
83
+
84
+ .btn-sm + .dropdown-toggle-split {
85
+ padding-right: $btn-padding-x-sm * .75;
86
+ padding-left: $btn-padding-x-sm * .75;
87
+ }
88
+
89
+ .btn-lg + .dropdown-toggle-split {
90
+ padding-right: $btn-padding-x-lg * .75;
91
+ padding-left: $btn-padding-x-lg * .75;
92
+ }
93
+
94
+
95
+ // The clickable button for toggling the menu
96
+ // Set the same inset shadow as the :active state
97
+ .btn-group.show .dropdown-toggle {
98
+ @include box-shadow($btn-active-box-shadow);
99
+
100
+ // Show no shadow for `.btn-link` since it has no other button styles.
101
+ &.btn-link {
102
+ @include box-shadow(none);
103
+ }
104
+ }
105
+
106
+
107
+ //
108
+ // Vertical button groups
109
+ //
110
+
111
+ .btn-group-vertical {
112
+ flex-direction: column;
113
+ align-items: flex-start;
114
+ justify-content: center;
115
+
116
+ > .btn,
117
+ > .btn-group {
118
+ width: 100%;
119
+ }
120
+
121
+ > .btn:not(:first-child),
122
+ > .btn-group:not(:first-child) {
123
+ margin-top: -$btn-border-width;
124
+ }
125
+
126
+ // Reset rounded corners
127
+ > .btn:not(:last-child):not(.dropdown-toggle),
128
+ > .btn-group:not(:last-child) > .btn {
129
+ @include border-bottom-radius(0);
130
+ }
131
+
132
+ > .btn:not(:first-child),
133
+ > .btn-group:not(:first-child) > .btn {
134
+ @include border-top-radius(0);
135
+ }
136
+ }
137
+
138
+
139
+ // Checkbox and radio options
140
+ //
141
+ // In order to support the browser's form validation feedback, powered by the
142
+ // `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
143
+ // `display: none;` or `visibility: hidden;` as that also hides the popover.
144
+ // Simply visually hiding the inputs via `opacity` would leave them clickable in
145
+ // certain cases which is prevented by using `clip` and `pointer-events`.
146
+ // This way, we ensure a DOM element is visible to position the popover from.
147
+ //
148
+ // See https://github.com/twbs/bootstrap/pull/12794 and
149
+ // https://github.com/twbs/bootstrap/pull/14559 for more information.
150
+
151
+ .btn-group-toggle {
152
+ > .btn,
153
+ > .btn-group > .btn {
154
+ margin-bottom: 0; // Override default `<label>` value
155
+
156
+ input[type="radio"],
157
+ input[type="checkbox"] {
158
+ position: absolute;
159
+ clip: rect(0, 0, 0, 0);
160
+ pointer-events: none;
161
+ }
162
+ }
163
+ }
@@ -0,0 +1,139 @@
1
+ // stylelint-disable selector-no-qualifying-type
2
+
3
+ //
4
+ // Base styles
5
+ //
6
+
7
+ .btn {
8
+ display: inline-block;
9
+ font-family: $btn-font-family;
10
+ font-weight: $btn-font-weight;
11
+ color: $body-color;
12
+ text-align: center;
13
+ white-space: $btn-white-space;
14
+ vertical-align: middle;
15
+ cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
16
+ user-select: none;
17
+ background-color: transparent;
18
+ border: $btn-border-width solid transparent;
19
+ @include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
20
+ @include transition($btn-transition);
21
+
22
+ @include hover() {
23
+ color: $body-color;
24
+ text-decoration: none;
25
+ }
26
+
27
+ &:focus,
28
+ &.focus {
29
+ outline: 0;
30
+ box-shadow: $btn-focus-box-shadow;
31
+ }
32
+
33
+ // Disabled comes first so active can properly restyle
34
+ &.disabled,
35
+ &:disabled {
36
+ opacity: $btn-disabled-opacity;
37
+ @include box-shadow(none);
38
+ }
39
+
40
+ &:not(:disabled):not(.disabled):active,
41
+ &:not(:disabled):not(.disabled).active {
42
+ @include box-shadow($btn-active-box-shadow);
43
+
44
+ &:focus {
45
+ @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
46
+ }
47
+ }
48
+ }
49
+
50
+ // Future-proof disabling of clicks on `<a>` elements
51
+ a.btn.disabled,
52
+ fieldset:disabled a.btn {
53
+ pointer-events: none;
54
+ }
55
+
56
+
57
+ //
58
+ // Alternate buttons
59
+ //
60
+
61
+ @each $color, $value in $theme-colors {
62
+ .btn-#{$color} {
63
+ @include button-variant($value, $value);
64
+ }
65
+ }
66
+
67
+ @each $color, $value in $theme-colors {
68
+ .btn-outline-#{$color} {
69
+ @include button-outline-variant($value);
70
+ }
71
+ }
72
+
73
+
74
+ //
75
+ // Link buttons
76
+ //
77
+
78
+ // Make a button look and behave like a link
79
+ .btn-link {
80
+ font-weight: $font-weight-normal;
81
+ color: $link-color;
82
+ text-decoration: $link-decoration;
83
+
84
+ @include hover() {
85
+ color: $link-hover-color;
86
+ text-decoration: $link-hover-decoration;
87
+ }
88
+
89
+ &:focus,
90
+ &.focus {
91
+ text-decoration: $link-hover-decoration;
92
+ box-shadow: none;
93
+ }
94
+
95
+ &:disabled,
96
+ &.disabled {
97
+ color: $btn-link-disabled-color;
98
+ pointer-events: none;
99
+ }
100
+
101
+ // No need for an active state here
102
+ }
103
+
104
+
105
+ //
106
+ // Button Sizes
107
+ //
108
+
109
+ .btn-lg {
110
+ @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
111
+ }
112
+
113
+ .btn-sm {
114
+ @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-line-height-sm, $btn-border-radius-sm);
115
+ }
116
+
117
+
118
+ //
119
+ // Block button
120
+ //
121
+
122
+ .btn-block {
123
+ display: block;
124
+ width: 100%;
125
+
126
+ // Vertically space out multiple block buttons
127
+ + .btn-block {
128
+ margin-top: $btn-block-spacing-y;
129
+ }
130
+ }
131
+
132
+ // Specificity overrides
133
+ input[type="submit"],
134
+ input[type="reset"],
135
+ input[type="button"] {
136
+ &.btn-block {
137
+ width: 100%;
138
+ }
139
+ }
@@ -0,0 +1,278 @@
1
+ //
2
+ // Base styles
3
+ //
4
+
5
+ .card {
6
+ position: relative;
7
+ display: flex;
8
+ flex-direction: column;
9
+ min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
10
+ height: $card-height;
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);
16
+
17
+ > hr {
18
+ margin-right: 0;
19
+ margin-left: 0;
20
+ }
21
+
22
+ > .list-group:first-child {
23
+ .list-group-item:first-child {
24
+ @include border-top-radius($card-border-radius);
25
+ }
26
+ }
27
+
28
+ > .list-group:last-child {
29
+ .list-group-item:last-child {
30
+ @include border-bottom-radius($card-border-radius);
31
+ }
32
+ }
33
+ }
34
+
35
+ .card-body {
36
+ // Enable `flex-grow: 1` for decks and groups so that card blocks take up
37
+ // as much space as possible, ensuring footers are aligned to the bottom.
38
+ flex: 1 1 auto;
39
+ // Workaround for the image size bug in IE
40
+ // See: https://github.com/twbs/bootstrap/pull/28855
41
+ min-height: 1px;
42
+ padding: $card-spacer-x;
43
+ color: $card-color;
44
+ }
45
+
46
+ .card-title {
47
+ margin-bottom: $card-spacer-y;
48
+ }
49
+
50
+ .card-subtitle {
51
+ margin-top: -$card-spacer-y / 2;
52
+ margin-bottom: 0;
53
+ }
54
+
55
+ .card-text:last-child {
56
+ margin-bottom: 0;
57
+ }
58
+
59
+ .card-link {
60
+ @include hover() {
61
+ text-decoration: none;
62
+ }
63
+
64
+ + .card-link {
65
+ margin-left: $card-spacer-x;
66
+ }
67
+ }
68
+
69
+ //
70
+ // Optional textual caps
71
+ //
72
+
73
+ .card-header {
74
+ padding: $card-spacer-y $card-spacer-x;
75
+ margin-bottom: 0; // Removes the default margin-bottom of <hN>
76
+ color: $card-cap-color;
77
+ background-color: $card-cap-bg;
78
+ border-bottom: $card-border-width solid $card-border-color;
79
+
80
+ &:first-child {
81
+ @include border-radius($card-inner-border-radius $card-inner-border-radius 0 0);
82
+ }
83
+
84
+ + .list-group {
85
+ .list-group-item:first-child {
86
+ border-top: 0;
87
+ }
88
+ }
89
+ }
90
+
91
+ .card-footer {
92
+ padding: $card-spacer-y $card-spacer-x;
93
+ background-color: $card-cap-bg;
94
+ border-top: $card-border-width solid $card-border-color;
95
+
96
+ &:last-child {
97
+ @include border-radius(0 0 $card-inner-border-radius $card-inner-border-radius);
98
+ }
99
+ }
100
+
101
+
102
+ //
103
+ // Header navs
104
+ //
105
+
106
+ .card-header-tabs {
107
+ margin-right: -$card-spacer-x / 2;
108
+ margin-bottom: -$card-spacer-y;
109
+ margin-left: -$card-spacer-x / 2;
110
+ border-bottom: 0;
111
+ }
112
+
113
+ .card-header-pills {
114
+ margin-right: -$card-spacer-x / 2;
115
+ margin-left: -$card-spacer-x / 2;
116
+ }
117
+
118
+ // Card image
119
+ .card-img-overlay {
120
+ position: absolute;
121
+ top: 0;
122
+ right: 0;
123
+ bottom: 0;
124
+ left: 0;
125
+ padding: $card-img-overlay-padding;
126
+ }
127
+
128
+ .card-img,
129
+ .card-img-top,
130
+ .card-img-bottom {
131
+ flex-shrink: 0; // For IE: https://github.com/twbs/bootstrap/issues/29396
132
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
133
+ }
134
+
135
+ .card-img,
136
+ .card-img-top {
137
+ @include border-top-radius($card-inner-border-radius);
138
+ }
139
+
140
+ .card-img,
141
+ .card-img-bottom {
142
+ @include border-bottom-radius($card-inner-border-radius);
143
+ }
144
+
145
+
146
+ // Card deck
147
+
148
+ .card-deck {
149
+ .card {
150
+ margin-bottom: $card-deck-margin;
151
+ }
152
+
153
+ @include media-breakpoint-up(sm) {
154
+ display: flex;
155
+ flex-flow: row wrap;
156
+ margin-right: -$card-deck-margin;
157
+ margin-left: -$card-deck-margin;
158
+
159
+ .card {
160
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
161
+ flex: 1 0 0%;
162
+ margin-right: $card-deck-margin;
163
+ margin-bottom: 0; // Override the default
164
+ margin-left: $card-deck-margin;
165
+ }
166
+ }
167
+ }
168
+
169
+
170
+ //
171
+ // Card groups
172
+ //
173
+
174
+ .card-group {
175
+ // The child selector allows nested `.card` within `.card-group`
176
+ // to display properly.
177
+ > .card {
178
+ margin-bottom: $card-group-margin;
179
+ }
180
+
181
+ @include media-breakpoint-up(sm) {
182
+ display: flex;
183
+ flex-flow: row wrap;
184
+ // The child selector allows nested `.card` within `.card-group`
185
+ // to display properly.
186
+ > .card {
187
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
188
+ flex: 1 0 0%;
189
+ margin-bottom: 0;
190
+
191
+ + .card {
192
+ margin-left: 0;
193
+ border-left: 0;
194
+ }
195
+
196
+ // Handle rounded corners
197
+ @if $enable-rounded {
198
+ &:not(:last-child) {
199
+ @include border-right-radius(0);
200
+
201
+ .card-img-top,
202
+ .card-header {
203
+ // stylelint-disable-next-line property-blacklist
204
+ border-top-right-radius: 0;
205
+ }
206
+ .card-img-bottom,
207
+ .card-footer {
208
+ // stylelint-disable-next-line property-blacklist
209
+ border-bottom-right-radius: 0;
210
+ }
211
+ }
212
+
213
+ &:not(:first-child) {
214
+ @include border-left-radius(0);
215
+
216
+ .card-img-top,
217
+ .card-header {
218
+ // stylelint-disable-next-line property-blacklist
219
+ border-top-left-radius: 0;
220
+ }
221
+ .card-img-bottom,
222
+ .card-footer {
223
+ // stylelint-disable-next-line property-blacklist
224
+ border-bottom-left-radius: 0;
225
+ }
226
+ }
227
+ }
228
+ }
229
+ }
230
+ }
231
+
232
+
233
+ //
234
+ // Columns
235
+ //
236
+
237
+ .card-columns {
238
+ .card {
239
+ margin-bottom: $card-columns-margin;
240
+ }
241
+
242
+ @include media-breakpoint-up(sm) {
243
+ column-count: $card-columns-count;
244
+ column-gap: $card-columns-gap;
245
+ orphans: 1;
246
+ widows: 1;
247
+
248
+ .card {
249
+ display: inline-block; // Don't let them vertically span multiple columns
250
+ width: 100%; // Don't let their width change
251
+ }
252
+ }
253
+ }
254
+
255
+
256
+ //
257
+ // Accordion
258
+ //
259
+
260
+ .accordion {
261
+ > .card {
262
+ overflow: hidden;
263
+
264
+ &:not(:last-of-type) {
265
+ border-bottom: 0;
266
+ @include border-bottom-radius(0);
267
+ }
268
+
269
+ &:not(:first-of-type) {
270
+ @include border-top-radius(0);
271
+ }
272
+
273
+ > .card-header {
274
+ @include border-radius(0);
275
+ margin-bottom: -$card-border-width;
276
+ }
277
+ }
278
+ }