@agilekit/ui 0.0.402-alpha.0 → 0.0.405-alpha.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.
- package/package.json +2 -2
- package/src/assets/styles/global/bootstrap/_card.scss +6 -5
- package/src/assets/styles/global/bootstrap/_carousel.scss +3 -2
- package/src/assets/styles/global/bootstrap/_custom-forms.scss +5 -4
- package/src/assets/styles/global/bootstrap/_forms.scss +5 -4
- package/src/assets/styles/global/bootstrap/_functions.scss +2 -1
- package/src/assets/styles/global/bootstrap/_jumbotron.scss +3 -1
- package/src/assets/styles/global/bootstrap/_popover.scss +7 -5
- package/src/assets/styles/global/bootstrap/_tooltip.scss +6 -4
- package/src/assets/styles/global/bootstrap/_variables.scss +27 -26
- package/src/assets/styles/global/bootstrap/mixins/_grid.scss +1 -2
- package/src/assets/styles/global/bootstrap/utilities/_embed.scss +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agilekit/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.405-alpha.0",
|
|
4
4
|
"description": "Agile's product component library",
|
|
5
5
|
"author": "Michael de Lima Alves <michaelalves@outlook.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
"react-spring": "*"
|
|
144
144
|
},
|
|
145
145
|
"bugs": {},
|
|
146
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "6ab5e2992a8ddcc44c2d10a8c2ca7d4dc655c8dd"
|
|
147
147
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:math";
|
|
1
2
|
//
|
|
2
3
|
// Base styles
|
|
3
4
|
//
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
.card-subtitle {
|
|
46
|
-
margin-top: -$card-spacer-y
|
|
47
|
+
margin-top: math.div(-$card-spacer-y, 2);
|
|
47
48
|
margin-bottom: 0;
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -99,15 +100,15 @@
|
|
|
99
100
|
//
|
|
100
101
|
|
|
101
102
|
.card-header-tabs {
|
|
102
|
-
margin-right: -$card-spacer-x
|
|
103
|
+
margin-right: math.div(-$card-spacer-x, 2);
|
|
103
104
|
margin-bottom: -$card-spacer-y;
|
|
104
|
-
margin-left: -$card-spacer-x
|
|
105
|
+
margin-left: math.div(-$card-spacer-x, 2);
|
|
105
106
|
border-bottom: 0;
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
.card-header-pills {
|
|
109
|
-
margin-right: -$card-spacer-x
|
|
110
|
-
margin-left: -$card-spacer-x
|
|
110
|
+
margin-right: math.div(-$card-spacer-x, 2);
|
|
111
|
+
margin-left: math.div(-$card-spacer-x, 2);
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
// Card image
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:math";
|
|
1
2
|
// Notes on the classes:
|
|
2
3
|
//
|
|
3
4
|
// 1. .carousel.pointer-event should ideally be pan-y (to allow for users to scroll vertically)
|
|
@@ -187,9 +188,9 @@
|
|
|
187
188
|
|
|
188
189
|
.carousel-caption {
|
|
189
190
|
position: absolute;
|
|
190
|
-
right: (100% - $carousel-caption-width)
|
|
191
|
+
right: math.div((100% - $carousel-caption-width), 2);
|
|
191
192
|
bottom: 20px;
|
|
192
|
-
left: (100% - $carousel-caption-width)
|
|
193
|
+
left: math.div((100% - $carousel-caption-width), 2);
|
|
193
194
|
z-index: 10;
|
|
194
195
|
padding-top: 20px;
|
|
195
196
|
padding-bottom: 20px;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:math";
|
|
1
2
|
// Embedded icons from Open Iconic.
|
|
2
3
|
// Released under MIT and copyright 2014 Waybury.
|
|
3
4
|
// https://useiconic.com/open
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
// Background-color and (when enabled) gradient
|
|
75
76
|
&::before {
|
|
76
77
|
position: absolute;
|
|
77
|
-
top: ($font-size-base * $line-height-base - $custom-control-indicator-size)
|
|
78
|
+
top: math.div(($font-size-base * $line-height-base - $custom-control-indicator-size), 2);
|
|
78
79
|
left: -($custom-control-gutter + $custom-control-indicator-size);
|
|
79
80
|
display: block;
|
|
80
81
|
width: $custom-control-indicator-size;
|
|
@@ -89,7 +90,7 @@
|
|
|
89
90
|
// Foreground (icon)
|
|
90
91
|
&::after {
|
|
91
92
|
position: absolute;
|
|
92
|
-
top: ($font-size-base * $line-height-base - $custom-control-indicator-size)
|
|
93
|
+
top: math.div(($font-size-base * $line-height-base - $custom-control-indicator-size), 2);
|
|
93
94
|
left: -($custom-control-gutter + $custom-control-indicator-size);
|
|
94
95
|
display: block;
|
|
95
96
|
width: $custom-control-indicator-size;
|
|
@@ -387,7 +388,7 @@
|
|
|
387
388
|
&::-webkit-slider-thumb {
|
|
388
389
|
width: $custom-range-thumb-width;
|
|
389
390
|
height: $custom-range-thumb-height;
|
|
390
|
-
margin-top: ($custom-range-track-height - $custom-range-thumb-height)
|
|
391
|
+
margin-top: math.div(($custom-range-track-height - $custom-range-thumb-height), 2); // Webkit specific
|
|
391
392
|
@include gradient-bg($custom-range-thumb-bg);
|
|
392
393
|
border: $custom-range-thumb-border;
|
|
393
394
|
@include border-radius($custom-range-thumb-border-radius);
|
|
@@ -462,7 +463,7 @@
|
|
|
462
463
|
cursor: $custom-range-track-cursor;
|
|
463
464
|
background-color: transparent;
|
|
464
465
|
border-color: transparent;
|
|
465
|
-
border-width: $custom-range-thumb-height
|
|
466
|
+
border-width: math.div($custom-range-thumb-height, 2);
|
|
466
467
|
@include box-shadow($custom-range-track-box-shadow);
|
|
467
468
|
}
|
|
468
469
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:math";
|
|
1
2
|
// stylelint-disable selector-no-qualifying-type
|
|
2
3
|
|
|
3
4
|
//
|
|
@@ -190,13 +191,13 @@ textarea.form-control {
|
|
|
190
191
|
.form-row {
|
|
191
192
|
display: flex;
|
|
192
193
|
flex-wrap: wrap;
|
|
193
|
-
margin-right:
|
|
194
|
-
margin-left:
|
|
194
|
+
margin-right: calc(-#{$form-grid-gutter-width} / 2);
|
|
195
|
+
margin-left: calc(-#{$form-grid-gutter-width} / 2);
|
|
195
196
|
|
|
196
197
|
> .col,
|
|
197
198
|
> [class*="col-"] {
|
|
198
|
-
padding-right: $form-grid-gutter-width
|
|
199
|
-
padding-left: $form-grid-gutter-width
|
|
199
|
+
padding-right: math.div($form-grid-gutter-width, 2);
|
|
200
|
+
padding-left: math.div($form-grid-gutter-width, 2);
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
203
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:math";
|
|
1
2
|
// Bootstrap functions
|
|
2
3
|
//
|
|
3
4
|
// Utility mixins and functions for evaluating source code across our variables, maps, and mixins.
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
$g: green($color);
|
|
55
56
|
$b: blue($color);
|
|
56
57
|
|
|
57
|
-
$yiq: (($r * 299) + ($g * 587) + ($b * 114))
|
|
58
|
+
$yiq: math.div((($r * 299) + ($g * 587) + ($b * 114)), 1000);
|
|
58
59
|
|
|
59
60
|
@if ($yiq >= $yiq-contrasted-threshold) {
|
|
60
61
|
@return $dark;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
1
3
|
.jumbotron {
|
|
2
|
-
padding: $jumbotron-padding ($jumbotron-padding
|
|
4
|
+
padding: $jumbotron-padding (math.div($jumbotron-padding, 2));
|
|
3
5
|
margin-bottom: $jumbotron-padding;
|
|
4
6
|
background-color: $jumbotron-bg;
|
|
5
7
|
@include border-radius($border-radius-lg);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
1
3
|
.popover {
|
|
2
4
|
position: absolute;
|
|
3
5
|
top: 0;
|
|
@@ -44,7 +46,7 @@
|
|
|
44
46
|
|
|
45
47
|
.arrow::before,
|
|
46
48
|
.arrow::after {
|
|
47
|
-
border-width: $popover-arrow-height ($popover-arrow-width
|
|
49
|
+
border-width: $popover-arrow-height (math.div($popover-arrow-width, 2)) 0;
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
.arrow::before {
|
|
@@ -70,7 +72,7 @@
|
|
|
70
72
|
|
|
71
73
|
.arrow::before,
|
|
72
74
|
.arrow::after {
|
|
73
|
-
border-width: ($popover-arrow-width
|
|
75
|
+
border-width: (math.div($popover-arrow-width, 2)) $popover-arrow-height (math.div($popover-arrow-width, 2)) 0;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
.arrow::before {
|
|
@@ -93,7 +95,7 @@
|
|
|
93
95
|
|
|
94
96
|
.arrow::before,
|
|
95
97
|
.arrow::after {
|
|
96
|
-
border-width: 0 ($popover-arrow-width
|
|
98
|
+
border-width: 0 (math.div($popover-arrow-width, 2)) $popover-arrow-height (math.div($popover-arrow-width, 2));
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
.arrow::before {
|
|
@@ -113,7 +115,7 @@
|
|
|
113
115
|
left: 50%;
|
|
114
116
|
display: block;
|
|
115
117
|
width: $popover-arrow-width;
|
|
116
|
-
margin-left: -$popover-arrow-width
|
|
118
|
+
margin-left: math.div(-$popover-arrow-width, 2);
|
|
117
119
|
content: "";
|
|
118
120
|
border-bottom: $popover-border-width solid $popover-header-bg;
|
|
119
121
|
}
|
|
@@ -131,7 +133,7 @@
|
|
|
131
133
|
|
|
132
134
|
.arrow::before,
|
|
133
135
|
.arrow::after {
|
|
134
|
-
border-width: ($popover-arrow-width
|
|
136
|
+
border-width: (math.div($popover-arrow-width, 2)) 0 (math.div($popover-arrow-width, 2)) $popover-arrow-height;
|
|
135
137
|
}
|
|
136
138
|
|
|
137
139
|
.arrow::before {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
1
3
|
// Base class
|
|
2
4
|
.tooltip {
|
|
3
5
|
position: absolute;
|
|
@@ -37,7 +39,7 @@
|
|
|
37
39
|
|
|
38
40
|
&::before {
|
|
39
41
|
top: 0;
|
|
40
|
-
border-width: $tooltip-arrow-height ($tooltip-arrow-width
|
|
42
|
+
border-width: $tooltip-arrow-height (math.div($tooltip-arrow-width, 2)) 0;
|
|
41
43
|
border-top-color: $tooltip-arrow-color;
|
|
42
44
|
}
|
|
43
45
|
}
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
|
|
54
56
|
&::before {
|
|
55
57
|
right: 0;
|
|
56
|
-
border-width: ($tooltip-arrow-width
|
|
58
|
+
border-width: (math.div($tooltip-arrow-width, 2)) $tooltip-arrow-height (math.div($tooltip-arrow-width, 2)) 0;
|
|
57
59
|
border-right-color: $tooltip-arrow-color;
|
|
58
60
|
}
|
|
59
61
|
}
|
|
@@ -67,7 +69,7 @@
|
|
|
67
69
|
|
|
68
70
|
&::before {
|
|
69
71
|
bottom: 0;
|
|
70
|
-
border-width: 0 ($tooltip-arrow-width
|
|
72
|
+
border-width: 0 (math.div($tooltip-arrow-width, 2)) $tooltip-arrow-height;
|
|
71
73
|
border-bottom-color: $tooltip-arrow-color;
|
|
72
74
|
}
|
|
73
75
|
}
|
|
@@ -83,7 +85,7 @@
|
|
|
83
85
|
|
|
84
86
|
&::before {
|
|
85
87
|
left: 0;
|
|
86
|
-
border-width: ($tooltip-arrow-width
|
|
88
|
+
border-width: (math.div($tooltip-arrow-width, 2)) 0 (math.div($tooltip-arrow-width, 2)) $tooltip-arrow-height;
|
|
87
89
|
border-left-color: $tooltip-arrow-color;
|
|
88
90
|
}
|
|
89
91
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:math";
|
|
1
2
|
// Variables
|
|
2
3
|
//
|
|
3
4
|
// Variables should follow the `$component-state-property-size` formula for
|
|
@@ -268,8 +269,8 @@ $font-family-base: $font-family-sans-serif !default;
|
|
|
268
269
|
// stylelint-enable value-keyword-case
|
|
269
270
|
|
|
270
271
|
$font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
|
|
271
|
-
$font-size-lg:
|
|
272
|
-
$font-size-sm:
|
|
272
|
+
$font-size-lg: $font-size-base * 1.25 !default;
|
|
273
|
+
$font-size-sm: $font-size-base * .875 !default;
|
|
273
274
|
|
|
274
275
|
$font-weight-lighter: lighter !default;
|
|
275
276
|
$font-weight-light: 300 !default;
|
|
@@ -287,7 +288,7 @@ $h4-font-size: $font-size-base * 1.5 !default;
|
|
|
287
288
|
$h5-font-size: $font-size-base * 1.25 !default;
|
|
288
289
|
$h6-font-size: $font-size-base !default;
|
|
289
290
|
|
|
290
|
-
$headings-margin-bottom:
|
|
291
|
+
$headings-margin-bottom: math.div($spacer, 2) !default;
|
|
291
292
|
$headings-font-family: inherit !default;
|
|
292
293
|
$headings-font-weight: 500 !default;
|
|
293
294
|
$headings-line-height: 1.2 !default;
|
|
@@ -304,7 +305,7 @@ $display3-weight: 300 !default;
|
|
|
304
305
|
$display4-weight: 300 !default;
|
|
305
306
|
$display-line-height: $headings-line-height !default;
|
|
306
307
|
|
|
307
|
-
$lead-font-size:
|
|
308
|
+
$lead-font-size: $font-size-base * 1.25 !default;
|
|
308
309
|
$lead-font-weight: 300 !default;
|
|
309
310
|
|
|
310
311
|
$small-font-size: 80% !default;
|
|
@@ -313,7 +314,7 @@ $text-muted: $gray-600 !default;
|
|
|
313
314
|
|
|
314
315
|
$blockquote-small-color: $gray-600 !default;
|
|
315
316
|
$blockquote-small-font-size: $small-font-size !default;
|
|
316
|
-
$blockquote-font-size:
|
|
317
|
+
$blockquote-font-size: $font-size-base * 1.25 !default;
|
|
317
318
|
|
|
318
319
|
$hr-border-color: rgba($black, .1) !default;
|
|
319
320
|
$hr-border-width: $border-width !default;
|
|
@@ -475,16 +476,16 @@ $input-focus-box-shadow: $input-btn-focus-box-shadow !default;
|
|
|
475
476
|
$input-placeholder-color: $gray-600 !default;
|
|
476
477
|
$input-plaintext-color: $body-color !default;
|
|
477
478
|
|
|
478
|
-
$input-height-border:
|
|
479
|
+
$input-height-border: $input-border-width * 2 !default;
|
|
479
480
|
|
|
480
|
-
$input-height-inner:
|
|
481
|
-
$input-height:
|
|
481
|
+
$input-height-inner: ($input-btn-font-size * $input-btn-line-height) + ($input-btn-padding-y * 2) !default;
|
|
482
|
+
$input-height: $input-height-inner + $input-height-border !default;
|
|
482
483
|
|
|
483
|
-
$input-height-inner-sm:
|
|
484
|
-
$input-height-sm:
|
|
484
|
+
$input-height-inner-sm: ($input-btn-font-size-sm * $input-btn-line-height-sm) + ($input-btn-padding-y-sm * 2) !default;
|
|
485
|
+
$input-height-sm: $input-height-inner-sm + $input-height-border !default;
|
|
485
486
|
|
|
486
|
-
$input-height-inner-lg:
|
|
487
|
-
$input-height-lg:
|
|
487
|
+
$input-height-inner-lg: ($input-btn-font-size-lg * $input-btn-line-height-lg) + ($input-btn-padding-y-lg * 2) !default;
|
|
488
|
+
$input-height-lg: $input-height-inner-lg + $input-height-border !default;
|
|
488
489
|
|
|
489
490
|
$input-transition: border-color .15s ease-in-out,
|
|
490
491
|
box-shadow .15s ease-in-out !default;
|
|
@@ -549,9 +550,9 @@ $custom-checkbox-indicator-indeterminate-border-color: $custom-checkbox-indicato
|
|
|
549
550
|
$custom-radio-indicator-border-radius: 50% !default;
|
|
550
551
|
$custom-radio-indicator-icon-checked: str-replace(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='#{$custom-control-indicator-checked-color}'/%3e%3c/svg%3e"), "#", "%23") !default;
|
|
551
552
|
|
|
552
|
-
$custom-switch-width:
|
|
553
|
-
$custom-switch-indicator-border-radius:
|
|
554
|
-
$custom-switch-indicator-size:
|
|
553
|
+
$custom-switch-width: $custom-control-indicator-size * 1.75 !default;
|
|
554
|
+
$custom-switch-indicator-border-radius: math.div($custom-control-indicator-size, 2) !default;
|
|
555
|
+
$custom-switch-indicator-size: $custom-control-indicator-size - $custom-control-indicator-border-width * 4 !default;
|
|
555
556
|
|
|
556
557
|
$custom-select-padding-y: $input-btn-padding-y !default;
|
|
557
558
|
$custom-select-padding-x: $input-btn-padding-x !default;
|
|
@@ -568,9 +569,9 @@ $custom-select-indicator-color: $gray-800 !default;
|
|
|
568
569
|
$custom-select-indicator: str-replace(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='#{$custom-select-indicator-color}' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e"), "#", "%23") !default;
|
|
569
570
|
$custom-select-background: $custom-select-indicator no-repeat right $custom-select-padding-x center / $custom-select-bg-size !default; // Used so we can have multiple background elements (e.g., arrow and feedback icon)
|
|
570
571
|
|
|
571
|
-
$custom-select-feedback-icon-padding-right:
|
|
572
|
-
$custom-select-feedback-icon-position: center right
|
|
573
|
-
$custom-select-feedback-icon-size:
|
|
572
|
+
$custom-select-feedback-icon-padding-right: math.div(($input-height-inner * 3), 4) + $custom-select-padding-x + $custom-select-indicator-padding !default;
|
|
573
|
+
$custom-select-feedback-icon-position: center right $custom-select-padding-x + $custom-select-indicator-padding !default;
|
|
574
|
+
$custom-select-feedback-icon-size: math.div($input-height-inner, 2) math.div($input-height-inner, 2) !default;
|
|
574
575
|
|
|
575
576
|
$custom-select-border-width: $input-border-width !default;
|
|
576
577
|
$custom-select-border-color: $input-border-color !default;
|
|
@@ -656,7 +657,7 @@ $dropdown-bg: $white !default;
|
|
|
656
657
|
$dropdown-border-color: rgba($black, .15) !default;
|
|
657
658
|
$dropdown-border-radius: $border-radius !default;
|
|
658
659
|
$dropdown-border-width: $border-width !default;
|
|
659
|
-
$dropdown-inner-border-radius:
|
|
660
|
+
$dropdown-inner-border-radius: $dropdown-border-radius - $dropdown-border-width !default;
|
|
660
661
|
$dropdown-divider-bg: $gray-200 !default;
|
|
661
662
|
$dropdown-box-shadow: 0 .5rem 1rem rgba($black, .175) !default;
|
|
662
663
|
|
|
@@ -708,21 +709,21 @@ $nav-pills-link-active-color: $component-active-color !default;
|
|
|
708
709
|
$nav-pills-link-active-bg: $component-active-bg !default;
|
|
709
710
|
|
|
710
711
|
$nav-divider-color: $gray-200 !default;
|
|
711
|
-
$nav-divider-margin-y:
|
|
712
|
+
$nav-divider-margin-y: math.div($spacer, 2) !default;
|
|
712
713
|
|
|
713
714
|
|
|
714
715
|
// Navbar
|
|
715
716
|
|
|
716
|
-
$navbar-padding-y:
|
|
717
|
+
$navbar-padding-y: math.div($spacer, 2) !default;
|
|
717
718
|
$navbar-padding-x: $spacer !default;
|
|
718
719
|
|
|
719
720
|
$navbar-nav-link-padding-x: .5rem !default;
|
|
720
721
|
|
|
721
722
|
$navbar-brand-font-size: $font-size-lg !default;
|
|
722
723
|
// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link
|
|
723
|
-
$nav-link-height:
|
|
724
|
-
$navbar-brand-height:
|
|
725
|
-
$navbar-brand-padding-y:
|
|
724
|
+
$nav-link-height: $font-size-base * $line-height-base + $nav-link-padding-y * 2 !default;
|
|
725
|
+
$navbar-brand-height: $navbar-brand-font-size * $line-height-base !default;
|
|
726
|
+
$navbar-brand-padding-y: math.div((#{$nav-link-height} - #{$navbar-brand-height}), 2) !default;
|
|
726
727
|
|
|
727
728
|
$navbar-toggler-padding-y: .25rem !default;
|
|
728
729
|
$navbar-toggler-padding-x: .75rem !default;
|
|
@@ -793,14 +794,14 @@ $card-spacer-x: 1.25rem !default;
|
|
|
793
794
|
$card-border-width: $border-width !default;
|
|
794
795
|
$card-border-radius: $border-radius !default;
|
|
795
796
|
$card-border-color: rgba($black, .125) !default;
|
|
796
|
-
$card-inner-border-radius:
|
|
797
|
+
$card-inner-border-radius: $card-border-radius - $card-border-width !default;
|
|
797
798
|
$card-cap-bg: rgba($black, .03) !default;
|
|
798
799
|
$card-cap-color: inherit !default;
|
|
799
800
|
$card-bg: $white !default;
|
|
800
801
|
|
|
801
802
|
$card-img-overlay-padding: 1.25rem !default;
|
|
802
803
|
|
|
803
|
-
$card-group-margin:
|
|
804
|
+
$card-group-margin: math.div(#{$grid-gutter-width}, 2) !default;
|
|
804
805
|
$card-deck-margin: $card-group-margin !default;
|
|
805
806
|
|
|
806
807
|
$card-columns-count: 3 !default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:math";
|
|
1
2
|
// Credit: Nicolas Gallagher and SUIT CSS.
|
|
2
3
|
|
|
3
4
|
.embed-responsive {
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
|
|
34
35
|
.embed-responsive-#{$embed-responsive-aspect-ratio-x}by#{$embed-responsive-aspect-ratio-y} {
|
|
35
36
|
&::before {
|
|
36
|
-
padding-top: percentage($embed-responsive-aspect-ratio-y / $embed-responsive-aspect-ratio-x);
|
|
37
|
+
padding-top: percentage(math.div($embed-responsive-aspect-ratio-y / $embed-responsive-aspect-ratio-x));
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
}
|