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,196 @@
1
+ .popover {
2
+ // scss-docs-start popover-css-vars
3
+ --#{$prefix}popover-zindex: #{$zindex-popover};
4
+ --#{$prefix}popover-max-width: #{$popover-max-width};
5
+ @include rfs($popover-font-size, --#{$prefix}popover-font-size);
6
+ --#{$prefix}popover-bg: #{$popover-bg};
7
+ --#{$prefix}popover-border-width: #{$popover-border-width};
8
+ --#{$prefix}popover-border-color: #{$popover-border-color};
9
+ --#{$prefix}popover-border-radius: #{$popover-border-radius};
10
+ --#{$prefix}popover-inner-border-radius: #{$popover-inner-border-radius};
11
+ --#{$prefix}popover-box-shadow: #{$popover-box-shadow};
12
+ --#{$prefix}popover-header-padding-x: #{$popover-header-padding-x};
13
+ --#{$prefix}popover-header-padding-y: #{$popover-header-padding-y};
14
+ @include rfs($popover-header-font-size, --#{$prefix}popover-header-font-size);
15
+ --#{$prefix}popover-header-color: #{$popover-header-color};
16
+ --#{$prefix}popover-header-bg: #{$popover-header-bg};
17
+ --#{$prefix}popover-body-padding-x: #{$popover-body-padding-x};
18
+ --#{$prefix}popover-body-padding-y: #{$popover-body-padding-y};
19
+ --#{$prefix}popover-body-color: #{$popover-body-color};
20
+ --#{$prefix}popover-arrow-width: #{$popover-arrow-width};
21
+ --#{$prefix}popover-arrow-height: #{$popover-arrow-height};
22
+ --#{$prefix}popover-arrow-border: var(--#{$prefix}popover-border-color);
23
+ // scss-docs-end popover-css-vars
24
+
25
+ z-index: var(--#{$prefix}popover-zindex);
26
+ display: block;
27
+ max-width: var(--#{$prefix}popover-max-width);
28
+ // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
29
+ // So reset our font and text properties to avoid inheriting weird values.
30
+ @include reset-text();
31
+ @include font-size(var(--#{$prefix}popover-font-size));
32
+ // Allow breaking very long words so they don't overflow the popover's bounds
33
+ word-wrap: break-word;
34
+ background-color: var(--#{$prefix}popover-bg);
35
+ background-clip: padding-box;
36
+ border: var(--#{$prefix}popover-border-width) solid var(--#{$prefix}popover-border-color);
37
+ @include border-radius(var(--#{$prefix}popover-border-radius));
38
+ @include box-shadow(var(--#{$prefix}popover-box-shadow));
39
+
40
+ .popover-arrow {
41
+ display: block;
42
+ width: var(--#{$prefix}popover-arrow-width);
43
+ height: var(--#{$prefix}popover-arrow-height);
44
+
45
+ &::before,
46
+ &::after {
47
+ position: absolute;
48
+ display: block;
49
+ content: "";
50
+ border-color: transparent;
51
+ border-style: solid;
52
+ border-width: 0;
53
+ }
54
+ }
55
+ }
56
+
57
+ .bs-popover-top {
58
+ > .popover-arrow {
59
+ bottom: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
60
+
61
+ &::before,
62
+ &::after {
63
+ border-width: var(--#{$prefix}popover-arrow-height) calc(var(--#{$prefix}popover-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
64
+ }
65
+
66
+ &::before {
67
+ bottom: 0;
68
+ border-top-color: var(--#{$prefix}popover-arrow-border);
69
+ }
70
+
71
+ &::after {
72
+ bottom: var(--#{$prefix}popover-border-width);
73
+ border-top-color: var(--#{$prefix}popover-bg);
74
+ }
75
+ }
76
+ }
77
+
78
+ /* rtl:begin:ignore */
79
+ .bs-popover-end {
80
+ > .popover-arrow {
81
+ left: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
82
+ width: var(--#{$prefix}popover-arrow-height);
83
+ height: var(--#{$prefix}popover-arrow-width);
84
+
85
+ &::before,
86
+ &::after {
87
+ border-width: calc(var(--#{$prefix}popover-arrow-width) * .5) var(--#{$prefix}popover-arrow-height) calc(var(--#{$prefix}popover-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
88
+ }
89
+
90
+ &::before {
91
+ left: 0;
92
+ border-right-color: var(--#{$prefix}popover-arrow-border);
93
+ }
94
+
95
+ &::after {
96
+ left: var(--#{$prefix}popover-border-width);
97
+ border-right-color: var(--#{$prefix}popover-bg);
98
+ }
99
+ }
100
+ }
101
+
102
+ /* rtl:end:ignore */
103
+
104
+ .bs-popover-bottom {
105
+ > .popover-arrow {
106
+ top: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
107
+
108
+ &::before,
109
+ &::after {
110
+ border-width: 0 calc(var(--#{$prefix}popover-arrow-width) * .5) var(--#{$prefix}popover-arrow-height); // stylelint-disable-line function-disallowed-list
111
+ }
112
+
113
+ &::before {
114
+ top: 0;
115
+ border-bottom-color: var(--#{$prefix}popover-arrow-border);
116
+ }
117
+
118
+ &::after {
119
+ top: var(--#{$prefix}popover-border-width);
120
+ border-bottom-color: var(--#{$prefix}popover-bg);
121
+ }
122
+ }
123
+
124
+ // This will remove the popover-header's border just below the arrow
125
+ .popover-header::before {
126
+ position: absolute;
127
+ top: 0;
128
+ left: 50%;
129
+ display: block;
130
+ width: var(--#{$prefix}popover-arrow-width);
131
+ margin-left: calc(-.5 * var(--#{$prefix}popover-arrow-width)); // stylelint-disable-line function-disallowed-list
132
+ content: "";
133
+ border-bottom: var(--#{$prefix}popover-border-width) solid var(--#{$prefix}popover-header-bg);
134
+ }
135
+ }
136
+
137
+ /* rtl:begin:ignore */
138
+ .bs-popover-start {
139
+ > .popover-arrow {
140
+ right: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
141
+ width: var(--#{$prefix}popover-arrow-height);
142
+ height: var(--#{$prefix}popover-arrow-width);
143
+
144
+ &::before,
145
+ &::after {
146
+ border-width: calc(var(--#{$prefix}popover-arrow-width) * .5) 0 calc(var(--#{$prefix}popover-arrow-width) * .5) var(--#{$prefix}popover-arrow-height); // stylelint-disable-line function-disallowed-list
147
+ }
148
+
149
+ &::before {
150
+ right: 0;
151
+ border-left-color: var(--#{$prefix}popover-arrow-border);
152
+ }
153
+
154
+ &::after {
155
+ right: var(--#{$prefix}popover-border-width);
156
+ border-left-color: var(--#{$prefix}popover-bg);
157
+ }
158
+ }
159
+ }
160
+
161
+ /* rtl:end:ignore */
162
+
163
+ .bs-popover-auto {
164
+ &[data-popper-placement^="top"] {
165
+ @extend .bs-popover-top;
166
+ }
167
+ &[data-popper-placement^="right"] {
168
+ @extend .bs-popover-end;
169
+ }
170
+ &[data-popper-placement^="bottom"] {
171
+ @extend .bs-popover-bottom;
172
+ }
173
+ &[data-popper-placement^="left"] {
174
+ @extend .bs-popover-start;
175
+ }
176
+ }
177
+
178
+ // Offset the popover to account for the popover arrow
179
+ .popover-header {
180
+ padding: var(--#{$prefix}popover-header-padding-y) var(--#{$prefix}popover-header-padding-x);
181
+ margin-bottom: 0; // Reset the default from Reboot
182
+ @include font-size(var(--#{$prefix}popover-header-font-size));
183
+ color: var(--#{$prefix}popover-header-color);
184
+ background-color: var(--#{$prefix}popover-header-bg);
185
+ border-bottom: var(--#{$prefix}popover-border-width) solid var(--#{$prefix}popover-border-color);
186
+ @include border-top-radius(var(--#{$prefix}popover-inner-border-radius));
187
+
188
+ &:empty {
189
+ display: none;
190
+ }
191
+ }
192
+
193
+ .popover-body {
194
+ padding: var(--#{$prefix}popover-body-padding-y) var(--#{$prefix}popover-body-padding-x);
195
+ color: var(--#{$prefix}popover-body-color);
196
+ }
@@ -0,0 +1,68 @@
1
+ // Disable animation if transitions are disabled
2
+
3
+ // scss-docs-start progress-keyframes
4
+ @if $enable-transitions {
5
+ @keyframes progress-bar-stripes {
6
+ 0% { background-position-x: $progress-height; }
7
+ }
8
+ }
9
+ // scss-docs-end progress-keyframes
10
+
11
+ .progress,
12
+ .progress-stacked {
13
+ // scss-docs-start progress-css-vars
14
+ --#{$prefix}progress-height: #{$progress-height};
15
+ @include rfs($progress-font-size, --#{$prefix}progress-font-size);
16
+ --#{$prefix}progress-bg: #{$progress-bg};
17
+ --#{$prefix}progress-border-radius: #{$progress-border-radius};
18
+ --#{$prefix}progress-box-shadow: #{$progress-box-shadow};
19
+ --#{$prefix}progress-bar-color: #{$progress-bar-color};
20
+ --#{$prefix}progress-bar-bg: #{$progress-bar-bg};
21
+ --#{$prefix}progress-bar-transition: #{$progress-bar-transition};
22
+ // scss-docs-end progress-css-vars
23
+
24
+ display: flex;
25
+ height: var(--#{$prefix}progress-height);
26
+ overflow: hidden; // force rounded corners by cropping it
27
+ @include font-size(var(--#{$prefix}progress-font-size));
28
+ background-color: var(--#{$prefix}progress-bg);
29
+ @include border-radius(var(--#{$prefix}progress-border-radius));
30
+ @include box-shadow(var(--#{$prefix}progress-box-shadow));
31
+ }
32
+
33
+ .progress-bar {
34
+ display: flex;
35
+ flex-direction: column;
36
+ justify-content: center;
37
+ overflow: hidden;
38
+ color: var(--#{$prefix}progress-bar-color);
39
+ text-align: center;
40
+ white-space: nowrap;
41
+ background-color: var(--#{$prefix}progress-bar-bg);
42
+ @include transition(var(--#{$prefix}progress-bar-transition));
43
+ }
44
+
45
+ .progress-bar-striped {
46
+ @include gradient-striped();
47
+ background-size: var(--#{$prefix}progress-height) var(--#{$prefix}progress-height);
48
+ }
49
+
50
+ .progress-stacked > .progress {
51
+ overflow: visible;
52
+ }
53
+
54
+ .progress-stacked > .progress > .progress-bar {
55
+ width: 100%;
56
+ }
57
+
58
+ @if $enable-transitions {
59
+ .progress-bar-animated {
60
+ animation: $progress-bar-animation-timing progress-bar-stripes;
61
+
62
+ @if $enable-reduced-motion {
63
+ @media (prefers-reduced-motion: reduce) {
64
+ animation: none;
65
+ }
66
+ }
67
+ }
68
+ }