elixir-toolkit-theme 1.22.0 → 1.23.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/_includes/footer.html +25 -2
- data/_includes/section-navigation-tiles-simple.html +3 -0
- data/_includes/section-navigation-tiles.html +2 -2
- data/_includes/topnav.html +9 -1
- data/_sass/_variables.scss +1 -0
- data/_sass/bootstrap/_accordion.scss +56 -25
- data/_sass/bootstrap/_alert.scss +18 -4
- data/_sass/bootstrap/_badge.scss +14 -5
- data/_sass/bootstrap/_breadcrumb.scss +22 -10
- data/_sass/bootstrap/_button-group.scss +4 -1
- data/_sass/bootstrap/_buttons.scss +125 -29
- data/_sass/bootstrap/_card.scss +55 -37
- data/_sass/bootstrap/_carousel.scss +0 -3
- data/_sass/bootstrap/_close.scss +1 -1
- data/_sass/bootstrap/_containers.scss +1 -1
- data/_sass/bootstrap/_dropdown.scss +85 -76
- data/_sass/bootstrap/_functions.scss +9 -9
- data/_sass/bootstrap/_grid.scss +3 -3
- data/_sass/bootstrap/_helpers.scss +1 -0
- data/_sass/bootstrap/_list-group.scss +48 -30
- data/_sass/bootstrap/_maps.scss +54 -0
- data/_sass/bootstrap/_modal.scss +71 -43
- data/_sass/bootstrap/_nav.scss +53 -20
- data/_sass/bootstrap/_navbar.scss +93 -150
- data/_sass/bootstrap/_offcanvas.scss +120 -59
- 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 +20 -9
- data/_sass/bootstrap/_reboot.scss +25 -40
- data/_sass/bootstrap/_root.scss +40 -21
- data/_sass/bootstrap/_spinners.scss +38 -22
- data/_sass/bootstrap/_tables.scss +32 -23
- data/_sass/bootstrap/_toasts.scss +38 -16
- data/_sass/bootstrap/_tooltip.scss +61 -56
- data/_sass/bootstrap/_type.scss +2 -0
- data/_sass/bootstrap/_utilities.scss +43 -26
- data/_sass/bootstrap/_variables.scss +128 -135
- data/_sass/bootstrap/bootstrap-grid.scss +3 -6
- data/_sass/bootstrap/bootstrap-reboot.scss +3 -7
- data/_sass/bootstrap/bootstrap-utilities.scss +6 -6
- data/_sass/bootstrap/bootstrap.scss +4 -6
- data/_sass/bootstrap/forms/_floating-labels.scss +15 -3
- data/_sass/bootstrap/forms/_form-check.scss +28 -5
- data/_sass/bootstrap/forms/_form-control.scss +12 -37
- data/_sass/bootstrap/forms/_form-select.scss +0 -1
- data/_sass/bootstrap/forms/_input-group.scss +19 -8
- data/_sass/bootstrap/helpers/_color-bg.scss +10 -0
- data/_sass/bootstrap/helpers/_colored-links.scss +2 -2
- data/_sass/bootstrap/helpers/_position.scss +7 -1
- data/_sass/bootstrap/helpers/_ratio.scss +2 -2
- data/_sass/bootstrap/helpers/_vr.scss +1 -1
- data/_sass/bootstrap/mixins/_alert.scss +7 -3
- data/_sass/bootstrap/mixins/_banner.scss +9 -0
- data/_sass/bootstrap/mixins/_breakpoints.scss +8 -8
- data/_sass/bootstrap/mixins/_buttons.scss +32 -95
- data/_sass/bootstrap/mixins/_container.scss +4 -2
- data/_sass/bootstrap/mixins/_forms.scss +18 -10
- data/_sass/bootstrap/mixins/_gradients.scss +1 -1
- data/_sass/bootstrap/mixins/_grid.scss +12 -12
- 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 +13 -5
- data/assets/css/main.scss +22 -3
- data/assets/img/ett_compact_logo_bw.svg +22 -0
- data/assets/js/bootstrap.bundle.min.js +3 -3
- data/assets/js/bootstrap.bundle.min.js.map +1 -1
- metadata +6 -2
data/_sass/bootstrap/_card.scss
CHANGED
@@ -3,17 +3,37 @@
|
|
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-border-width: #{$card-border-width};
|
11
|
+
--#{$prefix}card-border-color: #{$card-border-color};
|
12
|
+
--#{$prefix}card-border-radius: #{$card-border-radius};
|
13
|
+
--#{$prefix}card-box-shadow: #{$card-box-shadow};
|
14
|
+
--#{$prefix}card-inner-border-radius: #{$card-inner-border-radius};
|
15
|
+
--#{$prefix}card-cap-padding-y: #{$card-cap-padding-y};
|
16
|
+
--#{$prefix}card-cap-padding-x: #{$card-cap-padding-x};
|
17
|
+
--#{$prefix}card-cap-bg: #{$card-cap-bg};
|
18
|
+
--#{$prefix}card-cap-color: #{$card-cap-color};
|
19
|
+
--#{$prefix}card-height: #{$card-height};
|
20
|
+
--#{$prefix}card-color: #{$card-color};
|
21
|
+
--#{$prefix}card-bg: #{$card-bg};
|
22
|
+
--#{$prefix}card-img-overlay-padding: #{$card-img-overlay-padding};
|
23
|
+
--#{$prefix}card-group-margin: #{$card-group-margin};
|
24
|
+
// scss-docs-end card-css-vars
|
25
|
+
|
6
26
|
position: relative;
|
7
27
|
display: flex;
|
8
28
|
flex-direction: column;
|
9
29
|
min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
|
10
|
-
height: $card-height;
|
30
|
+
height: var(--#{$prefix}card-height);
|
11
31
|
word-wrap: break-word;
|
12
|
-
background-color: $card-bg;
|
32
|
+
background-color: var(--#{$prefix}card-bg);
|
13
33
|
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);
|
34
|
+
border: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
|
35
|
+
@include border-radius(var(--#{$prefix}card-border-radius));
|
36
|
+
@include box-shadow(var(--#{$prefix}card-box-shadow));
|
17
37
|
|
18
38
|
> hr {
|
19
39
|
margin-right: 0;
|
@@ -26,12 +46,12 @@
|
|
26
46
|
|
27
47
|
&:first-child {
|
28
48
|
border-top-width: 0;
|
29
|
-
@include border-top-radius($card-inner-border-radius);
|
49
|
+
@include border-top-radius(var(--#{$prefix}card-inner-border-radius));
|
30
50
|
}
|
31
51
|
|
32
52
|
&:last-child {
|
33
53
|
border-bottom-width: 0;
|
34
|
-
@include border-bottom-radius($card-inner-border-radius);
|
54
|
+
@include border-bottom-radius(var(--#{$prefix}card-inner-border-radius));
|
35
55
|
}
|
36
56
|
}
|
37
57
|
|
@@ -47,16 +67,16 @@
|
|
47
67
|
// Enable `flex-grow: 1` for decks and groups so that card blocks take up
|
48
68
|
// as much space as possible, ensuring footers are aligned to the bottom.
|
49
69
|
flex: 1 1 auto;
|
50
|
-
padding: $card-spacer-y $card-spacer-x;
|
51
|
-
color: $card-color;
|
70
|
+
padding: var(--#{$prefix}card-spacer-y) var(--#{$prefix}card-spacer-x);
|
71
|
+
color: var(--#{$prefix}card-color);
|
52
72
|
}
|
53
73
|
|
54
74
|
.card-title {
|
55
|
-
margin-bottom: $card-title-spacer-y;
|
75
|
+
margin-bottom: var(--#{$prefix}card-title-spacer-y);
|
56
76
|
}
|
57
77
|
|
58
78
|
.card-subtitle {
|
59
|
-
margin-top:
|
79
|
+
margin-top: calc(-.5 * var(--#{$prefix}card-title-spacer-y)); // stylelint-disable-line function-disallowed-list
|
60
80
|
margin-bottom: 0;
|
61
81
|
}
|
62
82
|
|
@@ -70,7 +90,7 @@
|
|
70
90
|
}
|
71
91
|
|
72
92
|
+ .card-link {
|
73
|
-
margin-left: $card-spacer-x;
|
93
|
+
margin-left: var(--#{$prefix}card-spacer-x);
|
74
94
|
}
|
75
95
|
}
|
76
96
|
|
@@ -79,25 +99,25 @@
|
|
79
99
|
//
|
80
100
|
|
81
101
|
.card-header {
|
82
|
-
padding: $card-cap-padding-y $card-cap-padding-x;
|
102
|
+
padding: var(--#{$prefix}card-cap-padding-y) var(--#{$prefix}card-cap-padding-x);
|
83
103
|
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;
|
104
|
+
color: var(--#{$prefix}card-cap-color);
|
105
|
+
background-color: var(--#{$prefix}card-cap-bg);
|
106
|
+
border-bottom: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
|
87
107
|
|
88
108
|
&:first-child {
|
89
|
-
@include border-radius($card-inner-border-radius $card-inner-border-radius 0 0);
|
109
|
+
@include border-radius(var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius) 0 0);
|
90
110
|
}
|
91
111
|
}
|
92
112
|
|
93
113
|
.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;
|
114
|
+
padding: var(--#{$prefix}card-cap-padding-y) var(--#{$prefix}card-cap-padding-x);
|
115
|
+
color: var(--#{$prefix}card-cap-color);
|
116
|
+
background-color: var(--#{$prefix}card-cap-bg);
|
117
|
+
border-top: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
|
98
118
|
|
99
119
|
&:last-child {
|
100
|
-
@include border-radius(0 0 $card-inner-border-radius $card-inner-border-radius);
|
120
|
+
@include border-radius(0 0 var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius));
|
101
121
|
}
|
102
122
|
}
|
103
123
|
|
@@ -107,22 +127,20 @@
|
|
107
127
|
//
|
108
128
|
|
109
129
|
.card-header-tabs {
|
110
|
-
margin-right:
|
111
|
-
margin-bottom:
|
112
|
-
margin-left:
|
130
|
+
margin-right: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
|
131
|
+
margin-bottom: calc(-1 * var(--#{$prefix}card-cap-padding-y)); // stylelint-disable-line function-disallowed-list
|
132
|
+
margin-left: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
|
113
133
|
border-bottom: 0;
|
114
134
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
border-bottom-color: $card-bg;
|
119
|
-
}
|
135
|
+
.nav-link.active {
|
136
|
+
background-color: var(--#{$prefix}card-bg);
|
137
|
+
border-bottom-color: var(--#{$prefix}card-bg);
|
120
138
|
}
|
121
139
|
}
|
122
140
|
|
123
141
|
.card-header-pills {
|
124
|
-
margin-right:
|
125
|
-
margin-left:
|
142
|
+
margin-right: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
|
143
|
+
margin-left: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
|
126
144
|
}
|
127
145
|
|
128
146
|
// Card image
|
@@ -132,8 +150,8 @@
|
|
132
150
|
right: 0;
|
133
151
|
bottom: 0;
|
134
152
|
left: 0;
|
135
|
-
padding: $card-img-overlay-padding;
|
136
|
-
@include border-radius($card-inner-border-radius);
|
153
|
+
padding: var(--#{$prefix}card-img-overlay-padding);
|
154
|
+
@include border-radius(var(--#{$prefix}card-inner-border-radius));
|
137
155
|
}
|
138
156
|
|
139
157
|
.card-img,
|
@@ -144,12 +162,12 @@
|
|
144
162
|
|
145
163
|
.card-img,
|
146
164
|
.card-img-top {
|
147
|
-
@include border-top-radius($card-inner-border-radius);
|
165
|
+
@include border-top-radius(var(--#{$prefix}card-inner-border-radius));
|
148
166
|
}
|
149
167
|
|
150
168
|
.card-img,
|
151
169
|
.card-img-bottom {
|
152
|
-
@include border-bottom-radius($card-inner-border-radius);
|
170
|
+
@include border-bottom-radius(var(--#{$prefix}card-inner-border-radius));
|
153
171
|
}
|
154
172
|
|
155
173
|
|
@@ -161,7 +179,7 @@
|
|
161
179
|
// The child selector allows nested `.card` within `.card-group`
|
162
180
|
// to display properly.
|
163
181
|
> .card {
|
164
|
-
margin-bottom: $card-group-margin;
|
182
|
+
margin-bottom: var(--#{$prefix}card-group-margin);
|
165
183
|
}
|
166
184
|
|
167
185
|
@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
|
data/_sass/bootstrap/_close.scss
CHANGED
@@ -1,4 +1,4 @@
|
|
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
|
@@ -2,7 +2,9 @@
|
|
2
2
|
.dropup,
|
3
3
|
.dropend,
|
4
4
|
.dropdown,
|
5
|
-
.dropstart
|
5
|
+
.dropstart,
|
6
|
+
.dropup-center,
|
7
|
+
.dropdown-center {
|
6
8
|
position: relative;
|
7
9
|
}
|
8
10
|
|
@@ -15,26 +17,67 @@
|
|
15
17
|
|
16
18
|
// The dropdown menu
|
17
19
|
.dropdown-menu {
|
20
|
+
// scss-docs-start dropdown-css-vars
|
21
|
+
--#{$prefix}dropdown-zindex: #{$zindex-dropdown};
|
22
|
+
--#{$prefix}dropdown-min-width: #{$dropdown-min-width};
|
23
|
+
--#{$prefix}dropdown-padding-x: #{$dropdown-padding-x};
|
24
|
+
--#{$prefix}dropdown-padding-y: #{$dropdown-padding-y};
|
25
|
+
--#{$prefix}dropdown-spacer: #{$dropdown-spacer};
|
26
|
+
@include rfs($dropdown-font-size, --#{$prefix}dropdown-font-size);
|
27
|
+
--#{$prefix}dropdown-color: #{$dropdown-color};
|
28
|
+
--#{$prefix}dropdown-bg: #{$dropdown-bg};
|
29
|
+
--#{$prefix}dropdown-border-color: #{$dropdown-border-color};
|
30
|
+
--#{$prefix}dropdown-border-radius: #{$dropdown-border-radius};
|
31
|
+
--#{$prefix}dropdown-border-width: #{$dropdown-border-width};
|
32
|
+
--#{$prefix}dropdown-inner-border-radius: #{$dropdown-inner-border-radius};
|
33
|
+
--#{$prefix}dropdown-divider-bg: #{$dropdown-divider-bg};
|
34
|
+
--#{$prefix}dropdown-divider-margin-y: #{$dropdown-divider-margin-y};
|
35
|
+
--#{$prefix}dropdown-box-shadow: #{$dropdown-box-shadow};
|
36
|
+
--#{$prefix}dropdown-link-color: #{$dropdown-link-color};
|
37
|
+
--#{$prefix}dropdown-link-hover-color: #{$dropdown-link-hover-color};
|
38
|
+
--#{$prefix}dropdown-link-hover-bg: #{$dropdown-link-hover-bg};
|
39
|
+
--#{$prefix}dropdown-link-active-color: #{$dropdown-link-active-color};
|
40
|
+
--#{$prefix}dropdown-link-active-bg: #{$dropdown-link-active-bg};
|
41
|
+
--#{$prefix}dropdown-link-disabled-color: #{$dropdown-link-disabled-color};
|
42
|
+
--#{$prefix}dropdown-item-padding-x: #{$dropdown-item-padding-x};
|
43
|
+
--#{$prefix}dropdown-item-padding-y: #{$dropdown-item-padding-y};
|
44
|
+
--#{$prefix}dropdown-header-color: #{$dropdown-header-color};
|
45
|
+
--#{$prefix}dropdown-header-padding-x: #{$dropdown-header-padding-x};
|
46
|
+
--#{$prefix}dropdown-header-padding-y: #{$dropdown-header-padding-y};
|
47
|
+
// scss-docs-end dropdown-css-vars
|
48
|
+
|
18
49
|
position: absolute;
|
19
|
-
z-index: $zindex
|
50
|
+
z-index: var(--#{$prefix}dropdown-zindex);
|
20
51
|
display: none; // none by default, but block on "open" of the menu
|
21
|
-
min-width: $dropdown-min-width;
|
22
|
-
padding: $dropdown-padding-y $dropdown-padding-x;
|
52
|
+
min-width: var(--#{$prefix}dropdown-min-width);
|
53
|
+
padding: var(--#{$prefix}dropdown-padding-y) var(--#{$prefix}dropdown-padding-x);
|
23
54
|
margin: 0; // Override default margin of ul
|
24
|
-
@include font-size($dropdown-font-size);
|
25
|
-
color: $dropdown-color;
|
55
|
+
@include font-size(var(--#{$prefix}dropdown-font-size));
|
56
|
+
color: var(--#{$prefix}dropdown-color);
|
26
57
|
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
27
58
|
list-style: none;
|
28
|
-
background-color: $dropdown-bg;
|
59
|
+
background-color: var(--#{$prefix}dropdown-bg);
|
29
60
|
background-clip: padding-box;
|
30
|
-
border: $dropdown-border-width solid $dropdown-border-color;
|
31
|
-
@include border-radius($dropdown-border-radius);
|
32
|
-
@include box-shadow($dropdown-box-shadow);
|
61
|
+
border: var(--#{$prefix}dropdown-border-width) solid var(--#{$prefix}dropdown-border-color);
|
62
|
+
@include border-radius(var(--#{$prefix}dropdown-border-radius));
|
63
|
+
@include box-shadow(var(--#{$prefix}dropdown-box-shadow));
|
33
64
|
|
34
65
|
&[data-bs-popper] {
|
35
66
|
top: 100%;
|
36
67
|
left: 0;
|
37
|
-
margin-top: $dropdown-spacer;
|
68
|
+
margin-top: var(--#{$prefix}dropdown-spacer);
|
69
|
+
}
|
70
|
+
|
71
|
+
@if $dropdown-padding-y == 0 {
|
72
|
+
> .dropdown-item:first-child,
|
73
|
+
> li:first-child .dropdown-item {
|
74
|
+
@include border-top-radius(var(--#{$prefix}dropdown-inner-border-radius));
|
75
|
+
}
|
76
|
+
> .dropdown-item:last-child,
|
77
|
+
> li:last-child .dropdown-item {
|
78
|
+
@include border-bottom-radius(var(--#{$prefix}dropdown-inner-border-radius));
|
79
|
+
}
|
80
|
+
|
38
81
|
}
|
39
82
|
}
|
40
83
|
|
@@ -74,7 +117,7 @@
|
|
74
117
|
top: auto;
|
75
118
|
bottom: 100%;
|
76
119
|
margin-top: 0;
|
77
|
-
margin-bottom: $dropdown-spacer;
|
120
|
+
margin-bottom: var(--#{$prefix}dropdown-spacer);
|
78
121
|
}
|
79
122
|
|
80
123
|
.dropdown-toggle {
|
@@ -88,7 +131,7 @@
|
|
88
131
|
right: auto;
|
89
132
|
left: 100%;
|
90
133
|
margin-top: 0;
|
91
|
-
margin-left: $dropdown-spacer;
|
134
|
+
margin-left: var(--#{$prefix}dropdown-spacer);
|
92
135
|
}
|
93
136
|
|
94
137
|
.dropdown-toggle {
|
@@ -105,7 +148,7 @@
|
|
105
148
|
right: 100%;
|
106
149
|
left: auto;
|
107
150
|
margin-top: 0;
|
108
|
-
margin-right: $dropdown-spacer;
|
151
|
+
margin-right: var(--#{$prefix}dropdown-spacer);
|
109
152
|
}
|
110
153
|
|
111
154
|
.dropdown-toggle {
|
@@ -120,9 +163,10 @@
|
|
120
163
|
// Dividers (basically an `<hr>`) within the dropdown
|
121
164
|
.dropdown-divider {
|
122
165
|
height: 0;
|
123
|
-
margin: $dropdown-divider-margin-y 0;
|
166
|
+
margin: var(--#{$prefix}dropdown-divider-margin-y) 0;
|
124
167
|
overflow: hidden;
|
125
|
-
border-top: 1px solid $dropdown-divider-bg;
|
168
|
+
border-top: 1px solid var(--#{$prefix}dropdown-divider-bg);
|
169
|
+
opacity: 1; // Revisit in v6 to de-dupe styles that conflict with <hr> element
|
126
170
|
}
|
127
171
|
|
128
172
|
// Links, buttons, and more within the dropdown menu
|
@@ -131,45 +175,33 @@
|
|
131
175
|
.dropdown-item {
|
132
176
|
display: block;
|
133
177
|
width: 100%; // For `<button>`s
|
134
|
-
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
|
178
|
+
padding: var(--#{$prefix}dropdown-item-padding-y) var(--#{$prefix}dropdown-item-padding-x);
|
135
179
|
clear: both;
|
136
180
|
font-weight: $font-weight-normal;
|
137
|
-
color: $dropdown-link-color;
|
181
|
+
color: var(--#{$prefix}dropdown-link-color);
|
138
182
|
text-align: inherit; // For `<button>`s
|
139
183
|
text-decoration: if($link-decoration == none, null, none);
|
140
184
|
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
141
185
|
background-color: transparent; // For `<button>`s
|
142
186
|
border: 0; // For `<button>`s
|
143
187
|
|
144
|
-
// Prevent dropdown overflow if there's no padding
|
145
|
-
// See https://github.com/twbs/bootstrap/pull/27703
|
146
|
-
@if $dropdown-padding-y == 0 {
|
147
|
-
&:first-child {
|
148
|
-
@include border-top-radius($dropdown-inner-border-radius);
|
149
|
-
}
|
150
|
-
|
151
|
-
&:last-child {
|
152
|
-
@include border-bottom-radius($dropdown-inner-border-radius);
|
153
|
-
}
|
154
|
-
}
|
155
|
-
|
156
188
|
&:hover,
|
157
189
|
&:focus {
|
158
|
-
color: $dropdown-link-hover-color;
|
190
|
+
color: var(--#{$prefix}dropdown-link-hover-color);
|
159
191
|
text-decoration: if($link-hover-decoration == underline, none, null);
|
160
|
-
@include gradient-bg($dropdown-link-hover-bg);
|
192
|
+
@include gradient-bg(var(--#{$prefix}dropdown-link-hover-bg));
|
161
193
|
}
|
162
194
|
|
163
195
|
&.active,
|
164
196
|
&:active {
|
165
|
-
color: $dropdown-link-active-color;
|
197
|
+
color: var(--#{$prefix}dropdown-link-active-color);
|
166
198
|
text-decoration: none;
|
167
|
-
@include gradient-bg($dropdown-link-active-bg);
|
199
|
+
@include gradient-bg(var(--#{$prefix}dropdown-link-active-bg));
|
168
200
|
}
|
169
201
|
|
170
202
|
&.disabled,
|
171
203
|
&:disabled {
|
172
|
-
color: $dropdown-link-disabled-color;
|
204
|
+
color: var(--#{$prefix}dropdown-link-disabled-color);
|
173
205
|
pointer-events: none;
|
174
206
|
background-color: transparent;
|
175
207
|
// Remove CSS gradients if they're enabled
|
@@ -184,57 +216,34 @@
|
|
184
216
|
// Dropdown section headers
|
185
217
|
.dropdown-header {
|
186
218
|
display: block;
|
187
|
-
padding: $dropdown-header-padding;
|
219
|
+
padding: var(--#{$prefix}dropdown-header-padding-y) var(--#{$prefix}dropdown-header-padding-x);
|
188
220
|
margin-bottom: 0; // for use with heading elements
|
189
221
|
@include font-size($font-size-sm);
|
190
|
-
color: $dropdown-header-color;
|
222
|
+
color: var(--#{$prefix}dropdown-header-color);
|
191
223
|
white-space: nowrap; // as with > li > a
|
192
224
|
}
|
193
225
|
|
194
226
|
// Dropdown text
|
195
227
|
.dropdown-item-text {
|
196
228
|
display: block;
|
197
|
-
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
|
198
|
-
color: $dropdown-link-color;
|
229
|
+
padding: var(--#{$prefix}dropdown-item-padding-y) var(--#{$prefix}dropdown-item-padding-x);
|
230
|
+
color: var(--#{$prefix}dropdown-link-color);
|
199
231
|
}
|
200
232
|
|
201
233
|
// Dark dropdowns
|
202
234
|
.dropdown-menu-dark {
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
&.active,
|
218
|
-
&:active {
|
219
|
-
color: $dropdown-dark-link-active-color;
|
220
|
-
@include gradient-bg($dropdown-dark-link-active-bg);
|
221
|
-
}
|
222
|
-
|
223
|
-
&.disabled,
|
224
|
-
&:disabled {
|
225
|
-
color: $dropdown-dark-link-disabled-color;
|
226
|
-
}
|
227
|
-
}
|
228
|
-
|
229
|
-
.dropdown-divider {
|
230
|
-
border-color: $dropdown-dark-divider-bg;
|
231
|
-
}
|
232
|
-
|
233
|
-
.dropdown-item-text {
|
234
|
-
color: $dropdown-dark-link-color;
|
235
|
-
}
|
236
|
-
|
237
|
-
.dropdown-header {
|
238
|
-
color: $dropdown-dark-header-color;
|
239
|
-
}
|
235
|
+
// scss-docs-start dropdown-dark-css-vars
|
236
|
+
--#{$prefix}dropdown-color: #{$dropdown-dark-color};
|
237
|
+
--#{$prefix}dropdown-bg: #{$dropdown-dark-bg};
|
238
|
+
--#{$prefix}dropdown-border-color: #{$dropdown-dark-border-color};
|
239
|
+
--#{$prefix}dropdown-box-shadow: #{$dropdown-dark-box-shadow};
|
240
|
+
--#{$prefix}dropdown-link-color: #{$dropdown-dark-link-color};
|
241
|
+
--#{$prefix}dropdown-link-hover-color: #{$dropdown-dark-link-hover-color};
|
242
|
+
--#{$prefix}dropdown-divider-bg: #{$dropdown-dark-divider-bg};
|
243
|
+
--#{$prefix}dropdown-link-hover-bg: #{$dropdown-dark-link-hover-bg};
|
244
|
+
--#{$prefix}dropdown-link-active-color: #{$dropdown-dark-link-active-color};
|
245
|
+
--#{$prefix}dropdown-link-active-bg: #{$dropdown-dark-link-active-bg};
|
246
|
+
--#{$prefix}dropdown-link-disabled-color: #{$dropdown-dark-link-disabled-color};
|
247
|
+
--#{$prefix}dropdown-header-color: #{$dropdown-dark-header-color};
|
248
|
+
// scss-docs-end dropdown-dark-css-vars
|
240
249
|
}
|
@@ -40,11 +40,11 @@
|
|
40
40
|
// stylelint-disable scss/dollar-variable-pattern
|
41
41
|
@function rgba-css-var($identifier, $target) {
|
42
42
|
@if $identifier == "body" and $target == "bg" {
|
43
|
-
@return rgba(var(--#{$
|
43
|
+
@return rgba(var(--#{$prefix}#{$identifier}-bg-rgb), var(--#{$prefix}#{$target}-opacity));
|
44
44
|
} @if $identifier == "body" and $target == "text" {
|
45
|
-
@return rgba(var(--#{$
|
45
|
+
@return rgba(var(--#{$prefix}#{$identifier}-color-rgb), var(--#{$prefix}#{$target}-opacity));
|
46
46
|
} @else {
|
47
|
-
@return rgba(var(--#{$
|
47
|
+
@return rgba(var(--#{$prefix}#{$identifier}-rgb), var(--#{$prefix}#{$target}-opacity));
|
48
48
|
}
|
49
49
|
}
|
50
50
|
|
@@ -68,7 +68,7 @@
|
|
68
68
|
@function varify($list) {
|
69
69
|
$result: null;
|
70
70
|
@each $entry in $list {
|
71
|
-
$result: append($result, var(--#{$
|
71
|
+
$result: append($result, var(--#{$prefix}#{$entry}), space);
|
72
72
|
}
|
73
73
|
@return $result;
|
74
74
|
}
|
@@ -109,7 +109,7 @@
|
|
109
109
|
// Replace `$search` with `$replace` in `$string`
|
110
110
|
// Used on our SVG icon backgrounds for custom forms.
|
111
111
|
//
|
112
|
-
// @author
|
112
|
+
// @author Kitty Giraudel
|
113
113
|
// @param {String} $string - Initial string
|
114
114
|
// @param {String} $search - Substring to replace
|
115
115
|
// @param {String} $replace ('') - New value
|
@@ -177,9 +177,9 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
|
|
177
177
|
@return if($l1 > $l2, divide($l1 + .05, $l2 + .05), divide($l2 + .05, $l1 + .05));
|
178
178
|
}
|
179
179
|
|
180
|
-
// Return WCAG2.
|
181
|
-
// See https://www.w3.org/
|
182
|
-
// See https://www.w3.org/TR/
|
180
|
+
// Return WCAG2.1 relative luminance
|
181
|
+
// See https://www.w3.org/TR/WCAG/#dfn-relative-luminance
|
182
|
+
// See https://www.w3.org/TR/WCAG/#dfn-contrast-ratio
|
183
183
|
@function luminance($color) {
|
184
184
|
$rgb: (
|
185
185
|
"r": red($color),
|
@@ -198,7 +198,7 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
|
|
198
198
|
// Return opaque color
|
199
199
|
// opaque(#fff, rgba(0, 0, 0, .5)) => #808080
|
200
200
|
@function opaque($background, $foreground) {
|
201
|
-
@return mix(rgba($foreground, 1), $background, opacity($foreground) * 100);
|
201
|
+
@return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
|
202
202
|
}
|
203
203
|
|
204
204
|
// scss-docs-start color-functions
|
data/_sass/bootstrap/_grid.scss
CHANGED
@@ -15,9 +15,9 @@
|
|
15
15
|
@if $enable-cssgrid {
|
16
16
|
.grid {
|
17
17
|
display: grid;
|
18
|
-
grid-template-rows: repeat(var(--#{$
|
19
|
-
grid-template-columns: repeat(var(--#{$
|
20
|
-
gap: var(--#{$
|
18
|
+
grid-template-rows: repeat(var(--#{$prefix}rows, 1), 1fr);
|
19
|
+
grid-template-columns: repeat(var(--#{$prefix}columns, #{$grid-columns}), 1fr);
|
20
|
+
gap: var(--#{$prefix}gap, #{$grid-gutter-width});
|
21
21
|
|
22
22
|
@include make-cssgrid();
|
23
23
|
}
|