@iamproperty/components 3.4.6 → 3.5.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.
- package/assets/bootstrap/LICENSE +22 -0
- package/assets/bootstrap/README.md +246 -0
- package/assets/bootstrap/js/src/alert.js +87 -0
- package/assets/bootstrap/js/src/base-component.js +85 -0
- package/assets/bootstrap/js/src/button.js +72 -0
- package/assets/bootstrap/js/src/carousel.js +475 -0
- package/assets/bootstrap/js/src/collapse.js +302 -0
- package/assets/bootstrap/js/src/dom/data.js +55 -0
- package/assets/bootstrap/js/src/dom/event-handler.js +320 -0
- package/assets/bootstrap/js/src/dom/manipulator.js +71 -0
- package/assets/bootstrap/js/src/dom/selector-engine.js +83 -0
- package/assets/bootstrap/js/src/dropdown.js +454 -0
- package/assets/bootstrap/js/src/modal.js +377 -0
- package/assets/bootstrap/js/src/offcanvas.js +283 -0
- package/assets/bootstrap/js/src/popover.js +97 -0
- package/assets/bootstrap/js/src/scrollspy.js +294 -0
- package/assets/bootstrap/js/src/tab.js +305 -0
- package/assets/bootstrap/js/src/toast.js +225 -0
- package/assets/bootstrap/js/src/tooltip.js +633 -0
- package/assets/bootstrap/js/src/util/backdrop.js +149 -0
- package/assets/bootstrap/js/src/util/component-functions.js +34 -0
- package/assets/bootstrap/js/src/util/config.js +66 -0
- package/assets/bootstrap/js/src/util/focustrap.js +115 -0
- package/assets/bootstrap/js/src/util/index.js +336 -0
- package/assets/bootstrap/js/src/util/sanitizer.js +118 -0
- package/assets/bootstrap/js/src/util/scrollbar.js +114 -0
- package/assets/bootstrap/js/src/util/swipe.js +146 -0
- package/assets/bootstrap/js/src/util/template-factory.js +160 -0
- package/assets/bootstrap/package.json +181 -0
- package/assets/bootstrap/scss/_accordion.scss +149 -0
- package/assets/bootstrap/scss/_alert.scss +71 -0
- package/assets/bootstrap/scss/_badge.scss +38 -0
- package/assets/bootstrap/scss/_breadcrumb.scss +40 -0
- package/assets/bootstrap/scss/_button-group.scss +142 -0
- package/assets/bootstrap/scss/_buttons.scss +207 -0
- package/assets/bootstrap/scss/_card.scss +234 -0
- package/assets/bootstrap/scss/_carousel.scss +226 -0
- package/assets/bootstrap/scss/_close.scss +40 -0
- package/assets/bootstrap/scss/_containers.scss +41 -0
- package/assets/bootstrap/scss/_dropdown.scss +249 -0
- package/assets/bootstrap/scss/_forms.scss +9 -0
- package/assets/bootstrap/scss/_functions.scss +302 -0
- package/assets/bootstrap/scss/_grid.scss +33 -0
- package/assets/bootstrap/scss/_helpers.scss +10 -0
- package/assets/bootstrap/scss/_images.scss +42 -0
- package/assets/bootstrap/scss/_list-group.scss +192 -0
- package/assets/bootstrap/scss/_maps.scss +54 -0
- package/assets/bootstrap/scss/_mixins.scss +43 -0
- package/assets/bootstrap/scss/_modal.scss +237 -0
- package/assets/bootstrap/scss/_nav.scss +172 -0
- package/assets/bootstrap/scss/_navbar.scss +278 -0
- package/assets/bootstrap/scss/_offcanvas.scss +144 -0
- package/assets/bootstrap/scss/_pagination.scss +109 -0
- package/assets/bootstrap/scss/_placeholders.scss +51 -0
- package/assets/bootstrap/scss/_popover.scss +196 -0
- package/assets/bootstrap/scss/_progress.scss +59 -0
- package/assets/bootstrap/scss/_reboot.scss +610 -0
- package/assets/bootstrap/scss/_root.scss +73 -0
- package/assets/bootstrap/scss/_spinners.scss +85 -0
- package/assets/bootstrap/scss/_tables.scss +164 -0
- package/assets/bootstrap/scss/_toasts.scss +73 -0
- package/assets/bootstrap/scss/_tooltip.scss +120 -0
- package/assets/bootstrap/scss/_transitions.scss +27 -0
- package/assets/bootstrap/scss/_type.scss +106 -0
- package/assets/bootstrap/scss/_utilities.scss +647 -0
- package/assets/bootstrap/scss/_variables.scss +1634 -0
- package/assets/bootstrap/scss/bootstrap-grid.scss +64 -0
- package/assets/bootstrap/scss/bootstrap-reboot.scss +9 -0
- package/assets/bootstrap/scss/bootstrap-utilities.scss +18 -0
- package/assets/bootstrap/scss/bootstrap.scss +51 -0
- package/assets/bootstrap/scss/forms/_floating-labels.scss +75 -0
- package/assets/bootstrap/scss/forms/_form-check.scss +175 -0
- package/assets/bootstrap/scss/forms/_form-control.scss +194 -0
- package/assets/bootstrap/scss/forms/_form-range.scss +91 -0
- package/assets/bootstrap/scss/forms/_form-select.scss +71 -0
- package/assets/bootstrap/scss/forms/_form-text.scss +11 -0
- package/assets/bootstrap/scss/forms/_input-group.scss +132 -0
- package/assets/bootstrap/scss/forms/_labels.scss +36 -0
- package/assets/bootstrap/scss/forms/_validation.scss +12 -0
- package/assets/bootstrap/scss/helpers/_clearfix.scss +3 -0
- package/assets/bootstrap/scss/helpers/_color-bg.scss +10 -0
- package/assets/bootstrap/scss/helpers/_colored-links.scss +12 -0
- package/assets/bootstrap/scss/helpers/_position.scss +36 -0
- package/assets/bootstrap/scss/helpers/_ratio.scss +26 -0
- package/assets/bootstrap/scss/helpers/_stacks.scss +15 -0
- package/assets/bootstrap/scss/helpers/_stretched-link.scss +15 -0
- package/assets/bootstrap/scss/helpers/_text-truncation.scss +7 -0
- package/assets/bootstrap/scss/helpers/_visually-hidden.scss +8 -0
- package/assets/bootstrap/scss/helpers/_vr.scss +8 -0
- package/assets/bootstrap/scss/mixins/_alert.scss +15 -0
- package/assets/bootstrap/scss/mixins/_backdrop.scss +14 -0
- package/assets/bootstrap/scss/mixins/_banner.scss +9 -0
- package/assets/bootstrap/scss/mixins/_border-radius.scss +78 -0
- package/assets/bootstrap/scss/mixins/_box-shadow.scss +18 -0
- package/assets/bootstrap/scss/mixins/_breakpoints.scss +127 -0
- package/assets/bootstrap/scss/mixins/_buttons.scss +70 -0
- package/assets/bootstrap/scss/mixins/_caret.scss +64 -0
- package/assets/bootstrap/scss/mixins/_clearfix.scss +9 -0
- package/assets/bootstrap/scss/mixins/_color-scheme.scss +7 -0
- package/assets/bootstrap/scss/mixins/_container.scss +11 -0
- package/assets/bootstrap/scss/mixins/_deprecate.scss +10 -0
- package/assets/bootstrap/scss/mixins/_forms.scss +152 -0
- package/assets/bootstrap/scss/mixins/_gradients.scss +47 -0
- package/assets/bootstrap/scss/mixins/_grid.scss +151 -0
- package/assets/bootstrap/scss/mixins/_image.scss +16 -0
- package/assets/bootstrap/scss/mixins/_list-group.scss +24 -0
- package/assets/bootstrap/scss/mixins/_lists.scss +7 -0
- package/assets/bootstrap/scss/mixins/_pagination.scss +10 -0
- package/assets/bootstrap/scss/mixins/_reset-text.scss +17 -0
- package/assets/bootstrap/scss/mixins/_resize.scss +6 -0
- package/assets/bootstrap/scss/mixins/_table-variants.scss +24 -0
- package/assets/bootstrap/scss/mixins/_text-truncate.scss +8 -0
- package/assets/bootstrap/scss/mixins/_transition.scss +26 -0
- package/assets/bootstrap/scss/mixins/_utilities.scss +97 -0
- package/assets/bootstrap/scss/mixins/_visually-hidden.scss +29 -0
- package/assets/bootstrap/scss/utilities/_api.scss +47 -0
- package/assets/bootstrap/scss/vendor/_rfs.scss +354 -0
- package/assets/css/components/accordion.css +1 -1
- package/assets/css/components/accordion.css.map +1 -1
- package/assets/css/components/admin-panel.css +1 -0
- package/assets/css/components/admin-panel.css.map +1 -0
- package/assets/css/components/alert.css +1 -1
- package/assets/css/components/alert.css.map +1 -1
- package/assets/css/components/applied-filters.css +1 -0
- package/assets/css/components/applied-filters.css.map +1 -0
- package/assets/css/components/card.css +1 -1
- package/assets/css/components/card.css.map +1 -1
- package/assets/css/components/carousel.css +1 -1
- package/assets/css/components/carousel.css.map +1 -1
- package/assets/css/components/charts.css +1 -1
- package/assets/css/components/charts.css.map +1 -1
- package/assets/css/components/container.css +1 -1
- package/assets/css/components/container.css.map +1 -1
- package/assets/css/components/dialog.css +1 -0
- package/assets/css/components/dialog.css.map +1 -0
- package/assets/css/components/forms.css +1 -1
- package/assets/css/components/forms.css.map +1 -1
- package/assets/css/components/header.css +1 -1
- package/assets/css/components/header.css.map +1 -1
- package/assets/css/components/lists.css +1 -1
- package/assets/css/components/lists.css.map +1 -1
- package/assets/css/components/nav.css +1 -1
- package/assets/css/components/nav.css.map +1 -1
- package/assets/css/components/pagination.css +1 -0
- package/assets/css/components/pagination.css.map +1 -0
- package/assets/css/components/property-searchbar.css +1 -1
- package/assets/css/components/property-searchbar.css.map +1 -1
- package/assets/css/components/stepper.css +1 -1
- package/assets/css/components/stepper.css.map +1 -1
- package/assets/css/components/table.css +1 -0
- package/assets/css/components/table.css.map +1 -0
- package/assets/css/components/tabs.css +1 -1
- package/assets/css/components/tabs.css.map +1 -1
- package/assets/css/components/tooltips.css +1 -1
- package/assets/css/components/tooltips.css.map +1 -1
- package/assets/css/core.min.css +1 -1
- package/assets/css/core.min.css.map +1 -1
- package/assets/css/style.min.css +1 -1
- package/assets/css/style.min.css.map +1 -1
- package/assets/js/bundle.js +18 -11
- package/assets/js/components/accordion/accordion.component.js +6 -0
- package/assets/js/components/accordion/accordion.component.min.js +3 -3
- package/assets/js/components/accordion/accordion.component.min.js.map +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.js +26 -0
- package/assets/js/components/card/card.component.js +91 -0
- package/assets/js/components/card/card.component.min.js +21 -0
- package/assets/js/components/card/card.component.min.js.map +1 -0
- package/assets/js/components/filterlist/filterlist.component.js +49 -0
- package/assets/js/components/filterlist/filterlist.component.min.js +23 -0
- package/assets/js/components/filterlist/filterlist.component.min.js.map +1 -0
- package/assets/js/components/header/header.component.js +6 -0
- package/assets/js/components/header/header.component.min.js +5 -5
- package/assets/js/components/header/header.component.min.js.map +1 -1
- package/assets/js/components/pagination/pagination.component.js +34 -0
- package/assets/js/components/table/table.component.js +108 -0
- package/assets/js/components/table/table.component.min.js +24 -0
- package/assets/js/components/table/table.component.min.js.map +1 -0
- package/assets/js/components/tabs/tabs.component.js +6 -0
- package/assets/js/components/tabs/tabs.component.min.js +17 -0
- package/assets/js/components/tabs/tabs.component.min.js.map +1 -0
- package/assets/js/dynamic.js +7 -18
- package/assets/js/dynamic.min.js +2 -53
- package/assets/js/dynamic.min.js.map +1 -1
- package/assets/js/flat-components.js +27 -9
- package/assets/js/modules/applied-filters.js +100 -0
- package/assets/js/modules/data-layer.js +45 -0
- package/assets/js/modules/filterlist.js +32 -0
- package/assets/js/modules/helpers.js +102 -49
- package/assets/js/modules/pagination.js +33 -0
- package/assets/js/modules/table.js +506 -420
- package/assets/js/modules/tabs.js +6 -0
- package/assets/js/modules/youtubevideo.js +53 -61
- package/assets/js/scripts.bundle.js +77 -62
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +2 -2
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/js/tests/filterlist.spec.js +22 -0
- package/assets/js/tests/pagination.spec.js +15 -0
- package/assets/js/tests/table.spec.js +149 -0
- package/assets/sass/_components.scss +1 -2
- package/assets/sass/_corefiles.scss +20 -19
- package/assets/sass/_forms.scss +7 -7
- package/assets/sass/_functions/functions.scss +1 -1
- package/assets/sass/_functions/mixins.scss +19 -21
- package/assets/sass/_functions/utilities.scss +67 -9
- package/assets/sass/_functions/variables.scss +109 -55
- package/assets/sass/_tests/colours.spec.scss +8 -22
- package/assets/sass/components/accordion.scss +13 -0
- package/assets/sass/components/admin-panel.scss +106 -0
- package/assets/sass/components/alert.scss +22 -0
- package/assets/sass/components/applied-filters.scss +65 -0
- package/assets/sass/components/card.scss +177 -233
- package/assets/sass/components/carousel.scss +72 -0
- package/assets/sass/components/charts.scss +41 -1
- package/assets/sass/components/container.scss +8 -3
- package/assets/sass/components/dialog.scss +208 -0
- package/assets/sass/components/forms.scss +37 -5
- package/assets/sass/components/lists.scss +29 -0
- package/assets/sass/components/nav.scss +6 -2
- package/assets/sass/components/pagination.scss +140 -0
- package/assets/sass/components/stepper.scss +3 -3
- package/assets/sass/components/table.scss +423 -0
- package/assets/sass/components/tabs.scss +20 -7
- package/assets/sass/components/tooltips.scss +1 -1
- package/assets/sass/foundations/buttons.scss +366 -0
- package/assets/sass/foundations/icons.scss +1 -1
- package/assets/sass/foundations/links.scss +125 -0
- package/assets/sass/foundations/media.scss +1 -1
- package/assets/sass/foundations/reboot.scss +21 -17
- package/assets/sass/foundations/root.scss +9 -29
- package/assets/sass/foundations/type.scss +1 -1
- package/assets/svg/illustrations/table.svg +165 -0
- package/assets/ts/bundle.ts +23 -12
- package/assets/ts/components/accordion/accordion.component.ts +7 -0
- package/assets/ts/components/applied-filters/README.md +5 -0
- package/assets/ts/components/applied-filters/applied-filters.component.ts +33 -0
- package/assets/ts/components/card/README.md +22 -0
- package/assets/ts/components/card/card.component.ts +117 -0
- package/assets/ts/components/filterlist/README.md +17 -0
- package/assets/ts/components/filterlist/filterlist.component.ts +60 -0
- package/assets/ts/components/header/header.component.ts +8 -0
- package/assets/ts/components/pagination/README.md +11 -0
- package/assets/ts/components/pagination/pagination.component.ts +45 -0
- package/assets/ts/components/table/README.md +23 -0
- package/assets/ts/components/table/table.component.ts +133 -0
- package/assets/ts/components/tabs/tabs.component.ts +7 -0
- package/assets/ts/dynamic.ts +12 -19
- package/assets/ts/flat-components.ts +37 -9
- package/assets/ts/modules/applied-filters.ts +146 -0
- package/assets/ts/modules/data-layer.ts +58 -0
- package/assets/ts/modules/filterlist.ts +46 -0
- package/assets/ts/modules/helpers.ts +129 -58
- package/assets/ts/modules/pagination.ts +44 -0
- package/assets/ts/modules/table.ts +598 -433
- package/assets/ts/modules/tabs.ts +8 -1
- package/assets/ts/modules/youtubevideo.ts +58 -63
- package/assets/ts/tests/filterlist.spec.ts +29 -0
- package/assets/ts/tests/pagination.spec.ts +21 -0
- package/assets/ts/tests/table.spec.ts +194 -0
- package/dist/components.es.js +1267 -1295
- package/dist/components.umd.js +70 -65
- package/dist/style.css +1 -1
- package/package.json +8 -5
- package/src/components/AppliedFilters/AppliedFilters.vue +20 -0
- package/src/components/AppliedFilters/README.md +5 -0
- package/src/components/Card/Card.vue +11 -112
- package/src/components/Card/README.md +16 -18
- package/src/components/Carousel/Carousel.vue +49 -10
- package/src/components/Chart/Chart.vue +46 -4
- package/src/components/Filterlist/Filterlist.vue +20 -0
- package/src/components/Filterlist/README.md +17 -0
- package/src/components/Pagination/Pagination.vue +30 -0
- package/src/components/Pagination/README.md +11 -0
- package/src/components/Table/README.md +29 -44
- package/src/components/Table/Table.spec.js +5 -37
- package/src/components/Table/Table.vue +16 -91
- package/src/foundations/YoutubeVideo/YoutubeVideo.vue +1 -1
- package/src/index.js +3 -2
- package/assets/css/components/buttons.css +0 -1
- package/assets/css/components/buttons.css.map +0 -1
- package/assets/css/components/cardDeck.css +0 -1
- package/assets/css/components/cardDeck.css.map +0 -1
- package/assets/css/components/links.css +0 -1
- package/assets/css/components/links.css.map +0 -1
- package/assets/css/components/modal.css +0 -1
- package/assets/css/components/modal.css.map +0 -1
- package/assets/css/components/panel.css +0 -1
- package/assets/css/components/panel.css.map +0 -1
- package/assets/css/components/tables.css +0 -1
- package/assets/css/components/tables.css.map +0 -1
- package/assets/js/modules/modal.js +0 -69
- package/assets/sass/components/buttons.scss +0 -252
- package/assets/sass/components/cardDeck.scss +0 -108
- package/assets/sass/components/links.scss +0 -99
- package/assets/sass/components/modal.scss +0 -136
- package/assets/sass/components/panel.scss +0 -161
- package/assets/sass/components/tables.scss +0 -291
- package/assets/ts/modules/modal.ts +0 -91
- package/src/components/CardDeck/CardDeck.spec.js +0 -99
- package/src/components/CardDeck/CardDeck.vue +0 -77
- package/src/components/CardDeck/README.md +0 -25
- package/src/components/Modal/Modal.spec.js +0 -22
- package/src/components/Modal/Modal.vue +0 -43
- package/src/components/Modal/README.md +0 -20
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
// Base class
|
|
2
|
+
//
|
|
3
|
+
// Easily usable on <ul>, <ol>, or <div>.
|
|
4
|
+
|
|
5
|
+
.list-group {
|
|
6
|
+
// scss-docs-start list-group-css-vars
|
|
7
|
+
--#{$prefix}list-group-color: #{$list-group-color};
|
|
8
|
+
--#{$prefix}list-group-bg: #{$list-group-bg};
|
|
9
|
+
--#{$prefix}list-group-border-color: #{$list-group-border-color};
|
|
10
|
+
--#{$prefix}list-group-border-width: #{$list-group-border-width};
|
|
11
|
+
--#{$prefix}list-group-border-radius: #{$list-group-border-radius};
|
|
12
|
+
--#{$prefix}list-group-item-padding-x: #{$list-group-item-padding-x};
|
|
13
|
+
--#{$prefix}list-group-item-padding-y: #{$list-group-item-padding-y};
|
|
14
|
+
--#{$prefix}list-group-action-color: #{$list-group-action-color};
|
|
15
|
+
--#{$prefix}list-group-action-hover-color: #{$list-group-action-hover-color};
|
|
16
|
+
--#{$prefix}list-group-action-hover-bg: #{$list-group-hover-bg};
|
|
17
|
+
--#{$prefix}list-group-action-active-color: #{$list-group-action-active-color};
|
|
18
|
+
--#{$prefix}list-group-action-active-bg: #{$list-group-action-active-bg};
|
|
19
|
+
--#{$prefix}list-group-disabled-color: #{$list-group-disabled-color};
|
|
20
|
+
--#{$prefix}list-group-disabled-bg: #{$list-group-disabled-bg};
|
|
21
|
+
--#{$prefix}list-group-active-color: #{$list-group-active-color};
|
|
22
|
+
--#{$prefix}list-group-active-bg: #{$list-group-active-bg};
|
|
23
|
+
--#{$prefix}list-group-active-border-color: #{$list-group-active-border-color};
|
|
24
|
+
// scss-docs-end list-group-css-vars
|
|
25
|
+
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
|
|
29
|
+
// No need to set list-style: none; since .list-group-item is block level
|
|
30
|
+
padding-left: 0; // reset padding because ul and ol
|
|
31
|
+
margin-bottom: 0;
|
|
32
|
+
@include border-radius(var(--#{$prefix}list-group-border-radius));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.list-group-numbered {
|
|
36
|
+
list-style-type: none;
|
|
37
|
+
counter-reset: section;
|
|
38
|
+
|
|
39
|
+
> .list-group-item::before {
|
|
40
|
+
// Increments only this instance of the section counter
|
|
41
|
+
content: counters(section, ".") ". ";
|
|
42
|
+
counter-increment: section;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Interactive list items
|
|
47
|
+
//
|
|
48
|
+
// Use anchor or button elements instead of `li`s or `div`s to create interactive
|
|
49
|
+
// list items. Includes an extra `.active` modifier class for selected items.
|
|
50
|
+
|
|
51
|
+
.list-group-item-action {
|
|
52
|
+
width: 100%; // For `<button>`s (anchors become 100% by default though)
|
|
53
|
+
color: var(--#{$prefix}list-group-action-color);
|
|
54
|
+
text-align: inherit; // For `<button>`s (anchors inherit)
|
|
55
|
+
|
|
56
|
+
// Hover state
|
|
57
|
+
&:hover,
|
|
58
|
+
&:focus {
|
|
59
|
+
z-index: 1; // Place hover/focus items above their siblings for proper border styling
|
|
60
|
+
color: var(--#{$prefix}list-group-action-hover-color);
|
|
61
|
+
text-decoration: none;
|
|
62
|
+
background-color: var(--#{$prefix}list-group-action-hover-bg);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:active {
|
|
66
|
+
color: var(--#{$prefix}list-group-action-active-color);
|
|
67
|
+
background-color: var(--#{$prefix}list-group-action-active-bg);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Individual list items
|
|
72
|
+
//
|
|
73
|
+
// Use on `li`s or `div`s within the `.list-group` parent.
|
|
74
|
+
|
|
75
|
+
.list-group-item {
|
|
76
|
+
position: relative;
|
|
77
|
+
display: block;
|
|
78
|
+
padding: var(--#{$prefix}list-group-item-padding-y) var(--#{$prefix}list-group-item-padding-x);
|
|
79
|
+
color: var(--#{$prefix}list-group-color);
|
|
80
|
+
text-decoration: if($link-decoration == none, null, none);
|
|
81
|
+
background-color: var(--#{$prefix}list-group-bg);
|
|
82
|
+
border: var(--#{$prefix}list-group-border-width) solid var(--#{$prefix}list-group-border-color);
|
|
83
|
+
|
|
84
|
+
&:first-child {
|
|
85
|
+
@include border-top-radius(inherit);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:last-child {
|
|
89
|
+
@include border-bottom-radius(inherit);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.disabled,
|
|
93
|
+
&:disabled {
|
|
94
|
+
color: var(--#{$prefix}list-group-disabled-color);
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
background-color: var(--#{$prefix}list-group-disabled-bg);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Include both here for `<a>`s and `<button>`s
|
|
100
|
+
&.active {
|
|
101
|
+
z-index: 2; // Place active items above their siblings for proper border styling
|
|
102
|
+
color: var(--#{$prefix}list-group-active-color);
|
|
103
|
+
background-color: var(--#{$prefix}list-group-active-bg);
|
|
104
|
+
border-color: var(--#{$prefix}list-group-active-border-color);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// stylelint-disable-next-line scss/selector-no-redundant-nesting-selector
|
|
108
|
+
& + .list-group-item {
|
|
109
|
+
border-top-width: 0;
|
|
110
|
+
|
|
111
|
+
&.active {
|
|
112
|
+
margin-top: calc(-1 * var(--#{$prefix}list-group-border-width)); // stylelint-disable-line function-disallowed-list
|
|
113
|
+
border-top-width: var(--#{$prefix}list-group-border-width);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Horizontal
|
|
119
|
+
//
|
|
120
|
+
// Change the layout of list group items from vertical (default) to horizontal.
|
|
121
|
+
|
|
122
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
123
|
+
@include media-breakpoint-up($breakpoint) {
|
|
124
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
125
|
+
|
|
126
|
+
.list-group-horizontal#{$infix} {
|
|
127
|
+
flex-direction: row;
|
|
128
|
+
|
|
129
|
+
> .list-group-item {
|
|
130
|
+
&:first-child:not(:last-child) {
|
|
131
|
+
@include border-bottom-start-radius(var(--#{$prefix}list-group-border-radius));
|
|
132
|
+
@include border-top-end-radius(0);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&:last-child:not(:first-child) {
|
|
136
|
+
@include border-top-end-radius(var(--#{$prefix}list-group-border-radius));
|
|
137
|
+
@include border-bottom-start-radius(0);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&.active {
|
|
141
|
+
margin-top: 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
+ .list-group-item {
|
|
145
|
+
border-top-width: var(--#{$prefix}list-group-border-width);
|
|
146
|
+
border-left-width: 0;
|
|
147
|
+
|
|
148
|
+
&.active {
|
|
149
|
+
margin-left: calc(-1 * var(--#{$prefix}list-group-border-width)); // stylelint-disable-line function-disallowed-list
|
|
150
|
+
border-left-width: var(--#{$prefix}list-group-border-width);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
// Flush list items
|
|
160
|
+
//
|
|
161
|
+
// Remove borders and border-radius to keep list group items edge-to-edge. Most
|
|
162
|
+
// useful within other components (e.g., cards).
|
|
163
|
+
|
|
164
|
+
.list-group-flush {
|
|
165
|
+
@include border-radius(0);
|
|
166
|
+
|
|
167
|
+
> .list-group-item {
|
|
168
|
+
border-width: 0 0 var(--#{$prefix}list-group-border-width);
|
|
169
|
+
|
|
170
|
+
&:last-child {
|
|
171
|
+
border-bottom-width: 0;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
// scss-docs-start list-group-modifiers
|
|
178
|
+
// List group contextual variants
|
|
179
|
+
//
|
|
180
|
+
// Add modifier classes to change text and background color on individual items.
|
|
181
|
+
// Organizationally, this must come after the `:hover` states.
|
|
182
|
+
|
|
183
|
+
@each $state, $value in $theme-colors {
|
|
184
|
+
$list-group-variant-bg: shift-color($value, $list-group-item-bg-scale);
|
|
185
|
+
$list-group-variant-color: shift-color($value, $list-group-item-color-scale);
|
|
186
|
+
@if (contrast-ratio($list-group-variant-bg, $list-group-variant-color) < $min-contrast-ratio) {
|
|
187
|
+
$list-group-variant-color: mix($value, color-contrast($list-group-variant-bg), abs($list-group-item-color-scale));
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@include list-group-item-variant($state, $list-group-variant-bg, $list-group-variant-color);
|
|
191
|
+
}
|
|
192
|
+
// scss-docs-end list-group-modifiers
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Re-assigned maps
|
|
2
|
+
//
|
|
3
|
+
// Placed here so that others can override the default Sass maps and see automatic updates to utilities and more.
|
|
4
|
+
|
|
5
|
+
// scss-docs-start theme-colors-rgb
|
|
6
|
+
$theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value") !default;
|
|
7
|
+
// scss-docs-end theme-colors-rgb
|
|
8
|
+
|
|
9
|
+
// Utilities maps
|
|
10
|
+
//
|
|
11
|
+
// Extends the default `$theme-colors` maps to help create our utilities.
|
|
12
|
+
|
|
13
|
+
// Come v6, we'll de-dupe these variables. Until then, for backward compatibility, we keep them to reassign.
|
|
14
|
+
// scss-docs-start utilities-colors
|
|
15
|
+
$utilities-colors: $theme-colors-rgb !default;
|
|
16
|
+
// scss-docs-end utilities-colors
|
|
17
|
+
|
|
18
|
+
// scss-docs-start utilities-text-colors
|
|
19
|
+
$utilities-text: map-merge(
|
|
20
|
+
$utilities-colors,
|
|
21
|
+
(
|
|
22
|
+
"black": to-rgb($black),
|
|
23
|
+
"white": to-rgb($white),
|
|
24
|
+
"body": to-rgb($body-color)
|
|
25
|
+
)
|
|
26
|
+
) !default;
|
|
27
|
+
$utilities-text-colors: map-loop($utilities-text, rgba-css-var, "$key", "text") !default;
|
|
28
|
+
// scss-docs-end utilities-text-colors
|
|
29
|
+
|
|
30
|
+
// scss-docs-start utilities-bg-colors
|
|
31
|
+
$utilities-bg: map-merge(
|
|
32
|
+
$utilities-colors,
|
|
33
|
+
(
|
|
34
|
+
"black": to-rgb($black),
|
|
35
|
+
"white": to-rgb($white),
|
|
36
|
+
"body": to-rgb($body-bg)
|
|
37
|
+
)
|
|
38
|
+
) !default;
|
|
39
|
+
$utilities-bg-colors: map-loop($utilities-bg, rgba-css-var, "$key", "bg") !default;
|
|
40
|
+
// scss-docs-end utilities-bg-colors
|
|
41
|
+
|
|
42
|
+
// scss-docs-start utilities-border-colors
|
|
43
|
+
$utilities-border: map-merge(
|
|
44
|
+
$utilities-colors,
|
|
45
|
+
(
|
|
46
|
+
"white": to-rgb($white)
|
|
47
|
+
)
|
|
48
|
+
) !default;
|
|
49
|
+
$utilities-border-colors: map-loop($utilities-border, rgba-css-var, "$key", "border") !default;
|
|
50
|
+
// scss-docs-end utilities-border-colors
|
|
51
|
+
|
|
52
|
+
$negative-spacers: if($enable-negative-margins, negativify-map($spacers), null) !default;
|
|
53
|
+
|
|
54
|
+
$gutters: $spacers !default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Toggles
|
|
2
|
+
//
|
|
3
|
+
// Used in conjunction with global variables to enable certain theme features.
|
|
4
|
+
|
|
5
|
+
// Vendor
|
|
6
|
+
@import "vendor/rfs";
|
|
7
|
+
|
|
8
|
+
// Deprecate
|
|
9
|
+
@import "mixins/deprecate";
|
|
10
|
+
|
|
11
|
+
// Helpers
|
|
12
|
+
@import "mixins/breakpoints";
|
|
13
|
+
@import "mixins/color-scheme";
|
|
14
|
+
@import "mixins/image";
|
|
15
|
+
@import "mixins/resize";
|
|
16
|
+
@import "mixins/visually-hidden";
|
|
17
|
+
@import "mixins/reset-text";
|
|
18
|
+
@import "mixins/text-truncate";
|
|
19
|
+
|
|
20
|
+
// Utilities
|
|
21
|
+
@import "mixins/utilities";
|
|
22
|
+
|
|
23
|
+
// Components
|
|
24
|
+
@import "mixins/alert";
|
|
25
|
+
@import "mixins/backdrop";
|
|
26
|
+
@import "mixins/buttons";
|
|
27
|
+
@import "mixins/caret";
|
|
28
|
+
@import "mixins/pagination";
|
|
29
|
+
@import "mixins/lists";
|
|
30
|
+
@import "mixins/list-group";
|
|
31
|
+
@import "mixins/forms";
|
|
32
|
+
@import "mixins/table-variants";
|
|
33
|
+
|
|
34
|
+
// Skins
|
|
35
|
+
@import "mixins/border-radius";
|
|
36
|
+
@import "mixins/box-shadow";
|
|
37
|
+
@import "mixins/gradients";
|
|
38
|
+
@import "mixins/transition";
|
|
39
|
+
|
|
40
|
+
// Layout
|
|
41
|
+
@import "mixins/clearfix";
|
|
42
|
+
@import "mixins/container";
|
|
43
|
+
@import "mixins/grid";
|
|
@@ -0,0 +1,237 @@
|
|
|
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
|
+
@include transition($modal-transition);
|
|
63
|
+
transform: $modal-fade-transform;
|
|
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
|
+
justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends
|
|
130
|
+
padding: var(--#{$prefix}modal-header-padding);
|
|
131
|
+
border-bottom: var(--#{$prefix}modal-header-border-width) solid var(--#{$prefix}modal-header-border-color);
|
|
132
|
+
@include border-top-radius(var(--#{$prefix}modal-inner-border-radius));
|
|
133
|
+
|
|
134
|
+
.btn-close {
|
|
135
|
+
padding: calc(var(--#{$prefix}modal-header-padding-y) * .5) calc(var(--#{$prefix}modal-header-padding-x) * .5);
|
|
136
|
+
margin: calc(-.5 * var(--#{$prefix}modal-header-padding-y)) calc(-.5 * var(--#{$prefix}modal-header-padding-x)) calc(-.5 * var(--#{$prefix}modal-header-padding-y)) auto;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Title text within header
|
|
141
|
+
.modal-title {
|
|
142
|
+
margin-bottom: 0;
|
|
143
|
+
line-height: var(--#{$prefix}modal-title-line-height);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Modal body
|
|
147
|
+
// Where all modal content resides (sibling of .modal-header and .modal-footer)
|
|
148
|
+
.modal-body {
|
|
149
|
+
position: relative;
|
|
150
|
+
// Enable `flex-grow: 1` so that the body take up as much space as possible
|
|
151
|
+
// when there should be a fixed height on `.modal-dialog`.
|
|
152
|
+
flex: 1 1 auto;
|
|
153
|
+
padding: var(--#{$prefix}modal-padding);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// Footer (for actions)
|
|
157
|
+
.modal-footer {
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-shrink: 0;
|
|
160
|
+
flex-wrap: wrap;
|
|
161
|
+
align-items: center; // vertically center
|
|
162
|
+
justify-content: flex-end; // Right align buttons with flex property because text-align doesn't work on flex items
|
|
163
|
+
padding: calc(var(--#{$prefix}modal-padding) - var(--#{$prefix}modal-footer-gap) * .5);
|
|
164
|
+
background-color: var(--#{$prefix}modal-footer-bg);
|
|
165
|
+
border-top: var(--#{$prefix}modal-footer-border-width) solid var(--#{$prefix}modal-footer-border-color);
|
|
166
|
+
@include border-bottom-radius(var(--#{$prefix}modal-inner-border-radius));
|
|
167
|
+
|
|
168
|
+
// Place margin between footer elements
|
|
169
|
+
// This solution is far from ideal because of the universal selector usage,
|
|
170
|
+
// but is needed to fix https://github.com/twbs/bootstrap/issues/24800
|
|
171
|
+
> * {
|
|
172
|
+
margin: calc(var(--#{$prefix}modal-footer-gap) * .5); // Todo in v6: replace with gap on parent class
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// Scale up the modal
|
|
177
|
+
@include media-breakpoint-up(sm) {
|
|
178
|
+
.modal {
|
|
179
|
+
--#{$prefix}modal-margin: #{$modal-dialog-margin-y-sm-up};
|
|
180
|
+
--#{$prefix}modal-box-shadow: #{$modal-content-box-shadow-sm-up};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// Automatically set modal's width for larger viewports
|
|
184
|
+
.modal-dialog {
|
|
185
|
+
max-width: var(--#{$prefix}modal-width);
|
|
186
|
+
margin-right: auto;
|
|
187
|
+
margin-left: auto;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.modal-sm {
|
|
191
|
+
--#{$prefix}modal-width: #{$modal-sm};
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@include media-breakpoint-up(lg) {
|
|
196
|
+
.modal-lg,
|
|
197
|
+
.modal-xl {
|
|
198
|
+
--#{$prefix}modal-width: #{$modal-lg};
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@include media-breakpoint-up(xl) {
|
|
203
|
+
.modal-xl {
|
|
204
|
+
--#{$prefix}modal-width: #{$modal-xl};
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// scss-docs-start modal-fullscreen-loop
|
|
209
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
210
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
211
|
+
$postfix: if($infix != "", $infix + "-down", "");
|
|
212
|
+
|
|
213
|
+
@include media-breakpoint-down($breakpoint) {
|
|
214
|
+
.modal-fullscreen#{$postfix} {
|
|
215
|
+
width: 100vw;
|
|
216
|
+
max-width: none;
|
|
217
|
+
height: 100%;
|
|
218
|
+
margin: 0;
|
|
219
|
+
|
|
220
|
+
.modal-content {
|
|
221
|
+
height: 100%;
|
|
222
|
+
border: 0;
|
|
223
|
+
@include border-radius(0);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.modal-header,
|
|
227
|
+
.modal-footer {
|
|
228
|
+
@include border-radius(0);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.modal-body {
|
|
232
|
+
overflow-y: auto;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
// scss-docs-end modal-fullscreen-loop
|
|
@@ -0,0 +1,172 @@
|
|
|
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
|
+
@include transition($nav-link-transition);
|
|
32
|
+
|
|
33
|
+
&:hover,
|
|
34
|
+
&:focus {
|
|
35
|
+
color: var(--#{$prefix}nav-link-hover-color);
|
|
36
|
+
text-decoration: if($link-hover-decoration == underline, none, null);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Disabled state lightens text
|
|
40
|
+
&.disabled {
|
|
41
|
+
color: var(--#{$prefix}nav-link-disabled-color);
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
cursor: default;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
//
|
|
48
|
+
// Tabs
|
|
49
|
+
//
|
|
50
|
+
|
|
51
|
+
.nav-tabs {
|
|
52
|
+
// scss-docs-start nav-tabs-css-vars
|
|
53
|
+
--#{$prefix}nav-tabs-border-width: #{$nav-tabs-border-width};
|
|
54
|
+
--#{$prefix}nav-tabs-border-color: #{$nav-tabs-border-color};
|
|
55
|
+
--#{$prefix}nav-tabs-border-radius: #{$nav-tabs-border-radius};
|
|
56
|
+
--#{$prefix}nav-tabs-link-hover-border-color: #{$nav-tabs-link-hover-border-color};
|
|
57
|
+
--#{$prefix}nav-tabs-link-active-color: #{$nav-tabs-link-active-color};
|
|
58
|
+
--#{$prefix}nav-tabs-link-active-bg: #{$nav-tabs-link-active-bg};
|
|
59
|
+
--#{$prefix}nav-tabs-link-active-border-color: #{$nav-tabs-link-active-border-color};
|
|
60
|
+
// scss-docs-end nav-tabs-css-vars
|
|
61
|
+
|
|
62
|
+
border-bottom: var(--#{$prefix}nav-tabs-border-width) solid var(--#{$prefix}nav-tabs-border-color);
|
|
63
|
+
|
|
64
|
+
.nav-link {
|
|
65
|
+
margin-bottom: calc(-1 * var(--#{$prefix}nav-tabs-border-width)); // stylelint-disable-line function-disallowed-list
|
|
66
|
+
background: none;
|
|
67
|
+
border: var(--#{$prefix}nav-tabs-border-width) solid transparent;
|
|
68
|
+
@include border-top-radius(var(--#{$prefix}nav-tabs-border-radius));
|
|
69
|
+
|
|
70
|
+
&:hover,
|
|
71
|
+
&:focus {
|
|
72
|
+
// Prevents active .nav-link tab overlapping focus outline of previous/next .nav-link
|
|
73
|
+
isolation: isolate;
|
|
74
|
+
border-color: var(--#{$prefix}nav-tabs-link-hover-border-color);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.disabled,
|
|
78
|
+
&:disabled {
|
|
79
|
+
color: var(--#{$prefix}nav-link-disabled-color);
|
|
80
|
+
background-color: transparent;
|
|
81
|
+
border-color: transparent;
|
|
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
|
+
background: none;
|
|
114
|
+
border: 0;
|
|
115
|
+
@include border-radius(var(--#{$prefix}nav-pills-border-radius));
|
|
116
|
+
|
|
117
|
+
&:disabled {
|
|
118
|
+
color: var(--#{$prefix}nav-link-disabled-color);
|
|
119
|
+
background-color: transparent;
|
|
120
|
+
border-color: transparent;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.nav-link.active,
|
|
125
|
+
.show > .nav-link {
|
|
126
|
+
color: var(--#{$prefix}nav-pills-link-active-color);
|
|
127
|
+
@include gradient-bg(var(--#{$prefix}nav-pills-link-active-bg));
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
//
|
|
133
|
+
// Justified variants
|
|
134
|
+
//
|
|
135
|
+
|
|
136
|
+
.nav-fill {
|
|
137
|
+
> .nav-link,
|
|
138
|
+
.nav-item {
|
|
139
|
+
flex: 1 1 auto;
|
|
140
|
+
text-align: center;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.nav-justified {
|
|
145
|
+
> .nav-link,
|
|
146
|
+
.nav-item {
|
|
147
|
+
flex-basis: 0;
|
|
148
|
+
flex-grow: 1;
|
|
149
|
+
text-align: center;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.nav-fill,
|
|
154
|
+
.nav-justified {
|
|
155
|
+
.nav-item .nav-link {
|
|
156
|
+
width: 100%; // Make sure button will grow
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
// Tabbable tabs
|
|
162
|
+
//
|
|
163
|
+
// Hide tabbable panes to start, show them when `.active`
|
|
164
|
+
|
|
165
|
+
.tab-content {
|
|
166
|
+
> .tab-pane {
|
|
167
|
+
display: none;
|
|
168
|
+
}
|
|
169
|
+
> .active {
|
|
170
|
+
display: block;
|
|
171
|
+
}
|
|
172
|
+
}
|