jekyll-theme-petridish 3.0 → 3.1.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.
- checksums.yaml +4 -4
- data/_config.yml +5 -4
- data/_data/team.yml +3 -1
- data/_includes/footer.html +45 -23
- data/_includes/head.html +5 -5
- data/_includes/header.html +1 -1
- data/_includes/navbar.html +2 -2
- data/_layouts/home.html +10 -32
- data/_layouts/team.html +20 -8
- data/_sass/bootstrap/_accordion.scss +73 -33
- data/_sass/bootstrap/_alert.scss +25 -14
- data/_sass/bootstrap/_badge.scss +14 -5
- data/_sass/bootstrap/_breadcrumb.scss +22 -10
- data/_sass/bootstrap/_button-group.scss +6 -3
- data/_sass/bootstrap/_buttons.scss +133 -28
- data/_sass/bootstrap/_card.scss +60 -37
- data/_sass/bootstrap/_carousel.scss +22 -15
- data/_sass/bootstrap/_close.scss +33 -10
- data/_sass/bootstrap/_containers.scss +1 -1
- data/_sass/bootstrap/_dropdown.scss +86 -76
- data/_sass/bootstrap/_functions.scss +10 -10
- data/_sass/bootstrap/_grid.scss +9 -3
- data/_sass/bootstrap/_helpers.scss +3 -0
- data/_sass/bootstrap/_list-group.scss +60 -37
- data/_sass/bootstrap/_maps.scss +174 -0
- data/_sass/bootstrap/_mixins.scss +1 -2
- data/_sass/bootstrap/_modal.scss +71 -44
- data/_sass/bootstrap/_nav.scss +86 -28
- data/_sass/bootstrap/_navbar.scss +101 -147
- data/_sass/bootstrap/_offcanvas.scss +121 -61
- data/_sass/bootstrap/_pagination.scss +66 -21
- data/_sass/bootstrap/_placeholders.scss +1 -1
- data/_sass/bootstrap/_popover.scss +90 -52
- data/_sass/bootstrap/_progress.scss +30 -10
- data/_sass/bootstrap/_reboot.scss +31 -45
- data/_sass/bootstrap/_root.scss +155 -22
- data/_sass/bootstrap/_spinners.scss +38 -22
- data/_sass/bootstrap/_tables.scss +40 -24
- data/_sass/bootstrap/_toasts.scss +38 -16
- data/_sass/bootstrap/_tooltip.scss +60 -56
- data/_sass/bootstrap/_type.scss +2 -0
- data/_sass/bootstrap/_utilities.scss +209 -33
- data/_sass/bootstrap/_variables-dark.scss +87 -0
- data/_sass/bootstrap/_variables.scss +404 -294
- data/_sass/bootstrap/bootstrap-grid.scss +4 -9
- data/_sass/bootstrap/bootstrap-reboot.scss +4 -7
- data/_sass/bootstrap/bootstrap-utilities.scss +7 -6
- data/_sass/bootstrap/bootstrap.scss +5 -6
- data/_sass/bootstrap/forms/_floating-labels.scss +37 -5
- data/_sass/bootstrap/forms/_form-check.scss +51 -14
- data/_sass/bootstrap/forms/_form-control.scss +36 -41
- data/_sass/bootstrap/forms/_form-range.scss +3 -3
- data/_sass/bootstrap/forms/_form-select.scss +12 -4
- data/_sass/bootstrap/forms/_input-group.scss +20 -9
- data/_sass/bootstrap/helpers/_color-bg.scss +7 -0
- data/_sass/bootstrap/helpers/_colored-links.scss +20 -2
- data/_sass/bootstrap/helpers/_focus-ring.scss +5 -0
- data/_sass/bootstrap/helpers/_icon-link.scss +25 -0
- data/_sass/bootstrap/helpers/_position.scss +7 -1
- data/_sass/bootstrap/helpers/_ratio.scss +2 -2
- data/_sass/bootstrap/helpers/_vr.scss +2 -2
- data/_sass/bootstrap/mixins/_alert.scss +11 -4
- data/_sass/bootstrap/mixins/_banner.scss +7 -0
- data/_sass/bootstrap/mixins/_breakpoints.scss +8 -8
- data/_sass/bootstrap/mixins/_buttons.scss +32 -95
- data/_sass/bootstrap/mixins/_caret.scss +30 -25
- data/_sass/bootstrap/mixins/_color-mode.scss +21 -0
- data/_sass/bootstrap/mixins/_container.scss +4 -2
- data/_sass/bootstrap/mixins/_forms.scss +38 -19
- data/_sass/bootstrap/mixins/_gradients.scss +1 -1
- data/_sass/bootstrap/mixins/_grid.scss +14 -14
- data/_sass/bootstrap/mixins/_list-group.scss +2 -0
- data/_sass/bootstrap/mixins/_pagination.scss +4 -25
- data/_sass/bootstrap/mixins/_reset-text.scss +1 -1
- data/_sass/bootstrap/mixins/_table-variants.scss +12 -9
- data/_sass/bootstrap/mixins/_utilities.scss +14 -6
- data/_sass/bootstrap/mixins/_visually-hidden.scss +5 -1
- data/_sass/bootstrap/vendor/_rfs.scss +23 -29
- data/assets/theme/css/fontawesome-all.min.css +6 -2
- data/assets/theme/js/bootstrap.min.js +3 -3
- data/assets/theme/js/bootstrap.min.js.map +1 -1
- data/assets/theme/js/jquery.min.js +2 -2
- data/assets/theme/js/popper.min.js +2 -2
- data/assets/theme/js/popper.min.js.map +1 -1
- data/assets/theme/webfonts/fa-brands-400.ttf +0 -0
- data/assets/theme/webfonts/fa-brands-400.woff2 +0 -0
- data/assets/theme/webfonts/fa-regular-400.ttf +0 -0
- data/assets/theme/webfonts/fa-regular-400.woff2 +0 -0
- data/assets/theme/webfonts/fa-solid-900.ttf +0 -0
- data/assets/theme/webfonts/fa-solid-900.woff2 +0 -0
- data/assets/theme/webfonts/fa-v4compatibility.ttf +0 -0
- data/assets/theme/webfonts/fa-v4compatibility.woff2 +0 -0
- metadata +12 -17
- data/assets/theme/css/academicons.min.css +0 -1
- data/assets/theme/fonts/academicons.eot +0 -0
- data/assets/theme/fonts/academicons.svg +0 -1663
- data/assets/theme/fonts/academicons.ttf +0 -0
- data/assets/theme/fonts/academicons.woff +0 -0
- data/assets/theme/webfonts/fa-brands-400.eot +0 -0
- data/assets/theme/webfonts/fa-brands-400.svg +0 -3717
- data/assets/theme/webfonts/fa-brands-400.woff +0 -0
- data/assets/theme/webfonts/fa-regular-400.eot +0 -0
- data/assets/theme/webfonts/fa-regular-400.svg +0 -801
- data/assets/theme/webfonts/fa-regular-400.woff +0 -0
- data/assets/theme/webfonts/fa-solid-900.eot +0 -0
- data/assets/theme/webfonts/fa-solid-900.svg +0 -5034
- data/assets/theme/webfonts/fa-solid-900.woff +0 -0
@@ -1,28 +1,40 @@
|
|
1
1
|
.breadcrumb {
|
2
|
+
// scss-docs-start breadcrumb-css-vars
|
3
|
+
--#{$prefix}breadcrumb-padding-x: #{$breadcrumb-padding-x};
|
4
|
+
--#{$prefix}breadcrumb-padding-y: #{$breadcrumb-padding-y};
|
5
|
+
--#{$prefix}breadcrumb-margin-bottom: #{$breadcrumb-margin-bottom};
|
6
|
+
@include rfs($breadcrumb-font-size, --#{$prefix}breadcrumb-font-size);
|
7
|
+
--#{$prefix}breadcrumb-bg: #{$breadcrumb-bg};
|
8
|
+
--#{$prefix}breadcrumb-border-radius: #{$breadcrumb-border-radius};
|
9
|
+
--#{$prefix}breadcrumb-divider-color: #{$breadcrumb-divider-color};
|
10
|
+
--#{$prefix}breadcrumb-item-padding-x: #{$breadcrumb-item-padding-x};
|
11
|
+
--#{$prefix}breadcrumb-item-active-color: #{$breadcrumb-active-color};
|
12
|
+
// scss-docs-end breadcrumb-css-vars
|
13
|
+
|
2
14
|
display: flex;
|
3
15
|
flex-wrap: wrap;
|
4
|
-
padding: $breadcrumb-padding-y $breadcrumb-padding-x;
|
5
|
-
margin-bottom: $breadcrumb-margin-bottom;
|
6
|
-
@include font-size($breadcrumb-font-size);
|
16
|
+
padding: var(--#{$prefix}breadcrumb-padding-y) var(--#{$prefix}breadcrumb-padding-x);
|
17
|
+
margin-bottom: var(--#{$prefix}breadcrumb-margin-bottom);
|
18
|
+
@include font-size(var(--#{$prefix}breadcrumb-font-size));
|
7
19
|
list-style: none;
|
8
|
-
background-color: $breadcrumb-bg;
|
9
|
-
@include border-radius($breadcrumb-border-radius);
|
20
|
+
background-color: var(--#{$prefix}breadcrumb-bg);
|
21
|
+
@include border-radius(var(--#{$prefix}breadcrumb-border-radius));
|
10
22
|
}
|
11
23
|
|
12
24
|
.breadcrumb-item {
|
13
25
|
// The separator between breadcrumbs (by default, a forward-slash: "/")
|
14
26
|
+ .breadcrumb-item {
|
15
|
-
padding-left: $breadcrumb-item-padding-x;
|
27
|
+
padding-left: var(--#{$prefix}breadcrumb-item-padding-x);
|
16
28
|
|
17
29
|
&::before {
|
18
30
|
float: left; // Suppress inline spacings and underlining of the separator
|
19
|
-
padding-right: $breadcrumb-item-padding-x;
|
20
|
-
color: $breadcrumb-divider-color;
|
21
|
-
content: var(--#{$
|
31
|
+
padding-right: var(--#{$prefix}breadcrumb-item-padding-x);
|
32
|
+
color: var(--#{$prefix}breadcrumb-divider-color);
|
33
|
+
content: var(--#{$prefix}breadcrumb-divider, escape-svg($breadcrumb-divider)) #{"/* rtl:"} var(--#{$prefix}breadcrumb-divider, escape-svg($breadcrumb-divider-flipped)) #{"*/"};
|
22
34
|
}
|
23
35
|
}
|
24
36
|
|
25
37
|
&.active {
|
26
|
-
color: $breadcrumb-active-color;
|
38
|
+
color: var(--#{$prefix}breadcrumb-item-active-color);
|
27
39
|
}
|
28
40
|
}
|
@@ -34,14 +34,17 @@
|
|
34
34
|
}
|
35
35
|
|
36
36
|
.btn-group {
|
37
|
+
@include border-radius($btn-border-radius);
|
38
|
+
|
37
39
|
// Prevent double borders when buttons are next to each other
|
38
|
-
>
|
40
|
+
> :not(.btn-check:first-child) + .btn,
|
39
41
|
> .btn-group:not(:first-child) {
|
40
|
-
margin-left:
|
42
|
+
margin-left: calc(#{$btn-border-width} * -1); // stylelint-disable-line function-disallowed-list
|
41
43
|
}
|
42
44
|
|
43
45
|
// Reset rounded corners
|
44
46
|
> .btn:not(:last-child):not(.dropdown-toggle),
|
47
|
+
> .btn.dropdown-toggle-split:first-child,
|
45
48
|
> .btn-group:not(:last-child) > .btn {
|
46
49
|
@include border-end-radius(0);
|
47
50
|
}
|
@@ -123,7 +126,7 @@
|
|
123
126
|
|
124
127
|
> .btn:not(:first-child),
|
125
128
|
> .btn-group:not(:first-child) {
|
126
|
-
margin-top:
|
129
|
+
margin-top: calc(#{$btn-border-width} * -1); // stylelint-disable-line function-disallowed-list
|
127
130
|
}
|
128
131
|
|
129
132
|
// Reset rounded corners
|
@@ -3,49 +3,121 @@
|
|
3
3
|
//
|
4
4
|
|
5
5
|
.btn {
|
6
|
+
// scss-docs-start btn-css-vars
|
7
|
+
--#{$prefix}btn-padding-x: #{$btn-padding-x};
|
8
|
+
--#{$prefix}btn-padding-y: #{$btn-padding-y};
|
9
|
+
--#{$prefix}btn-font-family: #{$btn-font-family};
|
10
|
+
@include rfs($btn-font-size, --#{$prefix}btn-font-size);
|
11
|
+
--#{$prefix}btn-font-weight: #{$btn-font-weight};
|
12
|
+
--#{$prefix}btn-line-height: #{$btn-line-height};
|
13
|
+
--#{$prefix}btn-color: #{$btn-color};
|
14
|
+
--#{$prefix}btn-bg: transparent;
|
15
|
+
--#{$prefix}btn-border-width: #{$btn-border-width};
|
16
|
+
--#{$prefix}btn-border-color: transparent;
|
17
|
+
--#{$prefix}btn-border-radius: #{$btn-border-radius};
|
18
|
+
--#{$prefix}btn-hover-border-color: transparent;
|
19
|
+
--#{$prefix}btn-box-shadow: #{$btn-box-shadow};
|
20
|
+
--#{$prefix}btn-disabled-opacity: #{$btn-disabled-opacity};
|
21
|
+
--#{$prefix}btn-focus-box-shadow: 0 0 0 #{$btn-focus-width} rgba(var(--#{$prefix}btn-focus-shadow-rgb), .5);
|
22
|
+
// scss-docs-end btn-css-vars
|
23
|
+
|
6
24
|
display: inline-block;
|
7
|
-
|
8
|
-
font-
|
9
|
-
|
10
|
-
|
25
|
+
padding: var(--#{$prefix}btn-padding-y) var(--#{$prefix}btn-padding-x);
|
26
|
+
font-family: var(--#{$prefix}btn-font-family);
|
27
|
+
@include font-size(var(--#{$prefix}btn-font-size));
|
28
|
+
font-weight: var(--#{$prefix}btn-font-weight);
|
29
|
+
line-height: var(--#{$prefix}btn-line-height);
|
30
|
+
color: var(--#{$prefix}btn-color);
|
11
31
|
text-align: center;
|
12
32
|
text-decoration: if($link-decoration == none, null, none);
|
13
33
|
white-space: $btn-white-space;
|
14
34
|
vertical-align: middle;
|
15
35
|
cursor: if($enable-button-pointers, pointer, null);
|
16
36
|
user-select: none;
|
17
|
-
|
18
|
-
border
|
19
|
-
@include
|
37
|
+
border: var(--#{$prefix}btn-border-width) solid var(--#{$prefix}btn-border-color);
|
38
|
+
@include border-radius(var(--#{$prefix}btn-border-radius));
|
39
|
+
@include gradient-bg(var(--#{$prefix}btn-bg));
|
40
|
+
@include box-shadow(var(--#{$prefix}btn-box-shadow));
|
20
41
|
@include transition($btn-transition);
|
21
42
|
|
22
43
|
&:hover {
|
23
|
-
color: $
|
44
|
+
color: var(--#{$prefix}btn-hover-color);
|
24
45
|
text-decoration: if($link-hover-decoration == underline, none, null);
|
46
|
+
background-color: var(--#{$prefix}btn-hover-bg);
|
47
|
+
border-color: var(--#{$prefix}btn-hover-border-color);
|
48
|
+
}
|
49
|
+
|
50
|
+
.btn-check + &:hover {
|
51
|
+
// override for the checkbox/radio buttons
|
52
|
+
color: var(--#{$prefix}btn-color);
|
53
|
+
background-color: var(--#{$prefix}btn-bg);
|
54
|
+
border-color: var(--#{$prefix}btn-border-color);
|
25
55
|
}
|
26
56
|
|
27
|
-
|
28
|
-
|
57
|
+
&:focus-visible {
|
58
|
+
color: var(--#{$prefix}btn-hover-color);
|
59
|
+
@include gradient-bg(var(--#{$prefix}btn-hover-bg));
|
60
|
+
border-color: var(--#{$prefix}btn-hover-border-color);
|
29
61
|
outline: 0;
|
30
|
-
|
62
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
63
|
+
@if $enable-shadows {
|
64
|
+
box-shadow: var(--#{$prefix}btn-box-shadow), var(--#{$prefix}btn-focus-box-shadow);
|
65
|
+
} @else {
|
66
|
+
box-shadow: var(--#{$prefix}btn-focus-box-shadow);
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
.btn-check:focus-visible + & {
|
71
|
+
border-color: var(--#{$prefix}btn-hover-border-color);
|
72
|
+
outline: 0;
|
73
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
74
|
+
@if $enable-shadows {
|
75
|
+
box-shadow: var(--#{$prefix}btn-box-shadow), var(--#{$prefix}btn-focus-box-shadow);
|
76
|
+
} @else {
|
77
|
+
box-shadow: var(--#{$prefix}btn-focus-box-shadow);
|
78
|
+
}
|
31
79
|
}
|
32
80
|
|
33
81
|
.btn-check:checked + &,
|
34
|
-
.btn-check
|
35
|
-
&:active,
|
36
|
-
&.active
|
37
|
-
|
82
|
+
:not(.btn-check) + &:active,
|
83
|
+
&:first-child:active,
|
84
|
+
&.active,
|
85
|
+
&.show {
|
86
|
+
color: var(--#{$prefix}btn-active-color);
|
87
|
+
background-color: var(--#{$prefix}btn-active-bg);
|
88
|
+
// Remove CSS gradients if they're enabled
|
89
|
+
background-image: if($enable-gradients, none, null);
|
90
|
+
border-color: var(--#{$prefix}btn-active-border-color);
|
91
|
+
@include box-shadow(var(--#{$prefix}btn-active-shadow));
|
92
|
+
|
93
|
+
&:focus-visible {
|
94
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
95
|
+
@if $enable-shadows {
|
96
|
+
box-shadow: var(--#{$prefix}btn-active-shadow), var(--#{$prefix}btn-focus-box-shadow);
|
97
|
+
} @else {
|
98
|
+
box-shadow: var(--#{$prefix}btn-focus-box-shadow);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
38
102
|
|
39
|
-
|
40
|
-
|
103
|
+
.btn-check:checked:focus-visible + & {
|
104
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
105
|
+
@if $enable-shadows {
|
106
|
+
box-shadow: var(--#{$prefix}btn-active-shadow), var(--#{$prefix}btn-focus-box-shadow);
|
107
|
+
} @else {
|
108
|
+
box-shadow: var(--#{$prefix}btn-focus-box-shadow);
|
41
109
|
}
|
42
110
|
}
|
43
111
|
|
44
112
|
&:disabled,
|
45
113
|
&.disabled,
|
46
114
|
fieldset:disabled & {
|
115
|
+
color: var(--#{$prefix}btn-disabled-color);
|
47
116
|
pointer-events: none;
|
48
|
-
|
117
|
+
background-color: var(--#{$prefix}btn-disabled-bg);
|
118
|
+
background-image: if($enable-gradients, none, null);
|
119
|
+
border-color: var(--#{$prefix}btn-disabled-border-color);
|
120
|
+
opacity: var(--#{$prefix}btn-disabled-opacity);
|
49
121
|
@include box-shadow(none);
|
50
122
|
}
|
51
123
|
}
|
@@ -58,7 +130,27 @@
|
|
58
130
|
// scss-docs-start btn-variant-loops
|
59
131
|
@each $color, $value in $theme-colors {
|
60
132
|
.btn-#{$color} {
|
61
|
-
@
|
133
|
+
@if $color == "light" {
|
134
|
+
@include button-variant(
|
135
|
+
$value,
|
136
|
+
$value,
|
137
|
+
$hover-background: shade-color($value, $btn-hover-bg-shade-amount),
|
138
|
+
$hover-border: shade-color($value, $btn-hover-border-shade-amount),
|
139
|
+
$active-background: shade-color($value, $btn-active-bg-shade-amount),
|
140
|
+
$active-border: shade-color($value, $btn-active-border-shade-amount)
|
141
|
+
);
|
142
|
+
} @else if $color == "dark" {
|
143
|
+
@include button-variant(
|
144
|
+
$value,
|
145
|
+
$value,
|
146
|
+
$hover-background: tint-color($value, $btn-hover-bg-tint-amount),
|
147
|
+
$hover-border: tint-color($value, $btn-hover-border-tint-amount),
|
148
|
+
$active-background: tint-color($value, $btn-active-bg-tint-amount),
|
149
|
+
$active-border: tint-color($value, $btn-active-border-tint-amount)
|
150
|
+
);
|
151
|
+
} @else {
|
152
|
+
@include button-variant($value, $value);
|
153
|
+
}
|
62
154
|
}
|
63
155
|
}
|
64
156
|
|
@@ -76,22 +168,35 @@
|
|
76
168
|
|
77
169
|
// Make a button look and behave like a link
|
78
170
|
.btn-link {
|
79
|
-
font-weight: $font-weight-normal;
|
80
|
-
color: $btn-link-color;
|
171
|
+
--#{$prefix}btn-font-weight: #{$font-weight-normal};
|
172
|
+
--#{$prefix}btn-color: #{$btn-link-color};
|
173
|
+
--#{$prefix}btn-bg: transparent;
|
174
|
+
--#{$prefix}btn-border-color: transparent;
|
175
|
+
--#{$prefix}btn-hover-color: #{$btn-link-hover-color};
|
176
|
+
--#{$prefix}btn-hover-border-color: transparent;
|
177
|
+
--#{$prefix}btn-active-color: #{$btn-link-hover-color};
|
178
|
+
--#{$prefix}btn-active-border-color: transparent;
|
179
|
+
--#{$prefix}btn-disabled-color: #{$btn-link-disabled-color};
|
180
|
+
--#{$prefix}btn-disabled-border-color: transparent;
|
181
|
+
--#{$prefix}btn-box-shadow: 0 0 0 #000; // Can't use `none` as keyword negates all values when used with multiple shadows
|
182
|
+
--#{$prefix}btn-focus-shadow-rgb: #{$btn-link-focus-shadow-rgb};
|
183
|
+
|
81
184
|
text-decoration: $link-decoration;
|
185
|
+
@if $enable-gradients {
|
186
|
+
background-image: none;
|
187
|
+
}
|
82
188
|
|
83
|
-
&:hover
|
84
|
-
|
189
|
+
&:hover,
|
190
|
+
&:focus-visible {
|
85
191
|
text-decoration: $link-hover-decoration;
|
86
192
|
}
|
87
193
|
|
88
|
-
&:focus {
|
89
|
-
|
194
|
+
&:focus-visible {
|
195
|
+
color: var(--#{$prefix}btn-color);
|
90
196
|
}
|
91
197
|
|
92
|
-
&:
|
93
|
-
|
94
|
-
color: $btn-link-disabled-color;
|
198
|
+
&:hover {
|
199
|
+
color: var(--#{$prefix}btn-hover-color);
|
95
200
|
}
|
96
201
|
|
97
202
|
// No need for an active state here
|
data/_sass/bootstrap/_card.scss
CHANGED
@@ -3,17 +3,40 @@
|
|
3
3
|
//
|
4
4
|
|
5
5
|
.card {
|
6
|
+
// scss-docs-start card-css-vars
|
7
|
+
--#{$prefix}card-spacer-y: #{$card-spacer-y};
|
8
|
+
--#{$prefix}card-spacer-x: #{$card-spacer-x};
|
9
|
+
--#{$prefix}card-title-spacer-y: #{$card-title-spacer-y};
|
10
|
+
--#{$prefix}card-title-color: #{$card-title-color};
|
11
|
+
--#{$prefix}card-subtitle-color: #{$card-subtitle-color};
|
12
|
+
--#{$prefix}card-border-width: #{$card-border-width};
|
13
|
+
--#{$prefix}card-border-color: #{$card-border-color};
|
14
|
+
--#{$prefix}card-border-radius: #{$card-border-radius};
|
15
|
+
--#{$prefix}card-box-shadow: #{$card-box-shadow};
|
16
|
+
--#{$prefix}card-inner-border-radius: #{$card-inner-border-radius};
|
17
|
+
--#{$prefix}card-cap-padding-y: #{$card-cap-padding-y};
|
18
|
+
--#{$prefix}card-cap-padding-x: #{$card-cap-padding-x};
|
19
|
+
--#{$prefix}card-cap-bg: #{$card-cap-bg};
|
20
|
+
--#{$prefix}card-cap-color: #{$card-cap-color};
|
21
|
+
--#{$prefix}card-height: #{$card-height};
|
22
|
+
--#{$prefix}card-color: #{$card-color};
|
23
|
+
--#{$prefix}card-bg: #{$card-bg};
|
24
|
+
--#{$prefix}card-img-overlay-padding: #{$card-img-overlay-padding};
|
25
|
+
--#{$prefix}card-group-margin: #{$card-group-margin};
|
26
|
+
// scss-docs-end card-css-vars
|
27
|
+
|
6
28
|
position: relative;
|
7
29
|
display: flex;
|
8
30
|
flex-direction: column;
|
9
31
|
min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
|
10
|
-
height: $card-height;
|
32
|
+
height: var(--#{$prefix}card-height);
|
33
|
+
color: var(--#{$prefix}body-color);
|
11
34
|
word-wrap: break-word;
|
12
|
-
background-color: $card-bg;
|
35
|
+
background-color: var(--#{$prefix}card-bg);
|
13
36
|
background-clip: border-box;
|
14
|
-
border: $card-border-width solid $card-border-color;
|
15
|
-
@include border-radius($card-border-radius);
|
16
|
-
@include box-shadow($card-box-shadow);
|
37
|
+
border: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
|
38
|
+
@include border-radius(var(--#{$prefix}card-border-radius));
|
39
|
+
@include box-shadow(var(--#{$prefix}card-box-shadow));
|
17
40
|
|
18
41
|
> hr {
|
19
42
|
margin-right: 0;
|
@@ -26,12 +49,12 @@
|
|
26
49
|
|
27
50
|
&:first-child {
|
28
51
|
border-top-width: 0;
|
29
|
-
@include border-top-radius($card-inner-border-radius);
|
52
|
+
@include border-top-radius(var(--#{$prefix}card-inner-border-radius));
|
30
53
|
}
|
31
54
|
|
32
55
|
&:last-child {
|
33
56
|
border-bottom-width: 0;
|
34
|
-
@include border-bottom-radius($card-inner-border-radius);
|
57
|
+
@include border-bottom-radius(var(--#{$prefix}card-inner-border-radius));
|
35
58
|
}
|
36
59
|
}
|
37
60
|
|
@@ -47,17 +70,19 @@
|
|
47
70
|
// Enable `flex-grow: 1` for decks and groups so that card blocks take up
|
48
71
|
// as much space as possible, ensuring footers are aligned to the bottom.
|
49
72
|
flex: 1 1 auto;
|
50
|
-
padding: $card-spacer-y $card-spacer-x;
|
51
|
-
color: $card-color;
|
73
|
+
padding: var(--#{$prefix}card-spacer-y) var(--#{$prefix}card-spacer-x);
|
74
|
+
color: var(--#{$prefix}card-color);
|
52
75
|
}
|
53
76
|
|
54
77
|
.card-title {
|
55
|
-
margin-bottom: $card-title-spacer-y;
|
78
|
+
margin-bottom: var(--#{$prefix}card-title-spacer-y);
|
79
|
+
color: var(--#{$prefix}card-title-color);
|
56
80
|
}
|
57
81
|
|
58
82
|
.card-subtitle {
|
59
|
-
margin-top:
|
83
|
+
margin-top: calc(-.5 * var(--#{$prefix}card-title-spacer-y)); // stylelint-disable-line function-disallowed-list
|
60
84
|
margin-bottom: 0;
|
85
|
+
color: var(--#{$prefix}card-subtitle-color);
|
61
86
|
}
|
62
87
|
|
63
88
|
.card-text:last-child {
|
@@ -70,7 +95,7 @@
|
|
70
95
|
}
|
71
96
|
|
72
97
|
+ .card-link {
|
73
|
-
margin-left: $card-spacer-x;
|
98
|
+
margin-left: var(--#{$prefix}card-spacer-x);
|
74
99
|
}
|
75
100
|
}
|
76
101
|
|
@@ -79,25 +104,25 @@
|
|
79
104
|
//
|
80
105
|
|
81
106
|
.card-header {
|
82
|
-
padding: $card-cap-padding-y $card-cap-padding-x;
|
107
|
+
padding: var(--#{$prefix}card-cap-padding-y) var(--#{$prefix}card-cap-padding-x);
|
83
108
|
margin-bottom: 0; // Removes the default margin-bottom of <hN>
|
84
|
-
color: $card-cap-color;
|
85
|
-
background-color: $card-cap-bg;
|
86
|
-
border-bottom: $card-border-width solid $card-border-color;
|
109
|
+
color: var(--#{$prefix}card-cap-color);
|
110
|
+
background-color: var(--#{$prefix}card-cap-bg);
|
111
|
+
border-bottom: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
|
87
112
|
|
88
113
|
&:first-child {
|
89
|
-
@include border-radius($card-inner-border-radius $card-inner-border-radius 0 0);
|
114
|
+
@include border-radius(var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius) 0 0);
|
90
115
|
}
|
91
116
|
}
|
92
117
|
|
93
118
|
.card-footer {
|
94
|
-
padding: $card-cap-padding-y $card-cap-padding-x;
|
95
|
-
color: $card-cap-color;
|
96
|
-
background-color: $card-cap-bg;
|
97
|
-
border-top: $card-border-width solid $card-border-color;
|
119
|
+
padding: var(--#{$prefix}card-cap-padding-y) var(--#{$prefix}card-cap-padding-x);
|
120
|
+
color: var(--#{$prefix}card-cap-color);
|
121
|
+
background-color: var(--#{$prefix}card-cap-bg);
|
122
|
+
border-top: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
|
98
123
|
|
99
124
|
&:last-child {
|
100
|
-
@include border-radius(0 0 $card-inner-border-radius $card-inner-border-radius);
|
125
|
+
@include border-radius(0 0 var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius));
|
101
126
|
}
|
102
127
|
}
|
103
128
|
|
@@ -107,22 +132,20 @@
|
|
107
132
|
//
|
108
133
|
|
109
134
|
.card-header-tabs {
|
110
|
-
margin-right:
|
111
|
-
margin-bottom:
|
112
|
-
margin-left:
|
135
|
+
margin-right: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
|
136
|
+
margin-bottom: calc(-1 * var(--#{$prefix}card-cap-padding-y)); // stylelint-disable-line function-disallowed-list
|
137
|
+
margin-left: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
|
113
138
|
border-bottom: 0;
|
114
139
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
border-bottom-color: $card-bg;
|
119
|
-
}
|
140
|
+
.nav-link.active {
|
141
|
+
background-color: var(--#{$prefix}card-bg);
|
142
|
+
border-bottom-color: var(--#{$prefix}card-bg);
|
120
143
|
}
|
121
144
|
}
|
122
145
|
|
123
146
|
.card-header-pills {
|
124
|
-
margin-right:
|
125
|
-
margin-left:
|
147
|
+
margin-right: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
|
148
|
+
margin-left: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
|
126
149
|
}
|
127
150
|
|
128
151
|
// Card image
|
@@ -132,8 +155,8 @@
|
|
132
155
|
right: 0;
|
133
156
|
bottom: 0;
|
134
157
|
left: 0;
|
135
|
-
padding: $card-img-overlay-padding;
|
136
|
-
@include border-radius($card-inner-border-radius);
|
158
|
+
padding: var(--#{$prefix}card-img-overlay-padding);
|
159
|
+
@include border-radius(var(--#{$prefix}card-inner-border-radius));
|
137
160
|
}
|
138
161
|
|
139
162
|
.card-img,
|
@@ -144,12 +167,12 @@
|
|
144
167
|
|
145
168
|
.card-img,
|
146
169
|
.card-img-top {
|
147
|
-
@include border-top-radius($card-inner-border-radius);
|
170
|
+
@include border-top-radius(var(--#{$prefix}card-inner-border-radius));
|
148
171
|
}
|
149
172
|
|
150
173
|
.card-img,
|
151
174
|
.card-img-bottom {
|
152
|
-
@include border-bottom-radius($card-inner-border-radius);
|
175
|
+
@include border-bottom-radius(var(--#{$prefix}card-inner-border-radius));
|
153
176
|
}
|
154
177
|
|
155
178
|
|
@@ -161,7 +184,7 @@
|
|
161
184
|
// The child selector allows nested `.card` within `.card-group`
|
162
185
|
// to display properly.
|
163
186
|
> .card {
|
164
|
-
margin-bottom: $card-group-margin;
|
187
|
+
margin-bottom: var(--#{$prefix}card-group-margin);
|
165
188
|
}
|
166
189
|
|
167
190
|
@include media-breakpoint-up(sm) {
|
@@ -42,7 +42,6 @@
|
|
42
42
|
display: block;
|
43
43
|
}
|
44
44
|
|
45
|
-
/* rtl:begin:ignore */
|
46
45
|
.carousel-item-next:not(.carousel-item-start),
|
47
46
|
.active.carousel-item-end {
|
48
47
|
transform: translateX(100%);
|
@@ -53,8 +52,6 @@
|
|
53
52
|
transform: translateX(-100%);
|
54
53
|
}
|
55
54
|
|
56
|
-
/* rtl:end:ignore */
|
57
|
-
|
58
55
|
|
59
56
|
//
|
60
57
|
// Alternate transitions
|
@@ -135,19 +132,11 @@
|
|
135
132
|
background-size: 100% 100%;
|
136
133
|
}
|
137
134
|
|
138
|
-
/* rtl:options: {
|
139
|
-
"autoRename": true,
|
140
|
-
"stringMap":[ {
|
141
|
-
"name" : "prev-next",
|
142
|
-
"search" : "prev",
|
143
|
-
"replace" : "next"
|
144
|
-
} ]
|
145
|
-
} */
|
146
135
|
.carousel-control-prev-icon {
|
147
|
-
background-image: escape-svg($carousel-control-prev-icon-bg);
|
136
|
+
background-image: escape-svg($carousel-control-prev-icon-bg) #{"/*rtl:" + escape-svg($carousel-control-next-icon-bg) + "*/"};
|
148
137
|
}
|
149
138
|
.carousel-control-next-icon {
|
150
|
-
background-image: escape-svg($carousel-control-next-icon-bg);
|
139
|
+
background-image: escape-svg($carousel-control-next-icon-bg) #{"/*rtl:" + escape-svg($carousel-control-prev-icon-bg) + "*/"};
|
151
140
|
}
|
152
141
|
|
153
142
|
// Optional indicator pips/controls
|
@@ -168,7 +157,6 @@
|
|
168
157
|
margin-right: $carousel-control-width;
|
169
158
|
margin-bottom: 1rem;
|
170
159
|
margin-left: $carousel-control-width;
|
171
|
-
list-style: none;
|
172
160
|
|
173
161
|
[data-bs-target] {
|
174
162
|
box-sizing: content-box;
|
@@ -213,7 +201,7 @@
|
|
213
201
|
|
214
202
|
// Dark mode carousel
|
215
203
|
|
216
|
-
|
204
|
+
@mixin carousel-dark() {
|
217
205
|
.carousel-control-prev-icon,
|
218
206
|
.carousel-control-next-icon {
|
219
207
|
filter: $carousel-dark-control-icon-filter;
|
@@ -227,3 +215,22 @@
|
|
227
215
|
color: $carousel-dark-caption-color;
|
228
216
|
}
|
229
217
|
}
|
218
|
+
|
219
|
+
.carousel-dark {
|
220
|
+
@include carousel-dark();
|
221
|
+
}
|
222
|
+
|
223
|
+
@if $enable-dark-mode {
|
224
|
+
@include color-mode(dark) {
|
225
|
+
@if $color-mode-type == "media-query" {
|
226
|
+
.carousel {
|
227
|
+
@include carousel-dark();
|
228
|
+
}
|
229
|
+
} @else {
|
230
|
+
.carousel,
|
231
|
+
&.carousel {
|
232
|
+
@include carousel-dark();
|
233
|
+
}
|
234
|
+
}
|
235
|
+
}
|
236
|
+
}
|
data/_sass/bootstrap/_close.scss
CHANGED
@@ -1,40 +1,63 @@
|
|
1
|
-
//
|
1
|
+
// Transparent background and border properties included for button version.
|
2
2
|
// iOS requires the button element instead of an anchor tag.
|
3
3
|
// If you want the anchor version, it requires `href="#"`.
|
4
4
|
// See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
|
5
5
|
|
6
6
|
.btn-close {
|
7
|
+
// scss-docs-start close-css-vars
|
8
|
+
--#{$prefix}btn-close-color: #{$btn-close-color};
|
9
|
+
--#{$prefix}btn-close-bg: #{ escape-svg($btn-close-bg) };
|
10
|
+
--#{$prefix}btn-close-opacity: #{$btn-close-opacity};
|
11
|
+
--#{$prefix}btn-close-hover-opacity: #{$btn-close-hover-opacity};
|
12
|
+
--#{$prefix}btn-close-focus-shadow: #{$btn-close-focus-shadow};
|
13
|
+
--#{$prefix}btn-close-focus-opacity: #{$btn-close-focus-opacity};
|
14
|
+
--#{$prefix}btn-close-disabled-opacity: #{$btn-close-disabled-opacity};
|
15
|
+
--#{$prefix}btn-close-white-filter: #{$btn-close-white-filter};
|
16
|
+
// scss-docs-end close-css-vars
|
17
|
+
|
7
18
|
box-sizing: content-box;
|
8
19
|
width: $btn-close-width;
|
9
20
|
height: $btn-close-height;
|
10
21
|
padding: $btn-close-padding-y $btn-close-padding-x;
|
11
|
-
color: $btn-close-color;
|
12
|
-
background: transparent
|
22
|
+
color: var(--#{$prefix}btn-close-color);
|
23
|
+
background: transparent var(--#{$prefix}btn-close-bg) center / $btn-close-width auto no-repeat; // include transparent for button elements
|
13
24
|
border: 0; // for button elements
|
14
25
|
@include border-radius();
|
15
|
-
opacity: $btn-close-opacity;
|
26
|
+
opacity: var(--#{$prefix}btn-close-opacity);
|
16
27
|
|
17
28
|
// Override <a>'s hover style
|
18
29
|
&:hover {
|
19
|
-
color: $btn-close-color;
|
30
|
+
color: var(--#{$prefix}btn-close-color);
|
20
31
|
text-decoration: none;
|
21
|
-
opacity: $btn-close-hover-opacity;
|
32
|
+
opacity: var(--#{$prefix}btn-close-hover-opacity);
|
22
33
|
}
|
23
34
|
|
24
35
|
&:focus {
|
25
36
|
outline: 0;
|
26
|
-
box-shadow: $btn-close-focus-shadow;
|
27
|
-
opacity: $btn-close-focus-opacity;
|
37
|
+
box-shadow: var(--#{$prefix}btn-close-focus-shadow);
|
38
|
+
opacity: var(--#{$prefix}btn-close-focus-opacity);
|
28
39
|
}
|
29
40
|
|
30
41
|
&:disabled,
|
31
42
|
&.disabled {
|
32
43
|
pointer-events: none;
|
33
44
|
user-select: none;
|
34
|
-
opacity: $btn-close-disabled-opacity;
|
45
|
+
opacity: var(--#{$prefix}btn-close-disabled-opacity);
|
35
46
|
}
|
36
47
|
}
|
37
48
|
|
49
|
+
@mixin btn-close-white() {
|
50
|
+
filter: var(--#{$prefix}btn-close-white-filter);
|
51
|
+
}
|
52
|
+
|
38
53
|
.btn-close-white {
|
39
|
-
|
54
|
+
@include btn-close-white();
|
55
|
+
}
|
56
|
+
|
57
|
+
@if $enable-dark-mode {
|
58
|
+
@include color-mode(dark) {
|
59
|
+
.btn-close {
|
60
|
+
@include btn-close-white();
|
61
|
+
}
|
62
|
+
}
|
40
63
|
}
|