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,240 @@
|
|
|
1
|
+
// stylelint-disable function-disallowed-list
|
|
2
|
+
|
|
3
|
+
// .modal-open - body class for killing the scroll
|
|
4
|
+
// .modal - container to scroll within
|
|
5
|
+
// .modal-dialog - positioning shell for the actual modal
|
|
6
|
+
// .modal-content - actual modal w/ bg and corners and stuff
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
// Container that the modal scrolls within
|
|
10
|
+
.modal {
|
|
11
|
+
// scss-docs-start modal-css-vars
|
|
12
|
+
--#{$prefix}modal-zindex: #{$zindex-modal};
|
|
13
|
+
--#{$prefix}modal-width: #{$modal-md};
|
|
14
|
+
--#{$prefix}modal-padding: #{$modal-inner-padding};
|
|
15
|
+
--#{$prefix}modal-margin: #{$modal-dialog-margin};
|
|
16
|
+
--#{$prefix}modal-color: #{$modal-content-color};
|
|
17
|
+
--#{$prefix}modal-bg: #{$modal-content-bg};
|
|
18
|
+
--#{$prefix}modal-border-color: #{$modal-content-border-color};
|
|
19
|
+
--#{$prefix}modal-border-width: #{$modal-content-border-width};
|
|
20
|
+
--#{$prefix}modal-border-radius: #{$modal-content-border-radius};
|
|
21
|
+
--#{$prefix}modal-box-shadow: #{$modal-content-box-shadow-xs};
|
|
22
|
+
--#{$prefix}modal-inner-border-radius: #{$modal-content-inner-border-radius};
|
|
23
|
+
--#{$prefix}modal-header-padding-x: #{$modal-header-padding-x};
|
|
24
|
+
--#{$prefix}modal-header-padding-y: #{$modal-header-padding-y};
|
|
25
|
+
--#{$prefix}modal-header-padding: #{$modal-header-padding}; // Todo in v6: Split this padding into x and y
|
|
26
|
+
--#{$prefix}modal-header-border-color: #{$modal-header-border-color};
|
|
27
|
+
--#{$prefix}modal-header-border-width: #{$modal-header-border-width};
|
|
28
|
+
--#{$prefix}modal-title-line-height: #{$modal-title-line-height};
|
|
29
|
+
--#{$prefix}modal-footer-gap: #{$modal-footer-margin-between};
|
|
30
|
+
--#{$prefix}modal-footer-bg: #{$modal-footer-bg};
|
|
31
|
+
--#{$prefix}modal-footer-border-color: #{$modal-footer-border-color};
|
|
32
|
+
--#{$prefix}modal-footer-border-width: #{$modal-footer-border-width};
|
|
33
|
+
// scss-docs-end modal-css-vars
|
|
34
|
+
|
|
35
|
+
position: fixed;
|
|
36
|
+
top: 0;
|
|
37
|
+
left: 0;
|
|
38
|
+
z-index: var(--#{$prefix}modal-zindex);
|
|
39
|
+
display: none;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
overflow-x: hidden;
|
|
43
|
+
overflow-y: auto;
|
|
44
|
+
// Prevent Chrome on Windows from adding a focus outline. For details, see
|
|
45
|
+
// https://github.com/twbs/bootstrap/pull/10951.
|
|
46
|
+
outline: 0;
|
|
47
|
+
// We deliberately don't use `-webkit-overflow-scrolling: touch;` due to a
|
|
48
|
+
// gnarly iOS Safari bug: https://bugs.webkit.org/show_bug.cgi?id=158342
|
|
49
|
+
// See also https://github.com/twbs/bootstrap/issues/17695
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Shell div to position the modal with bottom padding
|
|
53
|
+
.modal-dialog {
|
|
54
|
+
position: relative;
|
|
55
|
+
width: auto;
|
|
56
|
+
margin: var(--#{$prefix}modal-margin);
|
|
57
|
+
// allow clicks to pass through for custom click handling to close modal
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
|
|
60
|
+
// When fading in the modal, animate it to slide down
|
|
61
|
+
.modal.fade & {
|
|
62
|
+
transform: $modal-fade-transform;
|
|
63
|
+
@include transition($modal-transition);
|
|
64
|
+
}
|
|
65
|
+
.modal.show & {
|
|
66
|
+
transform: $modal-show-transform;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// When trying to close, animate focus to scale
|
|
70
|
+
.modal.modal-static & {
|
|
71
|
+
transform: $modal-scale-transform;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.modal-dialog-scrollable {
|
|
76
|
+
height: calc(100% - var(--#{$prefix}modal-margin) * 2);
|
|
77
|
+
|
|
78
|
+
.modal-content {
|
|
79
|
+
max-height: 100%;
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.modal-body {
|
|
84
|
+
overflow-y: auto;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.modal-dialog-centered {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
min-height: calc(100% - var(--#{$prefix}modal-margin) * 2);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Actual modal
|
|
95
|
+
.modal-content {
|
|
96
|
+
position: relative;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
width: 100%; // Ensure `.modal-content` extends the full width of the parent `.modal-dialog`
|
|
100
|
+
// counteract the pointer-events: none; in the .modal-dialog
|
|
101
|
+
color: var(--#{$prefix}modal-color);
|
|
102
|
+
pointer-events: auto;
|
|
103
|
+
background-color: var(--#{$prefix}modal-bg);
|
|
104
|
+
background-clip: padding-box;
|
|
105
|
+
border: var(--#{$prefix}modal-border-width) solid var(--#{$prefix}modal-border-color);
|
|
106
|
+
@include border-radius(var(--#{$prefix}modal-border-radius));
|
|
107
|
+
@include box-shadow(var(--#{$prefix}modal-box-shadow));
|
|
108
|
+
// Remove focus outline from opened modal
|
|
109
|
+
outline: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Modal background
|
|
113
|
+
.modal-backdrop {
|
|
114
|
+
// scss-docs-start modal-backdrop-css-vars
|
|
115
|
+
--#{$prefix}backdrop-zindex: #{$zindex-modal-backdrop};
|
|
116
|
+
--#{$prefix}backdrop-bg: #{$modal-backdrop-bg};
|
|
117
|
+
--#{$prefix}backdrop-opacity: #{$modal-backdrop-opacity};
|
|
118
|
+
// scss-docs-end modal-backdrop-css-vars
|
|
119
|
+
|
|
120
|
+
@include overlay-backdrop(var(--#{$prefix}backdrop-zindex), var(--#{$prefix}backdrop-bg), var(--#{$prefix}backdrop-opacity));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Modal header
|
|
124
|
+
// Top section of the modal w/ title and dismiss
|
|
125
|
+
.modal-header {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-shrink: 0;
|
|
128
|
+
align-items: center;
|
|
129
|
+
padding: var(--#{$prefix}modal-header-padding);
|
|
130
|
+
border-bottom: var(--#{$prefix}modal-header-border-width) solid var(--#{$prefix}modal-header-border-color);
|
|
131
|
+
@include border-top-radius(var(--#{$prefix}modal-inner-border-radius));
|
|
132
|
+
|
|
133
|
+
.btn-close {
|
|
134
|
+
padding: calc(var(--#{$prefix}modal-header-padding-y) * .5) calc(var(--#{$prefix}modal-header-padding-x) * .5);
|
|
135
|
+
// Split properties to avoid invalid calc() function if value is 0
|
|
136
|
+
margin-top: calc(-.5 * var(--#{$prefix}modal-header-padding-y));
|
|
137
|
+
margin-right: calc(-.5 * var(--#{$prefix}modal-header-padding-x));
|
|
138
|
+
margin-bottom: calc(-.5 * var(--#{$prefix}modal-header-padding-y));
|
|
139
|
+
margin-left: auto;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// Title text within header
|
|
144
|
+
.modal-title {
|
|
145
|
+
margin-bottom: 0;
|
|
146
|
+
line-height: var(--#{$prefix}modal-title-line-height);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// Modal body
|
|
150
|
+
// Where all modal content resides (sibling of .modal-header and .modal-footer)
|
|
151
|
+
.modal-body {
|
|
152
|
+
position: relative;
|
|
153
|
+
// Enable `flex-grow: 1` so that the body take up as much space as possible
|
|
154
|
+
// when there should be a fixed height on `.modal-dialog`.
|
|
155
|
+
flex: 1 1 auto;
|
|
156
|
+
padding: var(--#{$prefix}modal-padding);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// Footer (for actions)
|
|
160
|
+
.modal-footer {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-shrink: 0;
|
|
163
|
+
flex-wrap: wrap;
|
|
164
|
+
align-items: center; // vertically center
|
|
165
|
+
justify-content: flex-end; // Right align buttons with flex property because text-align doesn't work on flex items
|
|
166
|
+
padding: calc(var(--#{$prefix}modal-padding) - var(--#{$prefix}modal-footer-gap) * .5);
|
|
167
|
+
background-color: var(--#{$prefix}modal-footer-bg);
|
|
168
|
+
border-top: var(--#{$prefix}modal-footer-border-width) solid var(--#{$prefix}modal-footer-border-color);
|
|
169
|
+
@include border-bottom-radius(var(--#{$prefix}modal-inner-border-radius));
|
|
170
|
+
|
|
171
|
+
// Place margin between footer elements
|
|
172
|
+
// This solution is far from ideal because of the universal selector usage,
|
|
173
|
+
// but is needed to fix https://github.com/twbs/bootstrap/issues/24800
|
|
174
|
+
> * {
|
|
175
|
+
margin: calc(var(--#{$prefix}modal-footer-gap) * .5); // Todo in v6: replace with gap on parent class
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// Scale up the modal
|
|
180
|
+
@include media-breakpoint-up(sm) {
|
|
181
|
+
.modal {
|
|
182
|
+
--#{$prefix}modal-margin: #{$modal-dialog-margin-y-sm-up};
|
|
183
|
+
--#{$prefix}modal-box-shadow: #{$modal-content-box-shadow-sm-up};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// Automatically set modal's width for larger viewports
|
|
187
|
+
.modal-dialog {
|
|
188
|
+
max-width: var(--#{$prefix}modal-width);
|
|
189
|
+
margin-right: auto;
|
|
190
|
+
margin-left: auto;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.modal-sm {
|
|
194
|
+
--#{$prefix}modal-width: #{$modal-sm};
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@include media-breakpoint-up(lg) {
|
|
199
|
+
.modal-lg,
|
|
200
|
+
.modal-xl {
|
|
201
|
+
--#{$prefix}modal-width: #{$modal-lg};
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@include media-breakpoint-up(xl) {
|
|
206
|
+
.modal-xl {
|
|
207
|
+
--#{$prefix}modal-width: #{$modal-xl};
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// scss-docs-start modal-fullscreen-loop
|
|
212
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
213
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
214
|
+
$postfix: if($infix != "", $infix + "-down", "");
|
|
215
|
+
|
|
216
|
+
@include media-breakpoint-down($breakpoint) {
|
|
217
|
+
.modal-fullscreen#{$postfix} {
|
|
218
|
+
width: 100vw;
|
|
219
|
+
max-width: none;
|
|
220
|
+
height: 100%;
|
|
221
|
+
margin: 0;
|
|
222
|
+
|
|
223
|
+
.modal-content {
|
|
224
|
+
height: 100%;
|
|
225
|
+
border: 0;
|
|
226
|
+
@include border-radius(0);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.modal-header,
|
|
230
|
+
.modal-footer {
|
|
231
|
+
@include border-radius(0);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.modal-body {
|
|
235
|
+
overflow-y: auto;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
// scss-docs-end modal-fullscreen-loop
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
// Base class
|
|
2
|
+
//
|
|
3
|
+
// Kickstart any navigation component with a set of style resets. Works with
|
|
4
|
+
// `<nav>`s, `<ul>`s or `<ol>`s.
|
|
5
|
+
|
|
6
|
+
.nav {
|
|
7
|
+
// scss-docs-start nav-css-vars
|
|
8
|
+
--#{$prefix}nav-link-padding-x: #{$nav-link-padding-x};
|
|
9
|
+
--#{$prefix}nav-link-padding-y: #{$nav-link-padding-y};
|
|
10
|
+
@include rfs($nav-link-font-size, --#{$prefix}nav-link-font-size);
|
|
11
|
+
--#{$prefix}nav-link-font-weight: #{$nav-link-font-weight};
|
|
12
|
+
--#{$prefix}nav-link-color: #{$nav-link-color};
|
|
13
|
+
--#{$prefix}nav-link-hover-color: #{$nav-link-hover-color};
|
|
14
|
+
--#{$prefix}nav-link-disabled-color: #{$nav-link-disabled-color};
|
|
15
|
+
// scss-docs-end nav-css-vars
|
|
16
|
+
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
padding-left: 0;
|
|
20
|
+
margin-bottom: 0;
|
|
21
|
+
list-style: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.nav-link {
|
|
25
|
+
display: block;
|
|
26
|
+
padding: var(--#{$prefix}nav-link-padding-y) var(--#{$prefix}nav-link-padding-x);
|
|
27
|
+
@include font-size(var(--#{$prefix}nav-link-font-size));
|
|
28
|
+
font-weight: var(--#{$prefix}nav-link-font-weight);
|
|
29
|
+
color: var(--#{$prefix}nav-link-color);
|
|
30
|
+
text-decoration: if($link-decoration == none, null, none);
|
|
31
|
+
background: none;
|
|
32
|
+
border: 0;
|
|
33
|
+
@include transition($nav-link-transition);
|
|
34
|
+
|
|
35
|
+
&:hover,
|
|
36
|
+
&:focus {
|
|
37
|
+
color: var(--#{$prefix}nav-link-hover-color);
|
|
38
|
+
text-decoration: if($link-hover-decoration == underline, none, null);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:focus-visible {
|
|
42
|
+
outline: 0;
|
|
43
|
+
box-shadow: $nav-link-focus-box-shadow;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Disabled state lightens text
|
|
47
|
+
&.disabled,
|
|
48
|
+
&:disabled {
|
|
49
|
+
color: var(--#{$prefix}nav-link-disabled-color);
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
cursor: default;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
//
|
|
56
|
+
// Tabs
|
|
57
|
+
//
|
|
58
|
+
|
|
59
|
+
.nav-tabs {
|
|
60
|
+
// scss-docs-start nav-tabs-css-vars
|
|
61
|
+
--#{$prefix}nav-tabs-border-width: #{$nav-tabs-border-width};
|
|
62
|
+
--#{$prefix}nav-tabs-border-color: #{$nav-tabs-border-color};
|
|
63
|
+
--#{$prefix}nav-tabs-border-radius: #{$nav-tabs-border-radius};
|
|
64
|
+
--#{$prefix}nav-tabs-link-hover-border-color: #{$nav-tabs-link-hover-border-color};
|
|
65
|
+
--#{$prefix}nav-tabs-link-active-color: #{$nav-tabs-link-active-color};
|
|
66
|
+
--#{$prefix}nav-tabs-link-active-bg: #{$nav-tabs-link-active-bg};
|
|
67
|
+
--#{$prefix}nav-tabs-link-active-border-color: #{$nav-tabs-link-active-border-color};
|
|
68
|
+
// scss-docs-end nav-tabs-css-vars
|
|
69
|
+
|
|
70
|
+
border-bottom: var(--#{$prefix}nav-tabs-border-width) solid var(--#{$prefix}nav-tabs-border-color);
|
|
71
|
+
|
|
72
|
+
.nav-link {
|
|
73
|
+
margin-bottom: calc(-1 * var(--#{$prefix}nav-tabs-border-width)); // stylelint-disable-line function-disallowed-list
|
|
74
|
+
border: var(--#{$prefix}nav-tabs-border-width) solid transparent;
|
|
75
|
+
@include border-top-radius(var(--#{$prefix}nav-tabs-border-radius));
|
|
76
|
+
|
|
77
|
+
&:hover,
|
|
78
|
+
&:focus {
|
|
79
|
+
// Prevents active .nav-link tab overlapping focus outline of previous/next .nav-link
|
|
80
|
+
isolation: isolate;
|
|
81
|
+
border-color: var(--#{$prefix}nav-tabs-link-hover-border-color);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.nav-link.active,
|
|
86
|
+
.nav-item.show .nav-link {
|
|
87
|
+
color: var(--#{$prefix}nav-tabs-link-active-color);
|
|
88
|
+
background-color: var(--#{$prefix}nav-tabs-link-active-bg);
|
|
89
|
+
border-color: var(--#{$prefix}nav-tabs-link-active-border-color);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.dropdown-menu {
|
|
93
|
+
// Make dropdown border overlap tab border
|
|
94
|
+
margin-top: calc(-1 * var(--#{$prefix}nav-tabs-border-width)); // stylelint-disable-line function-disallowed-list
|
|
95
|
+
// Remove the top rounded corners here since there is a hard edge above the menu
|
|
96
|
+
@include border-top-radius(0);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
//
|
|
102
|
+
// Pills
|
|
103
|
+
//
|
|
104
|
+
|
|
105
|
+
.nav-pills {
|
|
106
|
+
// scss-docs-start nav-pills-css-vars
|
|
107
|
+
--#{$prefix}nav-pills-border-radius: #{$nav-pills-border-radius};
|
|
108
|
+
--#{$prefix}nav-pills-link-active-color: #{$nav-pills-link-active-color};
|
|
109
|
+
--#{$prefix}nav-pills-link-active-bg: #{$nav-pills-link-active-bg};
|
|
110
|
+
// scss-docs-end nav-pills-css-vars
|
|
111
|
+
|
|
112
|
+
.nav-link {
|
|
113
|
+
@include border-radius(var(--#{$prefix}nav-pills-border-radius));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.nav-link.active,
|
|
117
|
+
.show > .nav-link {
|
|
118
|
+
color: var(--#{$prefix}nav-pills-link-active-color);
|
|
119
|
+
@include gradient-bg(var(--#{$prefix}nav-pills-link-active-bg));
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
//
|
|
125
|
+
// Underline
|
|
126
|
+
//
|
|
127
|
+
|
|
128
|
+
.nav-underline {
|
|
129
|
+
// scss-docs-start nav-underline-css-vars
|
|
130
|
+
--#{$prefix}nav-underline-gap: #{$nav-underline-gap};
|
|
131
|
+
--#{$prefix}nav-underline-border-width: #{$nav-underline-border-width};
|
|
132
|
+
--#{$prefix}nav-underline-link-active-color: #{$nav-underline-link-active-color};
|
|
133
|
+
// scss-docs-end nav-underline-css-vars
|
|
134
|
+
|
|
135
|
+
gap: var(--#{$prefix}nav-underline-gap);
|
|
136
|
+
|
|
137
|
+
.nav-link {
|
|
138
|
+
padding-right: 0;
|
|
139
|
+
padding-left: 0;
|
|
140
|
+
border-bottom: var(--#{$prefix}nav-underline-border-width) solid transparent;
|
|
141
|
+
|
|
142
|
+
&:hover,
|
|
143
|
+
&:focus {
|
|
144
|
+
border-bottom-color: currentcolor;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.nav-link.active,
|
|
149
|
+
.show > .nav-link {
|
|
150
|
+
font-weight: $font-weight-bold;
|
|
151
|
+
color: var(--#{$prefix}nav-underline-link-active-color);
|
|
152
|
+
border-bottom-color: currentcolor;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
//
|
|
158
|
+
// Justified variants
|
|
159
|
+
//
|
|
160
|
+
|
|
161
|
+
.nav-fill {
|
|
162
|
+
> .nav-link,
|
|
163
|
+
.nav-item {
|
|
164
|
+
flex: 1 1 auto;
|
|
165
|
+
text-align: center;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.nav-justified {
|
|
170
|
+
> .nav-link,
|
|
171
|
+
.nav-item {
|
|
172
|
+
flex-grow: 1;
|
|
173
|
+
flex-basis: 0;
|
|
174
|
+
text-align: center;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.nav-fill,
|
|
179
|
+
.nav-justified {
|
|
180
|
+
.nav-item .nav-link {
|
|
181
|
+
width: 100%; // Make sure button will grow
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
// Tabbable tabs
|
|
187
|
+
//
|
|
188
|
+
// Hide tabbable panes to start, show them when `.active`
|
|
189
|
+
|
|
190
|
+
.tab-content {
|
|
191
|
+
> .tab-pane {
|
|
192
|
+
display: none;
|
|
193
|
+
}
|
|
194
|
+
> .active {
|
|
195
|
+
display: block;
|
|
196
|
+
}
|
|
197
|
+
}
|