apx-docs-theme 0.1.7 → 0.1.15

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 (156) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/footer.html +8 -9
  3. data/_includes/head.html +20 -9
  4. data/_includes/js_files.html +21 -3
  5. data/_includes/navbar.html +28 -0
  6. data/_includes/sidebar.html +43 -0
  7. data/_layouts/default.html +10 -10
  8. data/_layouts/docs.html +12 -20
  9. data/_sass/bootstrap/_alert.scss +51 -0
  10. data/_sass/bootstrap/_badge.scss +53 -0
  11. data/_sass/bootstrap/_breadcrumb.scss +41 -0
  12. data/_sass/bootstrap/_button-group.scss +163 -0
  13. data/_sass/bootstrap/_buttons.scss +73 -101
  14. data/_sass/bootstrap/_card.scss +310 -0
  15. data/_sass/bootstrap/_carousel.scss +130 -202
  16. data/_sass/bootstrap/_close.scss +23 -15
  17. data/_sass/bootstrap/_code.scss +15 -36
  18. data/_sass/bootstrap/_custom-forms.scss +507 -0
  19. data/_sass/bootstrap/_dropdown.scss +191 -0
  20. data/_sass/bootstrap/_forms.scss +215 -498
  21. data/_sass/bootstrap/_functions.scss +86 -0
  22. data/_sass/bootstrap/_grid.scss +29 -61
  23. data/_sass/bootstrap/_images.scss +42 -0
  24. data/_sass/bootstrap/_input-group.scss +193 -0
  25. data/_sass/bootstrap/_jumbotron.scss +9 -47
  26. data/_sass/bootstrap/_list-group.scss +70 -79
  27. data/_sass/bootstrap/_media.scss +3 -61
  28. data/_sass/bootstrap/_mixins.scss +19 -18
  29. data/_sass/bootstrap/_modal.scss +186 -0
  30. data/_sass/bootstrap/_nav.scss +120 -0
  31. data/_sass/bootstrap/_navbar.scss +192 -555
  32. data/_sass/bootstrap/_pagination.scss +59 -70
  33. data/_sass/bootstrap/_popover.scss +183 -0
  34. data/_sass/bootstrap/_print.scss +89 -49
  35. data/_sass/bootstrap/_progress.scss +34 -0
  36. data/_sass/bootstrap/_reboot.scss +462 -0
  37. data/_sass/bootstrap/_root.scss +19 -0
  38. data/_sass/bootstrap/_spinners.scss +53 -0
  39. data/_sass/bootstrap/_tables.scss +119 -166
  40. data/_sass/bootstrap/_toasts.scss +43 -0
  41. data/_sass/bootstrap/_tooltip.scss +93 -79
  42. data/_sass/bootstrap/_transitions.scss +22 -0
  43. data/_sass/bootstrap/_type.scss +66 -239
  44. data/_sass/bootstrap/_utilities.scss +16 -55
  45. data/_sass/bootstrap/_variables.scss +926 -709
  46. data/_sass/bootstrap/bootstrap-grid.scss +29 -0
  47. data/_sass/bootstrap/bootstrap-reboot.scss +12 -0
  48. data/_sass/bootstrap/bootstrap.scss +44 -0
  49. data/_sass/bootstrap/mixins/_alert.scss +13 -0
  50. data/_sass/bootstrap/mixins/_background-variant.scss +14 -5
  51. data/_sass/bootstrap/mixins/_badge.scss +11 -0
  52. data/_sass/bootstrap/mixins/_border-radius.scss +25 -8
  53. data/_sass/bootstrap/mixins/_box-shadow.scss +5 -0
  54. data/_sass/bootstrap/mixins/_breakpoints.scss +123 -0
  55. data/_sass/bootstrap/mixins/_buttons.scss +86 -40
  56. data/_sass/bootstrap/mixins/_caret.scss +62 -0
  57. data/_sass/bootstrap/mixins/_clearfix.scss +3 -18
  58. data/_sass/bootstrap/mixins/_float.scss +11 -0
  59. data/_sass/bootstrap/mixins/_forms.scss +176 -66
  60. data/_sass/bootstrap/mixins/_gradients.scss +17 -30
  61. data/_sass/bootstrap/mixins/_grid-framework.scss +51 -66
  62. data/_sass/bootstrap/mixins/_grid.scss +34 -105
  63. data/_sass/bootstrap/mixins/_hover.scss +37 -0
  64. data/_sass/bootstrap/mixins/_image.scss +18 -15
  65. data/_sass/bootstrap/mixins/_list-group.scss +10 -21
  66. data/_sass/bootstrap/mixins/_lists.scss +7 -0
  67. data/_sass/bootstrap/mixins/_nav-divider.scss +4 -4
  68. data/_sass/bootstrap/mixins/_pagination.scss +10 -12
  69. data/_sass/bootstrap/mixins/_reset-text.scss +7 -8
  70. data/_sass/bootstrap/mixins/_resize.scss +1 -1
  71. data/_sass/bootstrap/mixins/_screen-reader.scss +33 -0
  72. data/_sass/bootstrap/mixins/_size.scss +1 -5
  73. data/_sass/bootstrap/mixins/_table-row.scss +26 -15
  74. data/_sass/bootstrap/mixins/_text-emphasis.scss +7 -5
  75. data/_sass/bootstrap/mixins/_text-hide.scss +13 -0
  76. data/_sass/bootstrap/mixins/{_text-overflow.scss → _text-truncate.scss} +2 -2
  77. data/_sass/bootstrap/mixins/_transition.scss +16 -0
  78. data/_sass/bootstrap/mixins/_visibility.scss +7 -0
  79. data/_sass/bootstrap/utilities/_align.scss +8 -0
  80. data/_sass/bootstrap/utilities/_background.scss +19 -0
  81. data/_sass/bootstrap/utilities/_borders.scss +63 -0
  82. data/_sass/bootstrap/utilities/_clearfix.scss +3 -0
  83. data/_sass/bootstrap/utilities/_display.scss +38 -0
  84. data/_sass/bootstrap/utilities/_embed.scss +39 -0
  85. data/_sass/bootstrap/utilities/_flex.scss +51 -0
  86. data/_sass/bootstrap/utilities/_float.scss +9 -0
  87. data/_sass/bootstrap/utilities/_overflow.scss +5 -0
  88. data/_sass/bootstrap/utilities/_position.scss +32 -0
  89. data/_sass/bootstrap/utilities/_screenreaders.scss +11 -0
  90. data/_sass/bootstrap/utilities/_shadows.scss +6 -0
  91. data/_sass/bootstrap/utilities/_sizing.scss +20 -0
  92. data/_sass/bootstrap/utilities/_spacing.scss +73 -0
  93. data/_sass/bootstrap/utilities/_text.scss +67 -0
  94. data/_sass/bootstrap/utilities/_visibility.scss +11 -0
  95. data/_sass/markdown/code.scss +65 -0
  96. data/_sass/markdown/color-system.scss +114 -0
  97. data/_sass/markdown/images.scss +119 -0
  98. data/_sass/markdown/markdown-body.scss +103 -0
  99. data/_sass/markdown/markdown.scss +15 -0
  100. data/_sass/rouge.scss +209 -0
  101. data/_sass/theme.scss +35 -0
  102. data/_sass/{_typeahead.scss → typeahead.scss} +0 -0
  103. data/assets/css/main.scss +1 -90
  104. data/assets/img/{bg.jpg → jumbotron.jpg} +0 -0
  105. data/assets/js/bootstrap.min.js +6 -6
  106. data/assets/js/jquery-3.3.1.min.js +2 -0
  107. data/assets/js/main.js +2 -1
  108. data/assets/js/search.json +11 -0
  109. data/assets/js/typeahead.bundle.js +2621 -0
  110. data/assets/js/typeahead.bundle.min.js +4 -4
  111. metadata +81 -50
  112. data/_includes/pages_nav.html +0 -40
  113. data/_includes/topnav.html +0 -37
  114. data/_sass/_bootstrap.scss +0 -56
  115. data/_sass/_syntax-highlighting.scss +0 -71
  116. data/_sass/bootstrap/_alerts.scss +0 -73
  117. data/_sass/bootstrap/_badges.scss +0 -68
  118. data/_sass/bootstrap/_breadcrumbs.scss +0 -28
  119. data/_sass/bootstrap/_button-groups.scss +0 -244
  120. data/_sass/bootstrap/_component-animations.scss +0 -37
  121. data/_sass/bootstrap/_dropdowns.scss +0 -216
  122. data/_sass/bootstrap/_glyphicons.scss +0 -307
  123. data/_sass/bootstrap/_input-groups.scss +0 -171
  124. data/_sass/bootstrap/_labels.scss +0 -66
  125. data/_sass/bootstrap/_modals.scss +0 -150
  126. data/_sass/bootstrap/_navs.scss +0 -242
  127. data/_sass/bootstrap/_normalize.scss +0 -424
  128. data/_sass/bootstrap/_pager.scss +0 -54
  129. data/_sass/bootstrap/_panels.scss +0 -271
  130. data/_sass/bootstrap/_popovers.scss +0 -131
  131. data/_sass/bootstrap/_progress-bars.scss +0 -87
  132. data/_sass/bootstrap/_responsive-embed.scss +0 -35
  133. data/_sass/bootstrap/_responsive-utilities.scss +0 -179
  134. data/_sass/bootstrap/_scaffolding.scss +0 -161
  135. data/_sass/bootstrap/_theme.scss +0 -291
  136. data/_sass/bootstrap/_thumbnails.scss +0 -38
  137. data/_sass/bootstrap/_wells.scss +0 -29
  138. data/_sass/bootstrap/mixins/_alerts.scss +0 -14
  139. data/_sass/bootstrap/mixins/_center-block.scss +0 -7
  140. data/_sass/bootstrap/mixins/_hide-text.scss +0 -21
  141. data/_sass/bootstrap/mixins/_labels.scss +0 -12
  142. data/_sass/bootstrap/mixins/_nav-vertical-align.scss +0 -9
  143. data/_sass/bootstrap/mixins/_opacity.scss +0 -8
  144. data/_sass/bootstrap/mixins/_panels.scss +0 -24
  145. data/_sass/bootstrap/mixins/_progress-bar.scss +0 -10
  146. data/_sass/bootstrap/mixins/_reset-filter.scss +0 -8
  147. data/_sass/bootstrap/mixins/_responsive-visibility.scss +0 -21
  148. data/_sass/bootstrap/mixins/_tab-focus.scss +0 -9
  149. data/_sass/bootstrap/mixins/_vendor-prefixes.scss +0 -222
  150. data/assets/css/font-awesome.min.css +0 -4
  151. data/assets/fonts/FontAwesome.otf +0 -0
  152. data/assets/fonts/fontawesome-webfont.eot +0 -0
  153. data/assets/fonts/fontawesome-webfont.svg +0 -2671
  154. data/assets/fonts/fontawesome-webfont.ttf +0 -0
  155. data/assets/fonts/fontawesome-webfont.woff +0 -0
  156. data/assets/fonts/fontawesome-webfont.woff2 +0 -0
