django-cotton-bs5 0.2.1__py3-none-any.whl

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 (161) hide show
  1. cotton_bs5/__init__.py +0 -0
  2. cotton_bs5/apps.py +5 -0
  3. cotton_bs5/static/_variables.scss +61 -0
  4. cotton_bs5/static/bs5/_accordion.scss +158 -0
  5. cotton_bs5/static/bs5/_alert.scss +68 -0
  6. cotton_bs5/static/bs5/_badge.scss +38 -0
  7. cotton_bs5/static/bs5/_breadcrumb.scss +40 -0
  8. cotton_bs5/static/bs5/_button-group.scss +142 -0
  9. cotton_bs5/static/bs5/_buttons.scss +216 -0
  10. cotton_bs5/static/bs5/_card.scss +239 -0
  11. cotton_bs5/static/bs5/_carousel.scss +236 -0
  12. cotton_bs5/static/bs5/_close.scss +63 -0
  13. cotton_bs5/static/bs5/_containers.scss +41 -0
  14. cotton_bs5/static/bs5/_dropdown.scss +250 -0
  15. cotton_bs5/static/bs5/_forms.scss +9 -0
  16. cotton_bs5/static/bs5/_functions.scss +302 -0
  17. cotton_bs5/static/bs5/_grid.scss +39 -0
  18. cotton_bs5/static/bs5/_helpers.scss +12 -0
  19. cotton_bs5/static/bs5/_images.scss +42 -0
  20. cotton_bs5/static/bs5/_list-group.scss +197 -0
  21. cotton_bs5/static/bs5/_maps.scss +174 -0
  22. cotton_bs5/static/bs5/_mixins.scss +42 -0
  23. cotton_bs5/static/bs5/_modal.scss +236 -0
  24. cotton_bs5/static/bs5/_nav.scss +197 -0
  25. cotton_bs5/static/bs5/_navbar.scss +289 -0
  26. cotton_bs5/static/bs5/_offcanvas.scss +143 -0
  27. cotton_bs5/static/bs5/_pagination.scss +109 -0
  28. cotton_bs5/static/bs5/_placeholders.scss +51 -0
  29. cotton_bs5/static/bs5/_popover.scss +196 -0
  30. cotton_bs5/static/bs5/_progress.scss +68 -0
  31. cotton_bs5/static/bs5/_reboot.scss +611 -0
  32. cotton_bs5/static/bs5/_root.scss +187 -0
  33. cotton_bs5/static/bs5/_spinners.scss +85 -0
  34. cotton_bs5/static/bs5/_tables.scss +171 -0
  35. cotton_bs5/static/bs5/_toasts.scss +73 -0
  36. cotton_bs5/static/bs5/_tooltip.scss +119 -0
  37. cotton_bs5/static/bs5/_transitions.scss +27 -0
  38. cotton_bs5/static/bs5/_type.scss +106 -0
  39. cotton_bs5/static/bs5/_utilities.scss +806 -0
  40. cotton_bs5/static/bs5/_variables-dark.scss +87 -0
  41. cotton_bs5/static/bs5/_variables.scss +1751 -0
  42. cotton_bs5/static/bs5/bootstrap-grid.scss +62 -0
  43. cotton_bs5/static/bs5/bootstrap-reboot.scss +10 -0
  44. cotton_bs5/static/bs5/bootstrap-utilities.scss +19 -0
  45. cotton_bs5/static/bs5/bootstrap.scss +52 -0
  46. cotton_bs5/static/bs5/forms/_floating-labels.scss +95 -0
  47. cotton_bs5/static/bs5/forms/_form-check.scss +189 -0
  48. cotton_bs5/static/bs5/forms/_form-control.scss +214 -0
  49. cotton_bs5/static/bs5/forms/_form-range.scss +91 -0
  50. cotton_bs5/static/bs5/forms/_form-select.scss +80 -0
  51. cotton_bs5/static/bs5/forms/_form-text.scss +11 -0
  52. cotton_bs5/static/bs5/forms/_input-group.scss +132 -0
  53. cotton_bs5/static/bs5/forms/_labels.scss +36 -0
  54. cotton_bs5/static/bs5/forms/_validation.scss +12 -0
  55. cotton_bs5/static/bs5/helpers/_clearfix.scss +3 -0
  56. cotton_bs5/static/bs5/helpers/_color-bg.scss +7 -0
  57. cotton_bs5/static/bs5/helpers/_colored-links.scss +30 -0
  58. cotton_bs5/static/bs5/helpers/_focus-ring.scss +5 -0
  59. cotton_bs5/static/bs5/helpers/_icon-link.scss +25 -0
  60. cotton_bs5/static/bs5/helpers/_position.scss +36 -0
  61. cotton_bs5/static/bs5/helpers/_ratio.scss +26 -0
  62. cotton_bs5/static/bs5/helpers/_stacks.scss +15 -0
  63. cotton_bs5/static/bs5/helpers/_stretched-link.scss +15 -0
  64. cotton_bs5/static/bs5/helpers/_text-truncation.scss +7 -0
  65. cotton_bs5/static/bs5/helpers/_visually-hidden.scss +8 -0
  66. cotton_bs5/static/bs5/helpers/_vr.scss +8 -0
  67. cotton_bs5/static/bs5/mixins/_alert.scss +18 -0
  68. cotton_bs5/static/bs5/mixins/_backdrop.scss +14 -0
  69. cotton_bs5/static/bs5/mixins/_banner.scss +7 -0
  70. cotton_bs5/static/bs5/mixins/_border-radius.scss +78 -0
  71. cotton_bs5/static/bs5/mixins/_box-shadow.scss +18 -0
  72. cotton_bs5/static/bs5/mixins/_breakpoints.scss +127 -0
  73. cotton_bs5/static/bs5/mixins/_buttons.scss +70 -0
  74. cotton_bs5/static/bs5/mixins/_caret.scss +69 -0
  75. cotton_bs5/static/bs5/mixins/_clearfix.scss +9 -0
  76. cotton_bs5/static/bs5/mixins/_color-mode.scss +21 -0
  77. cotton_bs5/static/bs5/mixins/_color-scheme.scss +7 -0
  78. cotton_bs5/static/bs5/mixins/_container.scss +11 -0
  79. cotton_bs5/static/bs5/mixins/_deprecate.scss +10 -0
  80. cotton_bs5/static/bs5/mixins/_forms.scss +163 -0
  81. cotton_bs5/static/bs5/mixins/_gradients.scss +47 -0
  82. cotton_bs5/static/bs5/mixins/_grid.scss +151 -0
  83. cotton_bs5/static/bs5/mixins/_image.scss +16 -0
  84. cotton_bs5/static/bs5/mixins/_list-group.scss +26 -0
  85. cotton_bs5/static/bs5/mixins/_lists.scss +7 -0
  86. cotton_bs5/static/bs5/mixins/_pagination.scss +10 -0
  87. cotton_bs5/static/bs5/mixins/_reset-text.scss +17 -0
  88. cotton_bs5/static/bs5/mixins/_resize.scss +6 -0
  89. cotton_bs5/static/bs5/mixins/_table-variants.scss +24 -0
  90. cotton_bs5/static/bs5/mixins/_text-truncate.scss +8 -0
  91. cotton_bs5/static/bs5/mixins/_transition.scss +26 -0
  92. cotton_bs5/static/bs5/mixins/_utilities.scss +97 -0
  93. cotton_bs5/static/bs5/mixins/_visually-hidden.scss +33 -0
  94. cotton_bs5/static/bs5/utilities/_api.scss +47 -0
  95. cotton_bs5/static/bs5/vendor/_rfs.scss +348 -0
  96. cotton_bs5/static/stylesheet.scss +120 -0
  97. cotton_bs5/templates/cotton/accordion/body.html +6 -0
  98. cotton_bs5/templates/cotton/accordion/header.html +12 -0
  99. cotton_bs5/templates/cotton/accordion/index.html +6 -0
  100. cotton_bs5/templates/cotton/accordion/item.html +8 -0
  101. cotton_bs5/templates/cotton/alert.html +11 -0
  102. cotton_bs5/templates/cotton/badge.html +6 -0
  103. cotton_bs5/templates/cotton/breadcrumbs/index.html +9 -0
  104. cotton_bs5/templates/cotton/breadcrumbs/item.html +13 -0
  105. cotton_bs5/templates/cotton/button/dismiss.html +9 -0
  106. cotton_bs5/templates/cotton/button/index.html +15 -0
  107. cotton_bs5/templates/cotton/button_group.html +9 -0
  108. cotton_bs5/templates/cotton/card/body.html +4 -0
  109. cotton_bs5/templates/cotton/card/footer.html +4 -0
  110. cotton_bs5/templates/cotton/card/header.html +4 -0
  111. cotton_bs5/templates/cotton/card/index.html +13 -0
  112. cotton_bs5/templates/cotton/card/subtitle.html +2 -0
  113. cotton_bs5/templates/cotton/card/title.html +2 -0
  114. cotton_bs5/templates/cotton/carousel/button.html +9 -0
  115. cotton_bs5/templates/cotton/carousel/caption.html +4 -0
  116. cotton_bs5/templates/cotton/carousel/index.html +12 -0
  117. cotton_bs5/templates/cotton/carousel/item.html +5 -0
  118. cotton_bs5/templates/cotton/collapse.html +11 -0
  119. cotton_bs5/templates/cotton/dropdown/divider.html +1 -0
  120. cotton_bs5/templates/cotton/dropdown/header.html +4 -0
  121. cotton_bs5/templates/cotton/dropdown/index.html +11 -0
  122. cotton_bs5/templates/cotton/dropdown/item.html +15 -0
  123. cotton_bs5/templates/cotton/dropdown/toggle.html +15 -0
  124. cotton_bs5/templates/cotton/grid/col.html +5 -0
  125. cotton_bs5/templates/cotton/grid/index.html +5 -0
  126. cotton_bs5/templates/cotton/list_group/index.html +11 -0
  127. cotton_bs5/templates/cotton/list_group/item.html +9 -0
  128. cotton_bs5/templates/cotton/modal/body.html +1 -0
  129. cotton_bs5/templates/cotton/modal/footer.html +3 -0
  130. cotton_bs5/templates/cotton/modal/header.html +8 -0
  131. cotton_bs5/templates/cotton/modal/index.html +23 -0
  132. cotton_bs5/templates/cotton/modal/title.html +3 -0
  133. cotton_bs5/templates/cotton/nav/index.html +5 -0
  134. cotton_bs5/templates/cotton/nav/link.html +4 -0
  135. cotton_bs5/templates/cotton/navbar/index.html +26 -0
  136. cotton_bs5/templates/cotton/navbar/link.html +9 -0
  137. cotton_bs5/templates/cotton/navbar/links.html +4 -0
  138. cotton_bs5/templates/cotton/offcanvas/body.html +2 -0
  139. cotton_bs5/templates/cotton/offcanvas/footer.html +6 -0
  140. cotton_bs5/templates/cotton/offcanvas/header.html +5 -0
  141. cotton_bs5/templates/cotton/offcanvas/index.html +7 -0
  142. cotton_bs5/templates/cotton/offcanvas/title.html +2 -0
  143. cotton_bs5/templates/cotton/pagination/index.html +6 -0
  144. cotton_bs5/templates/cotton/pagination/link.html +14 -0
  145. cotton_bs5/templates/cotton/placeholder.html +4 -0
  146. cotton_bs5/templates/cotton/progress.html +24 -0
  147. cotton_bs5/templates/cotton/ratio.html +5 -0
  148. cotton_bs5/templates/cotton/spinner.html +9 -0
  149. cotton_bs5/templates/cotton/table.html +15 -0
  150. cotton_bs5/templates/cotton/tabs/content.html +4 -0
  151. cotton_bs5/templates/cotton/tabs/index.html +13 -0
  152. cotton_bs5/templates/cotton/tabs/item.html +18 -0
  153. cotton_bs5/templates/cotton/tabs/pane.html +11 -0
  154. cotton_bs5/templates/cotton/toast/activate.html +17 -0
  155. cotton_bs5/templates/cotton/toast/body.html +3 -0
  156. cotton_bs5/templates/cotton/toast/header.html +5 -0
  157. cotton_bs5/templates/cotton/toast/index.html +9 -0
  158. django_cotton_bs5-0.2.1.dist-info/LICENSE +21 -0
  159. django_cotton_bs5-0.2.1.dist-info/METADATA +78 -0
  160. django_cotton_bs5-0.2.1.dist-info/RECORD +161 -0
  161. django_cotton_bs5-0.2.1.dist-info/WHEEL +4 -0
