@coreui/coreui 4.0.2

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 (203) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +183 -0
  3. package/dist/css/coreui-grid.css +5004 -0
  4. package/dist/css/coreui-grid.css.map +1 -0
  5. package/dist/css/coreui-grid.min.css +8 -0
  6. package/dist/css/coreui-grid.min.css.map +1 -0
  7. package/dist/css/coreui-grid.rtl.css +5011 -0
  8. package/dist/css/coreui-grid.rtl.css.map +1 -0
  9. package/dist/css/coreui-grid.rtl.min.css +14 -0
  10. package/dist/css/coreui-grid.rtl.min.css.map +1 -0
  11. package/dist/css/coreui-reboot.css +440 -0
  12. package/dist/css/coreui-reboot.css.map +1 -0
  13. package/dist/css/coreui-reboot.min.css +8 -0
  14. package/dist/css/coreui-reboot.min.css.map +1 -0
  15. package/dist/css/coreui-reboot.rtl.css +441 -0
  16. package/dist/css/coreui-reboot.rtl.css.map +1 -0
  17. package/dist/css/coreui-reboot.rtl.min.css +14 -0
  18. package/dist/css/coreui-reboot.rtl.min.css.map +1 -0
  19. package/dist/css/coreui-utilities.css +5030 -0
  20. package/dist/css/coreui-utilities.css.map +1 -0
  21. package/dist/css/coreui-utilities.min.css +8 -0
  22. package/dist/css/coreui-utilities.min.css.map +1 -0
  23. package/dist/css/coreui-utilities.rtl.css +5024 -0
  24. package/dist/css/coreui-utilities.rtl.css.map +1 -0
  25. package/dist/css/coreui-utilities.rtl.min.css +14 -0
  26. package/dist/css/coreui-utilities.rtl.min.css.map +1 -0
  27. package/dist/css/coreui.css +12152 -0
  28. package/dist/css/coreui.css.map +1 -0
  29. package/dist/css/coreui.min.css +8 -0
  30. package/dist/css/coreui.min.css.map +1 -0
  31. package/dist/css/coreui.rtl.css +12041 -0
  32. package/dist/css/coreui.rtl.css.map +1 -0
  33. package/dist/css/coreui.rtl.min.css +14 -0
  34. package/dist/css/coreui.rtl.min.css.map +1 -0
  35. package/dist/js/coreui.bundle.js +7437 -0
  36. package/dist/js/coreui.bundle.js.map +1 -0
  37. package/dist/js/coreui.bundle.min.js +7 -0
  38. package/dist/js/coreui.bundle.min.js.map +1 -0
  39. package/dist/js/coreui.esm.js +5622 -0
  40. package/dist/js/coreui.esm.js.map +1 -0
  41. package/dist/js/coreui.esm.min.js +7 -0
  42. package/dist/js/coreui.esm.min.js.map +1 -0
  43. package/dist/js/coreui.js +5673 -0
  44. package/dist/js/coreui.js.map +1 -0
  45. package/dist/js/coreui.min.js +7 -0
  46. package/dist/js/coreui.min.js.map +1 -0
  47. package/js/dist/alert.js +208 -0
  48. package/js/dist/alert.js.map +1 -0
  49. package/js/dist/base-component.js +181 -0
  50. package/js/dist/base-component.js.map +1 -0
  51. package/js/dist/button.js +142 -0
  52. package/js/dist/button.js.map +1 -0
  53. package/js/dist/carousel.js +724 -0
  54. package/js/dist/carousel.js.map +1 -0
  55. package/js/dist/collapse.js +515 -0
  56. package/js/dist/collapse.js.map +1 -0
  57. package/js/dist/dom/data.js +72 -0
  58. package/js/dist/dom/data.js.map +1 -0
  59. package/js/dist/dom/event-handler.js +319 -0
  60. package/js/dist/dom/event-handler.js.map +1 -0
  61. package/js/dist/dom/manipulator.js +92 -0
  62. package/js/dist/dom/manipulator.js.map +1 -0
  63. package/js/dist/dom/selector-engine.js +89 -0
  64. package/js/dist/dom/selector-engine.js.map +1 -0
  65. package/js/dist/dropdown.js +700 -0
  66. package/js/dist/dropdown.js.map +1 -0
  67. package/js/dist/modal.js +891 -0
  68. package/js/dist/modal.js.map +1 -0
  69. package/js/dist/offcanvas.js +724 -0
  70. package/js/dist/offcanvas.js.map +1 -0
  71. package/js/dist/popover.js +220 -0
  72. package/js/dist/popover.js.map +1 -0
  73. package/js/dist/scrollspy.js +387 -0
  74. package/js/dist/scrollspy.js.map +1 -0
  75. package/js/dist/tab.js +317 -0
  76. package/js/dist/tab.js.map +1 -0
  77. package/js/dist/toast.js +331 -0
  78. package/js/dist/toast.js.map +1 -0
  79. package/js/dist/tooltip.js +997 -0
  80. package/js/dist/tooltip.js.map +1 -0
  81. package/js/src/alert.js +128 -0
  82. package/js/src/base-component.js +78 -0
  83. package/js/src/button.js +89 -0
  84. package/js/src/carousel.js +589 -0
  85. package/js/src/collapse.js +391 -0
  86. package/js/src/dom/data.js +60 -0
  87. package/js/src/dom/event-handler.js +352 -0
  88. package/js/src/dom/manipulator.js +83 -0
  89. package/js/src/dom/selector-engine.js +78 -0
  90. package/js/src/dropdown.js +517 -0
  91. package/js/src/modal.js +451 -0
  92. package/js/src/navigation.js +298 -0
  93. package/js/src/offcanvas.js +277 -0
  94. package/js/src/popover.js +173 -0
  95. package/js/src/scrollspy.js +298 -0
  96. package/js/src/sidebar.js +347 -0
  97. package/js/src/tab.js +227 -0
  98. package/js/src/toast.js +245 -0
  99. package/js/src/tooltip.js +750 -0
  100. package/js/src/util/backdrop.js +129 -0
  101. package/js/src/util/index.js +327 -0
  102. package/js/src/util/sanitizer.js +130 -0
  103. package/js/src/util/scrollbar.js +97 -0
  104. package/package.json +166 -0
  105. package/scss/_accordion.scss +118 -0
  106. package/scss/_alert.scss +52 -0
  107. package/scss/_avatar.scss +49 -0
  108. package/scss/_badge.scss +38 -0
  109. package/scss/_breadcrumb.scss +33 -0
  110. package/scss/_button-group.scss +139 -0
  111. package/scss/_buttons.scss +143 -0
  112. package/scss/_callout.scss +16 -0
  113. package/scss/_card.scss +215 -0
  114. package/scss/_carousel.scss +231 -0
  115. package/scss/_close.scss +40 -0
  116. package/scss/_containers.scss +41 -0
  117. package/scss/_dropdown.scss +227 -0
  118. package/scss/_footer.scss +25 -0
  119. package/scss/_forms.scss +9 -0
  120. package/scss/_functions.scss +356 -0
  121. package/scss/_grid.scss +56 -0
  122. package/scss/_header.scss +170 -0
  123. package/scss/_helpers.scss +7 -0
  124. package/scss/_icon.scss +32 -0
  125. package/scss/_images.scss +42 -0
  126. package/scss/_list-group.scss +169 -0
  127. package/scss/_mixins.scss +50 -0
  128. package/scss/_modal.scss +219 -0
  129. package/scss/_nav.scss +140 -0
  130. package/scss/_navbar.scss +254 -0
  131. package/scss/_offcanvas.scss +79 -0
  132. package/scss/_pagination.scss +64 -0
  133. package/scss/_popover.scss +158 -0
  134. package/scss/_progress.scss +91 -0
  135. package/scss/_reboot.scss +632 -0
  136. package/scss/_root.scss +25 -0
  137. package/scss/_sidebar.scss +3 -0
  138. package/scss/_spinners.scss +69 -0
  139. package/scss/_subheader.scss +72 -0
  140. package/scss/_tables.scss +166 -0
  141. package/scss/_toasts.scss +52 -0
  142. package/scss/_tooltip.scss +115 -0
  143. package/scss/_transitions.scss +21 -0
  144. package/scss/_type.scss +104 -0
  145. package/scss/_utilities.scss +678 -0
  146. package/scss/_variables.scss +1801 -0
  147. package/scss/coreui-grid.rtl.scss +12 -0
  148. package/scss/coreui-grid.scss +67 -0
  149. package/scss/coreui-reboot.rtl.scss +12 -0
  150. package/scss/coreui-reboot.scss +15 -0
  151. package/scss/coreui-utilities.rtl.scss +12 -0
  152. package/scss/coreui-utilities.scss +19 -0
  153. package/scss/coreui.rtl.scss +12 -0
  154. package/scss/coreui.scss +61 -0
  155. package/scss/forms/_floating-labels.scss +63 -0
  156. package/scss/forms/_form-check.scss +188 -0
  157. package/scss/forms/_form-control.scss +219 -0
  158. package/scss/forms/_form-range.scss +91 -0
  159. package/scss/forms/_form-select.scss +70 -0
  160. package/scss/forms/_form-text.scss +11 -0
  161. package/scss/forms/_input-group.scss +121 -0
  162. package/scss/forms/_labels.scss +36 -0
  163. package/scss/forms/_validation.scss +12 -0
  164. package/scss/helpers/_clearfix.scss +3 -0
  165. package/scss/helpers/_colored-links.scss +12 -0
  166. package/scss/helpers/_position.scss +30 -0
  167. package/scss/helpers/_ratio.scss +26 -0
  168. package/scss/helpers/_stretched-link.scss +15 -0
  169. package/scss/helpers/_text-truncation.scss +7 -0
  170. package/scss/helpers/_visually-hidden.scss +8 -0
  171. package/scss/mixins/_alert.scss +15 -0
  172. package/scss/mixins/_avatar.scss +10 -0
  173. package/scss/mixins/_border-radius.scss +78 -0
  174. package/scss/mixins/_box-shadow.scss +18 -0
  175. package/scss/mixins/_breakpoints.scss +140 -0
  176. package/scss/mixins/_buttons.scss +101 -0
  177. package/scss/mixins/_caret.scss +64 -0
  178. package/scss/mixins/_clearfix.scss +9 -0
  179. package/scss/mixins/_color-scheme.scss +7 -0
  180. package/scss/mixins/_container.scss +9 -0
  181. package/scss/mixins/_css-vars.scss +87 -0
  182. package/scss/mixins/_deprecate.scss +10 -0
  183. package/scss/mixins/_forms.scss +144 -0
  184. package/scss/mixins/_gradients.scss +47 -0
  185. package/scss/mixins/_grid.scss +132 -0
  186. package/scss/mixins/_icon.scss +6 -0
  187. package/scss/mixins/_image.scss +16 -0
  188. package/scss/mixins/_list-group.scss +18 -0
  189. package/scss/mixins/_lists.scss +7 -0
  190. package/scss/mixins/_ltr-rtl.scss +60 -0
  191. package/scss/mixins/_pagination.scss +31 -0
  192. package/scss/mixins/_reset-text.scss +17 -0
  193. package/scss/mixins/_resize.scss +6 -0
  194. package/scss/mixins/_table-variants.scss +16 -0
  195. package/scss/mixins/_text-truncate.scss +8 -0
  196. package/scss/mixins/_transition.scss +26 -0
  197. package/scss/mixins/_utilities.scss +104 -0
  198. package/scss/mixins/_visually-hidden.scss +29 -0
  199. package/scss/sidebar/_sidebar-narrow.scss +106 -0
  200. package/scss/sidebar/_sidebar-nav.scss +165 -0
  201. package/scss/sidebar/_sidebar.scss +261 -0
  202. package/scss/utilities/_api.scss +47 -0
  203. package/scss/vendor/_rfs.scss +354 -0
