jekyll-theme-centos 2.3.0.beta.78 → 2.3.0.beta.81

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/_data/centos/identity.yml +7 -9
  3. data/_data/centos/navbar.yml +8 -8
  4. data/_includes/footer.html +21 -19
  5. data/_includes/head.html +6 -7
  6. data/_includes/navbar.html +1 -1
  7. data/_includes/script.html +6 -9
  8. data/_sass/bootstrap/_accordion.scss +149 -0
  9. data/_sass/bootstrap/_alert.scss +71 -0
  10. data/_sass/bootstrap/_badge.scss +38 -0
  11. data/_sass/bootstrap/_breadcrumb.scss +40 -0
  12. data/_sass/bootstrap/_button-group.scss +142 -0
  13. data/_sass/bootstrap/_buttons.scss +207 -0
  14. data/_sass/bootstrap/_card.scss +234 -0
  15. data/_sass/bootstrap/_carousel.scss +226 -0
  16. data/_sass/bootstrap/_close.scss +40 -0
  17. data/_sass/bootstrap/_containers.scss +41 -0
  18. data/_sass/bootstrap/_dropdown.scss +249 -0
  19. data/_sass/bootstrap/_forms.scss +9 -0
  20. data/_sass/bootstrap/_functions.scss +302 -0
  21. data/_sass/bootstrap/_grid.scss +33 -0
  22. data/_sass/bootstrap/_helpers.scss +10 -0
  23. data/_sass/bootstrap/_images.scss +42 -0
  24. data/_sass/bootstrap/_list-group.scss +192 -0
  25. data/_sass/bootstrap/_maps.scss +54 -0
  26. data/_sass/bootstrap/_mixins.scss +43 -0
  27. data/_sass/bootstrap/_modal.scss +237 -0
  28. data/_sass/bootstrap/_nav.scss +172 -0
  29. data/_sass/bootstrap/_navbar.scss +278 -0
  30. data/_sass/bootstrap/_offcanvas.scss +144 -0
  31. data/_sass/bootstrap/_pagination.scss +109 -0
  32. data/_sass/bootstrap/_placeholders.scss +51 -0
  33. data/_sass/bootstrap/_popover.scss +196 -0
  34. data/_sass/bootstrap/_progress.scss +59 -0
  35. data/_sass/bootstrap/_reboot.scss +610 -0
  36. data/_sass/bootstrap/_root.scss +73 -0
  37. data/_sass/bootstrap/_spinners.scss +85 -0
  38. data/_sass/bootstrap/_tables.scss +164 -0
  39. data/_sass/bootstrap/_toasts.scss +73 -0
  40. data/_sass/bootstrap/_tooltip.scss +120 -0
  41. data/_sass/bootstrap/_transitions.scss +27 -0
  42. data/_sass/bootstrap/_type.scss +106 -0
  43. data/_sass/bootstrap/_utilities.scss +647 -0
  44. data/_sass/bootstrap/_variables.scss +1634 -0
  45. data/_sass/bootstrap/bootstrap-grid.scss +64 -0
  46. data/_sass/bootstrap/bootstrap-reboot.scss +9 -0
  47. data/_sass/bootstrap/bootstrap-utilities.scss +18 -0
  48. data/_sass/bootstrap/bootstrap.scss +51 -0
  49. data/_sass/bootstrap/forms/_floating-labels.scss +75 -0
  50. data/_sass/bootstrap/forms/_form-check.scss +175 -0
  51. data/_sass/bootstrap/forms/_form-control.scss +194 -0
  52. data/_sass/bootstrap/forms/_form-range.scss +91 -0
  53. data/_sass/bootstrap/forms/_form-select.scss +71 -0
  54. data/_sass/bootstrap/forms/_form-text.scss +11 -0
  55. data/_sass/bootstrap/forms/_input-group.scss +132 -0
  56. data/_sass/bootstrap/forms/_labels.scss +36 -0
  57. data/_sass/bootstrap/forms/_validation.scss +12 -0
  58. data/_sass/bootstrap/helpers/_clearfix.scss +3 -0
  59. data/_sass/bootstrap/helpers/_color-bg.scss +10 -0
  60. data/_sass/bootstrap/helpers/_colored-links.scss +12 -0
  61. data/_sass/bootstrap/helpers/_position.scss +36 -0
  62. data/_sass/bootstrap/helpers/_ratio.scss +26 -0
  63. data/_sass/bootstrap/helpers/_stacks.scss +15 -0
  64. data/_sass/bootstrap/helpers/_stretched-link.scss +15 -0
  65. data/_sass/bootstrap/helpers/_text-truncation.scss +7 -0
  66. data/_sass/bootstrap/helpers/_visually-hidden.scss +8 -0
  67. data/_sass/bootstrap/helpers/_vr.scss +8 -0
  68. data/_sass/bootstrap/mixins/_alert.scss +15 -0
  69. data/_sass/bootstrap/mixins/_backdrop.scss +14 -0
  70. data/_sass/bootstrap/mixins/_banner.scss +9 -0
  71. data/_sass/bootstrap/mixins/_border-radius.scss +78 -0
  72. data/_sass/bootstrap/mixins/_box-shadow.scss +18 -0
  73. data/_sass/bootstrap/mixins/_breakpoints.scss +127 -0
  74. data/_sass/bootstrap/mixins/_buttons.scss +70 -0
  75. data/_sass/bootstrap/mixins/_caret.scss +64 -0
  76. data/_sass/bootstrap/mixins/_clearfix.scss +9 -0
  77. data/_sass/bootstrap/mixins/_color-scheme.scss +7 -0
  78. data/_sass/bootstrap/mixins/_container.scss +11 -0
  79. data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
  80. data/_sass/bootstrap/mixins/_forms.scss +152 -0
  81. data/_sass/bootstrap/mixins/_gradients.scss +47 -0
  82. data/_sass/bootstrap/mixins/_grid.scss +151 -0
  83. data/_sass/bootstrap/mixins/_image.scss +16 -0
  84. data/_sass/bootstrap/mixins/_list-group.scss +24 -0
  85. data/_sass/bootstrap/mixins/_lists.scss +7 -0
  86. data/_sass/bootstrap/mixins/_pagination.scss +10 -0
  87. data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
  88. data/_sass/bootstrap/mixins/_resize.scss +6 -0
  89. data/_sass/bootstrap/mixins/_table-variants.scss +24 -0
  90. data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
  91. data/_sass/bootstrap/mixins/_transition.scss +26 -0
  92. data/_sass/bootstrap/mixins/_utilities.scss +97 -0
  93. data/_sass/bootstrap/mixins/_visually-hidden.scss +29 -0
  94. data/_sass/bootstrap/utilities/_api.scss +47 -0
  95. data/_sass/bootstrap/vendor/_rfs.scss +354 -0
  96. data/_sass/{_adjustments.scss → centos/_adjustments.scss} +13 -2
  97. data/_sass/centos/_variables.scss +22 -0
  98. data/_sass/{sites/lists.scss → centos/sites/_lists.scss} +9 -2
  99. data/assets/css/stylesheet.lists.min.scss +4 -3
  100. data/assets/css/stylesheet.min.scss +3 -2
  101. data/assets/js/bootstrap.bundle.js +7075 -0
  102. data/assets/js/bootstrap.bundle.js.map +1 -0
  103. data/assets/js/bootstrap.bundle.min.js +7 -0
  104. data/assets/js/bootstrap.bundle.min.js.map +1 -0
  105. data/assets/js/bootstrap.esm.js +5202 -0
  106. data/assets/js/bootstrap.esm.js.map +1 -0
  107. data/assets/js/bootstrap.esm.min.js +7 -0
  108. data/assets/js/bootstrap.esm.min.js.map +1 -0
  109. data/assets/js/bootstrap.js +5249 -0
  110. data/assets/js/bootstrap.js.map +1 -0
  111. data/assets/js/bootstrap.min.js +7 -0
  112. data/assets/js/bootstrap.min.js.map +1 -0
  113. metadata +105 -5
  114. data/_sass/_variables.scss +0 -27