@@ -0,0 +1,12 @@
1
+ @import "helpers/clearfix";
2
+ @import "helpers/color-bg";
3
+ @import "helpers/colored-links";
4
+ @import "helpers/focus-ring";
5
+ @import "helpers/icon-link";
6
+ @import "helpers/ratio";
7
+ @import "helpers/position";
8
+ @import "helpers/stacks";
9
+ @import "helpers/visually-hidden";
10
+ @import "helpers/stretched-link";
11
+ @import "helpers/text-truncation";
12
+ @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,197 @@
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-emphasis);
186
+ --#{$prefix}list-group-bg: var(--#{$prefix}#{$state}-bg-subtle);
187
+ --#{$prefix}list-group-border-color: var(--#{$prefix}#{$state}-border-subtle);
188
+ --#{$prefix}list-group-action-hover-color: var(--#{$prefix}emphasis-color);
189
+ --#{$prefix}list-group-action-hover-bg: var(--#{$prefix}#{$state}-border-subtle);
190
+ --#{$prefix}list-group-action-active-color: var(--#{$prefix}emphasis-color);
191
+ --#{$prefix}list-group-action-active-bg: var(--#{$prefix}#{$state}-border-subtle);
192
+ --#{$prefix}list-group-active-color: var(--#{$prefix}#{$state}-bg-subtle);
193
+ --#{$prefix}list-group-active-bg: var(--#{$prefix}#{$state}-text-emphasis);
194
+ --#{$prefix}list-group-active-border-color: var(--#{$prefix}#{$state}-text-emphasis);
195
+ }
196
+ }
197
+ // scss-docs-end list-group-modifiers
@@ -0,0 +1,174 @@
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
+ // scss-docs-start theme-text-map
10
+ $theme-colors-text: (
11
+ "primary": $primary-text-emphasis,
12
+ "secondary": $secondary-text-emphasis,
13
+ "success": $success-text-emphasis,
14
+ "info": $info-text-emphasis,
15
+ "warning": $warning-text-emphasis,
16
+ "danger": $danger-text-emphasis,
17
+ "light": $light-text-emphasis,
18
+ "dark": $dark-text-emphasis,
19
+ ) !default;
20
+ // scss-docs-end theme-text-map
21
+
22
+ // scss-docs-start theme-bg-subtle-map
23
+ $theme-colors-bg-subtle: (
24
+ "primary": $primary-bg-subtle,
25
+ "secondary": $secondary-bg-subtle,
26
+ "success": $success-bg-subtle,
27
+ "info": $info-bg-subtle,
28
+ "warning": $warning-bg-subtle,
29
+ "danger": $danger-bg-subtle,
30
+ "light": $light-bg-subtle,
31
+ "dark": $dark-bg-subtle,
32
+ ) !default;
33
+ // scss-docs-end theme-bg-subtle-map
34
+
35
+ // scss-docs-start theme-border-subtle-map
36
+ $theme-colors-border-subtle: (
37
+ "primary": $primary-border-subtle,
38
+ "secondary": $secondary-border-subtle,
39
+ "success": $success-border-subtle,
40
+ "info": $info-border-subtle,
41
+ "warning": $warning-border-subtle,
42
+ "danger": $danger-border-subtle,
43
+ "light": $light-border-subtle,
44
+ "dark": $dark-border-subtle,
45
+ ) !default;
46
+ // scss-docs-end theme-border-subtle-map
47
+
48
+ $theme-colors-text-dark: null !default;
49
+ $theme-colors-bg-subtle-dark: null !default;
50
+ $theme-colors-border-subtle-dark: null !default;
51
+
52
+ @if $enable-dark-mode {
53
+ // scss-docs-start theme-text-dark-map
54
+ $theme-colors-text-dark: (
55
+ "primary": $primary-text-emphasis-dark,
56
+ "secondary": $secondary-text-emphasis-dark,
57
+ "success": $success-text-emphasis-dark,
58
+ "info": $info-text-emphasis-dark,
59
+ "warning": $warning-text-emphasis-dark,
60
+ "danger": $danger-text-emphasis-dark,
61
+ "light": $light-text-emphasis-dark,
62
+ "dark": $dark-text-emphasis-dark,
63
+ ) !default;
64
+ // scss-docs-end theme-text-dark-map
65
+
66
+ // scss-docs-start theme-bg-subtle-dark-map
67
+ $theme-colors-bg-subtle-dark: (
68
+ "primary": $primary-bg-subtle-dark,
69
+ "secondary": $secondary-bg-subtle-dark,
70
+ "success": $success-bg-subtle-dark,
71
+ "info": $info-bg-subtle-dark,
72
+ "warning": $warning-bg-subtle-dark,
73
+ "danger": $danger-bg-subtle-dark,
74
+ "light": $light-bg-subtle-dark,
75
+ "dark": $dark-bg-subtle-dark,
76
+ ) !default;
77
+ // scss-docs-end theme-bg-subtle-dark-map
78
+
79
+ // scss-docs-start theme-border-subtle-dark-map
80
+ $theme-colors-border-subtle-dark: (
81
+ "primary": $primary-border-subtle-dark,
82
+ "secondary": $secondary-border-subtle-dark,
83
+ "success": $success-border-subtle-dark,
84
+ "info": $info-border-subtle-dark,
85
+ "warning": $warning-border-subtle-dark,
86
+ "danger": $danger-border-subtle-dark,
87
+ "light": $light-border-subtle-dark,
88
+ "dark": $dark-border-subtle-dark,
89
+ ) !default;
90
+ // scss-docs-end theme-border-subtle-dark-map
91
+ }
92
+
93
+ // Utilities maps
94
+ //
95
+ // Extends the default `$theme-colors` maps to help create our utilities.
96
+
97
+ // Come v6, we'll de-dupe these variables. Until then, for backward compatibility, we keep them to reassign.
98
+ // scss-docs-start utilities-colors
99
+ $utilities-colors: $theme-colors-rgb !default;
100
+ // scss-docs-end utilities-colors
101
+
102
+ // scss-docs-start utilities-text-colors
103
+ $utilities-text: map-merge(
104
+ $utilities-colors,
105
+ (
106
+ "black": to-rgb($black),
107
+ "white": to-rgb($white),
108
+ "body": to-rgb($body-color)
109
+ )
110
+ ) !default;
111
+ $utilities-text-colors: map-loop($utilities-text, rgba-css-var, "$key", "text") !default;
112
+
113
+ $utilities-text-emphasis-colors: (
114
+ "primary-emphasis": var(--#{$prefix}primary-text-emphasis),
115
+ "secondary-emphasis": var(--#{$prefix}secondary-text-emphasis),
116
+ "success-emphasis": var(--#{$prefix}success-text-emphasis),
117
+ "info-emphasis": var(--#{$prefix}info-text-emphasis),
118
+ "warning-emphasis": var(--#{$prefix}warning-text-emphasis),
119
+ "danger-emphasis": var(--#{$prefix}danger-text-emphasis),
120
+ "light-emphasis": var(--#{$prefix}light-text-emphasis),
121
+ "dark-emphasis": var(--#{$prefix}dark-text-emphasis)
122
+ ) !default;
123
+ // scss-docs-end utilities-text-colors
124
+
125
+ // scss-docs-start utilities-bg-colors
126
+ $utilities-bg: map-merge(
127
+ $utilities-colors,
128
+ (
129
+ "black": to-rgb($black),
130
+ "white": to-rgb($white),
131
+ "body": to-rgb($body-bg)
132
+ )
133
+ ) !default;
134
+ $utilities-bg-colors: map-loop($utilities-bg, rgba-css-var, "$key", "bg") !default;
135
+
136
+ $utilities-bg-subtle: (
137
+ "primary-subtle": var(--#{$prefix}primary-bg-subtle),
138
+ "secondary-subtle": var(--#{$prefix}secondary-bg-subtle),
139
+ "success-subtle": var(--#{$prefix}success-bg-subtle),
140
+ "info-subtle": var(--#{$prefix}info-bg-subtle),
141
+ "warning-subtle": var(--#{$prefix}warning-bg-subtle),
142
+ "danger-subtle": var(--#{$prefix}danger-bg-subtle),
143
+ "light-subtle": var(--#{$prefix}light-bg-subtle),
144
+ "dark-subtle": var(--#{$prefix}dark-bg-subtle)
145
+ ) !default;
146
+ // scss-docs-end utilities-bg-colors
147
+
148
+ // scss-docs-start utilities-border-colors
149
+ $utilities-border: map-merge(
150
+ $utilities-colors,
151
+ (
152
+ "black": to-rgb($black),
153
+ "white": to-rgb($white)
154
+ )
155
+ ) !default;
156
+ $utilities-border-colors: map-loop($utilities-border, rgba-css-var, "$key", "border") !default;
157
+
158
+ $utilities-border-subtle: (
159
+ "primary-subtle": var(--#{$prefix}primary-border-subtle),
160
+ "secondary-subtle": var(--#{$prefix}secondary-border-subtle),
161
+ "success-subtle": var(--#{$prefix}success-border-subtle),
162
+ "info-subtle": var(--#{$prefix}info-border-subtle),
163
+ "warning-subtle": var(--#{$prefix}warning-border-subtle),
164
+ "danger-subtle": var(--#{$prefix}danger-border-subtle),
165
+ "light-subtle": var(--#{$prefix}light-border-subtle),
166
+ "dark-subtle": var(--#{$prefix}dark-border-subtle)
167
+ ) !default;
168
+ // scss-docs-end utilities-border-colors
169
+
170
+ $utilities-links-underline: map-loop($utilities-colors, rgba-css-var, "$key", "link-underline") !default;
171
+
172
+ $negative-spacers: if($enable-negative-margins, negativify-map($spacers), null) !default;
173
+
174
+ $gutters: $spacers !default;
@@ -0,0 +1,42 @@
1
+ // Toggles
2
+ //
3
+ // Used in conjunction with global variables to enable certain theme features.
4
+
5
+ // Vendor
6
+ @import "vendor/rfs";
7
+
8
+ // Deprecate
9
+ @import "mixins/deprecate";
10
+
11
+ // Helpers
12
+ @import "mixins/breakpoints";
13
+ @import "mixins/color-mode";
14
+ @import "mixins/color-scheme";
15
+ @import "mixins/image";
16
+ @import "mixins/resize";
17
+ @import "mixins/visually-hidden";
18
+ @import "mixins/reset-text";
19
+ @import "mixins/text-truncate";
20
+
21
+ // Utilities
22
+ @import "mixins/utilities";
23
+
24
+ // Components
25
+ @import "mixins/backdrop";
26
+ @import "mixins/buttons";
27
+ @import "mixins/caret";
28
+ @import "mixins/pagination";
29
+ @import "mixins/lists";
30
+ @import "mixins/forms";
31
+ @import "mixins/table-variants";
32
+
33
+ // Skins
34
+ @import "mixins/border-radius";
35
+ @import "mixins/box-shadow";
36
+ @import "mixins/gradients";
37
+ @import "mixins/transition";
38
+
39
+ // Layout
40
+ @import "mixins/clearfix";
41
+ @import "mixins/container";
42
+ @import "mixins/grid";