@@ -1,161 +1,133 @@
1
- //
2
- // Buttons
3
- // --------------------------------------------------
4
-
1
+ // stylelint-disable selector-no-qualifying-type
5
2
 
3
+ //
6
4
  // Base styles
7
- // --------------------------------------------------
5
+ //
8
6
 
9
7
  .btn {
10
8
  display: inline-block;
11
- margin-bottom: 0; // For input.btn
12
9
  font-weight: $btn-font-weight;
10
+ color: $body-color;
13
11
  text-align: center;
14
12
  vertical-align: middle;
15
- touch-action: manipulation;
16
- cursor: pointer;
17
- background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
18
- border: 1px solid transparent;
19
- white-space: nowrap;
20
- @include button-size($padding-base-vertical, $padding-base-horizontal, $font-size-base, $line-height-base, $btn-border-radius-base);
21
- @include user-select(none);
22
-
23
- &,
24
- &:active,
25
- &.active {
26
- &:focus,
27
- &.focus {
28
- @include tab-focus;
29
- }
13
+ user-select: none;
14
+ background-color: transparent;
15
+ border: $btn-border-width solid transparent;
16
+ @include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
17
+ @include transition($btn-transition);
18
+
19
+ @include hover {
20
+ color: $body-color;
21
+ text-decoration: none;
30
22
  }
31
23
 
32
- &:hover,
33
24
  &:focus,
34
25
  &.focus {
35
- color: $btn-default-color;
36
- text-decoration: none;
37
- }
38
-
39
- &:active,
40
- &.active {
41
26
  outline: 0;
42
- background-image: none;
43
- @include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
27
+ box-shadow: $btn-focus-box-shadow;
44
28
  }
45
29
 
30
+ // Disabled comes first so active can properly restyle
46
31
  &.disabled,
47
- &[disabled],
48
- fieldset[disabled] & {
49
- cursor: $cursor-disabled;
50
- @include opacity(.65);
32
+ &:disabled {
33
+ opacity: $btn-disabled-opacity;
51
34
  @include box-shadow(none);
52
35
  }
53
36
 
54
- // [converter] extracted a& to a.btn
55
- }
37
+ // Opinionated: add "hand" cursor to non-disabled .btn elements
38
+ &:not(:disabled):not(.disabled) {
39
+ cursor: pointer;
40
+ }
56
41
 
57
- a.btn {
58
- &.disabled,
59
- fieldset[disabled] & {
60
- pointer-events: none; // Future-proof disabling of clicks on `<a>` elements
42
+ &:not(:disabled):not(.disabled):active,
43
+ &:not(:disabled):not(.disabled).active {
44
+ @include box-shadow($btn-active-box-shadow);
45
+
46
+ &:focus {
47
+ @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
48
+ }
61
49
  }
62
50
  }
63
51
 
52
+ // Future-proof disabling of clicks on `<a>` elements
53
+ a.btn.disabled,
54
+ fieldset:disabled a.btn {
55
+ pointer-events: none;
56
+ }
57
+
64
58
 
59
+ //
65
60
  // Alternate buttons
66
- // --------------------------------------------------
61
+ //
67
62
 
68
- .btn-default {
69
- @include button-variant($btn-default-color, $btn-default-bg, $btn-default-border);
70
- }
71
- .btn-primary {
72
- @include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border);
73
- }
74
- // Success appears as green
75
- .btn-success {
76
- @include button-variant($btn-success-color, $btn-success-bg, $btn-success-border);
77
- }
78
- // Info appears as blue-green
79
- .btn-info {
80
- @include button-variant($btn-info-color, $btn-info-bg, $btn-info-border);
81
- }
82
- // Warning appears as orange
83
- .btn-warning {
84
- @include button-variant($btn-warning-color, $btn-warning-bg, $btn-warning-border);
63
+ @each $color, $value in $theme-colors {
64
+ .btn-#{$color} {
65
+ @include button-variant($value, $value);
66
+ }
85
67
  }
86
- // Danger and error appear as red
87
- .btn-danger {
88
- @include button-variant($btn-danger-color, $btn-danger-bg, $btn-danger-border);
68
+
69
+ @each $color, $value in $theme-colors {
70
+ .btn-outline-#{$color} {
71
+ @include button-outline-variant($value);
72
+ }
89
73
  }
90
74
 
91
75
 
76
+ //
92
77
  // Link buttons
93
- // -------------------------
78
+ //
94
79
 
95
80
  // Make a button look and behave like a link
96
81
  .btn-link {
82
+ font-weight: $font-weight-normal;
97
83
  color: $link-color;
98
- font-weight: normal;
99
- border-radius: 0;
100
-
101
- &,
102
- &:active,
103
- &.active,
104
- &[disabled],
105
- fieldset[disabled] & {
106
- background-color: transparent;
107
- @include box-shadow(none);
84
+
85
+ @include hover {
86
+ color: $link-hover-color;
87
+ text-decoration: $link-hover-decoration;
108
88
  }
109
- &,
110
- &:hover,
89
+
111
90
  &:focus,
112
- &:active {
113
- border-color: transparent;
114
- }
115
- &:hover,
116
- &:focus {
117
- color: $link-hover-color;
91
+ &.focus {
118
92
  text-decoration: $link-hover-decoration;
119
- background-color: transparent;
93
+ box-shadow: none;
120
94
  }
121
- &[disabled],
122
- fieldset[disabled] & {
123
- &:hover,
124
- &:focus {
125
- color: $btn-link-disabled-color;
126
- text-decoration: none;
127
- }
95
+
96
+ &:disabled,
97
+ &.disabled {
98
+ color: $btn-link-disabled-color;
99
+ pointer-events: none;
128
100
  }
101
+
102
+ // No need for an active state here
129
103
  }
130
104
 
131
105
 
106
+ //
132
107
  // Button Sizes
133
- // --------------------------------------------------
108
+ //
134
109
 
135
110
  .btn-lg {
136
- // line-height: ensure even-numbered height of button next to large input
137
- @include button-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $btn-border-radius-large);
111
+ @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
138
112
  }
113
+
139
114
  .btn-sm {
140
- // line-height: ensure proper height of button next to small input
141
- @include button-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $btn-border-radius-small);
142
- }
143
- .btn-xs {
144
- @include button-size($padding-xs-vertical, $padding-xs-horizontal, $font-size-small, $line-height-small, $btn-border-radius-small);
115
+ @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-line-height-sm, $btn-border-radius-sm);
145
116
  }
146
117
 
147
118
 
119
+ //
148
120
  // Block button
149
- // --------------------------------------------------
121
+ //
150
122
 
151
123
  .btn-block {
152
124
  display: block;
153
125
  width: 100%;
154
- }
155
126
 
156
- // Vertically space out multiple block buttons
157
- .btn-block + .btn-block {
158
- margin-top: 5px;
127
+ // Vertically space out multiple block buttons
128
+ + .btn-block {
129
+ margin-top: $btn-block-spacing-y;
130
+ }
159
131
  }
160
132
 
161
133
  // Specificity overrides
@@ -0,0 +1,310 @@
1
+ //
2
+ // Base styles
3
+ //
4
+
5
+ .card {
6
+ position: relative;
7
+ display: flex;
8
+ flex-direction: column;
9
+ min-width: 0;
10
+ word-wrap: break-word;
11
+ background-color: $card-bg;
12
+ background-clip: border-box;
13
+ border: $card-border-width solid $card-border-color;
14
+ @include border-radius($card-border-radius);
15
+
16
+ > hr {
17
+ margin-right: 0;
18
+ margin-left: 0;
19
+ }
20
+
21
+ > .list-group:first-child {
22
+ .list-group-item:first-child {
23
+ @include border-top-radius($card-border-radius);
24
+ }
25
+ }
26
+
27
+ > .list-group:last-child {
28
+ .list-group-item:last-child {
29
+ @include border-bottom-radius($card-border-radius);
30
+ }
31
+ }
32
+ }
33
+
34
+ .card-body {
35
+ // Enable `flex-grow: 1` for decks and groups so that card blocks take up
36
+ // as much space as possible, ensuring footers are aligned to the bottom.
37
+ flex: 1 1 auto;
38
+ padding: $card-spacer-x;
39
+ }
40
+
41
+ .card-title {
42
+ margin-bottom: $card-spacer-y;
43
+ }
44
+
45
+ .card-subtitle {
46
+ margin-top: -$card-spacer-y / 2;
47
+ margin-bottom: 0;
48
+ }
49
+
50
+ .card-text:last-child {
51
+ margin-bottom: 0;
52
+ }
53
+
54
+ .card-link {
55
+ @include hover {
56
+ text-decoration: none;
57
+ }
58
+
59
+ + .card-link {
60
+ margin-left: $card-spacer-x;
61
+ }
62
+ }
63
+
64
+ //
65
+ // Optional textual caps
66
+ //
67
+
68
+ .card-header {
69
+ padding: $card-spacer-y $card-spacer-x;
70
+ margin-bottom: 0; // Removes the default margin-bottom of <hN>
71
+ color: $card-cap-color;
72
+ background-color: $card-cap-bg;
73
+ border-bottom: $card-border-width solid $card-border-color;
74
+
75
+ &:first-child {
76
+ @include border-radius($card-inner-border-radius $card-inner-border-radius 0 0);
77
+ }
78
+
79
+ + .list-group {
80
+ .list-group-item:first-child {
81
+ border-top: 0;
82
+ }
83
+ }
84
+ }
85
+
86
+ .card-footer {
87
+ padding: $card-spacer-y $card-spacer-x;
88
+ background-color: $card-cap-bg;
89
+ border-top: $card-border-width solid $card-border-color;
90
+
91
+ &:last-child {
92
+ @include border-radius(0 0 $card-inner-border-radius $card-inner-border-radius);
93
+ }
94
+ }
95
+
96
+
97
+ //
98
+ // Header navs
99
+ //
100
+
101
+ .card-header-tabs {
102
+ margin-right: -$card-spacer-x / 2;
103
+ margin-bottom: -$card-spacer-y;
104
+ margin-left: -$card-spacer-x / 2;
105
+ border-bottom: 0;
106
+ }
107
+
108
+ .card-header-pills {
109
+ margin-right: -$card-spacer-x / 2;
110
+ margin-left: -$card-spacer-x / 2;
111
+ }
112
+
113
+ // Card image
114
+ .card-img-overlay {
115
+ position: absolute;
116
+ top: 0;
117
+ right: 0;
118
+ bottom: 0;
119
+ left: 0;
120
+ padding: $card-img-overlay-padding;
121
+ }
122
+
123
+ .card-img {
124
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
125
+ @include border-radius($card-inner-border-radius);
126
+ }
127
+
128
+ // Card image caps
129
+ .card-img-top {
130
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
131
+ @include border-top-radius($card-inner-border-radius);
132
+ }
133
+
134
+ .card-img-bottom {
135
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
136
+ @include border-bottom-radius($card-inner-border-radius);
137
+ }
138
+
139
+
140
+ // Card deck
141
+
142
+ .card-deck {
143
+ display: flex;
144
+ flex-direction: column;
145
+
146
+ .card {
147
+ margin-bottom: $card-deck-margin;
148
+ }
149
+
150
+ @include media-breakpoint-up(sm) {
151
+ flex-flow: row wrap;
152
+ margin-right: -$card-deck-margin;
153
+ margin-left: -$card-deck-margin;
154
+
155
+ .card {
156
+ display: flex;
157
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
158
+ flex: 1 0 0%;
159
+ flex-direction: column;
160
+ margin-right: $card-deck-margin;
161
+ margin-bottom: 0; // Override the default
162
+ margin-left: $card-deck-margin;
163
+ }
164
+ }
165
+ }
166
+
167
+
168
+ //
169
+ // Card groups
170
+ //
171
+
172
+ .card-group {
173
+ display: flex;
174
+ flex-direction: column;
175
+
176
+ // The child selector allows nested `.card` within `.card-group`
177
+ // to display properly.
178
+ > .card {
179
+ margin-bottom: $card-group-margin;
180
+ }
181
+
182
+ @include media-breakpoint-up(sm) {
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
+ &:first-child {
199
+ @include border-right-radius(0);
200
+
201
+ .card-img-top,
202
+ .card-header {
203
+ border-top-right-radius: 0;
204
+ }
205
+ .card-img-bottom,
206
+ .card-footer {
207
+ border-bottom-right-radius: 0;
208
+ }
209
+ }
210
+
211
+ &:last-child {
212
+ @include border-left-radius(0);
213
+
214
+ .card-img-top,
215
+ .card-header {
216
+ border-top-left-radius: 0;
217
+ }
218
+ .card-img-bottom,
219
+ .card-footer {
220
+ border-bottom-left-radius: 0;
221
+ }
222
+ }
223
+
224
+ &:only-child {
225
+ @include border-radius($card-border-radius);
226
+
227
+ .card-img-top,
228
+ .card-header {
229
+ @include border-top-radius($card-border-radius);
230
+ }
231
+ .card-img-bottom,
232
+ .card-footer {
233
+ @include border-bottom-radius($card-border-radius);
234
+ }
235
+ }
236
+
237
+ &:not(:first-child):not(:last-child):not(:only-child) {
238
+ @include border-radius(0);
239
+
240
+ .card-img-top,
241
+ .card-img-bottom,
242
+ .card-header,
243
+ .card-footer {
244
+ @include border-radius(0);
245
+ }
246
+ }
247
+ }
248
+ }
249
+ }
250
+ }
251
+
252
+
253
+ //
254
+ // Columns
255
+ //
256
+
257
+ .card-columns {
258
+ .card {
259
+ margin-bottom: $card-columns-margin;
260
+ }
261
+
262
+ @include media-breakpoint-up(sm) {
263
+ column-count: $card-columns-count;
264
+ column-gap: $card-columns-gap;
265
+ orphans: 1;
266
+ widows: 1;
267
+
268
+ .card {
269
+ display: inline-block; // Don't let them vertically span multiple columns
270
+ width: 100%; // Don't let their width change
271
+ }
272
+ }
273
+ }
274
+
275
+
276
+ //
277
+ // Accordion
278
+ //
279
+
280
+ .accordion {
281
+ .card {
282
+ overflow: hidden;
283
+
284
+ &:not(:first-of-type) {
285
+ .card-header:first-child {
286
+ border-radius: 0;
287
+ }
288
+
289
+ &:not(:last-of-type) {
290
+ border-bottom: 0;
291
+ border-radius: 0;
292
+ }
293
+ }
294
+
295
+ &:first-of-type {
296
+ border-bottom: 0;
297
+ border-bottom-right-radius: 0;
298
+ border-bottom-left-radius: 0;
299
+ }
300
+
301
+ &:last-of-type {
302
+ border-top-left-radius: 0;
303
+ border-top-right-radius: 0;
304
+ }
305
+
306
+ .card-header {
307
+ margin-bottom: -$card-border-width;
308
+ }
309
+ }
310
+ }