@@ -0,0 +1,142 @@
1
+ // Make the div behave like a button
2
+ .btn-group,
3
+ .btn-group-vertical {
4
+ position: relative;
5
+ display: inline-flex;
6
+ vertical-align: middle; // match .btn alignment given font-size hack above
7
+
8
+ > .btn {
9
+ position: relative;
10
+ flex: 1 1 auto;
11
+ }
12
+
13
+ // Bring the hover, focused, and "active" buttons to the front to overlay
14
+ // the borders properly
15
+ > .btn-check:checked + .btn,
16
+ > .btn-check:focus + .btn,
17
+ > .btn:hover,
18
+ > .btn:focus,
19
+ > .btn:active,
20
+ > .btn.active {
21
+ z-index: 1;
22
+ }
23
+ }
24
+
25
+ // Optional: Group multiple button groups together for a toolbar
26
+ .btn-toolbar {
27
+ display: flex;
28
+ flex-wrap: wrap;
29
+ justify-content: flex-start;
30
+
31
+ .input-group {
32
+ width: auto;
33
+ }
34
+ }
35
+
36
+ .btn-group {
37
+ @include border-radius($btn-border-radius);
38
+
39
+ // Prevent double borders when buttons are next to each other
40
+ > :not(.btn-check:first-child) + .btn,
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.dropdown-toggle-split:first-child,
48
+ > .btn-group:not(:last-child) > .btn {
49
+ @include border-end-radius(0);
50
+ }
51
+
52
+ // The left radius should be 0 if the button is:
53
+ // - the "third or more" child
54
+ // - the second child and the previous element isn't `.btn-check` (making it the first child visually)
55
+ // - part of a btn-group which isn't the first child
56
+ > .btn:nth-child(n + 3),
57
+ > :not(.btn-check) + .btn,
58
+ > .btn-group:not(:first-child) > .btn {
59
+ @include border-start-radius(0);
60
+ }
61
+ }
62
+
63
+ // Sizing
64
+ //
65
+ // Remix the default button sizing classes into new ones for easier manipulation.
66
+
67
+ .btn-group-sm > .btn { @extend .btn-sm; }
68
+ .btn-group-lg > .btn { @extend .btn-lg; }
69
+
70
+
71
+ //
72
+ // Split button dropdowns
73
+ //
74
+
75
+ .dropdown-toggle-split {
76
+ padding-right: $btn-padding-x * .75;
77
+ padding-left: $btn-padding-x * .75;
78
+
79
+ &::after,
80
+ .dropup &::after,
81
+ .dropend &::after {
82
+ margin-left: 0;
83
+ }
84
+
85
+ .dropstart &::before {
86
+ margin-right: 0;
87
+ }
88
+ }
89
+
90
+ .btn-sm + .dropdown-toggle-split {
91
+ padding-right: $btn-padding-x-sm * .75;
92
+ padding-left: $btn-padding-x-sm * .75;
93
+ }
94
+
95
+ .btn-lg + .dropdown-toggle-split {
96
+ padding-right: $btn-padding-x-lg * .75;
97
+ padding-left: $btn-padding-x-lg * .75;
98
+ }
99
+
100
+
101
+ // The clickable button for toggling the menu
102
+ // Set the same inset shadow as the :active state
103
+ .btn-group.show .dropdown-toggle {
104
+ @include box-shadow($btn-active-box-shadow);
105
+
106
+ // Show no shadow for `.btn-link` since it has no other button styles.
107
+ &.btn-link {
108
+ @include box-shadow(none);
109
+ }
110
+ }
111
+
112
+
113
+ //
114
+ // Vertical button groups
115
+ //
116
+
117
+ .btn-group-vertical {
118
+ flex-direction: column;
119
+ align-items: flex-start;
120
+ justify-content: center;
121
+
122
+ > .btn,
123
+ > .btn-group {
124
+ width: 100%;
125
+ }
126
+
127
+ > .btn:not(:first-child),
128
+ > .btn-group:not(:first-child) {
129
+ margin-top: -$btn-border-width;
130
+ }
131
+
132
+ // Reset rounded corners
133
+ > .btn:not(:last-child):not(.dropdown-toggle),
134
+ > .btn-group:not(:last-child) > .btn {
135
+ @include border-bottom-radius(0);
136
+ }
137
+
138
+ > .btn ~ .btn,
139
+ > .btn-group:not(:first-child) > .btn {
140
+ @include border-top-radius(0);
141
+ }
142
+ }
@@ -0,0 +1,207 @@
1
+ //
2
+ // Base styles
3
+ //
4
+
5
+ .btn {
6
+ // scss-docs-start btn-css-vars
7
+ --#{$prefix}btn-padding-x: #{$btn-padding-x};
8
+ --#{$prefix}btn-padding-y: #{$btn-padding-y};
9
+ --#{$prefix}btn-font-family: #{$btn-font-family};
10
+ @include rfs($btn-font-size, --#{$prefix}btn-font-size);
11
+ --#{$prefix}btn-font-weight: #{$btn-font-weight};
12
+ --#{$prefix}btn-line-height: #{$btn-line-height};
13
+ --#{$prefix}btn-color: #{$body-color};
14
+ --#{$prefix}btn-bg: transparent;
15
+ --#{$prefix}btn-border-width: #{$btn-border-width};
16
+ --#{$prefix}btn-border-color: transparent;
17
+ --#{$prefix}btn-border-radius: #{$btn-border-radius};
18
+ --#{$prefix}btn-hover-border-color: transparent;
19
+ --#{$prefix}btn-box-shadow: #{$btn-box-shadow};
20
+ --#{$prefix}btn-disabled-opacity: #{$btn-disabled-opacity};
21
+ --#{$prefix}btn-focus-box-shadow: 0 0 0 #{$btn-focus-width} rgba(var(--#{$prefix}btn-focus-shadow-rgb), .5);
22
+ // scss-docs-end btn-css-vars
23
+
24
+ display: inline-block;
25
+ padding: var(--#{$prefix}btn-padding-y) var(--#{$prefix}btn-padding-x);
26
+ font-family: var(--#{$prefix}btn-font-family);
27
+ @include font-size(var(--#{$prefix}btn-font-size));
28
+ font-weight: var(--#{$prefix}btn-font-weight);
29
+ line-height: var(--#{$prefix}btn-line-height);
30
+ color: var(--#{$prefix}btn-color);
31
+ text-align: center;
32
+ text-decoration: if($link-decoration == none, null, none);
33
+ white-space: $btn-white-space;
34
+ vertical-align: middle;
35
+ cursor: if($enable-button-pointers, pointer, null);
36
+ user-select: none;
37
+ border: var(--#{$prefix}btn-border-width) solid var(--#{$prefix}btn-border-color);
38
+ @include border-radius(var(--#{$prefix}btn-border-radius));
39
+ @include gradient-bg(var(--#{$prefix}btn-bg));
40
+ @include box-shadow(var(--#{$prefix}btn-box-shadow));
41
+ @include transition($btn-transition);
42
+
43
+ &:hover {
44
+ color: var(--#{$prefix}btn-hover-color);
45
+ text-decoration: if($link-hover-decoration == underline, none, null);
46
+ background-color: var(--#{$prefix}btn-hover-bg);
47
+ border-color: var(--#{$prefix}btn-hover-border-color);
48
+ }
49
+
50
+ .btn-check + &:hover {
51
+ // override for the checkbox/radio buttons
52
+ color: var(--#{$prefix}btn-color);
53
+ background-color: var(--#{$prefix}btn-bg);
54
+ border-color: var(--#{$prefix}btn-border-color);
55
+ }
56
+
57
+ &:focus-visible {
58
+ color: var(--#{$prefix}btn-hover-color);
59
+ @include gradient-bg(var(--#{$prefix}btn-hover-bg));
60
+ border-color: var(--#{$prefix}btn-hover-border-color);
61
+ outline: 0;
62
+ // Avoid using mixin so we can pass custom focus shadow properly
63
+ @if $enable-shadows {
64
+ box-shadow: var(--#{$prefix}btn-box-shadow), var(--#{$prefix}btn-focus-box-shadow);
65
+ } @else {
66
+ box-shadow: var(--#{$prefix}btn-focus-box-shadow);
67
+ }
68
+ }
69
+
70
+ .btn-check:focus-visible + & {
71
+ border-color: var(--#{$prefix}btn-hover-border-color);
72
+ outline: 0;
73
+ // Avoid using mixin so we can pass custom focus shadow properly
74
+ @if $enable-shadows {
75
+ box-shadow: var(--#{$prefix}btn-box-shadow), var(--#{$prefix}btn-focus-box-shadow);
76
+ } @else {
77
+ box-shadow: var(--#{$prefix}btn-focus-box-shadow);
78
+ }
79
+ }
80
+
81
+ .btn-check:checked + &,
82
+ :not(.btn-check) + &:active,
83
+ &:first-child:active,
84
+ &.active,
85
+ &.show {
86
+ color: var(--#{$prefix}btn-active-color);
87
+ background-color: var(--#{$prefix}btn-active-bg);
88
+ // Remove CSS gradients if they're enabled
89
+ background-image: if($enable-gradients, none, null);
90
+ border-color: var(--#{$prefix}btn-active-border-color);
91
+ @include box-shadow(var(--#{$prefix}btn-active-shadow));
92
+
93
+ &:focus-visible {
94
+ // Avoid using mixin so we can pass custom focus shadow properly
95
+ @if $enable-shadows {
96
+ box-shadow: var(--#{$prefix}btn-active-shadow), var(--#{$prefix}btn-focus-box-shadow);
97
+ } @else {
98
+ box-shadow: var(--#{$prefix}btn-focus-box-shadow);
99
+ }
100
+ }
101
+ }
102
+
103
+ &:disabled,
104
+ &.disabled,
105
+ fieldset:disabled & {
106
+ color: var(--#{$prefix}btn-disabled-color);
107
+ pointer-events: none;
108
+ background-color: var(--#{$prefix}btn-disabled-bg);
109
+ background-image: if($enable-gradients, none, null);
110
+ border-color: var(--#{$prefix}btn-disabled-border-color);
111
+ opacity: var(--#{$prefix}btn-disabled-opacity);
112
+ @include box-shadow(none);
113
+ }
114
+ }
115
+
116
+
117
+ //
118
+ // Alternate buttons
119
+ //
120
+
121
+ // scss-docs-start btn-variant-loops
122
+ @each $color, $value in $theme-colors {
123
+ .btn-#{$color} {
124
+ @if $color == "light" {
125
+ @include button-variant(
126
+ $value,
127
+ $value,
128
+ $hover-background: shade-color($value, $btn-hover-bg-shade-amount),
129
+ $hover-border: shade-color($value, $btn-hover-border-shade-amount),
130
+ $active-background: shade-color($value, $btn-active-bg-shade-amount),
131
+ $active-border: shade-color($value, $btn-active-border-shade-amount)
132
+ );
133
+ } @else if $color == "dark" {
134
+ @include button-variant(
135
+ $value,
136
+ $value,
137
+ $hover-background: tint-color($value, $btn-hover-bg-tint-amount),
138
+ $hover-border: tint-color($value, $btn-hover-border-tint-amount),
139
+ $active-background: tint-color($value, $btn-active-bg-tint-amount),
140
+ $active-border: tint-color($value, $btn-active-border-tint-amount)
141
+ );
142
+ } @else {
143
+ @include button-variant($value, $value);
144
+ }
145
+ }
146
+ }
147
+
148
+ @each $color, $value in $theme-colors {
149
+ .btn-outline-#{$color} {
150
+ @include button-outline-variant($value);
151
+ }
152
+ }
153
+ // scss-docs-end btn-variant-loops
154
+
155
+
156
+ //
157
+ // Link buttons
158
+ //
159
+
160
+ // Make a button look and behave like a link
161
+ .btn-link {
162
+ --#{$prefix}btn-font-weight: #{$font-weight-normal};
163
+ --#{$prefix}btn-color: #{$btn-link-color};
164
+ --#{$prefix}btn-bg: transparent;
165
+ --#{$prefix}btn-border-color: transparent;
166
+ --#{$prefix}btn-hover-color: #{$btn-link-hover-color};
167
+ --#{$prefix}btn-hover-border-color: transparent;
168
+ --#{$prefix}btn-active-color: #{$btn-link-hover-color};
169
+ --#{$prefix}btn-active-border-color: transparent;
170
+ --#{$prefix}btn-disabled-color: #{$btn-link-disabled-color};
171
+ --#{$prefix}btn-disabled-border-color: transparent;
172
+ --#{$prefix}btn-box-shadow: none;
173
+ --#{$prefix}btn-focus-shadow-rgb: #{to-rgb(mix(color-contrast($primary), $primary, 15%))};
174
+
175
+ text-decoration: $link-decoration;
176
+ @if $enable-gradients {
177
+ background-image: none;
178
+ }
179
+
180
+ &:hover,
181
+ &:focus-visible {
182
+ text-decoration: $link-hover-decoration;
183
+ }
184
+
185
+ &:focus-visible {
186
+ color: var(--#{$prefix}btn-color);
187
+ }
188
+
189
+ &:hover {
190
+ color: var(--#{$prefix}btn-hover-color);
191
+ }
192
+
193
+ // No need for an active state here
194
+ }
195
+
196
+
197
+ //
198
+ // Button Sizes
199
+ //
200
+
201
+ .btn-lg {
202
+ @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-border-radius-lg);
203
+ }
204
+
205
+ .btn-sm {
206
+ @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-border-radius-sm);
207
+ }
@@ -0,0 +1,234 @@
1
+ //
2
+ // Base styles
3
+ //
4
+
5
+ .card {
6
+ // scss-docs-start card-css-vars
7
+ --#{$prefix}card-spacer-y: #{$card-spacer-y};
8
+ --#{$prefix}card-spacer-x: #{$card-spacer-x};
9
+ --#{$prefix}card-title-spacer-y: #{$card-title-spacer-y};
10
+ --#{$prefix}card-border-width: #{$card-border-width};
11
+ --#{$prefix}card-border-color: #{$card-border-color};
12
+ --#{$prefix}card-border-radius: #{$card-border-radius};
13
+ --#{$prefix}card-box-shadow: #{$card-box-shadow};
14
+ --#{$prefix}card-inner-border-radius: #{$card-inner-border-radius};
15
+ --#{$prefix}card-cap-padding-y: #{$card-cap-padding-y};
16
+ --#{$prefix}card-cap-padding-x: #{$card-cap-padding-x};
17
+ --#{$prefix}card-cap-bg: #{$card-cap-bg};
18
+ --#{$prefix}card-cap-color: #{$card-cap-color};
19
+ --#{$prefix}card-height: #{$card-height};
20
+ --#{$prefix}card-color: #{$card-color};
21
+ --#{$prefix}card-bg: #{$card-bg};
22
+ --#{$prefix}card-img-overlay-padding: #{$card-img-overlay-padding};
23
+ --#{$prefix}card-group-margin: #{$card-group-margin};
24
+ // scss-docs-end card-css-vars
25
+
26
+ position: relative;
27
+ display: flex;
28
+ flex-direction: column;
29
+ min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
30
+ height: var(--#{$prefix}card-height);
31
+ word-wrap: break-word;
32
+ background-color: var(--#{$prefix}card-bg);
33
+ background-clip: border-box;
34
+ border: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
35
+ @include border-radius(var(--#{$prefix}card-border-radius));
36
+ @include box-shadow(var(--#{$prefix}card-box-shadow));
37
+
38
+ > hr {
39
+ margin-right: 0;
40
+ margin-left: 0;
41
+ }
42
+
43
+ > .list-group {
44
+ border-top: inherit;
45
+ border-bottom: inherit;
46
+
47
+ &:first-child {
48
+ border-top-width: 0;
49
+ @include border-top-radius(var(--#{$prefix}card-inner-border-radius));
50
+ }
51
+
52
+ &:last-child {
53
+ border-bottom-width: 0;
54
+ @include border-bottom-radius(var(--#{$prefix}card-inner-border-radius));
55
+ }
56
+ }
57
+
58
+ // Due to specificity of the above selector (`.card > .list-group`), we must
59
+ // use a child selector here to prevent double borders.
60
+ > .card-header + .list-group,
61
+ > .list-group + .card-footer {
62
+ border-top: 0;
63
+ }
64
+ }
65
+
66
+ .card-body {
67
+ // Enable `flex-grow: 1` for decks and groups so that card blocks take up
68
+ // as much space as possible, ensuring footers are aligned to the bottom.
69
+ flex: 1 1 auto;
70
+ padding: var(--#{$prefix}card-spacer-y) var(--#{$prefix}card-spacer-x);
71
+ color: var(--#{$prefix}card-color);
72
+ }
73
+
74
+ .card-title {
75
+ margin-bottom: var(--#{$prefix}card-title-spacer-y);
76
+ }
77
+
78
+ .card-subtitle {
79
+ margin-top: calc(-.5 * var(--#{$prefix}card-title-spacer-y)); // stylelint-disable-line function-disallowed-list
80
+ margin-bottom: 0;
81
+ }
82
+
83
+ .card-text:last-child {
84
+ margin-bottom: 0;
85
+ }
86
+
87
+ .card-link {
88
+ &:hover {
89
+ text-decoration: if($link-hover-decoration == underline, none, null);
90
+ }
91
+
92
+ + .card-link {
93
+ margin-left: var(--#{$prefix}card-spacer-x);
94
+ }
95
+ }
96
+
97
+ //
98
+ // Optional textual caps
99
+ //
100
+
101
+ .card-header {
102
+ padding: var(--#{$prefix}card-cap-padding-y) var(--#{$prefix}card-cap-padding-x);
103
+ margin-bottom: 0; // Removes the default margin-bottom of <hN>
104
+ color: var(--#{$prefix}card-cap-color);
105
+ background-color: var(--#{$prefix}card-cap-bg);
106
+ border-bottom: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
107
+
108
+ &:first-child {
109
+ @include border-radius(var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius) 0 0);
110
+ }
111
+ }
112
+
113
+ .card-footer {
114
+ padding: var(--#{$prefix}card-cap-padding-y) var(--#{$prefix}card-cap-padding-x);
115
+ color: var(--#{$prefix}card-cap-color);
116
+ background-color: var(--#{$prefix}card-cap-bg);
117
+ border-top: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
118
+
119
+ &:last-child {
120
+ @include border-radius(0 0 var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius));
121
+ }
122
+ }
123
+
124
+
125
+ //
126
+ // Header navs
127
+ //
128
+
129
+ .card-header-tabs {
130
+ margin-right: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
131
+ margin-bottom: calc(-1 * var(--#{$prefix}card-cap-padding-y)); // stylelint-disable-line function-disallowed-list
132
+ margin-left: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
133
+ border-bottom: 0;
134
+
135
+ .nav-link.active {
136
+ background-color: var(--#{$prefix}card-bg);
137
+ border-bottom-color: var(--#{$prefix}card-bg);
138
+ }
139
+ }
140
+
141
+ .card-header-pills {
142
+ margin-right: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
143
+ margin-left: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
144
+ }
145
+
146
+ // Card image
147
+ .card-img-overlay {
148
+ position: absolute;
149
+ top: 0;
150
+ right: 0;
151
+ bottom: 0;
152
+ left: 0;
153
+ padding: var(--#{$prefix}card-img-overlay-padding);
154
+ @include border-radius(var(--#{$prefix}card-inner-border-radius));
155
+ }
156
+
157
+ .card-img,
158
+ .card-img-top,
159
+ .card-img-bottom {
160
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
161
+ }
162
+
163
+ .card-img,
164
+ .card-img-top {
165
+ @include border-top-radius(var(--#{$prefix}card-inner-border-radius));
166
+ }
167
+
168
+ .card-img,
169
+ .card-img-bottom {
170
+ @include border-bottom-radius(var(--#{$prefix}card-inner-border-radius));
171
+ }
172
+
173
+
174
+ //
175
+ // Card groups
176
+ //
177
+
178
+ .card-group {
179
+ // The child selector allows nested `.card` within `.card-group`
180
+ // to display properly.
181
+ > .card {
182
+ margin-bottom: var(--#{$prefix}card-group-margin);
183
+ }
184
+
185
+ @include media-breakpoint-up(sm) {
186
+ display: flex;
187
+ flex-flow: row wrap;
188
+ // The child selector allows nested `.card` within `.card-group`
189
+ // to display properly.
190
+ > .card {
191
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
192
+ flex: 1 0 0%;
193
+ margin-bottom: 0;
194
+
195
+ + .card {
196
+ margin-left: 0;
197
+ border-left: 0;
198
+ }
199
+
200
+ // Handle rounded corners
201
+ @if $enable-rounded {
202
+ &:not(:last-child) {
203
+ @include border-end-radius(0);
204
+
205
+ .card-img-top,
206
+ .card-header {
207
+ // stylelint-disable-next-line property-disallowed-list
208
+ border-top-right-radius: 0;
209
+ }
210
+ .card-img-bottom,
211
+ .card-footer {
212
+ // stylelint-disable-next-line property-disallowed-list
213
+ border-bottom-right-radius: 0;
214
+ }
215
+ }
216
+
217
+ &:not(:first-child) {
218
+ @include border-start-radius(0);
219
+
220
+ .card-img-top,
221
+ .card-header {
222
+ // stylelint-disable-next-line property-disallowed-list
223
+ border-top-left-radius: 0;
224
+ }
225
+ .card-img-bottom,
226
+ .card-footer {
227
+ // stylelint-disable-next-line property-disallowed-list
228
+ border-bottom-left-radius: 0;
229
+ }
230
+ }
231
+ }
232
+ }
233
+ }
234
+ }