@@ -0,0 +1,25 @@
1
+ :root {
2
+ // Custom variable values only support SassScript inside `#{}`.
3
+ @each $color, $value in $colors {
4
+ --#{$variable-prefix}#{$color}: #{$value};
5
+ }
6
+
7
+ @each $color, $value in $theme-colors {
8
+ --#{$variable-prefix}#{$color}: #{$value};
9
+ }
10
+
11
+ // breakpoints custom properties
12
+ @each $bp, $value in $grid-breakpoints {
13
+ --#{$variable-prefix}breakpoint-#{$bp}: #{$value};
14
+ }
15
+
16
+ // mobile breakpoint custom property
17
+ --#{$variable-prefix}mobile-breakpoint: #{$mobile-breakpoint};
18
+
19
+ // Use `inspect` for lists so that quoted items keep the quotes.
20
+ // See https://github.com/sass/sass/issues/2383#issuecomment-336349172
21
+ --#{$variable-prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
22
+ --#{$variable-prefix}font-monospace: #{inspect($font-family-monospace)};
23
+ --#{$variable-prefix}gradient: #{$gradient};
24
+ --#{$variable-prefix}body-color: #{$body-color};
25
+ }
@@ -0,0 +1,3 @@
1
+ @import "sidebar/sidebar";
2
+ @import "sidebar/sidebar-nav";
3
+ @import "sidebar/sidebar-narrow";
@@ -0,0 +1,69 @@
1
+ //
2
+ // Rotating border
3
+ //
4
+
5
+ // scss-docs-start spinner-border-keyframes
6
+ @keyframes spinner-border {
7
+ to { transform: rotate(360deg) #{"/* rtl:ignore */"}; }
8
+ }
9
+ // scss-docs-end spinner-border-keyframes
10
+
11
+ .spinner-border {
12
+ display: inline-block;
13
+ width: $spinner-width;
14
+ height: $spinner-height;
15
+ vertical-align: $spinner-vertical-align;
16
+ border: $spinner-border-width solid currentColor;
17
+ border-right-color: transparent;
18
+ // stylelint-disable-next-line property-disallowed-list
19
+ border-radius: 50%;
20
+ animation: $spinner-animation-speed linear infinite spinner-border;
21
+ }
22
+
23
+ .spinner-border-sm {
24
+ width: $spinner-width-sm;
25
+ height: $spinner-height-sm;
26
+ border-width: $spinner-border-width-sm;
27
+ }
28
+
29
+ //
30
+ // Growing circle
31
+ //
32
+
33
+ // scss-docs-start spinner-grow-keyframes
34
+ @keyframes spinner-grow {
35
+ 0% {
36
+ transform: scale(0);
37
+ }
38
+ 50% {
39
+ opacity: 1;
40
+ transform: none;
41
+ }
42
+ }
43
+ // scss-docs-end spinner-grow-keyframes
44
+
45
+ .spinner-grow {
46
+ display: inline-block;
47
+ width: $spinner-width;
48
+ height: $spinner-height;
49
+ vertical-align: $spinner-vertical-align;
50
+ background-color: currentColor;
51
+ // stylelint-disable-next-line property-disallowed-list
52
+ border-radius: 50%;
53
+ opacity: 0;
54
+ animation: $spinner-animation-speed linear infinite spinner-grow;
55
+ }
56
+
57
+ .spinner-grow-sm {
58
+ width: $spinner-width-sm;
59
+ height: $spinner-height-sm;
60
+ }
61
+
62
+ @if $enable-reduced-motion {
63
+ @media (prefers-reduced-motion: reduce) {
64
+ .spinner-border,
65
+ .spinner-grow {
66
+ animation-duration: $spinner-animation-speed * 2;
67
+ }
68
+ }
69
+ }
@@ -0,0 +1,72 @@
1
+ .subheader {
2
+ position: relative;
3
+ display: flex;
4
+ flex-wrap: wrap; // allow us to do the line break for collapsing content
5
+ align-items: center;
6
+ justify-content: space-between; // space out brand from logo
7
+ min-height: $subheader-min-height;
8
+ padding: $subheader-padding-y $subheader-padding-x;
9
+ background: var(--#{$variable-prefix}subheader-bg, $subheader-bg);
10
+ border-bottom: var(--#{$variable-prefix}subheader-border-width, $subheader-border-width) solid var(--#{$variable-prefix}subheader-border-color, $subheader-border-color);
11
+ }
12
+
13
+ .subheader-sticky {
14
+ position: sticky;
15
+ top: 0;
16
+ z-index: $zindex-fixed - 1;
17
+ }
18
+
19
+ // Subheader nav
20
+ //
21
+ // Custom navbar navigation (doesn't require `.nav`, but does make use of `.nav-link`).
22
+
23
+ .subheader-nav {
24
+ display: flex;
25
+ flex-direction: row; // cannot use `inherit` to get the `.header`s value
26
+ @include ltr-rtl("padding-left", 0);
27
+ margin-bottom: 0;
28
+ list-style: none;
29
+
30
+ .nav-link {
31
+ padding-right: $subheader-nav-link-padding-x;
32
+ padding-left: $subheader-nav-link-padding-x;
33
+ color: var(--#{$variable-prefix}subheader-color, $subheader-color);
34
+
35
+ &:hover,
36
+ &:focus {
37
+ color: var(--#{$variable-prefix}subheader-hover-color, $subheader-hover-color);
38
+ }
39
+
40
+ &.disabled {
41
+ color: var(--#{$variable-prefix}subheader-disabled-color, $subheader-disabled-color);
42
+ }
43
+ }
44
+
45
+ .show > .nav-link,
46
+ .nav-link.active {
47
+ color: var(--#{$variable-prefix}subheader-active-color, $subheader-active-color);
48
+ }
49
+
50
+ .dropdown-menu {
51
+ position: absolute;
52
+ }
53
+ }
54
+
55
+ // Subheader text
56
+ //
57
+ //
58
+
59
+ .subheader-text {
60
+ padding-top: $nav-link-padding-y;
61
+ padding-bottom: $nav-link-padding-y;
62
+ color: var(--#{$variable-prefix}subheader-color, $subheader-color);
63
+
64
+ a {
65
+ color: var(--#{$variable-prefix}subheader-active-color, $subheader-active-color);
66
+
67
+ &:hover,
68
+ &:focus {
69
+ color: var(--#{$variable-prefix}subheader-active-color, $subheader-active-color);
70
+ }
71
+ }
72
+ }
@@ -0,0 +1,166 @@
1
+ //
2
+ // Basic Bootstrap table
3
+ //
4
+
5
+ .table {
6
+ --#{$variable-prefix}table-color: #{$table-color};
7
+ --#{$variable-prefix}table-bg: #{$table-bg};
8
+ --#{$variable-prefix}table-border-color: #{$table-border-color};
9
+ --#{$variable-prefix}table-accent-bg: #{$table-accent-bg};
10
+ --#{$variable-prefix}table-striped-color: #{$table-striped-color};
11
+ --#{$variable-prefix}table-striped-bg: #{$table-striped-bg};
12
+ --#{$variable-prefix}table-active-color: #{$table-active-color};
13
+ --#{$variable-prefix}table-active-bg: #{$table-active-bg};
14
+ --#{$variable-prefix}table-hover-color: #{$table-hover-color};
15
+ --#{$variable-prefix}table-hover-bg: #{$table-hover-bg};
16
+
17
+ width: 100%;
18
+ margin-bottom: $spacer;
19
+ color: var(--#{$variable-prefix}table-color);
20
+ vertical-align: $table-cell-vertical-align;
21
+ border-color: var(--#{$variable-prefix}table-border-color);
22
+
23
+ // Target th & td
24
+ // We need the child combinator to prevent styles leaking to nested tables which doesn't have a `.table` class.
25
+ // We use the universal selectors here to simplify the selector (else we would need 6 different selectors).
26
+ // Another advantage is that this generates less code and makes the selector less specific making it easier to override.
27
+ // stylelint-disable-next-line selector-max-universal
28
+ > :not(caption) > * > * {
29
+ padding: $table-cell-padding-y $table-cell-padding-x;
30
+ color: var(--#{$variable-prefix}table-color);
31
+ background-color: var(--#{$variable-prefix}table-bg);
32
+ border-bottom-color: var(--#{$variable-prefix}table-border-color);
33
+ border-bottom-width: $table-border-width;
34
+ box-shadow: inset 0 0 0 9999px var(--#{$variable-prefix}table-accent-bg);
35
+ }
36
+
37
+ > tbody {
38
+ vertical-align: inherit;
39
+ }
40
+
41
+ > thead {
42
+ vertical-align: bottom;
43
+ }
44
+
45
+ // Highlight border color between thead, tbody and tfoot.
46
+ > :not(:last-child) > :last-child > * {
47
+ // border-bottom-color: $table-group-separator-color;
48
+ }
49
+ }
50
+
51
+
52
+ //
53
+ // Change placement of captions with a class
54
+ //
55
+
56
+ .caption-top {
57
+ caption-side: top;
58
+ }
59
+
60
+
61
+ //
62
+ // Condensed table w/ half padding
63
+ //
64
+
65
+ .table-sm {
66
+ // stylelint-disable-next-line selector-max-universal
67
+ > :not(caption) > * > * {
68
+ padding: $table-cell-padding-y-sm $table-cell-padding-x-sm;
69
+ }
70
+ }
71
+
72
+
73
+ // Border versions
74
+ //
75
+ // Add or remove borders all around the table and between all the columns.
76
+ //
77
+ // When borders are added on all sides of the cells, the corners can render odd when
78
+ // these borders do not have the same color or if they are semi-transparent.
79
+ // Therefor we add top and border bottoms to the `tr`s and left and right borders
80
+ // to the `td`s or `th`s
81
+
82
+ .table-bordered {
83
+ > :not(caption) > * {
84
+ border-width: $table-border-width 0;
85
+
86
+ // stylelint-disable-next-line selector-max-universal
87
+ > * {
88
+ border-width: 0 $table-border-width;
89
+ }
90
+ }
91
+ }
92
+
93
+ .table-borderless {
94
+ // stylelint-disable-next-line selector-max-universal
95
+ > :not(caption) > * > * {
96
+ border-bottom-width: 0;
97
+ }
98
+ }
99
+
100
+ // Zebra-striping
101
+ //
102
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
103
+
104
+ .table-striped {
105
+ > tbody > tr:nth-of-type(#{$table-striped-order}) {
106
+ --#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-striped-bg);
107
+ color: var(--#{$variable-prefix}table-striped-color);
108
+ }
109
+ }
110
+
111
+ // Active table
112
+ //
113
+ // The `.table-active` class can be added to highlight rows or cells
114
+
115
+ .table-active {
116
+ --#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-active-bg);
117
+ color: var(--#{$variable-prefix}table-active-color);
118
+ }
119
+
120
+ // Hover effect
121
+ //
122
+ // Placed here since it has to come after the potential zebra striping
123
+
124
+ .table-hover {
125
+ > tbody > tr:hover {
126
+ --#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-hover-bg);
127
+ color: var(--#{$variable-prefix}table-hover-color);
128
+ }
129
+ }
130
+
131
+
132
+ // Table variants
133
+ //
134
+ // Table variants set the table cell backgrounds, border colors
135
+ // and the colors of the striped, hovered & active tables
136
+
137
+ // @each $color, $value in $table-variants {
138
+ // @include table-variant($color, $value);
139
+ // }
140
+
141
+ @each $color, $map in $table-variants {
142
+ // @include table-variant($color, $value);
143
+ .table-#{$color} {
144
+ @include table-variant($map);
145
+ }
146
+ }
147
+
148
+ // @each $state, $map in $list-group-variants {
149
+
150
+ // }
151
+
152
+ // Responsive tables
153
+ //
154
+ // Generate series of `.table-responsive-*` classes for configuring the screen
155
+ // size of where your table will overflow.
156
+
157
+ @each $breakpoint in map-keys($grid-breakpoints) {
158
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
159
+
160
+ @include media-breakpoint-down($breakpoint) {
161
+ .table-responsive#{$infix} {
162
+ overflow-x: auto;
163
+ -webkit-overflow-scrolling: touch;
164
+ }
165
+ }
166
+ }
@@ -0,0 +1,52 @@
1
+ .toast {
2
+ width: $toast-max-width;
3
+ max-width: 100%;
4
+ @include font-size($toast-font-size);
5
+ color: var(--#{$variable-prefix}toast-color, $toast-color);
6
+ pointer-events: auto;
7
+ background-color: var(--#{$variable-prefix}toast-background-color, $toast-background-color);
8
+ background-clip: padding-box;
9
+ border: $toast-border-width solid var(--#{$variable-prefix}toast-border-color, $toast-border-color);
10
+ box-shadow: $toast-box-shadow;
11
+ @include border-radius($toast-border-radius);
12
+
13
+ &:not(.showing):not(.show) {
14
+ opacity: 0;
15
+ }
16
+
17
+ &.hide {
18
+ display: none;
19
+ }
20
+ }
21
+
22
+ .toast-container {
23
+ z-index: $zindex-toaster;
24
+ width: max-content;
25
+ max-width: 100%;
26
+ pointer-events: none;
27
+
28
+ > :not(:last-child) {
29
+ margin-bottom: $toast-spacing;
30
+ }
31
+ }
32
+
33
+ .toast-header {
34
+ display: flex;
35
+ align-items: center;
36
+ padding: $toast-padding-y $toast-padding-x;
37
+ color: var(--#{$variable-prefix}toast-header-color, $toast-header-color);
38
+ background-color: var(--#{$variable-prefix}toast-header-background-color, $toast-header-background-color);
39
+ background-clip: padding-box;
40
+ border-bottom: $toast-border-width solid var(--#{$variable-prefix}toast-header-border-color, $toast-header-border-color);
41
+ @include border-top-radius(subtract($toast-border-radius, $toast-border-width));
42
+
43
+ .btn-close {
44
+ margin-right: $toast-padding-x * -.5;
45
+ margin-left: $toast-padding-x;
46
+ }
47
+ }
48
+
49
+ .toast-body {
50
+ padding: $toast-padding-x; // apply to both vertical and horizontal
51
+ word-wrap: break-word;
52
+ }
@@ -0,0 +1,115 @@
1
+ // Base class
2
+ .tooltip {
3
+ position: absolute;
4
+ z-index: $zindex-tooltip;
5
+ display: block;
6
+ margin: $tooltip-margin;
7
+ // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
8
+ // So reset our font and text properties to avoid inheriting weird values.
9
+ @include reset-text();
10
+ @include font-size($tooltip-font-size);
11
+ // Allow breaking very long words so they don't overflow the tooltip's bounds
12
+ word-wrap: break-word;
13
+ opacity: 0;
14
+
15
+ &.show { opacity: $tooltip-opacity; }
16
+
17
+ .tooltip-arrow {
18
+ position: absolute;
19
+ display: block;
20
+ width: $tooltip-arrow-width;
21
+ height: $tooltip-arrow-height;
22
+
23
+ &::before {
24
+ position: absolute;
25
+ content: "";
26
+ border-color: transparent;
27
+ border-style: solid;
28
+ }
29
+ }
30
+ }
31
+
32
+ .bs-tooltip-top {
33
+ padding: $tooltip-arrow-height 0;
34
+
35
+ .tooltip-arrow {
36
+ bottom: 0;
37
+
38
+ &::before {
39
+ top: -1px;
40
+ border-width: $tooltip-arrow-height ($tooltip-arrow-width * .5) 0;
41
+ border-top-color: var(--#{$variable-prefix}tooltip-arrow-color, $tooltip-arrow-color);
42
+ }
43
+ }
44
+ }
45
+
46
+ .bs-tooltip-end {
47
+ padding: 0 $tooltip-arrow-height;
48
+
49
+ .tooltip-arrow {
50
+ left: 0;
51
+ width: $tooltip-arrow-height;
52
+ height: $tooltip-arrow-width;
53
+
54
+ &::before {
55
+ right: -1px;
56
+ border-width: ($tooltip-arrow-width * .5) $tooltip-arrow-height ($tooltip-arrow-width * .5) 0;
57
+ border-right-color: var(--#{$variable-prefix}tooltip-arrow-color, $tooltip-arrow-color);
58
+ }
59
+ }
60
+ }
61
+
62
+ .bs-tooltip-bottom {
63
+ padding: $tooltip-arrow-height 0;
64
+
65
+ .tooltip-arrow {
66
+ top: 0;
67
+
68
+ &::before {
69
+ bottom: -1px;
70
+ border-width: 0 ($tooltip-arrow-width * .5) $tooltip-arrow-height;
71
+ border-bottom-color: var(--#{$variable-prefix}tooltip-arrow-color, $tooltip-arrow-color);
72
+ }
73
+ }
74
+ }
75
+
76
+ .bs-tooltip-start {
77
+ padding: 0 $tooltip-arrow-height;
78
+
79
+ .tooltip-arrow {
80
+ right: 0;
81
+ width: $tooltip-arrow-height;
82
+ height: $tooltip-arrow-width;
83
+
84
+ &::before {
85
+ left: -1px;
86
+ border-width: ($tooltip-arrow-width * .5) 0 ($tooltip-arrow-width * .5) $tooltip-arrow-height;
87
+ border-left-color: var(--#{$variable-prefix}tooltip-arrow-color, $tooltip-arrow-color);
88
+ }
89
+ }
90
+ }
91
+
92
+ .bs-tooltip-auto {
93
+ &[data-popper-placement^="top"] {
94
+ @extend .bs-tooltip-top;
95
+ }
96
+ &[data-popper-placement^="right"] {
97
+ @extend .bs-tooltip-end;
98
+ }
99
+ &[data-popper-placement^="bottom"] {
100
+ @extend .bs-tooltip-bottom;
101
+ }
102
+ &[data-popper-placement^="left"] {
103
+ @extend .bs-tooltip-start;
104
+ }
105
+ }
106
+
107
+ // Wrapper for the tooltip content
108
+ .tooltip-inner {
109
+ max-width: $tooltip-max-width;
110
+ padding: $tooltip-padding-y $tooltip-padding-x;
111
+ color: var(--#{$variable-prefix}tooltip-color, $tooltip-color);
112
+ text-align: center;
113
+ background-color: var(--#{$variable-prefix}tooltip-bg, $tooltip-bg);
114
+ @include border-radius($tooltip-border-radius);
115
+ }