publishing_platform_publishing_components 0.1.0
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.
- checksums.yaml +7 -0
- data/LICENSE +22 -0
- data/README.md +2 -0
- data/Rakefile +41 -0
- data/app/assets/builds/gemkeep +0 -0
- data/app/assets/config/publishing_platform_publishing_components_manifest.js +2 -0
- data/app/assets/images/publishing_platform_publishing_components/gemkeep +0 -0
- data/app/assets/stylesheets/publishing_platform_publishing_components/_all_components.scss +3 -0
- data/app/assets/stylesheets/publishing_platform_publishing_components/components/_attachment.scss +117 -0
- data/app/assets/stylesheets/publishing_platform_publishing_components/components/_summary-list.scss +169 -0
- data/app/controllers/publishing_platform_publishing_components/application_controller.rb +4 -0
- data/app/helpers/publishing_platform_publishing_components/application_helper.rb +4 -0
- data/app/models/publishing_platform_publishing_components/component_doc.rb +90 -0
- data/app/models/publishing_platform_publishing_components/component_docs.rb +57 -0
- data/app/models/publishing_platform_publishing_components/component_example.rb +104 -0
- data/app/models/publishing_platform_publishing_components/shared_accessibility_criteria.rb +37 -0
- data/app/views/publishing_platform_publishing_components/component_doc/_component_output.html.erb +15 -0
- data/app/views/publishing_platform_publishing_components/components/_attachment.html.erb +91 -0
- data/app/views/publishing_platform_publishing_components/components/_error_summary.html.erb +38 -0
- data/app/views/publishing_platform_publishing_components/components/_summary_list.html.erb +135 -0
- data/app/views/publishing_platform_publishing_components/components/attachment/_thumbnail_document.html.erb +3 -0
- data/app/views/publishing_platform_publishing_components/components/attachment/_thumbnail_external.html.erb +3 -0
- data/app/views/publishing_platform_publishing_components/components/attachment/_thumbnail_generic.html.erb +4 -0
- data/app/views/publishing_platform_publishing_components/components/attachment/_thumbnail_html.html.erb +3 -0
- data/app/views/publishing_platform_publishing_components/components/attachment/_thumbnail_pdf.html.erb +3 -0
- data/app/views/publishing_platform_publishing_components/components/attachment/_thumbnail_spreadsheet.html.erb +5 -0
- data/app/views/publishing_platform_publishing_components/components/docs/attachment.yml +104 -0
- data/app/views/publishing_platform_publishing_components/components/docs/error_summary.yml +51 -0
- data/app/views/publishing_platform_publishing_components/components/docs/summary_list.yml +137 -0
- data/config/initializers/assets.rb +24 -0
- data/config/routes.rb +2 -0
- data/lib/publishing_platform_publishing_components/config.rb +25 -0
- data/lib/publishing_platform_publishing_components/engine.rb +5 -0
- data/lib/publishing_platform_publishing_components/presenters/attachment_helper.rb +176 -0
- data/lib/publishing_platform_publishing_components/presenters/component_wrapper_helper.rb +290 -0
- data/lib/publishing_platform_publishing_components/presenters/shared_helper.rb +24 -0
- data/lib/publishing_platform_publishing_components/version.rb +3 -0
- data/lib/publishing_platform_publishing_components.rb +10 -0
- data/lib/tasks/publishing_platform_publishing_components_tasks.rake +4 -0
- data/node_modules/bootstrap/LICENSE +21 -0
- data/node_modules/bootstrap/README.md +246 -0
- data/node_modules/bootstrap/dist/css/bootstrap-grid.css +4085 -0
- data/node_modules/bootstrap/dist/css/bootstrap-grid.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap-grid.min.css +6 -0
- data/node_modules/bootstrap/dist/css/bootstrap-grid.min.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap-grid.rtl.css +4084 -0
- data/node_modules/bootstrap/dist/css/bootstrap-grid.rtl.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap-grid.rtl.min.css +6 -0
- data/node_modules/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap-reboot.css +601 -0
- data/node_modules/bootstrap/dist/css/bootstrap-reboot.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap-reboot.min.css +6 -0
- data/node_modules/bootstrap/dist/css/bootstrap-reboot.min.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap-reboot.rtl.css +598 -0
- data/node_modules/bootstrap/dist/css/bootstrap-reboot.rtl.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap-reboot.rtl.min.css +6 -0
- data/node_modules/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap-utilities.css +5406 -0
- data/node_modules/bootstrap/dist/css/bootstrap-utilities.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap-utilities.min.css +6 -0
- data/node_modules/bootstrap/dist/css/bootstrap-utilities.min.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap-utilities.rtl.css +5397 -0
- data/node_modules/bootstrap/dist/css/bootstrap-utilities.rtl.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap-utilities.rtl.min.css +6 -0
- data/node_modules/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap.css +12048 -0
- data/node_modules/bootstrap/dist/css/bootstrap.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap.min.css +6 -0
- data/node_modules/bootstrap/dist/css/bootstrap.min.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap.rtl.css +12021 -0
- data/node_modules/bootstrap/dist/css/bootstrap.rtl.css.map +1 -0
- data/node_modules/bootstrap/dist/css/bootstrap.rtl.min.css +6 -0
- data/node_modules/bootstrap/dist/css/bootstrap.rtl.min.css.map +1 -0
- data/node_modules/bootstrap/dist/js/bootstrap.bundle.js +6312 -0
- data/node_modules/bootstrap/dist/js/bootstrap.bundle.js.map +1 -0
- data/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js +7 -0
- data/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map +1 -0
- data/node_modules/bootstrap/dist/js/bootstrap.esm.js +4447 -0
- data/node_modules/bootstrap/dist/js/bootstrap.esm.js.map +1 -0
- data/node_modules/bootstrap/dist/js/bootstrap.esm.min.js +7 -0
- data/node_modules/bootstrap/dist/js/bootstrap.esm.min.js.map +1 -0
- data/node_modules/bootstrap/dist/js/bootstrap.js +4494 -0
- data/node_modules/bootstrap/dist/js/bootstrap.js.map +1 -0
- data/node_modules/bootstrap/dist/js/bootstrap.min.js +7 -0
- data/node_modules/bootstrap/dist/js/bootstrap.min.js.map +1 -0
- data/node_modules/bootstrap/js/dist/alert.js +90 -0
- data/node_modules/bootstrap/js/dist/alert.js.map +1 -0
- data/node_modules/bootstrap/js/dist/base-component.js +86 -0
- data/node_modules/bootstrap/js/dist/base-component.js.map +1 -0
- data/node_modules/bootstrap/js/dist/button.js +79 -0
- data/node_modules/bootstrap/js/dist/button.js.map +1 -0
- data/node_modules/bootstrap/js/dist/carousel.js +388 -0
- data/node_modules/bootstrap/js/dist/carousel.js.map +1 -0
- data/node_modules/bootstrap/js/dist/collapse.js +249 -0
- data/node_modules/bootstrap/js/dist/collapse.js.map +1 -0
- data/node_modules/bootstrap/js/dist/dom/data.js +63 -0
- data/node_modules/bootstrap/js/dist/dom/data.js.map +1 -0
- data/node_modules/bootstrap/js/dist/dom/event-handler.js +237 -0
- data/node_modules/bootstrap/js/dist/dom/event-handler.js.map +1 -0
- data/node_modules/bootstrap/js/dist/dom/manipulator.js +72 -0
- data/node_modules/bootstrap/js/dist/dom/manipulator.js.map +1 -0
- data/node_modules/bootstrap/js/dist/dom/selector-engine.js +104 -0
- data/node_modules/bootstrap/js/dist/dom/selector-engine.js.map +1 -0
- data/node_modules/bootstrap/js/dist/dropdown.js +402 -0
- data/node_modules/bootstrap/js/dist/dropdown.js.map +1 -0
- data/node_modules/bootstrap/js/dist/modal.js +320 -0
- data/node_modules/bootstrap/js/dist/modal.js.map +1 -0
- data/node_modules/bootstrap/js/dist/offcanvas.js +246 -0
- data/node_modules/bootstrap/js/dist/offcanvas.js.map +1 -0
- data/node_modules/bootstrap/js/dist/popover.js +96 -0
- data/node_modules/bootstrap/js/dist/popover.js.map +1 -0
- data/node_modules/bootstrap/js/dist/scrollspy.js +275 -0
- data/node_modules/bootstrap/js/dist/scrollspy.js.map +1 -0
- data/node_modules/bootstrap/js/dist/tab.js +285 -0
- data/node_modules/bootstrap/js/dist/tab.js.map +1 -0
- data/node_modules/bootstrap/js/dist/toast.js +198 -0
- data/node_modules/bootstrap/js/dist/toast.js.map +1 -0
- data/node_modules/bootstrap/js/dist/tooltip.js +546 -0
- data/node_modules/bootstrap/js/dist/tooltip.js.map +1 -0
- data/node_modules/bootstrap/js/dist/util/backdrop.js +139 -0
- data/node_modules/bootstrap/js/dist/util/backdrop.js.map +1 -0
- data/node_modules/bootstrap/js/dist/util/component-functions.js +42 -0
- data/node_modules/bootstrap/js/dist/util/component-functions.js.map +1 -0
- data/node_modules/bootstrap/js/dist/util/config.js +68 -0
- data/node_modules/bootstrap/js/dist/util/config.js.map +1 -0
- data/node_modules/bootstrap/js/dist/util/focustrap.js +113 -0
- data/node_modules/bootstrap/js/dist/util/focustrap.js.map +1 -0
- data/node_modules/bootstrap/js/dist/util/index.js +281 -0
- data/node_modules/bootstrap/js/dist/util/index.js.map +1 -0
- data/node_modules/bootstrap/js/dist/util/sanitizer.js +113 -0
- data/node_modules/bootstrap/js/dist/util/sanitizer.js.map +1 -0
- data/node_modules/bootstrap/js/dist/util/scrollbar.js +113 -0
- data/node_modules/bootstrap/js/dist/util/scrollbar.js.map +1 -0
- data/node_modules/bootstrap/js/dist/util/swipe.js +135 -0
- data/node_modules/bootstrap/js/dist/util/swipe.js.map +1 -0
- data/node_modules/bootstrap/js/dist/util/template-factory.js +151 -0
- data/node_modules/bootstrap/js/dist/util/template-factory.js.map +1 -0
- data/node_modules/bootstrap/js/index.esm.js +19 -0
- data/node_modules/bootstrap/js/index.umd.js +34 -0
- data/node_modules/bootstrap/js/src/alert.js +87 -0
- data/node_modules/bootstrap/js/src/base-component.js +86 -0
- data/node_modules/bootstrap/js/src/button.js +72 -0
- data/node_modules/bootstrap/js/src/carousel.js +474 -0
- data/node_modules/bootstrap/js/src/collapse.js +297 -0
- data/node_modules/bootstrap/js/src/dom/data.js +55 -0
- data/node_modules/bootstrap/js/src/dom/event-handler.js +317 -0
- data/node_modules/bootstrap/js/src/dom/manipulator.js +71 -0
- data/node_modules/bootstrap/js/src/dom/selector-engine.js +126 -0
- data/node_modules/bootstrap/js/src/dropdown.js +455 -0
- data/node_modules/bootstrap/js/src/modal.js +378 -0
- data/node_modules/bootstrap/js/src/offcanvas.js +282 -0
- data/node_modules/bootstrap/js/src/popover.js +97 -0
- data/node_modules/bootstrap/js/src/scrollspy.js +296 -0
- data/node_modules/bootstrap/js/src/tab.js +315 -0
- data/node_modules/bootstrap/js/src/toast.js +224 -0
- data/node_modules/bootstrap/js/src/tooltip.js +633 -0
- data/node_modules/bootstrap/js/src/util/backdrop.js +151 -0
- data/node_modules/bootstrap/js/src/util/component-functions.js +35 -0
- data/node_modules/bootstrap/js/src/util/config.js +65 -0
- data/node_modules/bootstrap/js/src/util/focustrap.js +115 -0
- data/node_modules/bootstrap/js/src/util/index.js +306 -0
- data/node_modules/bootstrap/js/src/util/sanitizer.js +116 -0
- data/node_modules/bootstrap/js/src/util/scrollbar.js +114 -0
- data/node_modules/bootstrap/js/src/util/swipe.js +146 -0
- data/node_modules/bootstrap/js/src/util/template-factory.js +160 -0
- data/node_modules/bootstrap/package.json +210 -0
- data/node_modules/bootstrap/scss/_accordion.scss +153 -0
- data/node_modules/bootstrap/scss/_alert.scss +68 -0
- data/node_modules/bootstrap/scss/_badge.scss +38 -0
- data/node_modules/bootstrap/scss/_breadcrumb.scss +40 -0
- data/node_modules/bootstrap/scss/_button-group.scss +147 -0
- data/node_modules/bootstrap/scss/_buttons.scss +216 -0
- data/node_modules/bootstrap/scss/_card.scss +238 -0
- data/node_modules/bootstrap/scss/_carousel.scss +226 -0
- data/node_modules/bootstrap/scss/_close.scss +66 -0
- data/node_modules/bootstrap/scss/_containers.scss +41 -0
- data/node_modules/bootstrap/scss/_dropdown.scss +250 -0
- data/node_modules/bootstrap/scss/_forms.scss +9 -0
- data/node_modules/bootstrap/scss/_functions.scss +302 -0
- data/node_modules/bootstrap/scss/_grid.scss +39 -0
- data/node_modules/bootstrap/scss/_helpers.scss +12 -0
- data/node_modules/bootstrap/scss/_images.scss +42 -0
- data/node_modules/bootstrap/scss/_list-group.scss +199 -0
- data/node_modules/bootstrap/scss/_maps.scss +174 -0
- data/node_modules/bootstrap/scss/_mixins.scss +42 -0
- data/node_modules/bootstrap/scss/_modal.scss +240 -0
- data/node_modules/bootstrap/scss/_nav.scss +197 -0
- data/node_modules/bootstrap/scss/_navbar.scss +289 -0
- data/node_modules/bootstrap/scss/_offcanvas.scss +147 -0
- data/node_modules/bootstrap/scss/_pagination.scss +109 -0
- data/node_modules/bootstrap/scss/_placeholders.scss +51 -0
- data/node_modules/bootstrap/scss/_popover.scss +196 -0
- data/node_modules/bootstrap/scss/_progress.scss +68 -0
- data/node_modules/bootstrap/scss/_reboot.scss +617 -0
- data/node_modules/bootstrap/scss/_root.scss +187 -0
- data/node_modules/bootstrap/scss/_spinners.scss +86 -0
- data/node_modules/bootstrap/scss/_tables.scss +171 -0
- data/node_modules/bootstrap/scss/_toasts.scss +73 -0
- data/node_modules/bootstrap/scss/_tooltip.scss +119 -0
- data/node_modules/bootstrap/scss/_transitions.scss +27 -0
- data/node_modules/bootstrap/scss/_type.scss +106 -0
- data/node_modules/bootstrap/scss/_utilities.scss +806 -0
- data/node_modules/bootstrap/scss/_variables-dark.scss +102 -0
- data/node_modules/bootstrap/scss/_variables.scss +1753 -0
- data/node_modules/bootstrap/scss/bootstrap-grid.scss +62 -0
- data/node_modules/bootstrap/scss/bootstrap-reboot.scss +10 -0
- data/node_modules/bootstrap/scss/bootstrap-utilities.scss +19 -0
- data/node_modules/bootstrap/scss/bootstrap.scss +52 -0
- data/node_modules/bootstrap/scss/forms/_floating-labels.scss +97 -0
- data/node_modules/bootstrap/scss/forms/_form-check.scss +189 -0
- data/node_modules/bootstrap/scss/forms/_form-control.scss +214 -0
- data/node_modules/bootstrap/scss/forms/_form-range.scss +91 -0
- data/node_modules/bootstrap/scss/forms/_form-select.scss +80 -0
- data/node_modules/bootstrap/scss/forms/_form-text.scss +11 -0
- data/node_modules/bootstrap/scss/forms/_input-group.scss +132 -0
- data/node_modules/bootstrap/scss/forms/_labels.scss +36 -0
- data/node_modules/bootstrap/scss/forms/_validation.scss +12 -0
- data/node_modules/bootstrap/scss/helpers/_clearfix.scss +3 -0
- data/node_modules/bootstrap/scss/helpers/_color-bg.scss +7 -0
- data/node_modules/bootstrap/scss/helpers/_colored-links.scss +30 -0
- data/node_modules/bootstrap/scss/helpers/_focus-ring.scss +5 -0
- data/node_modules/bootstrap/scss/helpers/_icon-link.scss +25 -0
- data/node_modules/bootstrap/scss/helpers/_position.scss +36 -0
- data/node_modules/bootstrap/scss/helpers/_ratio.scss +26 -0
- data/node_modules/bootstrap/scss/helpers/_stacks.scss +15 -0
- data/node_modules/bootstrap/scss/helpers/_stretched-link.scss +15 -0
- data/node_modules/bootstrap/scss/helpers/_text-truncation.scss +7 -0
- data/node_modules/bootstrap/scss/helpers/_visually-hidden.scss +8 -0
- data/node_modules/bootstrap/scss/helpers/_vr.scss +8 -0
- data/node_modules/bootstrap/scss/mixins/_alert.scss +18 -0
- data/node_modules/bootstrap/scss/mixins/_backdrop.scss +14 -0
- data/node_modules/bootstrap/scss/mixins/_banner.scss +7 -0
- data/node_modules/bootstrap/scss/mixins/_border-radius.scss +78 -0
- data/node_modules/bootstrap/scss/mixins/_box-shadow.scss +24 -0
- data/node_modules/bootstrap/scss/mixins/_breakpoints.scss +127 -0
- data/node_modules/bootstrap/scss/mixins/_buttons.scss +70 -0
- data/node_modules/bootstrap/scss/mixins/_caret.scss +69 -0
- data/node_modules/bootstrap/scss/mixins/_clearfix.scss +9 -0
- data/node_modules/bootstrap/scss/mixins/_color-mode.scss +21 -0
- data/node_modules/bootstrap/scss/mixins/_color-scheme.scss +7 -0
- data/node_modules/bootstrap/scss/mixins/_container.scss +11 -0
- data/node_modules/bootstrap/scss/mixins/_deprecate.scss +10 -0
- data/node_modules/bootstrap/scss/mixins/_forms.scss +163 -0
- data/node_modules/bootstrap/scss/mixins/_gradients.scss +47 -0
- data/node_modules/bootstrap/scss/mixins/_grid.scss +151 -0
- data/node_modules/bootstrap/scss/mixins/_image.scss +16 -0
- data/node_modules/bootstrap/scss/mixins/_list-group.scss +26 -0
- data/node_modules/bootstrap/scss/mixins/_lists.scss +7 -0
- data/node_modules/bootstrap/scss/mixins/_pagination.scss +10 -0
- data/node_modules/bootstrap/scss/mixins/_reset-text.scss +17 -0
- data/node_modules/bootstrap/scss/mixins/_resize.scss +6 -0
- data/node_modules/bootstrap/scss/mixins/_table-variants.scss +24 -0
- data/node_modules/bootstrap/scss/mixins/_text-truncate.scss +8 -0
- data/node_modules/bootstrap/scss/mixins/_transition.scss +26 -0
- data/node_modules/bootstrap/scss/mixins/_utilities.scss +97 -0
- data/node_modules/bootstrap/scss/mixins/_visually-hidden.scss +38 -0
- data/node_modules/bootstrap/scss/utilities/_api.scss +47 -0
- data/node_modules/bootstrap/scss/vendor/_rfs.scss +348 -0
- metadata +448 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
[data-bs-theme="light"] {
|
|
3
|
+
// Note: Custom variable values only support SassScript inside `#{}`.
|
|
4
|
+
|
|
5
|
+
// Colors
|
|
6
|
+
//
|
|
7
|
+
// Generate palettes for full colors, grays, and theme colors.
|
|
8
|
+
|
|
9
|
+
@each $color, $value in $colors {
|
|
10
|
+
--#{$prefix}#{$color}: #{$value};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@each $color, $value in $grays {
|
|
14
|
+
--#{$prefix}gray-#{$color}: #{$value};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@each $color, $value in $theme-colors {
|
|
18
|
+
--#{$prefix}#{$color}: #{$value};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@each $color, $value in $theme-colors-rgb {
|
|
22
|
+
--#{$prefix}#{$color}-rgb: #{$value};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@each $color, $value in $theme-colors-text {
|
|
26
|
+
--#{$prefix}#{$color}-text-emphasis: #{$value};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@each $color, $value in $theme-colors-bg-subtle {
|
|
30
|
+
--#{$prefix}#{$color}-bg-subtle: #{$value};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@each $color, $value in $theme-colors-border-subtle {
|
|
34
|
+
--#{$prefix}#{$color}-border-subtle: #{$value};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
--#{$prefix}white-rgb: #{to-rgb($white)};
|
|
38
|
+
--#{$prefix}black-rgb: #{to-rgb($black)};
|
|
39
|
+
|
|
40
|
+
// Fonts
|
|
41
|
+
|
|
42
|
+
// Note: Use `inspect` for lists so that quoted items keep the quotes.
|
|
43
|
+
// See https://github.com/sass/sass/issues/2383#issuecomment-336349172
|
|
44
|
+
--#{$prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
|
|
45
|
+
--#{$prefix}font-monospace: #{inspect($font-family-monospace)};
|
|
46
|
+
--#{$prefix}gradient: #{$gradient};
|
|
47
|
+
|
|
48
|
+
// Root and body
|
|
49
|
+
// scss-docs-start root-body-variables
|
|
50
|
+
@if $font-size-root != null {
|
|
51
|
+
--#{$prefix}root-font-size: #{$font-size-root};
|
|
52
|
+
}
|
|
53
|
+
--#{$prefix}body-font-family: #{inspect($font-family-base)};
|
|
54
|
+
@include rfs($font-size-base, --#{$prefix}body-font-size);
|
|
55
|
+
--#{$prefix}body-font-weight: #{$font-weight-base};
|
|
56
|
+
--#{$prefix}body-line-height: #{$line-height-base};
|
|
57
|
+
@if $body-text-align != null {
|
|
58
|
+
--#{$prefix}body-text-align: #{$body-text-align};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
--#{$prefix}body-color: #{$body-color};
|
|
62
|
+
--#{$prefix}body-color-rgb: #{to-rgb($body-color)};
|
|
63
|
+
--#{$prefix}body-bg: #{$body-bg};
|
|
64
|
+
--#{$prefix}body-bg-rgb: #{to-rgb($body-bg)};
|
|
65
|
+
|
|
66
|
+
--#{$prefix}emphasis-color: #{$body-emphasis-color};
|
|
67
|
+
--#{$prefix}emphasis-color-rgb: #{to-rgb($body-emphasis-color)};
|
|
68
|
+
|
|
69
|
+
--#{$prefix}secondary-color: #{$body-secondary-color};
|
|
70
|
+
--#{$prefix}secondary-color-rgb: #{to-rgb($body-secondary-color)};
|
|
71
|
+
--#{$prefix}secondary-bg: #{$body-secondary-bg};
|
|
72
|
+
--#{$prefix}secondary-bg-rgb: #{to-rgb($body-secondary-bg)};
|
|
73
|
+
|
|
74
|
+
--#{$prefix}tertiary-color: #{$body-tertiary-color};
|
|
75
|
+
--#{$prefix}tertiary-color-rgb: #{to-rgb($body-tertiary-color)};
|
|
76
|
+
--#{$prefix}tertiary-bg: #{$body-tertiary-bg};
|
|
77
|
+
--#{$prefix}tertiary-bg-rgb: #{to-rgb($body-tertiary-bg)};
|
|
78
|
+
// scss-docs-end root-body-variables
|
|
79
|
+
|
|
80
|
+
--#{$prefix}heading-color: #{$headings-color};
|
|
81
|
+
|
|
82
|
+
--#{$prefix}link-color: #{$link-color};
|
|
83
|
+
--#{$prefix}link-color-rgb: #{to-rgb($link-color)};
|
|
84
|
+
--#{$prefix}link-decoration: #{$link-decoration};
|
|
85
|
+
|
|
86
|
+
--#{$prefix}link-hover-color: #{$link-hover-color};
|
|
87
|
+
--#{$prefix}link-hover-color-rgb: #{to-rgb($link-hover-color)};
|
|
88
|
+
|
|
89
|
+
@if $link-hover-decoration != null {
|
|
90
|
+
--#{$prefix}link-hover-decoration: #{$link-hover-decoration};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
--#{$prefix}code-color: #{$code-color};
|
|
94
|
+
--#{$prefix}highlight-color: #{$mark-color};
|
|
95
|
+
--#{$prefix}highlight-bg: #{$mark-bg};
|
|
96
|
+
|
|
97
|
+
// scss-docs-start root-border-var
|
|
98
|
+
--#{$prefix}border-width: #{$border-width};
|
|
99
|
+
--#{$prefix}border-style: #{$border-style};
|
|
100
|
+
--#{$prefix}border-color: #{$border-color};
|
|
101
|
+
--#{$prefix}border-color-translucent: #{$border-color-translucent};
|
|
102
|
+
|
|
103
|
+
--#{$prefix}border-radius: #{$border-radius};
|
|
104
|
+
--#{$prefix}border-radius-sm: #{$border-radius-sm};
|
|
105
|
+
--#{$prefix}border-radius-lg: #{$border-radius-lg};
|
|
106
|
+
--#{$prefix}border-radius-xl: #{$border-radius-xl};
|
|
107
|
+
--#{$prefix}border-radius-xxl: #{$border-radius-xxl};
|
|
108
|
+
--#{$prefix}border-radius-2xl: var(--#{$prefix}border-radius-xxl); // Deprecated in v5.3.0 for consistency
|
|
109
|
+
--#{$prefix}border-radius-pill: #{$border-radius-pill};
|
|
110
|
+
// scss-docs-end root-border-var
|
|
111
|
+
|
|
112
|
+
--#{$prefix}box-shadow: #{$box-shadow};
|
|
113
|
+
--#{$prefix}box-shadow-sm: #{$box-shadow-sm};
|
|
114
|
+
--#{$prefix}box-shadow-lg: #{$box-shadow-lg};
|
|
115
|
+
--#{$prefix}box-shadow-inset: #{$box-shadow-inset};
|
|
116
|
+
|
|
117
|
+
// Focus styles
|
|
118
|
+
// scss-docs-start root-focus-variables
|
|
119
|
+
--#{$prefix}focus-ring-width: #{$focus-ring-width};
|
|
120
|
+
--#{$prefix}focus-ring-opacity: #{$focus-ring-opacity};
|
|
121
|
+
--#{$prefix}focus-ring-color: #{$focus-ring-color};
|
|
122
|
+
// scss-docs-end root-focus-variables
|
|
123
|
+
|
|
124
|
+
// scss-docs-start root-form-validation-variables
|
|
125
|
+
--#{$prefix}form-valid-color: #{$form-valid-color};
|
|
126
|
+
--#{$prefix}form-valid-border-color: #{$form-valid-border-color};
|
|
127
|
+
--#{$prefix}form-invalid-color: #{$form-invalid-color};
|
|
128
|
+
--#{$prefix}form-invalid-border-color: #{$form-invalid-border-color};
|
|
129
|
+
// scss-docs-end root-form-validation-variables
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@if $enable-dark-mode {
|
|
133
|
+
@include color-mode(dark, true) {
|
|
134
|
+
color-scheme: dark;
|
|
135
|
+
|
|
136
|
+
// scss-docs-start root-dark-mode-vars
|
|
137
|
+
--#{$prefix}body-color: #{$body-color-dark};
|
|
138
|
+
--#{$prefix}body-color-rgb: #{to-rgb($body-color-dark)};
|
|
139
|
+
--#{$prefix}body-bg: #{$body-bg-dark};
|
|
140
|
+
--#{$prefix}body-bg-rgb: #{to-rgb($body-bg-dark)};
|
|
141
|
+
|
|
142
|
+
--#{$prefix}emphasis-color: #{$body-emphasis-color-dark};
|
|
143
|
+
--#{$prefix}emphasis-color-rgb: #{to-rgb($body-emphasis-color-dark)};
|
|
144
|
+
|
|
145
|
+
--#{$prefix}secondary-color: #{$body-secondary-color-dark};
|
|
146
|
+
--#{$prefix}secondary-color-rgb: #{to-rgb($body-secondary-color-dark)};
|
|
147
|
+
--#{$prefix}secondary-bg: #{$body-secondary-bg-dark};
|
|
148
|
+
--#{$prefix}secondary-bg-rgb: #{to-rgb($body-secondary-bg-dark)};
|
|
149
|
+
|
|
150
|
+
--#{$prefix}tertiary-color: #{$body-tertiary-color-dark};
|
|
151
|
+
--#{$prefix}tertiary-color-rgb: #{to-rgb($body-tertiary-color-dark)};
|
|
152
|
+
--#{$prefix}tertiary-bg: #{$body-tertiary-bg-dark};
|
|
153
|
+
--#{$prefix}tertiary-bg-rgb: #{to-rgb($body-tertiary-bg-dark)};
|
|
154
|
+
|
|
155
|
+
@each $color, $value in $theme-colors-text-dark {
|
|
156
|
+
--#{$prefix}#{$color}-text-emphasis: #{$value};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@each $color, $value in $theme-colors-bg-subtle-dark {
|
|
160
|
+
--#{$prefix}#{$color}-bg-subtle: #{$value};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@each $color, $value in $theme-colors-border-subtle-dark {
|
|
164
|
+
--#{$prefix}#{$color}-border-subtle: #{$value};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
--#{$prefix}heading-color: #{$headings-color-dark};
|
|
168
|
+
|
|
169
|
+
--#{$prefix}link-color: #{$link-color-dark};
|
|
170
|
+
--#{$prefix}link-hover-color: #{$link-hover-color-dark};
|
|
171
|
+
--#{$prefix}link-color-rgb: #{to-rgb($link-color-dark)};
|
|
172
|
+
--#{$prefix}link-hover-color-rgb: #{to-rgb($link-hover-color-dark)};
|
|
173
|
+
|
|
174
|
+
--#{$prefix}code-color: #{$code-color-dark};
|
|
175
|
+
--#{$prefix}highlight-color: #{$mark-color-dark};
|
|
176
|
+
--#{$prefix}highlight-bg: #{$mark-bg-dark};
|
|
177
|
+
|
|
178
|
+
--#{$prefix}border-color: #{$border-color-dark};
|
|
179
|
+
--#{$prefix}border-color-translucent: #{$border-color-translucent-dark};
|
|
180
|
+
|
|
181
|
+
--#{$prefix}form-valid-color: #{$form-valid-color-dark};
|
|
182
|
+
--#{$prefix}form-valid-border-color: #{$form-valid-border-color-dark};
|
|
183
|
+
--#{$prefix}form-invalid-color: #{$form-invalid-color-dark};
|
|
184
|
+
--#{$prefix}form-invalid-border-color: #{$form-invalid-border-color-dark};
|
|
185
|
+
// scss-docs-end root-dark-mode-vars
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Rotating border
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
.spinner-grow,
|
|
6
|
+
.spinner-border {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
width: var(--#{$prefix}spinner-width);
|
|
10
|
+
height: var(--#{$prefix}spinner-height);
|
|
11
|
+
vertical-align: var(--#{$prefix}spinner-vertical-align);
|
|
12
|
+
// stylelint-disable-next-line property-disallowed-list
|
|
13
|
+
border-radius: 50%;
|
|
14
|
+
animation: var(--#{$prefix}spinner-animation-speed) linear infinite var(--#{$prefix}spinner-animation-name);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// scss-docs-start spinner-border-keyframes
|
|
18
|
+
@keyframes spinner-border {
|
|
19
|
+
to { transform: rotate(360deg) #{"/* rtl:ignore */"}; }
|
|
20
|
+
}
|
|
21
|
+
// scss-docs-end spinner-border-keyframes
|
|
22
|
+
|
|
23
|
+
.spinner-border {
|
|
24
|
+
// scss-docs-start spinner-border-css-vars
|
|
25
|
+
--#{$prefix}spinner-width: #{$spinner-width};
|
|
26
|
+
--#{$prefix}spinner-height: #{$spinner-height};
|
|
27
|
+
--#{$prefix}spinner-vertical-align: #{$spinner-vertical-align};
|
|
28
|
+
--#{$prefix}spinner-border-width: #{$spinner-border-width};
|
|
29
|
+
--#{$prefix}spinner-animation-speed: #{$spinner-animation-speed};
|
|
30
|
+
--#{$prefix}spinner-animation-name: spinner-border;
|
|
31
|
+
// scss-docs-end spinner-border-css-vars
|
|
32
|
+
|
|
33
|
+
border: var(--#{$prefix}spinner-border-width) solid currentcolor;
|
|
34
|
+
border-right-color: transparent;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.spinner-border-sm {
|
|
38
|
+
// scss-docs-start spinner-border-sm-css-vars
|
|
39
|
+
--#{$prefix}spinner-width: #{$spinner-width-sm};
|
|
40
|
+
--#{$prefix}spinner-height: #{$spinner-height-sm};
|
|
41
|
+
--#{$prefix}spinner-border-width: #{$spinner-border-width-sm};
|
|
42
|
+
// scss-docs-end spinner-border-sm-css-vars
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
//
|
|
46
|
+
// Growing circle
|
|
47
|
+
//
|
|
48
|
+
|
|
49
|
+
// scss-docs-start spinner-grow-keyframes
|
|
50
|
+
@keyframes spinner-grow {
|
|
51
|
+
0% {
|
|
52
|
+
transform: scale(0);
|
|
53
|
+
}
|
|
54
|
+
50% {
|
|
55
|
+
opacity: 1;
|
|
56
|
+
transform: none;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
// scss-docs-end spinner-grow-keyframes
|
|
60
|
+
|
|
61
|
+
.spinner-grow {
|
|
62
|
+
// scss-docs-start spinner-grow-css-vars
|
|
63
|
+
--#{$prefix}spinner-width: #{$spinner-width};
|
|
64
|
+
--#{$prefix}spinner-height: #{$spinner-height};
|
|
65
|
+
--#{$prefix}spinner-vertical-align: #{$spinner-vertical-align};
|
|
66
|
+
--#{$prefix}spinner-animation-speed: #{$spinner-animation-speed};
|
|
67
|
+
--#{$prefix}spinner-animation-name: spinner-grow;
|
|
68
|
+
// scss-docs-end spinner-grow-css-vars
|
|
69
|
+
|
|
70
|
+
background-color: currentcolor;
|
|
71
|
+
opacity: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.spinner-grow-sm {
|
|
75
|
+
--#{$prefix}spinner-width: #{$spinner-width-sm};
|
|
76
|
+
--#{$prefix}spinner-height: #{$spinner-height-sm};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@if $enable-reduced-motion {
|
|
80
|
+
@media (prefers-reduced-motion: reduce) {
|
|
81
|
+
.spinner-border,
|
|
82
|
+
.spinner-grow {
|
|
83
|
+
--#{$prefix}spinner-animation-speed: #{$spinner-animation-speed * 2};
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Basic Bootstrap table
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
.table {
|
|
6
|
+
// Reset needed for nesting tables
|
|
7
|
+
--#{$prefix}table-color-type: initial;
|
|
8
|
+
--#{$prefix}table-bg-type: initial;
|
|
9
|
+
--#{$prefix}table-color-state: initial;
|
|
10
|
+
--#{$prefix}table-bg-state: initial;
|
|
11
|
+
// End of reset
|
|
12
|
+
--#{$prefix}table-color: #{$table-color};
|
|
13
|
+
--#{$prefix}table-bg: #{$table-bg};
|
|
14
|
+
--#{$prefix}table-border-color: #{$table-border-color};
|
|
15
|
+
--#{$prefix}table-accent-bg: #{$table-accent-bg};
|
|
16
|
+
--#{$prefix}table-striped-color: #{$table-striped-color};
|
|
17
|
+
--#{$prefix}table-striped-bg: #{$table-striped-bg};
|
|
18
|
+
--#{$prefix}table-active-color: #{$table-active-color};
|
|
19
|
+
--#{$prefix}table-active-bg: #{$table-active-bg};
|
|
20
|
+
--#{$prefix}table-hover-color: #{$table-hover-color};
|
|
21
|
+
--#{$prefix}table-hover-bg: #{$table-hover-bg};
|
|
22
|
+
|
|
23
|
+
width: 100%;
|
|
24
|
+
margin-bottom: $spacer;
|
|
25
|
+
vertical-align: $table-cell-vertical-align;
|
|
26
|
+
border-color: var(--#{$prefix}table-border-color);
|
|
27
|
+
|
|
28
|
+
// Target th & td
|
|
29
|
+
// We need the child combinator to prevent styles leaking to nested tables which doesn't have a `.table` class.
|
|
30
|
+
// We use the universal selectors here to simplify the selector (else we would need 6 different selectors).
|
|
31
|
+
// Another advantage is that this generates less code and makes the selector less specific making it easier to override.
|
|
32
|
+
// stylelint-disable-next-line selector-max-universal
|
|
33
|
+
> :not(caption) > * > * {
|
|
34
|
+
padding: $table-cell-padding-y $table-cell-padding-x;
|
|
35
|
+
// Following the precept of cascades: https://codepen.io/miriamsuzanne/full/vYNgodb
|
|
36
|
+
color: var(--#{$prefix}table-color-state, var(--#{$prefix}table-color-type, var(--#{$prefix}table-color)));
|
|
37
|
+
background-color: var(--#{$prefix}table-bg);
|
|
38
|
+
border-bottom-width: $table-border-width;
|
|
39
|
+
box-shadow: inset 0 0 0 9999px var(--#{$prefix}table-bg-state, var(--#{$prefix}table-bg-type, var(--#{$prefix}table-accent-bg)));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
> tbody {
|
|
43
|
+
vertical-align: inherit;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
> thead {
|
|
47
|
+
vertical-align: bottom;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.table-group-divider {
|
|
52
|
+
border-top: calc(#{$table-border-width} * 2) solid $table-group-separator-color; // stylelint-disable-line function-disallowed-list
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
//
|
|
56
|
+
// Change placement of captions with a class
|
|
57
|
+
//
|
|
58
|
+
|
|
59
|
+
.caption-top {
|
|
60
|
+
caption-side: top;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
//
|
|
65
|
+
// Condensed table w/ half padding
|
|
66
|
+
//
|
|
67
|
+
|
|
68
|
+
.table-sm {
|
|
69
|
+
// stylelint-disable-next-line selector-max-universal
|
|
70
|
+
> :not(caption) > * > * {
|
|
71
|
+
padding: $table-cell-padding-y-sm $table-cell-padding-x-sm;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
// Border versions
|
|
77
|
+
//
|
|
78
|
+
// Add or remove borders all around the table and between all the columns.
|
|
79
|
+
//
|
|
80
|
+
// When borders are added on all sides of the cells, the corners can render odd when
|
|
81
|
+
// these borders do not have the same color or if they are semi-transparent.
|
|
82
|
+
// Therefore we add top and border bottoms to the `tr`s and left and right borders
|
|
83
|
+
// to the `td`s or `th`s
|
|
84
|
+
|
|
85
|
+
.table-bordered {
|
|
86
|
+
> :not(caption) > * {
|
|
87
|
+
border-width: $table-border-width 0;
|
|
88
|
+
|
|
89
|
+
// stylelint-disable-next-line selector-max-universal
|
|
90
|
+
> * {
|
|
91
|
+
border-width: 0 $table-border-width;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.table-borderless {
|
|
97
|
+
// stylelint-disable-next-line selector-max-universal
|
|
98
|
+
> :not(caption) > * > * {
|
|
99
|
+
border-bottom-width: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
> :not(:first-child) {
|
|
103
|
+
border-top-width: 0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Zebra-striping
|
|
108
|
+
//
|
|
109
|
+
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
|
110
|
+
|
|
111
|
+
// For rows
|
|
112
|
+
.table-striped {
|
|
113
|
+
> tbody > tr:nth-of-type(#{$table-striped-order}) > * {
|
|
114
|
+
--#{$prefix}table-color-type: var(--#{$prefix}table-striped-color);
|
|
115
|
+
--#{$prefix}table-bg-type: var(--#{$prefix}table-striped-bg);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// For columns
|
|
120
|
+
.table-striped-columns {
|
|
121
|
+
> :not(caption) > tr > :nth-child(#{$table-striped-columns-order}) {
|
|
122
|
+
--#{$prefix}table-color-type: var(--#{$prefix}table-striped-color);
|
|
123
|
+
--#{$prefix}table-bg-type: var(--#{$prefix}table-striped-bg);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Active table
|
|
128
|
+
//
|
|
129
|
+
// The `.table-active` class can be added to highlight rows or cells
|
|
130
|
+
|
|
131
|
+
.table-active {
|
|
132
|
+
--#{$prefix}table-color-state: var(--#{$prefix}table-active-color);
|
|
133
|
+
--#{$prefix}table-bg-state: var(--#{$prefix}table-active-bg);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Hover effect
|
|
137
|
+
//
|
|
138
|
+
// Placed here since it has to come after the potential zebra striping
|
|
139
|
+
|
|
140
|
+
.table-hover {
|
|
141
|
+
> tbody > tr:hover > * {
|
|
142
|
+
--#{$prefix}table-color-state: var(--#{$prefix}table-hover-color);
|
|
143
|
+
--#{$prefix}table-bg-state: var(--#{$prefix}table-hover-bg);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
// Table variants
|
|
149
|
+
//
|
|
150
|
+
// Table variants set the table cell backgrounds, border colors
|
|
151
|
+
// and the colors of the striped, hovered & active tables
|
|
152
|
+
|
|
153
|
+
@each $color, $value in $table-variants {
|
|
154
|
+
@include table-variant($color, $value);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// Responsive tables
|
|
158
|
+
//
|
|
159
|
+
// Generate series of `.table-responsive-*` classes for configuring the screen
|
|
160
|
+
// size of where your table will overflow.
|
|
161
|
+
|
|
162
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
163
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
164
|
+
|
|
165
|
+
@include media-breakpoint-down($breakpoint) {
|
|
166
|
+
.table-responsive#{$infix} {
|
|
167
|
+
overflow-x: auto;
|
|
168
|
+
-webkit-overflow-scrolling: touch;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.toast {
|
|
2
|
+
// scss-docs-start toast-css-vars
|
|
3
|
+
--#{$prefix}toast-zindex: #{$zindex-toast};
|
|
4
|
+
--#{$prefix}toast-padding-x: #{$toast-padding-x};
|
|
5
|
+
--#{$prefix}toast-padding-y: #{$toast-padding-y};
|
|
6
|
+
--#{$prefix}toast-spacing: #{$toast-spacing};
|
|
7
|
+
--#{$prefix}toast-max-width: #{$toast-max-width};
|
|
8
|
+
@include rfs($toast-font-size, --#{$prefix}toast-font-size);
|
|
9
|
+
--#{$prefix}toast-color: #{$toast-color};
|
|
10
|
+
--#{$prefix}toast-bg: #{$toast-background-color};
|
|
11
|
+
--#{$prefix}toast-border-width: #{$toast-border-width};
|
|
12
|
+
--#{$prefix}toast-border-color: #{$toast-border-color};
|
|
13
|
+
--#{$prefix}toast-border-radius: #{$toast-border-radius};
|
|
14
|
+
--#{$prefix}toast-box-shadow: #{$toast-box-shadow};
|
|
15
|
+
--#{$prefix}toast-header-color: #{$toast-header-color};
|
|
16
|
+
--#{$prefix}toast-header-bg: #{$toast-header-background-color};
|
|
17
|
+
--#{$prefix}toast-header-border-color: #{$toast-header-border-color};
|
|
18
|
+
// scss-docs-end toast-css-vars
|
|
19
|
+
|
|
20
|
+
width: var(--#{$prefix}toast-max-width);
|
|
21
|
+
max-width: 100%;
|
|
22
|
+
@include font-size(var(--#{$prefix}toast-font-size));
|
|
23
|
+
color: var(--#{$prefix}toast-color);
|
|
24
|
+
pointer-events: auto;
|
|
25
|
+
background-color: var(--#{$prefix}toast-bg);
|
|
26
|
+
background-clip: padding-box;
|
|
27
|
+
border: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-border-color);
|
|
28
|
+
box-shadow: var(--#{$prefix}toast-box-shadow);
|
|
29
|
+
@include border-radius(var(--#{$prefix}toast-border-radius));
|
|
30
|
+
|
|
31
|
+
&.showing {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:not(.show) {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.toast-container {
|
|
41
|
+
--#{$prefix}toast-zindex: #{$zindex-toast};
|
|
42
|
+
|
|
43
|
+
position: absolute;
|
|
44
|
+
z-index: var(--#{$prefix}toast-zindex);
|
|
45
|
+
width: max-content;
|
|
46
|
+
max-width: 100%;
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
|
|
49
|
+
> :not(:last-child) {
|
|
50
|
+
margin-bottom: var(--#{$prefix}toast-spacing);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.toast-header {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
padding: var(--#{$prefix}toast-padding-y) var(--#{$prefix}toast-padding-x);
|
|
58
|
+
color: var(--#{$prefix}toast-header-color);
|
|
59
|
+
background-color: var(--#{$prefix}toast-header-bg);
|
|
60
|
+
background-clip: padding-box;
|
|
61
|
+
border-bottom: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-header-border-color);
|
|
62
|
+
@include border-top-radius(calc(var(--#{$prefix}toast-border-radius) - var(--#{$prefix}toast-border-width)));
|
|
63
|
+
|
|
64
|
+
.btn-close {
|
|
65
|
+
margin-right: calc(-.5 * var(--#{$prefix}toast-padding-x)); // stylelint-disable-line function-disallowed-list
|
|
66
|
+
margin-left: var(--#{$prefix}toast-padding-x);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.toast-body {
|
|
71
|
+
padding: var(--#{$prefix}toast-padding-x);
|
|
72
|
+
word-wrap: break-word;
|
|
73
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// Base class
|
|
2
|
+
.tooltip {
|
|
3
|
+
// scss-docs-start tooltip-css-vars
|
|
4
|
+
--#{$prefix}tooltip-zindex: #{$zindex-tooltip};
|
|
5
|
+
--#{$prefix}tooltip-max-width: #{$tooltip-max-width};
|
|
6
|
+
--#{$prefix}tooltip-padding-x: #{$tooltip-padding-x};
|
|
7
|
+
--#{$prefix}tooltip-padding-y: #{$tooltip-padding-y};
|
|
8
|
+
--#{$prefix}tooltip-margin: #{$tooltip-margin};
|
|
9
|
+
@include rfs($tooltip-font-size, --#{$prefix}tooltip-font-size);
|
|
10
|
+
--#{$prefix}tooltip-color: #{$tooltip-color};
|
|
11
|
+
--#{$prefix}tooltip-bg: #{$tooltip-bg};
|
|
12
|
+
--#{$prefix}tooltip-border-radius: #{$tooltip-border-radius};
|
|
13
|
+
--#{$prefix}tooltip-opacity: #{$tooltip-opacity};
|
|
14
|
+
--#{$prefix}tooltip-arrow-width: #{$tooltip-arrow-width};
|
|
15
|
+
--#{$prefix}tooltip-arrow-height: #{$tooltip-arrow-height};
|
|
16
|
+
// scss-docs-end tooltip-css-vars
|
|
17
|
+
|
|
18
|
+
z-index: var(--#{$prefix}tooltip-zindex);
|
|
19
|
+
display: block;
|
|
20
|
+
margin: var(--#{$prefix}tooltip-margin);
|
|
21
|
+
@include deprecate("`$tooltip-margin`", "v5", "v5.x", true);
|
|
22
|
+
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
|
23
|
+
// So reset our font and text properties to avoid inheriting weird values.
|
|
24
|
+
@include reset-text();
|
|
25
|
+
@include font-size(var(--#{$prefix}tooltip-font-size));
|
|
26
|
+
// Allow breaking very long words so they don't overflow the tooltip's bounds
|
|
27
|
+
word-wrap: break-word;
|
|
28
|
+
opacity: 0;
|
|
29
|
+
|
|
30
|
+
&.show { opacity: var(--#{$prefix}tooltip-opacity); }
|
|
31
|
+
|
|
32
|
+
.tooltip-arrow {
|
|
33
|
+
display: block;
|
|
34
|
+
width: var(--#{$prefix}tooltip-arrow-width);
|
|
35
|
+
height: var(--#{$prefix}tooltip-arrow-height);
|
|
36
|
+
|
|
37
|
+
&::before {
|
|
38
|
+
position: absolute;
|
|
39
|
+
content: "";
|
|
40
|
+
border-color: transparent;
|
|
41
|
+
border-style: solid;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.bs-tooltip-top .tooltip-arrow {
|
|
47
|
+
bottom: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
|
48
|
+
|
|
49
|
+
&::before {
|
|
50
|
+
top: -1px;
|
|
51
|
+
border-width: var(--#{$prefix}tooltip-arrow-height) calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
|
|
52
|
+
border-top-color: var(--#{$prefix}tooltip-bg);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* rtl:begin:ignore */
|
|
57
|
+
.bs-tooltip-end .tooltip-arrow {
|
|
58
|
+
left: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
|
59
|
+
width: var(--#{$prefix}tooltip-arrow-height);
|
|
60
|
+
height: var(--#{$prefix}tooltip-arrow-width);
|
|
61
|
+
|
|
62
|
+
&::before {
|
|
63
|
+
right: -1px;
|
|
64
|
+
border-width: calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height) calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
|
|
65
|
+
border-right-color: var(--#{$prefix}tooltip-bg);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* rtl:end:ignore */
|
|
70
|
+
|
|
71
|
+
.bs-tooltip-bottom .tooltip-arrow {
|
|
72
|
+
top: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
|
73
|
+
|
|
74
|
+
&::before {
|
|
75
|
+
bottom: -1px;
|
|
76
|
+
border-width: 0 calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height); // stylelint-disable-line function-disallowed-list
|
|
77
|
+
border-bottom-color: var(--#{$prefix}tooltip-bg);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* rtl:begin:ignore */
|
|
82
|
+
.bs-tooltip-start .tooltip-arrow {
|
|
83
|
+
right: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
|
84
|
+
width: var(--#{$prefix}tooltip-arrow-height);
|
|
85
|
+
height: var(--#{$prefix}tooltip-arrow-width);
|
|
86
|
+
|
|
87
|
+
&::before {
|
|
88
|
+
left: -1px;
|
|
89
|
+
border-width: calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0 calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height); // stylelint-disable-line function-disallowed-list
|
|
90
|
+
border-left-color: var(--#{$prefix}tooltip-bg);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* rtl:end:ignore */
|
|
95
|
+
|
|
96
|
+
.bs-tooltip-auto {
|
|
97
|
+
&[data-popper-placement^="top"] {
|
|
98
|
+
@extend .bs-tooltip-top;
|
|
99
|
+
}
|
|
100
|
+
&[data-popper-placement^="right"] {
|
|
101
|
+
@extend .bs-tooltip-end;
|
|
102
|
+
}
|
|
103
|
+
&[data-popper-placement^="bottom"] {
|
|
104
|
+
@extend .bs-tooltip-bottom;
|
|
105
|
+
}
|
|
106
|
+
&[data-popper-placement^="left"] {
|
|
107
|
+
@extend .bs-tooltip-start;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Wrapper for the tooltip content
|
|
112
|
+
.tooltip-inner {
|
|
113
|
+
max-width: var(--#{$prefix}tooltip-max-width);
|
|
114
|
+
padding: var(--#{$prefix}tooltip-padding-y) var(--#{$prefix}tooltip-padding-x);
|
|
115
|
+
color: var(--#{$prefix}tooltip-color);
|
|
116
|
+
text-align: center;
|
|
117
|
+
background-color: var(--#{$prefix}tooltip-bg);
|
|
118
|
+
@include border-radius(var(--#{$prefix}tooltip-border-radius));
|
|
119
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.fade {
|
|
2
|
+
@include transition($transition-fade);
|
|
3
|
+
|
|
4
|
+
&:not(.show) {
|
|
5
|
+
opacity: 0;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// scss-docs-start collapse-classes
|
|
10
|
+
.collapse {
|
|
11
|
+
&:not(.show) {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.collapsing {
|
|
17
|
+
height: 0;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
@include transition($transition-collapse);
|
|
20
|
+
|
|
21
|
+
&.collapse-horizontal {
|
|
22
|
+
width: 0;
|
|
23
|
+
height: auto;
|
|
24
|
+
@include transition($transition-collapse-width);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
// scss-docs-end collapse-classes
|