elixir-toolkit-theme 1.22.0 → 1.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/footer.html +25 -2
  3. data/_includes/section-navigation-tiles-simple.html +3 -0
  4. data/_includes/section-navigation-tiles.html +2 -2
  5. data/_includes/topnav.html +9 -1
  6. data/_sass/_variables.scss +1 -0
  7. data/_sass/bootstrap/_accordion.scss +56 -25
  8. data/_sass/bootstrap/_alert.scss +18 -4
  9. data/_sass/bootstrap/_badge.scss +14 -5
  10. data/_sass/bootstrap/_breadcrumb.scss +22 -10
  11. data/_sass/bootstrap/_button-group.scss +4 -1
  12. data/_sass/bootstrap/_buttons.scss +125 -29
  13. data/_sass/bootstrap/_card.scss +55 -37
  14. data/_sass/bootstrap/_carousel.scss +0 -3
  15. data/_sass/bootstrap/_close.scss +1 -1
  16. data/_sass/bootstrap/_containers.scss +1 -1
  17. data/_sass/bootstrap/_dropdown.scss +85 -76
  18. data/_sass/bootstrap/_functions.scss +9 -9
  19. data/_sass/bootstrap/_grid.scss +3 -3
  20. data/_sass/bootstrap/_helpers.scss +1 -0
  21. data/_sass/bootstrap/_list-group.scss +48 -30
  22. data/_sass/bootstrap/_maps.scss +54 -0
  23. data/_sass/bootstrap/_modal.scss +71 -43
  24. data/_sass/bootstrap/_nav.scss +53 -20
  25. data/_sass/bootstrap/_navbar.scss +93 -150
  26. data/_sass/bootstrap/_offcanvas.scss +120 -59
  27. data/_sass/bootstrap/_pagination.scss +66 -21
  28. data/_sass/bootstrap/_placeholders.scss +1 -1
  29. data/_sass/bootstrap/_popover.scss +90 -52
  30. data/_sass/bootstrap/_progress.scss +20 -9
  31. data/_sass/bootstrap/_reboot.scss +25 -40
  32. data/_sass/bootstrap/_root.scss +40 -21
  33. data/_sass/bootstrap/_spinners.scss +38 -22
  34. data/_sass/bootstrap/_tables.scss +32 -23
  35. data/_sass/bootstrap/_toasts.scss +38 -16
  36. data/_sass/bootstrap/_tooltip.scss +61 -56
  37. data/_sass/bootstrap/_type.scss +2 -0
  38. data/_sass/bootstrap/_utilities.scss +43 -26
  39. data/_sass/bootstrap/_variables.scss +128 -135
  40. data/_sass/bootstrap/bootstrap-grid.scss +3 -6
  41. data/_sass/bootstrap/bootstrap-reboot.scss +3 -7
  42. data/_sass/bootstrap/bootstrap-utilities.scss +6 -6
  43. data/_sass/bootstrap/bootstrap.scss +4 -6
  44. data/_sass/bootstrap/forms/_floating-labels.scss +15 -3
  45. data/_sass/bootstrap/forms/_form-check.scss +28 -5
  46. data/_sass/bootstrap/forms/_form-control.scss +12 -37
  47. data/_sass/bootstrap/forms/_form-select.scss +0 -1
  48. data/_sass/bootstrap/forms/_input-group.scss +19 -8
  49. data/_sass/bootstrap/helpers/_color-bg.scss +10 -0
  50. data/_sass/bootstrap/helpers/_colored-links.scss +2 -2
  51. data/_sass/bootstrap/helpers/_position.scss +7 -1
  52. data/_sass/bootstrap/helpers/_ratio.scss +2 -2
  53. data/_sass/bootstrap/helpers/_vr.scss +1 -1
  54. data/_sass/bootstrap/mixins/_alert.scss +7 -3
  55. data/_sass/bootstrap/mixins/_banner.scss +9 -0
  56. data/_sass/bootstrap/mixins/_breakpoints.scss +8 -8
  57. data/_sass/bootstrap/mixins/_buttons.scss +32 -95
  58. data/_sass/bootstrap/mixins/_container.scss +4 -2
  59. data/_sass/bootstrap/mixins/_forms.scss +18 -10
  60. data/_sass/bootstrap/mixins/_gradients.scss +1 -1
  61. data/_sass/bootstrap/mixins/_grid.scss +12 -12
  62. data/_sass/bootstrap/mixins/_pagination.scss +4 -25
  63. data/_sass/bootstrap/mixins/_reset-text.scss +1 -1
  64. data/_sass/bootstrap/mixins/_table-variants.scss +12 -9
  65. data/_sass/bootstrap/mixins/_utilities.scss +13 -5
  66. data/assets/css/main.scss +22 -3
  67. data/assets/img/ett_compact_logo_bw.svg +22 -0
  68. data/assets/js/bootstrap.bundle.min.js +3 -3
  69. data/assets/js/bootstrap.bundle.min.js.map +1 -1
  70. metadata +6 -2
