jobdone-shared-files 0.0.1-beta.5 → 0.0.1-beta.7

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.
Files changed (66) hide show
  1. package/package.json +2 -2
  2. package/style/scss/Bootstrap/_accordion.scss +158 -0
  3. package/style/scss/Bootstrap/_alert.scss +68 -0
  4. package/style/scss/Bootstrap/_badge.scss +38 -0
  5. package/style/scss/Bootstrap/_breadcrumb.scss +40 -0
  6. package/style/scss/Bootstrap/_button-group.scss +142 -0
  7. package/style/scss/Bootstrap/_buttons.scss +207 -0
  8. package/style/scss/Bootstrap/_card.scss +238 -0
  9. package/style/scss/Bootstrap/_carousel.scss +238 -0
  10. package/style/scss/Bootstrap/_close.scss +61 -0
  11. package/style/scss/Bootstrap/_containers.scss +41 -0
  12. package/style/scss/Bootstrap/_dropdown.scss +250 -0
  13. package/style/scss/Bootstrap/_forms.scss +9 -0
  14. package/style/scss/Bootstrap/_grid.scss +33 -0
  15. package/style/scss/Bootstrap/_helpers.scss +10 -0
  16. package/style/scss/Bootstrap/_images.scss +42 -0
  17. package/style/scss/Bootstrap/_list-group.scss +204 -0
  18. package/style/scss/Bootstrap/_maps.scss +121 -0
  19. package/style/scss/Bootstrap/_modal.scss +237 -0
  20. package/style/scss/Bootstrap/_nav.scss +172 -0
  21. package/style/scss/Bootstrap/_navbar.scss +286 -0
  22. package/style/scss/Bootstrap/_offcanvas.scss +146 -0
  23. package/style/scss/Bootstrap/_pagination.scss +109 -0
  24. package/style/scss/Bootstrap/_placeholders.scss +51 -0
  25. package/style/scss/Bootstrap/_popover.scss +196 -0
  26. package/style/scss/Bootstrap/_progress.scss +68 -0
  27. package/style/scss/Bootstrap/_reboot.scss +610 -0
  28. package/style/scss/Bootstrap/_root.scss +195 -0
  29. package/style/scss/Bootstrap/_spinners.scss +85 -0
  30. package/style/scss/Bootstrap/_tables.scss +164 -0
  31. package/style/scss/Bootstrap/_toasts.scss +73 -0
  32. package/style/scss/Bootstrap/_tooltip.scss +120 -0
  33. package/style/scss/Bootstrap/_transitions.scss +27 -0
  34. package/style/scss/Bootstrap/_type.scss +106 -0
  35. package/style/scss/Bootstrap/_utilities.scss +748 -0
  36. package/style/scss/Bootstrap/_variables-dark.scss +70 -0
  37. package/style/scss/Bootstrap/_variables.scss +1703 -0
  38. package/style/scss/Bootstrap/bootstrap-grid.scss +66 -0
  39. package/style/scss/Bootstrap/bootstrap-reboot.scss +10 -0
  40. package/style/scss/Bootstrap/bootstrap-utilities.scss +19 -0
  41. package/style/scss/Bootstrap/bootstrap.scss +52 -0
  42. package/style/scss/Bootstrap/forms/_floating-labels.scss +90 -0
  43. package/style/scss/Bootstrap/forms/_form-check.scss +188 -0
  44. package/style/scss/Bootstrap/forms/_form-control.scss +201 -0
  45. package/style/scss/Bootstrap/forms/_form-range.scss +91 -0
  46. package/style/scss/Bootstrap/forms/_form-select.scss +81 -0
  47. package/style/scss/Bootstrap/forms/_form-text.scss +11 -0
  48. package/style/scss/Bootstrap/forms/_input-group.scss +132 -0
  49. package/style/scss/Bootstrap/forms/_labels.scss +36 -0
  50. package/style/scss/Bootstrap/forms/_validation.scss +12 -0
  51. package/style/scss/Bootstrap/helpers/_clearfix.scss +3 -0
  52. package/style/scss/Bootstrap/helpers/_color-bg.scss +10 -0
  53. package/style/scss/Bootstrap/helpers/_colored-links.scss +12 -0
  54. package/style/scss/Bootstrap/helpers/_position.scss +36 -0
  55. package/style/scss/Bootstrap/helpers/_ratio.scss +26 -0
  56. package/style/scss/Bootstrap/helpers/_stacks.scss +15 -0
  57. package/style/scss/Bootstrap/helpers/_stretched-link.scss +15 -0
  58. package/style/scss/Bootstrap/helpers/_text-truncation.scss +7 -0
  59. package/style/scss/Bootstrap/helpers/_visually-hidden.scss +8 -0
  60. package/style/scss/Bootstrap/helpers/_vr.scss +8 -0
  61. package/style/scss/Bootstrap/utilities/_api.scss +47 -0
  62. package/style/scss/Layout/LayoutBase.scss +939 -0
  63. package/style/scss/Layout/LayoutProject.scss +124 -0
  64. package/style/scss/Layout/LayoutSinglePage.scss +14 -0
  65. package/style/scss/Layout/LayoutTwoColumn.scss +56 -0
  66. package/style/scss/Settings/_custom-variables.scss +4 -1
