bootstrap-italia 2.15.1 → 2.16.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.
@@ -0,0 +1,952 @@
1
+ @use 'sass:math';
2
+
3
+ // Keep till next major? (.card is deprecated)
4
+
5
+ //
6
+ // Base styles
7
+ //
8
+
9
+ .card-body {
10
+ // Enable `flex-grow: 1` for decks and groups so that card blocks take up
11
+ // as much space as possible, ensuring footers are aligned to the bottom.
12
+ flex: 1 1 auto;
13
+ padding: var(--#{$prefix}card-spacer-y) var(--#{$prefix}card-spacer-x);
14
+ color: var(--#{$prefix}card-color);
15
+ }
16
+
17
+ .card-title {
18
+ margin-bottom: var(--#{$prefix}card-title-spacer-y);
19
+ }
20
+
21
+ .card-subtitle {
22
+ margin-top: calc(-0.5 * var(--#{$prefix}card-title-spacer-y)); // stylelint-disable-line function-disallowed-list
23
+ margin-bottom: 0;
24
+ }
25
+
26
+ .card-text:last-child {
27
+ margin-bottom: 0;
28
+ }
29
+
30
+ .card-link {
31
+ &:hover {
32
+ text-decoration: if($link-hover-decoration == underline, none, null);
33
+ }
34
+
35
+ + .card-link {
36
+ margin-left: var(--#{$prefix}card-spacer-x);
37
+ }
38
+ }
39
+
40
+ //
41
+ // Optional textual caps
42
+ //
43
+
44
+ .card-header {
45
+ padding: var(--#{$prefix}card-cap-padding-y) var(--#{$prefix}card-cap-padding-x);
46
+ margin-bottom: 0; // Removes the default margin-bottom of <hN>
47
+ color: var(--#{$prefix}card-cap-color);
48
+ background-color: var(--#{$prefix}card-cap-bg);
49
+ border-bottom: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
50
+
51
+ &:first-child {
52
+ @include border-radius(var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius) 0 0);
53
+ }
54
+ }
55
+
56
+ .card-footer {
57
+ padding: var(--#{$prefix}card-cap-padding-y) var(--#{$prefix}card-cap-padding-x);
58
+ color: var(--#{$prefix}card-cap-color);
59
+ background-color: var(--#{$prefix}card-cap-bg);
60
+ border-top: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
61
+
62
+ &:last-child {
63
+ @include border-radius(0 0 var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius));
64
+ }
65
+ }
66
+
67
+ //
68
+ // Header navs
69
+ //
70
+
71
+ .card-header-tabs {
72
+ margin-right: calc(-0.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
73
+ margin-bottom: calc(-1 * var(--#{$prefix}card-cap-padding-y)); // stylelint-disable-line function-disallowed-list
74
+ margin-left: calc(-0.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
75
+ border-bottom: 0;
76
+
77
+ .nav-link.active {
78
+ background-color: var(--#{$prefix}card-bg);
79
+ border-bottom-color: var(--#{$prefix}card-bg);
80
+ }
81
+ }
82
+
83
+ .card-header-pills {
84
+ margin-right: calc(-0.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
85
+ margin-left: calc(-0.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
86
+ }
87
+
88
+ // Card image
89
+ .card-img-overlay {
90
+ position: absolute;
91
+ top: 0;
92
+ right: 0;
93
+ bottom: 0;
94
+ left: 0;
95
+ padding: var(--#{$prefix}card-img-overlay-padding);
96
+ @include border-radius(var(--#{$prefix}card-inner-border-radius));
97
+ }
98
+
99
+ .card-img,
100
+ .card-img-top,
101
+ .card-img-bottom {
102
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
103
+ }
104
+
105
+ .card-img,
106
+ .card-img-top {
107
+ @include border-top-radius(var(--#{$prefix}card-inner-border-radius));
108
+ }
109
+
110
+ .card-img,
111
+ .card-img-bottom {
112
+ @include border-bottom-radius(var(--#{$prefix}card-inner-border-radius));
113
+ }
114
+
115
+ //
116
+ // Card groups
117
+ //
118
+
119
+ .card-group {
120
+ // The child selector allows nested `.card` within `.card-group`
121
+ // to display properly.
122
+ > .card {
123
+ margin-bottom: var(--#{$prefix}card-group-margin);
124
+ }
125
+
126
+ @include media-breakpoint-up(sm) {
127
+ display: flex;
128
+ flex-flow: row wrap;
129
+ // The child selector allows nested `.card` within `.card-group`
130
+ // to display properly.
131
+ > .card {
132
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
133
+ flex: 1 0 0%;
134
+ margin-bottom: 0;
135
+
136
+ + .card {
137
+ margin-left: 0;
138
+ border-left: 0;
139
+ }
140
+
141
+ // Handle rounded corners
142
+ @if $enable-rounded {
143
+ &:not(:last-child) {
144
+ @include border-end-radius(0);
145
+
146
+ .card-img-top,
147
+ .card-header {
148
+ // stylelint-disable-next-line property-disallowed-list
149
+ border-top-right-radius: 0;
150
+ }
151
+ .card-img-bottom,
152
+ .card-footer {
153
+ // stylelint-disable-next-line property-disallowed-list
154
+ border-bottom-right-radius: 0;
155
+ }
156
+ }
157
+
158
+ &:not(:first-child) {
159
+ @include border-start-radius(0);
160
+
161
+ .card-img-top,
162
+ .card-header {
163
+ // stylelint-disable-next-line property-disallowed-list
164
+ border-top-left-radius: 0;
165
+ }
166
+ .card-img-bottom,
167
+ .card-footer {
168
+ // stylelint-disable-next-line property-disallowed-list
169
+ border-bottom-left-radius: 0;
170
+ }
171
+ }
172
+ }
173
+ }
174
+ }
175
+ }
176
+
177
+ .card-wrapper {
178
+ padding-bottom: $v-gap * 3;
179
+ display: flex;
180
+
181
+ &.card-column {
182
+ flex-direction: column;
183
+
184
+ .card {
185
+ height: auto !important;
186
+
187
+ & + .card {
188
+ margin-top: 1rem;
189
+ }
190
+ }
191
+ }
192
+
193
+ &.card-teaser-wrapper {
194
+ flex-direction: row;
195
+ justify-content: space-between;
196
+ align-items: flex-start;
197
+ flex-wrap: wrap;
198
+
199
+ &.card-teaser-wrapper-equal {
200
+ align-items: stretch;
201
+ }
202
+
203
+ & > .card-teaser {
204
+ flex: 0 0 100%;
205
+ margin: $v-gap * 2 0;
206
+ display: flex;
207
+ flex-wrap: wrap;
208
+
209
+ &.border {
210
+ border-color: $border-color;
211
+ }
212
+
213
+ &.card-teaser-image {
214
+ padding: 0 !important;
215
+
216
+ & > .card-image-wrapper {
217
+ flex: 1;
218
+ display: flex;
219
+ flex-direction: row;
220
+ justify-content: space-between;
221
+ align-items: flex-start;
222
+
223
+ &.with-read-more {
224
+ .card-image-rounded img {
225
+ border-bottom-right-radius: 0 !important;
226
+ }
227
+ }
228
+ }
229
+ }
230
+ }
231
+
232
+ .card-flex {
233
+ display: flex;
234
+ flex-direction: row;
235
+ justify-content: space-between;
236
+ align-items: stretch;
237
+ position: relative;
238
+
239
+ .card-image {
240
+ position: relative;
241
+ // background-color: $gray-border;
242
+ background-color: transparent;
243
+
244
+ display: flex;
245
+ justify-content: center;
246
+ align-items: center;
247
+
248
+ &.card-image-rounded {
249
+ border-radius: 0 $border-radius $border-radius 0;
250
+
251
+ img {
252
+ border-radius: 0 $border-radius $border-radius 0;
253
+ }
254
+ }
255
+
256
+ .card-date {
257
+ background-color: $white;
258
+ padding: 0.5em 1em;
259
+ z-index: 1;
260
+
261
+ & > *:first-child {
262
+ font-size: 120%;
263
+ }
264
+
265
+ & > *:last-child {
266
+ font-size: 80%;
267
+ }
268
+ }
269
+
270
+ img {
271
+ z-index: auto;
272
+ object-fit: cover;
273
+ }
274
+ }
275
+ }
276
+
277
+ //Landscape
278
+ @include media-breakpoint-up(md) {
279
+ .card-teaser {
280
+ flex: 0 0 49%;
281
+ }
282
+
283
+ &.card-teaser-block-2 {
284
+ width: 100%;
285
+ justify-content: space-between;
286
+
287
+ & > .card-teaser {
288
+ flex: 0 0 49%;
289
+ }
290
+ }
291
+
292
+ &.card-teaser-block-3 {
293
+ width: 100%;
294
+ justify-content: space-between;
295
+
296
+ & > .card-teaser {
297
+ flex: 0 0 32%;
298
+ }
299
+ }
300
+
301
+ &.card-teaser-start {
302
+ justify-content: flex-start !important;
303
+
304
+ .card-teaser + .card-teaser {
305
+ margin-left: 1.35rem;
306
+ }
307
+ }
308
+
309
+ &.card-teaser-end {
310
+ justify-content: flex-end !important;
311
+
312
+ .card-teaser + .card-teaser {
313
+ margin-left: 1.35rem;
314
+ }
315
+ }
316
+ }
317
+ }
318
+
319
+ //Desktop
320
+ @include media-breakpoint-up(xl) {
321
+ &.card-teaser-block-4 {
322
+ width: 100%;
323
+ justify-content: space-between;
324
+
325
+ & > .card-teaser {
326
+ flex: 0 0 24%;
327
+ }
328
+ }
329
+
330
+ &.card-overlapping {
331
+ margin-top: -32px;
332
+ }
333
+ }
334
+ }
335
+
336
+ .card {
337
+ // scss-docs-start card-css-vars
338
+ --#{$prefix}card-spacer-y: #{$card-spacer-y};
339
+ --#{$prefix}card-spacer-x: #{$card-spacer-x};
340
+ --#{$prefix}card-title-spacer-y: #{$card-title-spacer-y};
341
+ --#{$prefix}card-border-width: #{$card-border-width};
342
+ --#{$prefix}card-border-color: #{$card-border-color};
343
+ --#{$prefix}card-border-radius: #{$card-border-radius};
344
+ --#{$prefix}card-box-shadow: #{$card-box-shadow};
345
+ --#{$prefix}card-inner-border-radius: #{$card-inner-border-radius};
346
+ --#{$prefix}card-cap-padding-y: #{$card-cap-padding-y};
347
+ --#{$prefix}card-cap-padding-x: #{$card-cap-padding-x};
348
+ --#{$prefix}card-cap-bg: #{$card-cap-bg};
349
+ --#{$prefix}card-cap-color: #{$card-cap-color};
350
+ --#{$prefix}card-height: #{$card-height};
351
+ --#{$prefix}card-color: #{$card-color};
352
+ --#{$prefix}card-bg: #{$card-bg};
353
+ --#{$prefix}card-img-overlay-padding: #{$card-img-overlay-padding};
354
+ --#{$prefix}card-group-margin: #{$card-group-margin};
355
+ // scss-docs-end card-css-vars
356
+ display: flex;
357
+ flex-direction: column;
358
+ min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
359
+ height: var(--#{$prefix}card-height);
360
+ word-wrap: break-word;
361
+ background-color: var(--#{$prefix}card-bg);
362
+ background-clip: border-box;
363
+ border: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
364
+ @include border-radius(var(--#{$prefix}card-border-radius));
365
+ @include box-shadow(var(--#{$prefix}card-box-shadow));
366
+
367
+ > hr {
368
+ margin-right: 0;
369
+ margin-left: 0;
370
+ }
371
+
372
+ > .list-group {
373
+ border-top: inherit;
374
+ border-bottom: inherit;
375
+
376
+ &:first-child {
377
+ border-top-width: 0;
378
+ @include border-top-radius(var(--#{$prefix}card-inner-border-radius));
379
+ }
380
+
381
+ &:last-child {
382
+ border-bottom-width: 0;
383
+ @include border-bottom-radius(var(--#{$prefix}card-inner-border-radius));
384
+ }
385
+ }
386
+
387
+ // Due to specificity of the above selector (`.card > .list-group`), we must
388
+ // use a child selector here to prevent double borders.
389
+ > .card-header + .list-group,
390
+ > .list-group + .card-footer {
391
+ border-top: 0;
392
+ }
393
+ border: none;
394
+ padding: 0;
395
+ position: relative;
396
+ width: 100%;
397
+
398
+ @each $color, $value in $theme-colors {
399
+ &.card-bg-#{$color} {
400
+ background-color: $value;
401
+
402
+ .card-body {
403
+ .card-title,
404
+ .card-text {
405
+ color: $white;
406
+ }
407
+ }
408
+ }
409
+ }
410
+
411
+ .card-body {
412
+ padding: $card-padding;
413
+
414
+ h4 {
415
+ &.card-title {
416
+ & + .card-text {
417
+ padding-top: 16px;
418
+ }
419
+ }
420
+ }
421
+
422
+ h5 {
423
+ &.card-title {
424
+ font-size: $card-h5-size;
425
+ line-height: $card-h5-line-height;
426
+ font-weight: $card-h5-fw;
427
+ color: $card-h5-color;
428
+ margin-bottom: $v-gap * 2;
429
+ transition: all 0.3s;
430
+ &.big-heading {
431
+ font-size: $card-big-head-size;
432
+ line-height: $card-big-head-l-h;
433
+ }
434
+
435
+ &.card-title-icon {
436
+ display: flex;
437
+ flex-direction: row;
438
+ justify-content: flex-start;
439
+ align-items: center;
440
+
441
+ .icon {
442
+ margin-right: 0.5em;
443
+ }
444
+ }
445
+ }
446
+ }
447
+ h6.card-subtitle {
448
+ font-weight: normal;
449
+ margin-bottom: $v-gap * 2;
450
+ margin-top: -$v-gap * 2;
451
+ }
452
+ a {
453
+ display: inline-block;
454
+ h5.card-title {
455
+ color: $card-link-color;
456
+ }
457
+ &:hover {
458
+ h5.card-title {
459
+ color: var(--bs-link-hover-color);
460
+ }
461
+ }
462
+ }
463
+ .card-text {
464
+ font-family: $font-family-serif;
465
+ font-size: $card-p-size;
466
+ line-height: $card-p-l-h;
467
+ color: $card-p-color;
468
+ }
469
+ .card-signature {
470
+ font-style: italic;
471
+ font-family: $font-family-serif;
472
+ color: $card-p-color;
473
+ font-weight: 700;
474
+ font-size: $card-signature-size;
475
+ margin-bottom: 0;
476
+ display: block;
477
+ }
478
+ .category-top {
479
+ font-size: $card-category-size;
480
+ text-transform: uppercase;
481
+ color: $card-p-color;
482
+ margin-bottom: $card-category-m-bottom;
483
+ a.category {
484
+ color: $primary;
485
+ &:hover {
486
+ text-decoration: underline;
487
+ }
488
+ }
489
+ .category {
490
+ font-weight: 600;
491
+ letter-spacing: $card-category-l-spacing;
492
+ }
493
+ .data {
494
+ &:before {
495
+ content: '—';
496
+ display: inline-block;
497
+ margin: 0 $v-gap;
498
+ }
499
+ }
500
+ }
501
+ }
502
+ // line
503
+ &:after {
504
+ content: '';
505
+ // height: $card-small-line-height;
506
+ // width: $card-small-line-w;
507
+ // background: $card-small-line-color;
508
+ display: block;
509
+ margin-top: $card-small-line-margin;
510
+ margin-left: $card-padding;
511
+ }
512
+ a.read-more {
513
+ position: absolute;
514
+ bottom: $v-gap * 3;
515
+ }
516
+ .categoryicon-top {
517
+ margin-bottom: $card-cat-icon-block-margin;
518
+ display: flex;
519
+ align-items: center;
520
+ .text {
521
+ font-size: $card-category-size;
522
+ text-transform: uppercase;
523
+ letter-spacing: $card-category-l-spacing;
524
+ color: $card-p-color;
525
+ line-height: 1rem;
526
+ }
527
+ .icon {
528
+ width: $card-cat-icon-size;
529
+ height: $card-cat-icon-size;
530
+ fill: $card-link-color;
531
+ margin-right: $v-gap * 1;
532
+ flex-shrink: 0;
533
+ }
534
+ }
535
+ // simple link
536
+ .simple-link {
537
+ font-weight: 600;
538
+ font-size: $card-signature-size;
539
+ margin-top: $card-simple-link-margin;
540
+ display: block;
541
+ }
542
+ // cards with background
543
+ &.card-bg {
544
+ margin-left: math.div($card-padding, 3);
545
+ margin-right: math.div($card-padding, 3);
546
+ box-shadow: $card-shadow;
547
+ background: $card-shadow-bg;
548
+ &:after {
549
+ background: transparent;
550
+ }
551
+ border-right: none;
552
+ }
553
+ // cards with img top
554
+ &.card-img {
555
+ // Why the margin?
556
+ // margin-left: $card-padding/3;
557
+ // margin-right: $card-padding/3;
558
+
559
+ &.shadow .card-body,
560
+ &.border .card-body,
561
+ &.border-start .card-body,
562
+ &.border-end .card-body {
563
+ padding-left: $card-padding;
564
+ padding-right: $card-padding;
565
+ }
566
+ h5.card-title {
567
+ font-size: $card-img-heading-size;
568
+ line-height: $card-img-heading-l-h;
569
+ margin-bottom: $v-gap * 5;
570
+ }
571
+ border-right: none;
572
+
573
+ .img-responsive-wrapper {
574
+ .img-responsive {
575
+ padding-bottom: 61.29%; /* image proportion 310 x 190 */
576
+ &.img-responsive-panoramic {
577
+ padding-bottom: 30.645%; /* image proportion 310 x 95 */
578
+ }
579
+ }
580
+ }
581
+
582
+ &.rounded .img-responsive-wrapper {
583
+ border-top-left-radius: $border-radius;
584
+ border-top-right-radius: $border-radius;
585
+ }
586
+ }
587
+ .card-calendar {
588
+ height: 80%;
589
+ max-height: 80px;
590
+ width: 80px;
591
+ border-radius: 4px;
592
+ background-color: $white;
593
+ box-shadow:
594
+ 0 1px 4px 0 rgba(0, 0, 0, 0.1),
595
+ 0 4px 8px 0 rgba(0, 0, 0, 0.1);
596
+ position: absolute;
597
+ right: 32px;
598
+ top: 10%;
599
+ color: #455a64;
600
+ text-align: center;
601
+ font-size: 0.875rem;
602
+ font-weight: 600;
603
+ line-height: 1.3;
604
+ text-transform: capitalize;
605
+ .card-date {
606
+ font-size: 1.667em;
607
+ font-weight: 700;
608
+ display: block;
609
+ }
610
+ }
611
+
612
+ &.no-after {
613
+ content: none;
614
+ position: relative;
615
+ &:after {
616
+ display: none;
617
+ }
618
+
619
+ & > .read-more {
620
+ &::before {
621
+ content: '';
622
+ height: $v-gap * 3;
623
+ display: block;
624
+ }
625
+ padding-top: $v-gap * 2;
626
+ }
627
+ }
628
+
629
+ // special card
630
+ &.special-card {
631
+ .img-responsive-wrapper {
632
+ overflow: visible;
633
+ position: relative;
634
+ width: $special-card-img-width;
635
+ margin-bottom: $card-padding;
636
+ &::before,
637
+ &::after {
638
+ content: '';
639
+ position: absolute;
640
+ width: 100%;
641
+ height: 100%;
642
+ display: block;
643
+ }
644
+ &:before {
645
+ background: $primary-a3;
646
+ left: $card-padding;
647
+ top: $card-padding;
648
+ opacity: 0.3;
649
+ transition: all 0.3s;
650
+ }
651
+ &:after {
652
+ background: $primary-a3;
653
+ left: $card-padding * 0.5;
654
+ top: $card-padding * 0.5;
655
+ transition: all 0.3s;
656
+ }
657
+ .img-responsive {
658
+ padding-bottom: 122.98%; /* image proportion 214 x 174 */
659
+ z-index: 1;
660
+ }
661
+ }
662
+ .head-tags {
663
+ margin-bottom: $card-padding;
664
+ span.data {
665
+ font-weight: normal;
666
+ }
667
+ }
668
+ h5.card-title {
669
+ color: $card-link-color;
670
+ }
671
+ &:hover {
672
+ text-decoration: underline;
673
+ h5.card-title {
674
+ color: var(--bs-link-hover-color);
675
+ }
676
+ .img-responsive-wrapper {
677
+ &:before {
678
+ background: $primary;
679
+ opacity: 0.3;
680
+ }
681
+ &:after {
682
+ background: $primary;
683
+ }
684
+ }
685
+ }
686
+ }
687
+ // card big
688
+ &.card-big {
689
+ .card-body {
690
+ padding: $card-padding * 2;
691
+ .top-icon {
692
+ margin-bottom: $card-padding;
693
+ .icon {
694
+ width: $card-big-top-icon-size;
695
+ height: $card-big-top-icon-size;
696
+ fill: $primary;
697
+ }
698
+ }
699
+
700
+ h5.card-title {
701
+ font-size: $card-big-h5-size;
702
+ line-height: $card-big-h5-l-h;
703
+ }
704
+ .card-text {
705
+ font-size: $card-big-p-size;
706
+ line-height: $card-big-p-l-h;
707
+ }
708
+ }
709
+ .flag-icon {
710
+ margin-left: $card-padding * 2;
711
+ }
712
+ .etichetta {
713
+ position: absolute;
714
+ right: $card-padding * 2;
715
+ top: $card-padding + $v-gap;
716
+ //left: $card-padding * 6;
717
+ justify-content: flex-end;
718
+ }
719
+ }
720
+ &.border-bottom-card {
721
+ &::before {
722
+ content: '';
723
+ display: block;
724
+ position: absolute;
725
+ left: 0;
726
+ right: 0;
727
+ height: 4px;
728
+ bottom: 0;
729
+ background: $primary;
730
+ }
731
+ }
732
+ //head tag
733
+ .head-tags {
734
+ justify-content: space-between;
735
+ display: flex;
736
+ margin-bottom: $card-padding * 2;
737
+ .data {
738
+ font-size: $card-category-size;
739
+ text-transform: uppercase;
740
+ color: $card-p-color;
741
+ }
742
+ }
743
+ .card-tag {
744
+ color: $primary;
745
+ font-size: $card-category-size;
746
+ font-weight: bold;
747
+ letter-spacing: $card-category-l-spacing;
748
+ padding: 0 $v-gap * 4;
749
+ border-radius: $tag-radius;
750
+ border: 1px solid $primary;
751
+ }
752
+ // card footer
753
+ .it-card-footer {
754
+ display: flex;
755
+ justify-content: space-between;
756
+ align-items: center;
757
+ margin-top: $card-padding * 2;
758
+ .card-signature {
759
+ font-style: italic;
760
+ font-family: $font-family-serif;
761
+ color: $card-p-color;
762
+ font-weight: 700;
763
+ font-size: $card-signature-size;
764
+ display: block;
765
+ margin-bottom: 0;
766
+ }
767
+ }
768
+
769
+ &.card-teaser {
770
+ display: inline-flex;
771
+ // width: auto;
772
+ flex-direction: row;
773
+ align-items: flex-start;
774
+ padding: 24px;
775
+
776
+ &:after {
777
+ content: none;
778
+ }
779
+
780
+ &.card-column {
781
+ flex-direction: column;
782
+ }
783
+
784
+ .card-header {
785
+ display: flex;
786
+ flex-direction: row;
787
+ justify-content: flex-start;
788
+ align-items: flex-start;
789
+
790
+ padding: 1em;
791
+ width: 100%;
792
+
793
+ .icon {
794
+ margin-right: 0.5rem;
795
+ }
796
+
797
+ @for $i from 1 through 6 {
798
+ h#{$i} {
799
+ line-height: 1.5;
800
+ margin-bottom: 0;
801
+ }
802
+ }
803
+ }
804
+
805
+ .card-body {
806
+ padding: 0;
807
+ flex: auto;
808
+
809
+ .card-text,
810
+ .card-text > p {
811
+ margin: 0;
812
+
813
+ & + .card-text {
814
+ margin-top: 16px;
815
+ }
816
+ }
817
+ }
818
+
819
+ .icon {
820
+ min-width: 32px;
821
+
822
+ & + .card-body {
823
+ margin-left: 1em;
824
+ }
825
+ }
826
+
827
+ .avatar {
828
+ &.size-xs {
829
+ min-width: $avatar-base-size * 2;
830
+ }
831
+
832
+ &.size-sm {
833
+ min-width: $avatar-base-size * 3;
834
+ }
835
+
836
+ &.size-md {
837
+ min-width: $avatar-base-size * 4;
838
+ }
839
+
840
+ &.size-lg {
841
+ min-width: $avatar-base-size * 5;
842
+ }
843
+
844
+ &.size-xl {
845
+ min-width: $avatar-base-size * 10;
846
+ }
847
+
848
+ & + .card-body {
849
+ flex: 1;
850
+ }
851
+ }
852
+ }
853
+
854
+ @each $color, $value in $theme-colors {
855
+ &.card-teaser-#{$color} {
856
+ border-left: 8px solid $value;
857
+ }
858
+ }
859
+ }
860
+ // flag
861
+ .flag-icon {
862
+ width: $flag-icon-w;
863
+ height: $flag-icon-h;
864
+ box-sizing: content-box;
865
+ position: relative;
866
+ background: $flag-icon-color;
867
+ color: $card-shadow-bg;
868
+ text-align: center;
869
+ text-transform: uppercase;
870
+ }
871
+ .flag-icon:after {
872
+ content: '';
873
+ position: absolute;
874
+ left: 0;
875
+ bottom: 0;
876
+ width: 0;
877
+ height: 0;
878
+ border-bottom: 13px solid $card-shadow-bg;
879
+ border-left: $flag-icon-w * 0.5 solid transparent;
880
+ border-right: $flag-icon-w * 0.5 solid transparent;
881
+ }
882
+
883
+ // read more text
884
+ a.read-more {
885
+ display: flex;
886
+ align-items: center;
887
+ color: $card-link-color;
888
+ text-transform: uppercase;
889
+ font-weight: bold;
890
+ letter-spacing: $card-category-l-spacing;
891
+ font-size: $card-category-size;
892
+ text-decoration: none;
893
+ .icon {
894
+ margin-left: $v-gap;
895
+ fill: $card-link-color;
896
+ width: $card-link-icon-size;
897
+ height: $card-link-icon-size;
898
+ flex-shrink: 0;
899
+ }
900
+ &:hover {
901
+ text-decoration: underline;
902
+ }
903
+ }
904
+ //.etichetta
905
+ .etichetta {
906
+ display: flex;
907
+ align-items: center;
908
+ font-size: $card-category-size;
909
+ text-transform: uppercase;
910
+ font-weight: bold;
911
+ letter-spacing: $card-category-l-spacing;
912
+ color: $card-p-color;
913
+ .icon {
914
+ fill: $card-p-color;
915
+ width: $v-gap * 3;
916
+ height: $v-gap * 3;
917
+ margin-right: $v-gap;
918
+ flex-shrink: 0;
919
+ }
920
+ }
921
+ // Contextual variation
922
+ .row {
923
+ [class*='col-'] {
924
+ //car variation inside cols
925
+ > .card-wrapper {
926
+ height: 100%;
927
+ > .card {
928
+ height: 100%;
929
+ }
930
+ }
931
+ }
932
+ }
933
+
934
+ //Tablet horizontal / small desktop
935
+ @include media-breakpoint-up(lg) {
936
+ .card-wrapper {
937
+ padding-bottom: 0;
938
+ &.card-space {
939
+ padding-bottom: $card-padding * 0.5;
940
+ }
941
+ &.card-offset {
942
+ margin-top: 90px;
943
+ }
944
+ }
945
+ .card {
946
+ border: none;
947
+ &.card-bg,
948
+ &.card-img {
949
+ margin: 0;
950
+ }
951
+ }
952
+ }