PluginProbe ʕ •ᴥ•ʔ
VK Blocks / trunk
VK Blocks vtrunk
1.123.0 1.122.0 1.121.0 1.120.0 1.119.2 1.119.1 1.119.0 1.118.7 1.82.0.0 1.82.0.1 1.83.0.0 1.83.0.1 1.84.0.0 1.84.0.1 1.85.0.2 1.85.0.3 1.85.1.0 1.85.1.1 1.86.0.0 1.86.0.1 1.86.1.0 1.87.0.0 1.87.0.1 1.88.0.1 1.88.0.2 1.89.0.0 1.9.2 1.90.0.0 1.90.0.1 1.90.1.1 1.91.0.0 1.91.1.1 1.92.0.0 1.92.0.1 1.92.1.0 1.92.1.1 1.93.0.0 trunk 1.93.0.1 0.1.1 1.93.1.0 0.10.3 1.93.1.1 0.11.0 1.94.0.0 0.12.6 1.94.0.1 0.15.1 1.94.1.0 0.16.2 1.94.2.1 0.17.6 1.94.2.2 0.2.2 1.95.0.3 0.22.4 1.95.0.4 0.26.7 1.96.2.0 0.3.2 1.96.2.1 0.31.0 1.97.0.1 0.35.5 1.97.0.2 0.37.5 1.99.0.0 0.38.8 1.99.0.1 0.39.4 0.4.7 0.41.0 0.42.0 0.44.13 0.45.2 0.46.1 0.47.0 0.48.0 0.49.8 0.5.2 0.50.3 0.51.0 0.52.2 0.53.2 0.54.0 0.55.0 0.56.2 0.56.3 0.57.6 0.58.10 0.59.0 0.6.0 0.60.1 0.61.2 0.7.1 0.8.2 1.0.16 1.10.0 1.100.0.0 1.100.0.1 1.102.0.0 1.102.0.1 1.103.0.0 1.104.0.0 1.104.0.1 1.105.1.0 1.105.1.1 1.106.0.0 1.106.0.1 1.107.0.0 1.107.0.1 1.107.0.2 1.108.0.0 1.108.0.1 1.109.0.0 1.109.0.1 1.11.4 1.110.0.0 1.110.0.1 1.111.0.0 1.111.0.1 1.111.0.2 1.112.0.0 1.112.0.1 1.113.0.0 1.113.0.1 1.114.0.0 1.114.0.1 1.114.2.0 1.114.2.1 1.115.0.0 1.115.0.1 1.115.1.0 1.115.1.1 1.115.2.0 1.115.2.1 1.116.0.0 1.116.0.1 1.116.1.0 1.116.1.1 1.116.2.0 1.117.0.0 1.117.0.1 1.117.1.0 1.118.2 1.118.5 1.12.0 1.13.2 1.14.1 1.15.1 1.16.11 1.17.0 1.18.6 1.19.0 1.19.1 1.2.3 1.20.7 1.21.0 1.22.4 1.23.0 1.24.5 1.25.1 1.26.2 1.27.7.2 1.28.0.1 1.29.2.0 1.3.9 1.30.0.1 1.31.0.1 1.32.0.2 1.33.2.1 1.36.1.5 1.37.0.0 1.39.2.1 1.4.6 1.40.0.1 1.40.1.0 1.40.1.1 1.41.0.0 1.41.0.1 1.41.2.2 1.41.2.3 1.43.0.0 1.43.0.1 1.43.0.2 1.44.0.0 1.44.0.1 1.45.0.0 1.45.0.1 1.46.0.0 1.46.0.1 1.47.0.0 1.47.0.1 1.47.1.0 1.48.0.0 1.48.0.1 1.48.0.2 1.48.1.0 1.48.1.1 1.5.0 1.50.0.0 1.50.0.1 1.51.0.0 1.51.0.1 1.52.0.0 1.52.0.1 1.53.0.0 1.53.0.1 1.54.0.0 1.54.0.1 1.55.0.0 1.55.0.1 1.56.0.0 1.56.0.1 1.57.0.0 1.57.0.2 1.57.0.3 1.57.0.4 1.57.0.5 1.57.1.0 1.57.1.1 1.57.1.2 1.58.0.0 1.58.0.1 1.59.0.0 1.59.0.1 1.6.0 1.60.0.0 1.60.0.1 1.63.0.0 1.63.0.1 1.64.0.0 1.64.0.1 1.64.1.0 1.64.1.2 1.67.0.0 1.67.0.1 1.68.0.0 1.68.0.1 1.69.0.0 1.69.0.1 1.69.1.1 1.69.1.2 1.7.1 1.70.0.0 1.70.0.1 1.71.0.0 1.71.0.1 1.72.0.0 1.72.1.0 1.72.1.1 1.73.0.0 1.73.0.1 1.74.0.0 1.74.0.1 1.75.0.0 1.75.1.0 1.75.1.1 1.76.0.0 1.76.0.1 1.76.1.0 1.76.1.1 1.76.2.0 1.76.2.1 1.77.0.0 1.77.0.1 1.78.0.0 1.78.0.1 1.79.0.0 1.79.0.1 1.79.0.2 1.79.0.3 1.79.1.0 1.79.1.1 1.8.2 1.80.1.0 1.80.1.1 1.80.1.2 1.81.0.1 1.81.0.2
vk-blocks / lib / bootstrap / scss / _card.scss
vk-blocks / lib / bootstrap / scss Last commit date
mixins 3 years ago utilities 3 years ago vendor 3 years ago _alert.scss 3 years ago _badge.scss 3 years ago _breadcrumb.scss 3 years ago _button-group.scss 3 years ago _buttons.scss 3 years ago _card.scss 3 years ago _carousel.scss 3 years ago _close.scss 3 years ago _code.scss 3 years ago _custom-forms.scss 3 years ago _dropdown.scss 3 years ago _forms.scss 3 years ago _functions.scss 3 years ago _grid.scss 3 years ago _images.scss 3 years ago _input-group.scss 3 years ago _jumbotron.scss 3 years ago _list-group.scss 3 years ago _media.scss 3 years ago _mixins.scss 3 years ago _modal.scss 3 years ago _nav.scss 3 years ago _navbar.scss 3 years ago _pagination.scss 3 years ago _popover.scss 3 years ago _print.scss 3 years ago _progress.scss 3 years ago _reboot.scss 3 years ago _root.scss 3 years ago _spinners.scss 3 years ago _tables.scss 3 years ago _toasts.scss 3 years ago _tooltip.scss 3 years ago _transitions.scss 3 years ago _type.scss 3 years ago _utilities.scss 3 years ago _variables.scss 3 years ago bootstrap-grid.scss 3 years ago bootstrap-reboot.scss 3 years ago bootstrap-sidepanel.scss 3 years ago bootstrap.scss 1 year ago
_card.scss
283 lines
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 {
23 border-top: inherit;
24 border-bottom: inherit;
25
26 &:first-child {
27 border-top-width: 0;
28 @include border-top-radius($card-inner-border-radius);
29 }
30
31 &:last-child {
32 border-bottom-width: 0;
33 @include border-bottom-radius($card-inner-border-radius);
34 }
35 }
36 }
37
38 .card-body {
39 // Enable `flex-grow: 1` for decks and groups so that card blocks take up
40 // as much space as possible, ensuring footers are aligned to the bottom.
41 flex: 1 1 auto;
42 // Workaround for the image size bug in IE
43 // See: https://github.com/twbs/bootstrap/pull/28855
44 min-height: 1px;
45 padding: $card-spacer-x;
46 color: $card-color;
47 }
48
49 .card-title {
50 margin-bottom: $card-spacer-y;
51 }
52
53 .card-subtitle {
54 margin-top: -$card-spacer-y / 2;
55 margin-bottom: 0;
56 }
57
58 .card-text:last-child {
59 margin-bottom: 0;
60 }
61
62 .card-link {
63 @include hover() {
64 text-decoration: none;
65 }
66
67 + .card-link {
68 margin-left: $card-spacer-x;
69 }
70 }
71
72 //
73 // Optional textual caps
74 //
75
76 .card-header {
77 padding: $card-spacer-y $card-spacer-x;
78 margin-bottom: 0; // Removes the default margin-bottom of <hN>
79 color: $card-cap-color;
80 background-color: $card-cap-bg;
81 border-bottom: $card-border-width solid $card-border-color;
82
83 &:first-child {
84 @include border-radius($card-inner-border-radius $card-inner-border-radius 0 0);
85 }
86
87 + .list-group {
88 .list-group-item:first-child {
89 border-top: 0;
90 }
91 }
92 }
93
94 .card-footer {
95 padding: $card-spacer-y $card-spacer-x;
96 color: $card-cap-color;
97 background-color: $card-cap-bg;
98 border-top: $card-border-width solid $card-border-color;
99
100 &:last-child {
101 @include border-radius(0 0 $card-inner-border-radius $card-inner-border-radius);
102 }
103 }
104
105
106 //
107 // Header navs
108 //
109
110 .card-header-tabs {
111 margin-right: -$card-spacer-x / 2;
112 margin-bottom: -$card-spacer-y;
113 margin-left: -$card-spacer-x / 2;
114 border-bottom: 0;
115 }
116
117 .card-header-pills {
118 margin-right: -$card-spacer-x / 2;
119 margin-left: -$card-spacer-x / 2;
120 }
121
122 // Card image
123 .card-img-overlay {
124 position: absolute;
125 top: 0;
126 right: 0;
127 bottom: 0;
128 left: 0;
129 padding: $card-img-overlay-padding;
130 }
131
132 .card-img,
133 .card-img-top,
134 .card-img-bottom {
135 flex-shrink: 0; // For IE: https://github.com/twbs/bootstrap/issues/29396
136 width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
137 }
138
139 .card-img,
140 .card-img-top {
141 @include border-top-radius($card-inner-border-radius);
142 }
143
144 .card-img,
145 .card-img-bottom {
146 @include border-bottom-radius($card-inner-border-radius);
147 }
148
149
150 // Card deck
151
152 .card-deck {
153 .card {
154 margin-bottom: $card-deck-margin;
155 }
156
157 @include media-breakpoint-up(sm) {
158 display: flex;
159 flex-flow: row wrap;
160 margin-right: -$card-deck-margin;
161 margin-left: -$card-deck-margin;
162
163 .card {
164 // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
165 flex: 1 0 0%;
166 margin-right: $card-deck-margin;
167 margin-bottom: 0; // Override the default
168 margin-left: $card-deck-margin;
169 }
170 }
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: $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-right-radius(0);
204
205 .card-img-top,
206 .card-header {
207 // stylelint-disable-next-line property-blacklist
208 border-top-right-radius: 0;
209 }
210 .card-img-bottom,
211 .card-footer {
212 // stylelint-disable-next-line property-blacklist
213 border-bottom-right-radius: 0;
214 }
215 }
216
217 &:not(:first-child) {
218 @include border-left-radius(0);
219
220 .card-img-top,
221 .card-header {
222 // stylelint-disable-next-line property-blacklist
223 border-top-left-radius: 0;
224 }
225 .card-img-bottom,
226 .card-footer {
227 // stylelint-disable-next-line property-blacklist
228 border-bottom-left-radius: 0;
229 }
230 }
231 }
232 }
233 }
234 }
235
236
237 //
238 // Columns
239 //
240
241 .card-columns {
242 .card {
243 margin-bottom: $card-columns-margin;
244 }
245
246 @include media-breakpoint-up(sm) {
247 column-count: $card-columns-count;
248 column-gap: $card-columns-gap;
249 orphans: 1;
250 widows: 1;
251
252 .card {
253 display: inline-block; // Don't let them vertically span multiple columns
254 width: 100%; // Don't let their width change
255 }
256 }
257 }
258
259
260 //
261 // Accordion
262 //
263
264 .accordion {
265 > .card {
266 overflow: hidden;
267
268 &:not(:last-of-type) {
269 border-bottom: 0;
270 @include border-bottom-radius(0);
271 }
272
273 &:not(:first-of-type) {
274 @include border-top-radius(0);
275 }
276
277 > .card-header {
278 @include border-radius(0);
279 margin-bottom: -$card-border-width;
280 }
281 }
282 }
283