@@ -0,0 +1,250 @@
1
+ // The dropdown wrapper (`<div>`)
2
+ .dropup,
3
+ .dropend,
4
+ .dropdown,
5
+ .dropstart,
6
+ .dropup-center,
7
+ .dropdown-center {
8
+ position: relative;
9
+ }
10
+
11
+ .dropdown-toggle {
12
+ white-space: nowrap;
13
+
14
+ // Generate the caret automatically
15
+ @include caret();
16
+ }
17
+
18
+ // The dropdown menu
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
+
49
+ position: absolute;
50
+ z-index: var(--#{$prefix}dropdown-zindex);
51
+ display: none; // none by default, but block on "open" of the menu
52
+ min-width: var(--#{$prefix}dropdown-min-width);
53
+ padding: var(--#{$prefix}dropdown-padding-y) var(--#{$prefix}dropdown-padding-x);
54
+ margin: 0; // Override default margin of ul
55
+ @include font-size(var(--#{$prefix}dropdown-font-size));
56
+ color: var(--#{$prefix}dropdown-color);
57
+ text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
58
+ list-style: none;
59
+ background-color: var(--#{$prefix}dropdown-bg);
60
+ background-clip: padding-box;
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));
64
+
65
+ &[data-bs-popper] {
66
+ top: 100%;
67
+ left: 0;
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
+
81
+ }
82
+ }
83
+
84
+ // scss-docs-start responsive-breakpoints
85
+ // We deliberately hardcode the `bs-` prefix because we check
86
+ // this custom property in JS to determine Popper's positioning
87
+
88
+ @each $breakpoint in map-keys($grid-breakpoints) {
89
+ @include media-breakpoint-up($breakpoint) {
90
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
91
+
92
+ .dropdown-menu#{$infix}-start {
93
+ --bs-position: start;
94
+
95
+ &[data-bs-popper] {
96
+ right: auto;
97
+ left: 0;
98
+ }
99
+ }
100
+
101
+ .dropdown-menu#{$infix}-end {
102
+ --bs-position: end;
103
+
104
+ &[data-bs-popper] {
105
+ right: 0;
106
+ left: auto;
107
+ }
108
+ }
109
+ }
110
+ }
111
+ // scss-docs-end responsive-breakpoints
112
+
113
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
114
+ // Just add .dropup after the standard .dropdown class and you're set.
115
+ .dropup {
116
+ .dropdown-menu[data-bs-popper] {
117
+ top: auto;
118
+ bottom: 100%;
119
+ margin-top: 0;
120
+ margin-bottom: var(--#{$prefix}dropdown-spacer);
121
+ }
122
+
123
+ .dropdown-toggle {
124
+ @include caret(up);
125
+ }
126
+ }
127
+
128
+ .dropend {
129
+ .dropdown-menu[data-bs-popper] {
130
+ top: 0;
131
+ right: auto;
132
+ left: 100%;
133
+ margin-top: 0;
134
+ margin-left: var(--#{$prefix}dropdown-spacer);
135
+ }
136
+
137
+ .dropdown-toggle {
138
+ @include caret(end);
139
+ &::after {
140
+ vertical-align: 0;
141
+ }
142
+ }
143
+ }
144
+
145
+ .dropstart {
146
+ .dropdown-menu[data-bs-popper] {
147
+ top: 0;
148
+ right: 100%;
149
+ left: auto;
150
+ margin-top: 0;
151
+ margin-right: var(--#{$prefix}dropdown-spacer);
152
+ }
153
+
154
+ .dropdown-toggle {
155
+ @include caret(start);
156
+ &::before {
157
+ vertical-align: 0;
158
+ }
159
+ }
160
+ }
161
+
162
+
163
+ // Dividers (basically an `<hr>`) within the dropdown
164
+ .dropdown-divider {
165
+ height: 0;
166
+ margin: var(--#{$prefix}dropdown-divider-margin-y) 0;
167
+ overflow: hidden;
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
170
+ }
171
+
172
+ // Links, buttons, and more within the dropdown menu
173
+ //
174
+ // `<button>`-specific styles are denoted with `// For <button>s`
175
+ .dropdown-item {
176
+ display: block;
177
+ width: 100%; // For `<button>`s
178
+ padding: var(--#{$prefix}dropdown-item-padding-y) var(--#{$prefix}dropdown-item-padding-x);
179
+ clear: both;
180
+ font-weight: $font-weight-normal;
181
+ color: var(--#{$prefix}dropdown-link-color);
182
+ text-align: inherit; // For `<button>`s
183
+ text-decoration: if($link-decoration == none, null, none);
184
+ white-space: nowrap; // prevent links from randomly breaking onto new lines
185
+ background-color: transparent; // For `<button>`s
186
+ border: 0; // For `<button>`s
187
+ @include border-radius(var(--#{$prefix}dropdown-item-border-radius, 0));
188
+
189
+ &:hover,
190
+ &:focus {
191
+ color: var(--#{$prefix}dropdown-link-hover-color);
192
+ text-decoration: if($link-hover-decoration == underline, none, null);
193
+ @include gradient-bg(var(--#{$prefix}dropdown-link-hover-bg));
194
+ }
195
+
196
+ &.active,
197
+ &:active {
198
+ color: var(--#{$prefix}dropdown-link-active-color);
199
+ text-decoration: none;
200
+ @include gradient-bg(var(--#{$prefix}dropdown-link-active-bg));
201
+ }
202
+
203
+ &.disabled,
204
+ &:disabled {
205
+ color: var(--#{$prefix}dropdown-link-disabled-color);
206
+ pointer-events: none;
207
+ background-color: transparent;
208
+ // Remove CSS gradients if they're enabled
209
+ background-image: if($enable-gradients, none, null);
210
+ }
211
+ }
212
+
213
+ .dropdown-menu.show {
214
+ display: block;
215
+ }
216
+
217
+ // Dropdown section headers
218
+ .dropdown-header {
219
+ display: block;
220
+ padding: var(--#{$prefix}dropdown-header-padding-y) var(--#{$prefix}dropdown-header-padding-x);
221
+ margin-bottom: 0; // for use with heading elements
222
+ @include font-size($font-size-sm);
223
+ color: var(--#{$prefix}dropdown-header-color);
224
+ white-space: nowrap; // as with > li > a
225
+ }
226
+
227
+ // Dropdown text
228
+ .dropdown-item-text {
229
+ display: block;
230
+ padding: var(--#{$prefix}dropdown-item-padding-y) var(--#{$prefix}dropdown-item-padding-x);
231
+ color: var(--#{$prefix}dropdown-link-color);
232
+ }
233
+
234
+ // Dark dropdowns
235
+ .dropdown-menu-dark {
236
+ // scss-docs-start dropdown-dark-css-vars
237
+ --#{$prefix}dropdown-color: #{$dropdown-dark-color};
238
+ --#{$prefix}dropdown-bg: #{$dropdown-dark-bg};
239
+ --#{$prefix}dropdown-border-color: #{$dropdown-dark-border-color};
240
+ --#{$prefix}dropdown-box-shadow: #{$dropdown-dark-box-shadow};
241
+ --#{$prefix}dropdown-link-color: #{$dropdown-dark-link-color};
242
+ --#{$prefix}dropdown-link-hover-color: #{$dropdown-dark-link-hover-color};
243
+ --#{$prefix}dropdown-divider-bg: #{$dropdown-dark-divider-bg};
244
+ --#{$prefix}dropdown-link-hover-bg: #{$dropdown-dark-link-hover-bg};
245
+ --#{$prefix}dropdown-link-active-color: #{$dropdown-dark-link-active-color};
246
+ --#{$prefix}dropdown-link-active-bg: #{$dropdown-dark-link-active-bg};
247
+ --#{$prefix}dropdown-link-disabled-color: #{$dropdown-dark-link-disabled-color};
248
+ --#{$prefix}dropdown-header-color: #{$dropdown-dark-header-color};
249
+ // scss-docs-end dropdown-dark-css-vars
250
+ }
@@ -0,0 +1,9 @@
1
+ @import "forms/labels";
2
+ @import "forms/form-text";
3
+ @import "forms/form-control";
4
+ @import "forms/form-select";
5
+ @import "forms/form-check";
6
+ @import "forms/form-range";
7
+ @import "forms/floating-labels";
8
+ @import "forms/input-group";
9
+ @import "forms/validation";
@@ -0,0 +1,33 @@
1
+ // Row
2
+ //
3
+ // Rows contain your columns.
4
+
5
+ @if $enable-grid-classes {
6
+ .row {
7
+ @include make-row();
8
+
9
+ > * {
10
+ @include make-col-ready();
11
+ }
12
+ }
13
+ }
14
+
15
+ @if $enable-cssgrid {
16
+ .grid {
17
+ display: grid;
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
+
22
+ @include make-cssgrid();
23
+ }
24
+ }
25
+
26
+
27
+ // Columns
28
+ //
29
+ // Common styles for small and large grid columns
30
+
31
+ @if $enable-grid-classes {
32
+ @include make-grid-columns();
33
+ }
@@ -0,0 +1,10 @@
1
+ @import "helpers/clearfix";
2
+ @import "helpers/color-bg";
3
+ @import "helpers/colored-links";
4
+ @import "helpers/ratio";
5
+ @import "helpers/position";
6
+ @import "helpers/stacks";
7
+ @import "helpers/visually-hidden";
8
+ @import "helpers/stretched-link";
9
+ @import "helpers/text-truncation";
10
+ @import "helpers/vr";
@@ -0,0 +1,42 @@
1
+ // Responsive images (ensure images don't scale beyond their parents)
2
+ //
3
+ // This is purposefully opt-in via an explicit class rather than being the default for all `<img>`s.
4
+ // We previously tried the "images are responsive by default" approach in Bootstrap v2,
5
+ // and abandoned it in Bootstrap v3 because it breaks lots of third-party widgets (including Google Maps)
6
+ // which weren't expecting the images within themselves to be involuntarily resized.
7
+ // See also https://github.com/twbs/bootstrap/issues/18178
8
+ .img-fluid {
9
+ @include img-fluid();
10
+ }
11
+
12
+
13
+ // Image thumbnails
14
+ .img-thumbnail {
15
+ padding: $thumbnail-padding;
16
+ background-color: $thumbnail-bg;
17
+ border: $thumbnail-border-width solid $thumbnail-border-color;
18
+ @include border-radius($thumbnail-border-radius);
19
+ @include box-shadow($thumbnail-box-shadow);
20
+
21
+ // Keep them at most 100% wide
22
+ @include img-fluid();
23
+ }
24
+
25
+ //
26
+ // Figures
27
+ //
28
+
29
+ .figure {
30
+ // Ensures the caption's text aligns with the image.
31
+ display: inline-block;
32
+ }
33
+
34
+ .figure-img {
35
+ margin-bottom: $spacer * .5;
36
+ line-height: 1;
37
+ }
38
+
39
+ .figure-caption {
40
+ @include font-size($figure-caption-font-size);
41
+ color: $figure-caption-color;
42
+ }
@@ -0,0 +1,204 @@
1
+ // Base class
2
+ //
3
+ // Easily usable on <ul>, <ol>, or <div>.
4
+
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
+
26
+ display: flex;
27
+ flex-direction: column;
28
+
29
+ // No need to set list-style: none; since .list-group-item is block level
30
+ padding-left: 0; // reset padding because ul and ol
31
+ margin-bottom: 0;
32
+ @include border-radius(var(--#{$prefix}list-group-border-radius));
33
+ }
34
+
35
+ .list-group-numbered {
36
+ list-style-type: none;
37
+ counter-reset: section;
38
+
39
+ > .list-group-item::before {
40
+ // Increments only this instance of the section counter
41
+ content: counters(section, ".") ". ";
42
+ counter-increment: section;
43
+ }
44
+ }
45
+
46
+ // Interactive list items
47
+ //
48
+ // Use anchor or button elements instead of `li`s or `div`s to create interactive
49
+ // list items. Includes an extra `.active` modifier class for selected items.
50
+
51
+ .list-group-item-action {
52
+ width: 100%; // For `<button>`s (anchors become 100% by default though)
53
+ color: var(--#{$prefix}list-group-action-color);
54
+ text-align: inherit; // For `<button>`s (anchors inherit)
55
+
56
+ // Hover state
57
+ &:hover,
58
+ &:focus {
59
+ z-index: 1; // Place hover/focus items above their siblings for proper border styling
60
+ color: var(--#{$prefix}list-group-action-hover-color);
61
+ text-decoration: none;
62
+ background-color: var(--#{$prefix}list-group-action-hover-bg);
63
+ }
64
+
65
+ &:active {
66
+ color: var(--#{$prefix}list-group-action-active-color);
67
+ background-color: var(--#{$prefix}list-group-action-active-bg);
68
+ }
69
+ }
70
+
71
+ // Individual list items
72
+ //
73
+ // Use on `li`s or `div`s within the `.list-group` parent.
74
+
75
+ .list-group-item {
76
+ position: relative;
77
+ display: block;
78
+ padding: var(--#{$prefix}list-group-item-padding-y) var(--#{$prefix}list-group-item-padding-x);
79
+ color: var(--#{$prefix}list-group-color);
80
+ text-decoration: if($link-decoration == none, null, none);
81
+ background-color: var(--#{$prefix}list-group-bg);
82
+ border: var(--#{$prefix}list-group-border-width) solid var(--#{$prefix}list-group-border-color);
83
+
84
+ &:first-child {
85
+ @include border-top-radius(inherit);
86
+ }
87
+
88
+ &:last-child {
89
+ @include border-bottom-radius(inherit);
90
+ }
91
+
92
+ &.disabled,
93
+ &:disabled {
94
+ color: var(--#{$prefix}list-group-disabled-color);
95
+ pointer-events: none;
96
+ background-color: var(--#{$prefix}list-group-disabled-bg);
97
+ }
98
+
99
+ // Include both here for `<a>`s and `<button>`s
100
+ &.active {
101
+ z-index: 2; // Place active items above their siblings for proper border styling
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);
105
+ }
106
+
107
+ // stylelint-disable-next-line scss/selector-no-redundant-nesting-selector
108
+ & + .list-group-item {
109
+ border-top-width: 0;
110
+
111
+ &.active {
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);
114
+ }
115
+ }
116
+ }
117
+
118
+ // Horizontal
119
+ //
120
+ // Change the layout of list group items from vertical (default) to horizontal.
121
+
122
+ @each $breakpoint in map-keys($grid-breakpoints) {
123
+ @include media-breakpoint-up($breakpoint) {
124
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
125
+
126
+ .list-group-horizontal#{$infix} {
127
+ flex-direction: row;
128
+
129
+ > .list-group-item {
130
+ &:first-child:not(:last-child) {
131
+ @include border-bottom-start-radius(var(--#{$prefix}list-group-border-radius));
132
+ @include border-top-end-radius(0);
133
+ }
134
+
135
+ &:last-child:not(:first-child) {
136
+ @include border-top-end-radius(var(--#{$prefix}list-group-border-radius));
137
+ @include border-bottom-start-radius(0);
138
+ }
139
+
140
+ &.active {
141
+ margin-top: 0;
142
+ }
143
+
144
+ + .list-group-item {
145
+ border-top-width: var(--#{$prefix}list-group-border-width);
146
+ border-left-width: 0;
147
+
148
+ &.active {
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);
151
+ }
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+
158
+
159
+ // Flush list items
160
+ //
161
+ // Remove borders and border-radius to keep list group items edge-to-edge. Most
162
+ // useful within other components (e.g., cards).
163
+
164
+ .list-group-flush {
165
+ @include border-radius(0);
166
+
167
+ > .list-group-item {
168
+ border-width: 0 0 var(--#{$prefix}list-group-border-width);
169
+
170
+ &:last-child {
171
+ border-bottom-width: 0;
172
+ }
173
+ }
174
+ }
175
+
176
+
177
+ // scss-docs-start list-group-modifiers
178
+ // List group contextual variants
179
+ //
180
+ // Add modifier classes to change text and background color on individual items.
181
+ // Organizationally, this must come after the `:hover` states.
182
+
183
+ @each $state in map-keys($theme-colors) {
184
+ .list-group-item-#{$state} {
185
+ --#{$prefix}list-group-color: var(--#{$prefix}#{$state}-text);
186
+ --#{$prefix}list-group-bg: var(--#{$prefix}#{$state}-bg-subtle);
187
+ --#{$prefix}list-group-border-color: var(--#{$prefix}#{$state}-border-subtle);
188
+
189
+ &.list-group-item-action {
190
+ &:hover,
191
+ &:focus {
192
+ --#{$prefix}list-group-action-hover-color: var(--#{$prefix}emphasis-color);
193
+ --#{$prefix}list-group-action-hover-bg: var(--#{$prefix}#{$state}-border-subtle);
194
+ }
195
+
196
+ &:active {
197
+ --#{$prefix}list-group-active-color: var(--#{$prefix}emphasis-color);
198
+ --#{$prefix}list-group-active-bg: var(--#{$prefix}#{$state}-text);
199
+ --#{$prefix}list-group-active-border-color: var(--#{$prefix}#{$state}-text);
200
+ }
201
+ }
202
+ }
203
+ }
204
+ // scss-docs-end list-group-modifiers
@@ -0,0 +1,121 @@
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
+ $theme-colors-text: (
10
+ "primary": $primary-text,
11
+ "secondary": $secondary-text,
12
+ "success": $success-text,
13
+ "info": $info-text,
14
+ "warning": $warning-text,
15
+ "danger": $danger-text,
16
+ "light": $light-text,
17
+ "dark": $dark-text,
18
+ ) !default;
19
+
20
+ $theme-colors-bg-subtle: (
21
+ "primary": $primary-bg-subtle,
22
+ "secondary": $secondary-bg-subtle,
23
+ "success": $success-bg-subtle,
24
+ "info": $info-bg-subtle,
25
+ "warning": $warning-bg-subtle,
26
+ "danger": $danger-bg-subtle,
27
+ "light": $light-bg-subtle,
28
+ "dark": $dark-bg-subtle,
29
+ ) !default;
30
+
31
+ $theme-colors-border-subtle: (
32
+ "primary": $primary-border-subtle,
33
+ "secondary": $secondary-border-subtle,
34
+ "success": $success-border-subtle,
35
+ "info": $info-border-subtle,
36
+ "warning": $warning-border-subtle,
37
+ "danger": $danger-border-subtle,
38
+ "light": $light-border-subtle,
39
+ "dark": $dark-border-subtle,
40
+ ) !default;
41
+
42
+ // Utilities maps
43
+ //
44
+ // Extends the default `$theme-colors` maps to help create our utilities.
45
+
46
+ // Come v6, we'll de-dupe these variables. Until then, for backward compatibility, we keep them to reassign.
47
+ // scss-docs-start utilities-colors
48
+ $utilities-colors: $theme-colors-rgb !default;
49
+ // scss-docs-end utilities-colors
50
+
51
+ // scss-docs-start utilities-text-colors
52
+ $utilities-text: map-merge(
53
+ $utilities-colors,
54
+ (
55
+ "black": to-rgb($black),
56
+ "white": to-rgb($white),
57
+ "body": to-rgb($body-color)
58
+ )
59
+ ) !default;
60
+ $utilities-text-colors: map-loop($utilities-text, rgba-css-var, "$key", "text") !default;
61
+
62
+ $utilities-text-emphasis-colors: (
63
+ "primary-emphasis": var(--#{$prefix}primary-text),
64
+ "secondary-emphasis": var(--#{$prefix}secondary-text),
65
+ "success-emphasis": var(--#{$prefix}success-text),
66
+ "info-emphasis": var(--#{$prefix}info-text),
67
+ "warning-emphasis": var(--#{$prefix}warning-text),
68
+ "danger-emphasis": var(--#{$prefix}danger-text),
69
+ "light-emphasis": var(--#{$prefix}light-text),
70
+ "dark-emphasis": var(--#{$prefix}dark-text)
71
+ ) !default;
72
+ // scss-docs-end utilities-text-colors
73
+
74
+ // scss-docs-start utilities-bg-colors
75
+ $utilities-bg: map-merge(
76
+ $utilities-colors,
77
+ (
78
+ "black": to-rgb($black),
79
+ "white": to-rgb($white),
80
+ "body": to-rgb($body-bg)
81
+ )
82
+ ) !default;
83
+ $utilities-bg-colors: map-loop($utilities-bg, rgba-css-var, "$key", "bg") !default;
84
+
85
+ $utilities-bg-subtle: (
86
+ "primary-subtle": var(--#{$prefix}primary-bg-subtle),
87
+ "secondary-subtle": var(--#{$prefix}secondary-bg-subtle),
88
+ "success-subtle": var(--#{$prefix}success-bg-subtle),
89
+ "info-subtle": var(--#{$prefix}info-bg-subtle),
90
+ "warning-subtle": var(--#{$prefix}warning-bg-subtle),
91
+ "danger-subtle": var(--#{$prefix}danger-bg-subtle),
92
+ "light-subtle": var(--#{$prefix}light-bg-subtle),
93
+ "dark-subtle": var(--#{$prefix}dark-bg-subtle)
94
+ ) !default;
95
+ // $utilities-bg-subtle-colors: map-loop($utilities-bg-subtle, rgba-css-var, "$key", "bg") !default;
96
+ // scss-docs-end utilities-bg-colors
97
+
98
+ // scss-docs-start utilities-border-colors
99
+ $utilities-border: map-merge(
100
+ $utilities-colors,
101
+ (
102
+ "white": to-rgb($white)
103
+ )
104
+ ) !default;
105
+ $utilities-border-colors: map-loop($utilities-border, rgba-css-var, "$key", "border") !default;
106
+
107
+ $utilities-border-subtle: (
108
+ "primary-subtle": var(--#{$prefix}primary-border-subtle),
109
+ "secondary-subtle": var(--#{$prefix}secondary-border-subtle),
110
+ "success-subtle": var(--#{$prefix}success-border-subtle),
111
+ "info-subtle": var(--#{$prefix}info-border-subtle),
112
+ "warning-subtle": var(--#{$prefix}warning-border-subtle),
113
+ "danger-subtle": var(--#{$prefix}danger-border-subtle),
114
+ "light-subtle": var(--#{$prefix}light-border-subtle),
115
+ "dark-subtle": var(--#{$prefix}dark-border-subtle)
116
+ ) !default;
117
+ // scss-docs-end utilities-border-colors
118
+
119
+ $negative-spacers: if($enable-negative-margins, negativify-map($spacers), null) !default;
120
+
121
+ $gutters: $spacers !default;