apx-docs-theme 0.1.7 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/footer.html +8 -9
- data/_includes/head.html +20 -9
- data/_includes/js_files.html +21 -3
- data/_includes/navbar.html +28 -0
- data/_includes/sidebar.html +43 -0
- data/_layouts/default.html +10 -10
- data/_layouts/docs.html +12 -20
- data/_sass/bootstrap/_alert.scss +51 -0
- data/_sass/bootstrap/_badge.scss +53 -0
- data/_sass/bootstrap/_breadcrumb.scss +41 -0
- data/_sass/bootstrap/_button-group.scss +163 -0
- data/_sass/bootstrap/_buttons.scss +73 -101
- data/_sass/bootstrap/_card.scss +310 -0
- data/_sass/bootstrap/_carousel.scss +130 -202
- data/_sass/bootstrap/_close.scss +23 -15
- data/_sass/bootstrap/_code.scss +15 -36
- data/_sass/bootstrap/_custom-forms.scss +507 -0
- data/_sass/bootstrap/_dropdown.scss +191 -0
- data/_sass/bootstrap/_forms.scss +215 -498
- data/_sass/bootstrap/_functions.scss +86 -0
- data/_sass/bootstrap/_grid.scss +29 -61
- data/_sass/bootstrap/_images.scss +42 -0
- data/_sass/bootstrap/_input-group.scss +193 -0
- data/_sass/bootstrap/_jumbotron.scss +9 -47
- data/_sass/bootstrap/_list-group.scss +70 -79
- data/_sass/bootstrap/_media.scss +3 -61
- data/_sass/bootstrap/_mixins.scss +19 -18
- data/_sass/bootstrap/_modal.scss +186 -0
- data/_sass/bootstrap/_nav.scss +120 -0
- data/_sass/bootstrap/_navbar.scss +192 -555
- data/_sass/bootstrap/_pagination.scss +59 -70
- data/_sass/bootstrap/_popover.scss +183 -0
- data/_sass/bootstrap/_print.scss +89 -49
- data/_sass/bootstrap/_progress.scss +34 -0
- data/_sass/bootstrap/_reboot.scss +462 -0
- data/_sass/bootstrap/_root.scss +19 -0
- data/_sass/bootstrap/_spinners.scss +53 -0
- data/_sass/bootstrap/_tables.scss +119 -166
- data/_sass/bootstrap/_toasts.scss +43 -0
- data/_sass/bootstrap/_tooltip.scss +93 -79
- data/_sass/bootstrap/_transitions.scss +22 -0
- data/_sass/bootstrap/_type.scss +66 -239
- data/_sass/bootstrap/_utilities.scss +16 -55
- data/_sass/bootstrap/_variables.scss +926 -709
- data/_sass/bootstrap/bootstrap-grid.scss +29 -0
- data/_sass/bootstrap/bootstrap-reboot.scss +12 -0
- data/_sass/bootstrap/bootstrap.scss +44 -0
- data/_sass/bootstrap/mixins/_alert.scss +13 -0
- data/_sass/bootstrap/mixins/_background-variant.scss +14 -5
- data/_sass/bootstrap/mixins/_badge.scss +11 -0
- data/_sass/bootstrap/mixins/_border-radius.scss +25 -8
- data/_sass/bootstrap/mixins/_box-shadow.scss +5 -0
- data/_sass/bootstrap/mixins/_breakpoints.scss +123 -0
- data/_sass/bootstrap/mixins/_buttons.scss +86 -40
- data/_sass/bootstrap/mixins/_caret.scss +62 -0
- data/_sass/bootstrap/mixins/_clearfix.scss +3 -18
- data/_sass/bootstrap/mixins/_float.scss +11 -0
- data/_sass/bootstrap/mixins/_forms.scss +176 -66
- data/_sass/bootstrap/mixins/_gradients.scss +17 -30
- data/_sass/bootstrap/mixins/_grid-framework.scss +51 -66
- data/_sass/bootstrap/mixins/_grid.scss +34 -105
- data/_sass/bootstrap/mixins/_hover.scss +37 -0
- data/_sass/bootstrap/mixins/_image.scss +18 -15
- data/_sass/bootstrap/mixins/_list-group.scss +10 -21
- data/_sass/bootstrap/mixins/_lists.scss +7 -0
- data/_sass/bootstrap/mixins/_nav-divider.scss +4 -4
- data/_sass/bootstrap/mixins/_pagination.scss +10 -12
- data/_sass/bootstrap/mixins/_reset-text.scss +7 -8
- data/_sass/bootstrap/mixins/_resize.scss +1 -1
- data/_sass/bootstrap/mixins/_screen-reader.scss +33 -0
- data/_sass/bootstrap/mixins/_size.scss +1 -5
- data/_sass/bootstrap/mixins/_table-row.scss +26 -15
- data/_sass/bootstrap/mixins/_text-emphasis.scss +7 -5
- data/_sass/bootstrap/mixins/_text-hide.scss +13 -0
- data/_sass/bootstrap/mixins/{_text-overflow.scss → _text-truncate.scss} +2 -2
- data/_sass/bootstrap/mixins/_transition.scss +16 -0
- data/_sass/bootstrap/mixins/_visibility.scss +7 -0
- data/_sass/bootstrap/utilities/_align.scss +8 -0
- data/_sass/bootstrap/utilities/_background.scss +19 -0
- data/_sass/bootstrap/utilities/_borders.scss +63 -0
- data/_sass/bootstrap/utilities/_clearfix.scss +3 -0
- data/_sass/bootstrap/utilities/_display.scss +38 -0
- data/_sass/bootstrap/utilities/_embed.scss +39 -0
- data/_sass/bootstrap/utilities/_flex.scss +51 -0
- data/_sass/bootstrap/utilities/_float.scss +9 -0
- data/_sass/bootstrap/utilities/_overflow.scss +5 -0
- data/_sass/bootstrap/utilities/_position.scss +32 -0
- data/_sass/bootstrap/utilities/_screenreaders.scss +11 -0
- data/_sass/bootstrap/utilities/_shadows.scss +6 -0
- data/_sass/bootstrap/utilities/_sizing.scss +20 -0
- data/_sass/bootstrap/utilities/_spacing.scss +73 -0
- data/_sass/bootstrap/utilities/_text.scss +67 -0
- data/_sass/bootstrap/utilities/_visibility.scss +11 -0
- data/_sass/markdown/code.scss +65 -0
- data/_sass/markdown/color-system.scss +114 -0
- data/_sass/markdown/images.scss +119 -0
- data/_sass/markdown/markdown-body.scss +103 -0
- data/_sass/markdown/markdown.scss +15 -0
- data/_sass/rouge.scss +209 -0
- data/_sass/theme.scss +35 -0
- data/_sass/{_typeahead.scss → typeahead.scss} +0 -0
- data/assets/css/main.scss +1 -90
- data/assets/img/{bg.jpg → jumbotron.jpg} +0 -0
- data/assets/js/bootstrap.min.js +6 -6
- data/assets/js/jquery-3.3.1.min.js +2 -0
- data/assets/js/main.js +2 -1
- data/assets/js/search.json +11 -0
- data/assets/js/typeahead.bundle.js +2621 -0
- data/assets/js/typeahead.bundle.min.js +4 -4
- metadata +81 -50
- data/_includes/pages_nav.html +0 -40
- data/_includes/topnav.html +0 -37
- data/_sass/_bootstrap.scss +0 -56
- data/_sass/_syntax-highlighting.scss +0 -71
- data/_sass/bootstrap/_alerts.scss +0 -73
- data/_sass/bootstrap/_badges.scss +0 -68
- data/_sass/bootstrap/_breadcrumbs.scss +0 -28
- data/_sass/bootstrap/_button-groups.scss +0 -244
- data/_sass/bootstrap/_component-animations.scss +0 -37
- data/_sass/bootstrap/_dropdowns.scss +0 -216
- data/_sass/bootstrap/_glyphicons.scss +0 -307
- data/_sass/bootstrap/_input-groups.scss +0 -171
- data/_sass/bootstrap/_labels.scss +0 -66
- data/_sass/bootstrap/_modals.scss +0 -150
- data/_sass/bootstrap/_navs.scss +0 -242
- data/_sass/bootstrap/_normalize.scss +0 -424
- data/_sass/bootstrap/_pager.scss +0 -54
- data/_sass/bootstrap/_panels.scss +0 -271
- data/_sass/bootstrap/_popovers.scss +0 -131
- data/_sass/bootstrap/_progress-bars.scss +0 -87
- data/_sass/bootstrap/_responsive-embed.scss +0 -35
- data/_sass/bootstrap/_responsive-utilities.scss +0 -179
- data/_sass/bootstrap/_scaffolding.scss +0 -161
- data/_sass/bootstrap/_theme.scss +0 -291
- data/_sass/bootstrap/_thumbnails.scss +0 -38
- data/_sass/bootstrap/_wells.scss +0 -29
- data/_sass/bootstrap/mixins/_alerts.scss +0 -14
- data/_sass/bootstrap/mixins/_center-block.scss +0 -7
- data/_sass/bootstrap/mixins/_hide-text.scss +0 -21
- data/_sass/bootstrap/mixins/_labels.scss +0 -12
- data/_sass/bootstrap/mixins/_nav-vertical-align.scss +0 -9
- data/_sass/bootstrap/mixins/_opacity.scss +0 -8
- data/_sass/bootstrap/mixins/_panels.scss +0 -24
- data/_sass/bootstrap/mixins/_progress-bar.scss +0 -10
- data/_sass/bootstrap/mixins/_reset-filter.scss +0 -8
- data/_sass/bootstrap/mixins/_responsive-visibility.scss +0 -21
- data/_sass/bootstrap/mixins/_tab-focus.scss +0 -9
- data/_sass/bootstrap/mixins/_vendor-prefixes.scss +0 -222
- data/assets/css/font-awesome.min.css +0 -4
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +0 -2671
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- 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
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
@include
|
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
|
-
|
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
|
-
|
48
|
-
|
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
|
-
//
|
55
|
-
|
37
|
+
// Opinionated: add "hand" cursor to non-disabled .btn elements
|
38
|
+
&:not(:disabled):not(.disabled) {
|
39
|
+
cursor: pointer;
|
40
|
+
}
|
56
41
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
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
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
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
|
-
|
87
|
-
|
88
|
-
|
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
|
-
|
99
|
-
|
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
|
-
|
113
|
-
border-color: transparent;
|
114
|
-
}
|
115
|
-
&:hover,
|
116
|
-
&:focus {
|
117
|
-
color: $link-hover-color;
|
91
|
+
&.focus {
|
118
92
|
text-decoration: $link-hover-decoration;
|
119
|
-
|
93
|
+
box-shadow: none;
|
120
94
|
}
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
158
|
-
|
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
|
+
}
|