@@ -3,27 +3,46 @@
3
3
  // Easily usable on <ul>, <ol>, or <div>.
4
4
 
5
5
  .list-group {
6
+ // scss-docs-start list-group-css-vars
7
+ --#{$prefix}list-group-color: #{$list-group-color};
8
+ --#{$prefix}list-group-bg: #{$list-group-bg};
9
+ --#{$prefix}list-group-border-color: #{$list-group-border-color};
10
+ --#{$prefix}list-group-border-width: #{$list-group-border-width};
11
+ --#{$prefix}list-group-border-radius: #{$list-group-border-radius};
12
+ --#{$prefix}list-group-item-padding-x: #{$list-group-item-padding-x};
13
+ --#{$prefix}list-group-item-padding-y: #{$list-group-item-padding-y};
14
+ --#{$prefix}list-group-action-color: #{$list-group-action-color};
15
+ --#{$prefix}list-group-action-hover-color: #{$list-group-action-hover-color};
16
+ --#{$prefix}list-group-action-hover-bg: #{$list-group-hover-bg};
17
+ --#{$prefix}list-group-action-active-color: #{$list-group-action-active-color};
18
+ --#{$prefix}list-group-action-active-bg: #{$list-group-action-active-bg};
19
+ --#{$prefix}list-group-disabled-color: #{$list-group-disabled-color};
20
+ --#{$prefix}list-group-disabled-bg: #{$list-group-disabled-bg};
21
+ --#{$prefix}list-group-active-color: #{$list-group-active-color};
22
+ --#{$prefix}list-group-active-bg: #{$list-group-active-bg};
23
+ --#{$prefix}list-group-active-border-color: #{$list-group-active-border-color};
24
+ // scss-docs-end list-group-css-vars
25
+
6
26
  display: flex;
7
27
  flex-direction: column;
8
28
 
9
29
  // No need to set list-style: none; since .list-group-item is block level
10
30
  padding-left: 0; // reset padding because ul and ol
11
31
  margin-bottom: 0;
12
- @include border-radius($list-group-border-radius);
32
+ @include border-radius(var(--#{$prefix}list-group-border-radius));
13
33
  }
14
34
 
15
35
  .list-group-numbered {
16
36
  list-style-type: none;
17
37
  counter-reset: section;
18
38
 
19
- > li::before {
39
+ > .list-group-item::before {
20
40
  // Increments only this instance of the section counter
21
41
  content: counters(section, ".") ". ";
22
42
  counter-increment: section;
23
43
  }
24
44
  }
25
45
 
26
-
27
46
  // Interactive list items
28
47
  //
29
48
  // Use anchor or button elements instead of `li`s or `div`s to create interactive
@@ -31,25 +50,24 @@
31
50
 
32
51
  .list-group-item-action {
33
52
  width: 100%; // For `<button>`s (anchors become 100% by default though)
34
- color: $list-group-action-color;
53
+ color: var(--#{$prefix}list-group-action-color);
35
54
  text-align: inherit; // For `<button>`s (anchors inherit)
36
55
 
37
56
  // Hover state
38
57
  &:hover,
39
58
  &:focus {
40
59
  z-index: 1; // Place hover/focus items above their siblings for proper border styling
41
- color: $list-group-action-hover-color;
60
+ color: var(--#{$prefix}list-group-action-hover-color);
42
61
  text-decoration: none;
43
- background-color: $list-group-hover-bg;
62
+ background-color: var(--#{$prefix}list-group-action-hover-bg);
44
63
  }
45
64
 
46
65
  &:active {
47
- color: $list-group-action-active-color;
48
- background-color: $list-group-action-active-bg;
66
+ color: var(--#{$prefix}list-group-action-active-color);
67
+ background-color: var(--#{$prefix}list-group-action-active-bg);
49
68
  }
50
69
  }
51
70
 
52
-
53
71
  // Individual list items
54
72
  //
55
73
  // Use on `li`s or `div`s within the `.list-group` parent.
@@ -57,11 +75,11 @@
57
75
  .list-group-item {
58
76
  position: relative;
59
77
  display: block;
60
- padding: $list-group-item-padding-y $list-group-item-padding-x;
61
- color: $list-group-color;
78
+ padding: var(--#{$prefix}list-group-item-padding-y) var(--#{$prefix}list-group-item-padding-x);
79
+ color: var(--#{$prefix}list-group-color);
62
80
  text-decoration: if($link-decoration == none, null, none);
63
- background-color: $list-group-bg;
64
- border: $list-group-border-width solid $list-group-border-color;
81
+ background-color: var(--#{$prefix}list-group-bg);
82
+ border: var(--#{$prefix}list-group-border-width) solid var(--#{$prefix}list-group-border-color);
65
83
 
66
84
  &:first-child {
67
85
  @include border-top-radius(inherit);
@@ -73,30 +91,30 @@
73
91
 
74
92
  &.disabled,
75
93
  &:disabled {
76
- color: $list-group-disabled-color;
94
+ color: var(--#{$prefix}list-group-disabled-color);
77
95
  pointer-events: none;
78
- background-color: $list-group-disabled-bg;
96
+ background-color: var(--#{$prefix}list-group-disabled-bg);
79
97
  }
80
98
 
81
99
  // Include both here for `<a>`s and `<button>`s
82
100
  &.active {
83
101
  z-index: 2; // Place active items above their siblings for proper border styling
84
- color: $list-group-active-color;
85
- background-color: $list-group-active-bg;
86
- border-color: $list-group-active-border-color;
102
+ color: var(--#{$prefix}list-group-active-color);
103
+ background-color: var(--#{$prefix}list-group-active-bg);
104
+ border-color: var(--#{$prefix}list-group-active-border-color);
87
105
  }
88
106
 
89
- & + & {
107
+ // stylelint-disable-next-line scss/selector-no-redundant-nesting-selector
108
+ & + .list-group-item {
90
109
  border-top-width: 0;
91
110
 
92
111
  &.active {
93
- margin-top: -$list-group-border-width;
94
- border-top-width: $list-group-border-width;
112
+ margin-top: calc(-1 * var(--#{$prefix}list-group-border-width)); // stylelint-disable-line function-disallowed-list
113
+ border-top-width: var(--#{$prefix}list-group-border-width);
95
114
  }
96
115
  }
97
116
  }
98
117
 
99
-
100
118
  // Horizontal
101
119
  //
102
120
  // Change the layout of list group items from vertical (default) to horizontal.
@@ -109,13 +127,13 @@
109
127
  flex-direction: row;
110
128
 
111
129
  > .list-group-item {
112
- &:first-child {
113
- @include border-bottom-start-radius($list-group-border-radius);
130
+ &:first-child:not(:last-child) {
131
+ @include border-bottom-start-radius(var(--#{$prefix}list-group-border-radius));
114
132
  @include border-top-end-radius(0);
115
133
  }
116
134
 
117
- &:last-child {
118
- @include border-top-end-radius($list-group-border-radius);
135
+ &:last-child:not(:first-child) {
136
+ @include border-top-end-radius(var(--#{$prefix}list-group-border-radius));
119
137
  @include border-bottom-start-radius(0);
120
138
  }
121
139
 
@@ -124,12 +142,12 @@
124
142
  }
125
143
 
126
144
  + .list-group-item {
127
- border-top-width: $list-group-border-width;
145
+ border-top-width: var(--#{$prefix}list-group-border-width);
128
146
  border-left-width: 0;
129
147
 
130
148
  &.active {
131
- margin-left: -$list-group-border-width;
132
- border-left-width: $list-group-border-width;
149
+ margin-left: calc(-1 * var(--#{$prefix}list-group-border-width)); // stylelint-disable-line function-disallowed-list
150
+ border-left-width: var(--#{$prefix}list-group-border-width);
133
151
  }
134
152
  }
135
153
  }
@@ -147,7 +165,7 @@
147
165
  @include border-radius(0);
148
166
 
149
167
  > .list-group-item {
150
- border-width: 0 0 $list-group-border-width;
168
+ border-width: 0 0 var(--#{$prefix}list-group-border-width);
151
169
 
152
170
  &:last-child {
153
171
  border-bottom-width: 0;
@@ -0,0 +1,54 @@
1
+ // Re-assigned maps
2
+ //
3
+ // Placed here so that others can override the default Sass maps and see automatic updates to utilities and more.
4
+
5
+ // scss-docs-start theme-colors-rgb
6
+ $theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value") !default;
7
+ // scss-docs-end theme-colors-rgb
8
+
9
+ // Utilities maps
10
+ //
11
+ // Extends the default `$theme-colors` maps to help create our utilities.
12
+
13
+ // Come v6, we'll de-dupe these variables. Until then, for backward compatibility, we keep them to reassign.
14
+ // scss-docs-start utilities-colors
15
+ $utilities-colors: $theme-colors-rgb !default;
16
+ // scss-docs-end utilities-colors
17
+
18
+ // scss-docs-start utilities-text-colors
19
+ $utilities-text: map-merge(
20
+ $utilities-colors,
21
+ (
22
+ "black": to-rgb($black),
23
+ "white": to-rgb($white),
24
+ "body": to-rgb($body-color)
25
+ )
26
+ ) !default;
27
+ $utilities-text-colors: map-loop($utilities-text, rgba-css-var, "$key", "text") !default;
28
+ // scss-docs-end utilities-text-colors
29
+
30
+ // scss-docs-start utilities-bg-colors
31
+ $utilities-bg: map-merge(
32
+ $utilities-colors,
33
+ (
34
+ "black": to-rgb($black),
35
+ "white": to-rgb($white),
36
+ "body": to-rgb($body-bg)
37
+ )
38
+ ) !default;
39
+ $utilities-bg-colors: map-loop($utilities-bg, rgba-css-var, "$key", "bg") !default;
40
+ // scss-docs-end utilities-bg-colors
41
+
42
+ // scss-docs-start utilities-border-colors
43
+ $utilities-border: map-merge(
44
+ $utilities-colors,
45
+ (
46
+ "white": to-rgb($white)
47
+ )
48
+ ) !default;
49
+ $utilities-border-colors: map-loop($utilities-border, rgba-css-var, "$key", "border") !default;
50
+ // scss-docs-end utilities-border-colors
51
+
52
+ $negative-spacers: if($enable-negative-margins, negativify-map($spacers), null) !default;
53
+
54
+ $gutters: $spacers !default;
@@ -1,3 +1,5 @@
1
+ // stylelint-disable function-disallowed-list
2
+
1
3
  // .modal-open - body class for killing the scroll
2
4
  // .modal - container to scroll within
3
5
  // .modal-dialog - positioning shell for the actual modal
@@ -6,10 +8,34 @@
6
8
 
7
9
  // Container that the modal scrolls within
8
10
  .modal {
11
+ // scss-docs-start modal-css-vars
12
+ --#{$prefix}modal-zindex: #{$zindex-modal};
13
+ --#{$prefix}modal-width: #{$modal-md};
14
+ --#{$prefix}modal-padding: #{$modal-inner-padding};
15
+ --#{$prefix}modal-margin: #{$modal-dialog-margin};
16
+ --#{$prefix}modal-color: #{$modal-content-color};
17
+ --#{$prefix}modal-bg: #{$modal-content-bg};
18
+ --#{$prefix}modal-border-color: #{$modal-content-border-color};
19
+ --#{$prefix}modal-border-width: #{$modal-content-border-width};
20
+ --#{$prefix}modal-border-radius: #{$modal-content-border-radius};
21
+ --#{$prefix}modal-box-shadow: #{$modal-content-box-shadow-xs};
22
+ --#{$prefix}modal-inner-border-radius: #{$modal-content-inner-border-radius};
23
+ --#{$prefix}modal-header-padding-x: #{$modal-header-padding-x};
24
+ --#{$prefix}modal-header-padding-y: #{$modal-header-padding-y};
25
+ --#{$prefix}modal-header-padding: #{$modal-header-padding}; // Todo in v6: Split this padding into x and y
26
+ --#{$prefix}modal-header-border-color: #{$modal-header-border-color};
27
+ --#{$prefix}modal-header-border-width: #{$modal-header-border-width};
28
+ --#{$prefix}modal-title-line-height: #{$modal-title-line-height};
29
+ --#{$prefix}modal-footer-gap: #{$modal-footer-margin-between};
30
+ --#{$prefix}modal-footer-bg: #{$modal-footer-bg};
31
+ --#{$prefix}modal-footer-border-color: #{$modal-footer-border-color};
32
+ --#{$prefix}modal-footer-border-width: #{$modal-footer-border-width};
33
+ // scss-docs-end modal-css-vars
34
+
9
35
  position: fixed;
10
36
  top: 0;
11
37
  left: 0;
12
- z-index: $zindex-modal;
38
+ z-index: var(--#{$prefix}modal-zindex);
13
39
  display: none;
14
40
  width: 100%;
15
41
  height: 100%;
@@ -27,7 +53,7 @@
27
53
  .modal-dialog {
28
54
  position: relative;
29
55
  width: auto;
30
- margin: $modal-dialog-margin;
56
+ margin: var(--#{$prefix}modal-margin);
31
57
  // allow clicks to pass through for custom click handling to close modal
32
58
  pointer-events: none;
33
59
 
@@ -47,7 +73,7 @@
47
73
  }
48
74
 
49
75
  .modal-dialog-scrollable {
50
- height: subtract(100%, $modal-dialog-margin * 2);
76
+ height: calc(100% - var(--#{$prefix}modal-margin) * 2);
51
77
 
52
78
  .modal-content {
53
79
  max-height: 100%;
@@ -62,7 +88,7 @@
62
88
  .modal-dialog-centered {
63
89
  display: flex;
64
90
  align-items: center;
65
- min-height: subtract(100%, $modal-dialog-margin * 2);
91
+ min-height: calc(100% - var(--#{$prefix}modal-margin) * 2);
66
92
  }
67
93
 
68
94
  // Actual modal
@@ -72,20 +98,26 @@
72
98
  flex-direction: column;
73
99
  width: 100%; // Ensure `.modal-content` extends the full width of the parent `.modal-dialog`
74
100
  // counteract the pointer-events: none; in the .modal-dialog
75
- color: $modal-content-color;
101
+ color: var(--#{$prefix}modal-color);
76
102
  pointer-events: auto;
77
- background-color: $modal-content-bg;
103
+ background-color: var(--#{$prefix}modal-bg);
78
104
  background-clip: padding-box;
79
- border: $modal-content-border-width solid $modal-content-border-color;
80
- @include border-radius($modal-content-border-radius);
81
- @include box-shadow($modal-content-box-shadow-xs);
105
+ border: var(--#{$prefix}modal-border-width) solid var(--#{$prefix}modal-border-color);
106
+ @include border-radius(var(--#{$prefix}modal-border-radius));
107
+ @include box-shadow(var(--#{$prefix}modal-box-shadow));
82
108
  // Remove focus outline from opened modal
83
109
  outline: 0;
84
110
  }
85
111
 
86
112
  // Modal background
87
113
  .modal-backdrop {
88
- @include overlay-backdrop($zindex-modal-backdrop, $modal-backdrop-bg, $modal-backdrop-opacity);
114
+ // scss-docs-start modal-backdrop-css-vars
115
+ --#{$prefix}backdrop-zindex: #{$zindex-modal-backdrop};
116
+ --#{$prefix}backdrop-bg: #{$modal-backdrop-bg};
117
+ --#{$prefix}backdrop-opacity: #{$modal-backdrop-opacity};
118
+ // scss-docs-end modal-backdrop-css-vars
119
+
120
+ @include overlay-backdrop(var(--#{$prefix}backdrop-zindex), var(--#{$prefix}backdrop-bg), var(--#{$prefix}backdrop-opacity));
89
121
  }
90
122
 
91
123
  // Modal header
@@ -95,20 +127,20 @@
95
127
  flex-shrink: 0;
96
128
  align-items: center;
97
129
  justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends
98
- padding: $modal-header-padding;
99
- border-bottom: $modal-header-border-width solid $modal-header-border-color;
100
- @include border-top-radius($modal-content-inner-border-radius);
130
+ padding: var(--#{$prefix}modal-header-padding);
131
+ border-bottom: var(--#{$prefix}modal-header-border-width) solid var(--#{$prefix}modal-header-border-color);
132
+ @include border-top-radius(var(--#{$prefix}modal-inner-border-radius));
101
133
 
102
134
  .btn-close {
103
- padding: ($modal-header-padding-y * .5) ($modal-header-padding-x * .5);
104
- margin: ($modal-header-padding-y * -.5) ($modal-header-padding-x * -.5) ($modal-header-padding-y * -.5) auto;
135
+ padding: calc(var(--#{$prefix}modal-header-padding-y) * .5) calc(var(--#{$prefix}modal-header-padding-x) * .5);
136
+ margin: calc(-.5 * var(--#{$prefix}modal-header-padding-y)) calc(-.5 * var(--#{$prefix}modal-header-padding-x)) calc(-.5 * var(--#{$prefix}modal-header-padding-y)) auto;
105
137
  }
106
138
  }
107
139
 
108
140
  // Title text within header
109
141
  .modal-title {
110
142
  margin-bottom: 0;
111
- line-height: $modal-title-line-height;
143
+ line-height: var(--#{$prefix}modal-title-line-height);
112
144
  }
113
145
 
114
146
  // Modal body
@@ -118,60 +150,59 @@
118
150
  // Enable `flex-grow: 1` so that the body take up as much space as possible
119
151
  // when there should be a fixed height on `.modal-dialog`.
120
152
  flex: 1 1 auto;
121
- padding: $modal-inner-padding;
153
+ padding: var(--#{$prefix}modal-padding);
122
154
  }
123
155
 
124
156
  // Footer (for actions)
125
157
  .modal-footer {
126
158
  display: flex;
127
- flex-wrap: wrap;
128
159
  flex-shrink: 0;
160
+ flex-wrap: wrap;
129
161
  align-items: center; // vertically center
130
162
  justify-content: flex-end; // Right align buttons with flex property because text-align doesn't work on flex items
131
- padding: $modal-inner-padding - $modal-footer-margin-between * .5;
132
- border-top: $modal-footer-border-width solid $modal-footer-border-color;
133
- @include border-bottom-radius($modal-content-inner-border-radius);
163
+ padding: calc(var(--#{$prefix}modal-padding) - var(--#{$prefix}modal-footer-gap) * .5);
164
+ background-color: var(--#{$prefix}modal-footer-bg);
165
+ border-top: var(--#{$prefix}modal-footer-border-width) solid var(--#{$prefix}modal-footer-border-color);
166
+ @include border-bottom-radius(var(--#{$prefix}modal-inner-border-radius));
134
167
 
135
168
  // Place margin between footer elements
136
169
  // This solution is far from ideal because of the universal selector usage,
137
170
  // but is needed to fix https://github.com/twbs/bootstrap/issues/24800
138
171
  > * {
139
- margin: $modal-footer-margin-between * .5;
172
+ margin: calc(var(--#{$prefix}modal-footer-gap) * .5); // Todo in v6: replace with gap on parent class
140
173
  }
141
174
  }
142
175
 
143
176
  // Scale up the modal
144
177
  @include media-breakpoint-up(sm) {
145
- // Automatically set modal's width for larger viewports
146
- .modal-dialog {
147
- max-width: $modal-md;
148
- margin: $modal-dialog-margin-y-sm-up auto;
178
+ .modal {
179
+ --#{$prefix}modal-margin: #{$modal-dialog-margin-y-sm-up};
180
+ --#{$prefix}modal-box-shadow: #{$modal-content-box-shadow-sm-up};
149
181
  }
150
182
 
151
- .modal-dialog-scrollable {
152
- height: subtract(100%, $modal-dialog-margin-y-sm-up * 2);
153
- }
154
-
155
- .modal-dialog-centered {
156
- min-height: subtract(100%, $modal-dialog-margin-y-sm-up * 2);
183
+ // Automatically set modal's width for larger viewports
184
+ .modal-dialog {
185
+ max-width: var(--#{$prefix}modal-width);
186
+ margin-right: auto;
187
+ margin-left: auto;
157
188
  }
158
189
 
159
- .modal-content {
160
- @include box-shadow($modal-content-box-shadow-sm-up);
190
+ .modal-sm {
191
+ --#{$prefix}modal-width: #{$modal-sm};
161
192
  }
162
-
163
- .modal-sm { max-width: $modal-sm; }
164
193
  }
165
194
 
166
195
  @include media-breakpoint-up(lg) {
167
196
  .modal-lg,
168
197
  .modal-xl {
169
- max-width: $modal-lg;
198
+ --#{$prefix}modal-width: #{$modal-lg};
170
199
  }
171
200
  }
172
201
 
173
202
  @include media-breakpoint-up(xl) {
174
- .modal-xl { max-width: $modal-xl; }
203
+ .modal-xl {
204
+ --#{$prefix}modal-width: #{$modal-xl};
205
+ }
175
206
  }
176
207
 
177
208
  // scss-docs-start modal-fullscreen-loop
@@ -192,17 +223,14 @@
192
223
  @include border-radius(0);
193
224
  }
194
225
 
195
- .modal-header {
226
+ .modal-header,
227
+ .modal-footer {
196
228
  @include border-radius(0);
197
229
  }
198
230
 
199
231
  .modal-body {
200
232
  overflow-y: auto;
201
233
  }
202
-
203
- .modal-footer {
204
- @include border-radius(0);
205
- }
206
234
  }
207
235
  }
208
236
  }
@@ -4,6 +4,16 @@
4
4
  // `<nav>`s, `<ul>`s or `<ol>`s.
5
5
 
6
6
  .nav {
7
+ // scss-docs-start nav-css-vars
8
+ --#{$prefix}nav-link-padding-x: #{$nav-link-padding-x};
9
+ --#{$prefix}nav-link-padding-y: #{$nav-link-padding-y};
10
+ @include rfs($nav-link-font-size, --#{$prefix}nav-link-font-size);
11
+ --#{$prefix}nav-link-font-weight: #{$nav-link-font-weight};
12
+ --#{$prefix}nav-link-color: #{$nav-link-color};
13
+ --#{$prefix}nav-link-hover-color: #{$nav-link-hover-color};
14
+ --#{$prefix}nav-link-disabled-color: #{$nav-link-disabled-color};
15
+ // scss-docs-end nav-css-vars
16
+
7
17
  display: flex;
8
18
  flex-wrap: wrap;
9
19
  padding-left: 0;
@@ -13,22 +23,22 @@
13
23
 
14
24
  .nav-link {
15
25
  display: block;
16
- padding: $nav-link-padding-y $nav-link-padding-x;
17
- @include font-size($nav-link-font-size);
18
- font-weight: $nav-link-font-weight;
19
- color: $nav-link-color;
26
+ padding: var(--#{$prefix}nav-link-padding-y) var(--#{$prefix}nav-link-padding-x);
27
+ @include font-size(var(--#{$prefix}nav-link-font-size));
28
+ font-weight: var(--#{$prefix}nav-link-font-weight);
29
+ color: var(--#{$prefix}nav-link-color);
20
30
  text-decoration: if($link-decoration == none, null, none);
21
31
  @include transition($nav-link-transition);
22
32
 
23
33
  &:hover,
24
34
  &:focus {
25
- color: $nav-link-hover-color;
35
+ color: var(--#{$prefix}nav-link-hover-color);
26
36
  text-decoration: if($link-hover-decoration == underline, none, null);
27
37
  }
28
38
 
29
39
  // Disabled state lightens text
30
40
  &.disabled {
31
- color: $nav-link-disabled-color;
41
+ color: var(--#{$prefix}nav-link-disabled-color);
32
42
  pointer-events: none;
33
43
  cursor: default;
34
44
  }
@@ -39,23 +49,34 @@
39
49
  //
40
50
 
41
51
  .nav-tabs {
42
- border-bottom: $nav-tabs-border-width solid $nav-tabs-border-color;
52
+ // scss-docs-start nav-tabs-css-vars
53
+ --#{$prefix}nav-tabs-border-width: #{$nav-tabs-border-width};
54
+ --#{$prefix}nav-tabs-border-color: #{$nav-tabs-border-color};
55
+ --#{$prefix}nav-tabs-border-radius: #{$nav-tabs-border-radius};
56
+ --#{$prefix}nav-tabs-link-hover-border-color: #{$nav-tabs-link-hover-border-color};
57
+ --#{$prefix}nav-tabs-link-active-color: #{$nav-tabs-link-active-color};
58
+ --#{$prefix}nav-tabs-link-active-bg: #{$nav-tabs-link-active-bg};
59
+ --#{$prefix}nav-tabs-link-active-border-color: #{$nav-tabs-link-active-border-color};
60
+ // scss-docs-end nav-tabs-css-vars
61
+
62
+ border-bottom: var(--#{$prefix}nav-tabs-border-width) solid var(--#{$prefix}nav-tabs-border-color);
43
63
 
44
64
  .nav-link {
45
- margin-bottom: -$nav-tabs-border-width;
65
+ margin-bottom: calc(-1 * var(--#{$prefix}nav-tabs-border-width)); // stylelint-disable-line function-disallowed-list
46
66
  background: none;
47
- border: $nav-tabs-border-width solid transparent;
48
- @include border-top-radius($nav-tabs-border-radius);
67
+ border: var(--#{$prefix}nav-tabs-border-width) solid transparent;
68
+ @include border-top-radius(var(--#{$prefix}nav-tabs-border-radius));
49
69
 
50
70
  &:hover,
51
71
  &:focus {
52
- border-color: $nav-tabs-link-hover-border-color;
53
72
  // Prevents active .nav-link tab overlapping focus outline of previous/next .nav-link
54
73
  isolation: isolate;
74
+ border-color: var(--#{$prefix}nav-tabs-link-hover-border-color);
55
75
  }
56
76
 
57
- &.disabled {
58
- color: $nav-link-disabled-color;
77
+ &.disabled,
78
+ &:disabled {
79
+ color: var(--#{$prefix}nav-link-disabled-color);
59
80
  background-color: transparent;
60
81
  border-color: transparent;
61
82
  }
@@ -63,14 +84,14 @@
63
84
 
64
85
  .nav-link.active,
65
86
  .nav-item.show .nav-link {
66
- color: $nav-tabs-link-active-color;
67
- background-color: $nav-tabs-link-active-bg;
68
- border-color: $nav-tabs-link-active-border-color;
87
+ color: var(--#{$prefix}nav-tabs-link-active-color);
88
+ background-color: var(--#{$prefix}nav-tabs-link-active-bg);
89
+ border-color: var(--#{$prefix}nav-tabs-link-active-border-color);
69
90
  }
70
91
 
71
92
  .dropdown-menu {
72
93
  // Make dropdown border overlap tab border
73
- margin-top: -$nav-tabs-border-width;
94
+ margin-top: calc(-1 * var(--#{$prefix}nav-tabs-border-width)); // stylelint-disable-line function-disallowed-list
74
95
  // Remove the top rounded corners here since there is a hard edge above the menu
75
96
  @include border-top-radius(0);
76
97
  }
@@ -82,16 +103,28 @@
82
103
  //
83
104
 
84
105
  .nav-pills {
106
+ // scss-docs-start nav-pills-css-vars
107
+ --#{$prefix}nav-pills-border-radius: #{$nav-pills-border-radius};
108
+ --#{$prefix}nav-pills-link-active-color: #{$nav-pills-link-active-color};
109
+ --#{$prefix}nav-pills-link-active-bg: #{$nav-pills-link-active-bg};
110
+ // scss-docs-end nav-pills-css-vars
111
+
85
112
  .nav-link {
86
113
  background: none;
87
114
  border: 0;
88
- @include border-radius($nav-pills-border-radius);
115
+ @include border-radius(var(--#{$prefix}nav-pills-border-radius));
116
+
117
+ &:disabled {
118
+ color: var(--#{$prefix}nav-link-disabled-color);
119
+ background-color: transparent;
120
+ border-color: transparent;
121
+ }
89
122
  }
90
123
 
91
124
  .nav-link.active,
92
125
  .show > .nav-link {
93
- color: $nav-pills-link-active-color;
94
- @include gradient-bg($nav-pills-link-active-bg);
126
+ color: var(--#{$prefix}nav-pills-link-active-color);
127
+ @include gradient-bg(var(--#{$prefix}nav-pills-link-active-bg));
95
128
  }
96
129
  }
97
130