@iamproperty/components 7.6.1 → 7.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/css/components/actionbar.component.css +1 -1
- package/assets/css/components/actionbar.component.css.map +1 -1
- package/assets/css/components/actionbar.global.css +1 -1
- package/assets/css/components/actionbar.global.css.map +1 -1
- package/assets/css/components/address-lookup.component.css +1 -1
- package/assets/css/components/address-lookup.component.css.map +1 -1
- package/assets/css/components/applied-filters.css +1 -1
- package/assets/css/components/applied-filters.css.map +1 -1
- package/assets/css/components/barchart.component.css +1 -1
- package/assets/css/components/barchart.component.css.map +1 -1
- package/assets/css/components/calendar.component.css +1 -1
- package/assets/css/components/calendar.component.css.map +1 -1
- package/assets/css/components/calendar.config.css +1 -1
- package/assets/css/components/calendar.config.css.map +1 -1
- package/assets/css/components/card.component.css +1 -1
- package/assets/css/components/card.component.css.map +1 -1
- package/assets/css/components/carousel.component.css +1 -1
- package/assets/css/components/carousel.component.css.map +1 -1
- package/assets/css/components/carousel.config.css.map +1 -1
- package/assets/css/components/charts.config.css +1 -1
- package/assets/css/components/charts.config.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/charts.module.css +1 -1
- package/assets/css/components/charts.module.css.map +1 -1
- package/assets/css/components/collapsible-side.css +1 -1
- package/assets/css/components/collapsible-side.css.map +1 -1
- package/assets/css/components/content.component.css +1 -1
- package/assets/css/components/content.component.css.map +1 -1
- package/assets/css/components/darkmode.component.css +1 -1
- package/assets/css/components/darkmode.component.css.map +1 -1
- package/assets/css/components/doughnutchart.component.css +1 -1
- package/assets/css/components/doughnutchart.component.css.map +1 -1
- package/assets/css/components/fileupload.css +1 -1
- package/assets/css/components/fileupload.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/inline-edit.css +1 -1
- package/assets/css/components/inline-edit.css.map +1 -1
- package/assets/css/components/inline-edit.preload.css.map +1 -1
- package/assets/css/components/input-range.component.css.map +1 -1
- package/assets/css/components/input.component.css +1 -1
- package/assets/css/components/input.component.css.map +1 -1
- package/assets/css/components/marketing.component.css +1 -1
- package/assets/css/components/marketing.component.css.map +1 -1
- package/assets/css/components/menu.global.css.map +1 -1
- package/assets/css/components/modal.component.css +1 -1
- package/assets/css/components/modal.component.css.map +1 -1
- package/assets/css/components/multi-step-modal.component.css +1 -1
- package/assets/css/components/multi-step-modal.component.css.map +1 -1
- package/assets/css/components/multi-step-modal.global.css.map +1 -1
- package/assets/css/components/multi-step.component.css.map +1 -1
- package/assets/css/components/multiselect.css +1 -1
- package/assets/css/components/multiselect.css.map +1 -1
- package/assets/css/components/multiselect.preload.css +1 -1
- package/assets/css/components/multiselect.preload.css.map +1 -1
- package/assets/css/components/nav.component.css +1 -1
- package/assets/css/components/nav.component.css.map +1 -1
- package/assets/css/components/nav.docs.css.map +1 -1
- package/assets/css/components/nav.global.css.map +1 -1
- package/assets/css/components/nav.preload.css.map +1 -1
- package/assets/css/components/notification.css +1 -1
- package/assets/css/components/notification.css.map +1 -1
- package/assets/css/components/pagination.css +1 -1
- package/assets/css/components/pagination.css.map +1 -1
- package/assets/css/components/password.component.css +1 -1
- package/assets/css/components/password.component.css.map +1 -1
- package/assets/css/components/popover.component.css +1 -1
- package/assets/css/components/popover.component.css.map +1 -1
- package/assets/css/components/property-searchbar.css +1 -1
- package/assets/css/components/property-searchbar.css.map +1 -1
- package/assets/css/components/rank.component.css +1 -1
- package/assets/css/components/rank.component.css.map +1 -1
- package/assets/css/components/rankings.component.css +1 -1
- package/assets/css/components/rankings.component.css.map +1 -1
- package/assets/css/components/rankings.global.css +1 -1
- package/assets/css/components/rankings.global.css.map +1 -1
- package/assets/css/components/slider.css +1 -1
- package/assets/css/components/slider.css.map +1 -1
- package/assets/css/components/snapshot.css.map +1 -1
- package/assets/css/components/split-button.component.css +1 -1
- package/assets/css/components/split-button.component.css.map +1 -1
- package/assets/css/components/stepper.css.map +1 -1
- package/assets/css/components/table-basic.component.css +1 -1
- package/assets/css/components/table-basic.component.css.map +1 -1
- package/assets/css/components/table-basic.global.css +1 -1
- package/assets/css/components/table-basic.global.css.map +1 -1
- package/assets/css/components/table.component.css +1 -1
- package/assets/css/components/table.component.css.map +1 -1
- package/assets/css/components/table.global.css +1 -1
- package/assets/css/components/table.global.css.map +1 -1
- package/assets/css/components/tabs.component.css +1 -1
- package/assets/css/components/tabs.component.css.map +1 -1
- package/assets/css/components/tabs.config.css +1 -1
- package/assets/css/components/tabs.config.css.map +1 -1
- package/assets/css/components/testimonial.css.map +1 -1
- package/assets/css/components/timeline.css +1 -1
- package/assets/css/components/timeline.css.map +1 -1
- package/assets/css/components/tooltip.component.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/components/accordion/accordion.component.min.js +1 -1
- package/assets/js/components/actionbar/actionbar.component.js +1 -1
- package/assets/js/components/actionbar/actionbar.component.min.js +7 -7
- package/assets/js/components/actionbar/actionbar.component.min.js.map +1 -1
- package/assets/js/components/address-lookup/address-lookup.component.js +18 -2
- package/assets/js/components/address-lookup/address-lookup.component.min.js +5 -5
- package/assets/js/components/address-lookup/address-lookup.component.min.js.map +1 -1
- package/assets/js/components/advanced-select/advanced-select.component.min.js +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.min.js +2 -2
- package/assets/js/components/barchart/barchart.component.min.js +6 -6
- package/assets/js/components/barchart/barchart.component.min.js.map +1 -1
- package/assets/js/components/bento-grid/bento-grid.component.min.js +1 -1
- package/assets/js/components/calendar/calendar.component.min.js +5 -5
- package/assets/js/components/card/card.component.min.js +5 -5
- package/assets/js/components/card/card.component.min.js.map +1 -1
- package/assets/js/components/carousel/carousel.component.min.js +2 -2
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +4 -4
- package/assets/js/components/content/content.component.min.js +2 -2
- package/assets/js/components/darkmode/darkmode.component.min.js +4 -4
- package/assets/js/components/doughnutchart/doughnutchart.component.min.js +7 -7
- package/assets/js/components/doughnutchart/doughnutchart.component.min.js.map +1 -1
- package/assets/js/components/fileupload/fileupload.component.min.js +4 -4
- package/assets/js/components/filter-card/filter-card.component.min.js +1 -1
- package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
- package/assets/js/components/header/header.component.min.js +4 -4
- package/assets/js/components/inline-edit/inline-edit.component.min.js +3 -3
- package/assets/js/components/input/input.component.min.js +2 -2
- package/assets/js/components/input-range/input-range.component.min.js +1 -1
- package/assets/js/components/marketing/marketing.component.min.js +2 -2
- package/assets/js/components/menu/menu.component.min.js +1 -1
- package/assets/js/components/milestone/milestone.component.min.js +1 -1
- package/assets/js/components/milestone-group/milestone-group.component.min.js +1 -1
- package/assets/js/components/modal/modal.component.min.js +2 -2
- package/assets/js/components/multi-step/multi-step.component.min.js +1 -1
- package/assets/js/components/multi-step-modal/multi-step-modal.component.min.js +2 -2
- package/assets/js/components/multiselect/multiselect.component.min.js +4 -4
- package/assets/js/components/nav/nav.component.min.js +2 -2
- package/assets/js/components/notification/notification.component.min.js +2 -2
- package/assets/js/components/pagination/pagination.component.min.js +5 -5
- package/assets/js/components/password/password.component.min.js +5 -5
- package/assets/js/components/popover/popover.component.min.js +2 -2
- package/assets/js/components/rank/rank.component.min.js +1 -1
- package/assets/js/components/rankings/rankings.component.min.js +7 -7
- package/assets/js/components/record-card/record-card.component.min.js +1 -1
- package/assets/js/components/search/search.component.min.js +1 -1
- package/assets/js/components/slider/slider.component.min.js +2 -2
- package/assets/js/components/split-button/split-button.component.min.js +2 -2
- package/assets/js/components/std-address-lookup/std-address-lookup.component.js +1 -1
- package/assets/js/components/std-address-lookup/std-address-lookup.component.min.js +7 -7
- package/assets/js/components/std-address-lookup/std-address-lookup.component.min.js.map +1 -1
- package/assets/js/components/table/table.component.min.js +6 -6
- package/assets/js/components/table-ajax/table-ajax.component.min.js +6 -6
- package/assets/js/components/table-basic/table-basic.component.min.js +3 -3
- package/assets/js/components/table-no-submit/table-no-submit.component.min.js +6 -6
- package/assets/js/components/table-submit/table-submit.component.min.js +6 -6
- package/assets/js/components/tabs/tabs.component.min.js +4 -4
- package/assets/js/components/tooltip/tooltip.component.min.js +1 -1
- package/assets/js/components/video-card/video-card.component.min.js +1 -1
- package/assets/js/components/word-count/word-count.component.min.js +1 -1
- package/assets/js/modules/chart.module.js +1 -1
- package/assets/js/scripts.bundle.js +1 -1
- package/assets/js/scripts.bundle.min.js +1 -1
- package/assets/sass/_bs_grid.scss +6 -4
- package/assets/sass/_bs_utilities.scss +51 -0
- package/assets/sass/_components.scss +16 -53
- package/assets/sass/_corefiles.scss +10 -40
- package/assets/sass/_elements.scss +25 -118
- package/assets/sass/_fonts.scss +3 -3
- package/assets/sass/_func.scss +0 -8
- package/assets/sass/_functions/bs_functions.scss +487 -0
- package/assets/sass/_functions/bs_mixins.scss +2103 -0
- package/assets/sass/_functions/bs_utilities.scss +1 -1
- package/assets/sass/_functions/{variables_old.scss → bs_variables.scss} +11 -9
- package/assets/sass/_functions/functions.scss +9 -449
- package/assets/sass/_functions/mixins.scss +1 -643
- package/assets/sass/_functions/utility-mixins.scss +1 -1523
- package/assets/sass/_functions/variables.scss +1 -729
- package/assets/sass/_grid.scss +51 -39
- package/assets/sass/_utilities.scss +28 -50
- package/assets/sass/components/actionbar.component.scss +33 -33
- package/assets/sass/components/actionbar.global.scss +6 -6
- package/assets/sass/components/address-lookup.component.scss +4 -9
- package/assets/sass/components/address-lookup.preload.scss +3 -3
- package/assets/sass/components/barchart.component.scss +14 -14
- package/assets/sass/components/calendar.component.scss +20 -20
- package/assets/sass/components/calendar.config.scss +19 -19
- package/assets/sass/components/card.component.scss +8 -10
- package/assets/sass/components/card.module.scss +9 -9
- package/assets/sass/components/carousel.component.scss +15 -15
- package/assets/sass/components/carousel.config.scss +5 -5
- package/assets/sass/components/charts.config.scss +6 -6
- package/assets/sass/components/charts.module.scss +16 -69
- package/assets/sass/components/charts.scss +8 -8
- package/assets/sass/components/collapsible-side.scss +42 -42
- package/assets/sass/components/darkmode.component.scss +2 -4
- package/assets/sass/components/doughnutchart.component.scss +4 -4
- package/assets/sass/components/fileupload.scss +23 -24
- package/assets/sass/components/filter-card.component.scss +9 -9
- package/assets/sass/components/header.scss +4 -4
- package/assets/sass/components/inline-edit.preload.scss +5 -5
- package/assets/sass/components/inline-edit.scss +1 -1
- package/assets/sass/components/input-range.component.scss +2 -2
- package/assets/sass/components/input.component.scss +2 -3
- package/assets/sass/components/marketing.component.scss +1 -1
- package/assets/sass/components/menu.component.scss +6 -6
- package/assets/sass/components/menu.global.scss +6 -6
- package/assets/sass/components/modal.component.scss +9 -9
- package/assets/sass/components/multi-step-modal.component.scss +14 -14
- package/assets/sass/components/multi-step-modal.global.scss +2 -2
- package/assets/sass/components/multi-step.component.scss +10 -10
- package/assets/sass/components/multiselect.preload.scss +5 -5
- package/assets/sass/components/multiselect.scss +11 -16
- package/assets/sass/components/nav.component.scss +55 -55
- package/assets/sass/components/nav.docs.scss +2 -2
- package/assets/sass/components/nav.global.scss +30 -30
- package/assets/sass/components/nav.preload.scss +8 -8
- package/assets/sass/components/notification.scss +14 -14
- package/assets/sass/components/pagination.scss +15 -15
- package/assets/sass/components/password.component.scss +6 -10
- package/assets/sass/components/popover.component.scss +5 -5
- package/assets/sass/components/property-searchbar.scss +9 -9
- package/assets/sass/components/rank.component.scss +3 -3
- package/assets/sass/components/rankings.component.scss +2 -2
- package/assets/sass/components/rankings.global.scss +7 -7
- package/assets/sass/components/record-card.component.scss +4 -4
- package/assets/sass/components/slider.scss +3 -3
- package/assets/sass/components/snapshot.scss +2 -2
- package/assets/sass/components/stepper.scss +7 -7
- package/assets/sass/components/table-basic.component.scss +4 -4
- package/assets/sass/components/table-basic.global.scss +11 -11
- package/assets/sass/components/table.component.scss +1 -1
- package/assets/sass/components/table.global.scss +7 -14
- package/assets/sass/components/tabs.config.scss +10 -10
- package/assets/sass/components/testimonial.scss +7 -7
- package/assets/sass/components/timeline.scss +2 -2
- package/assets/sass/components/tooltip.component.scss +3 -3
- package/assets/sass/core.scss +1 -13
- package/assets/sass/elements/admin-panel.scss +20 -20
- package/assets/sass/elements/badge-tag.scss +9 -9
- package/assets/sass/elements/brand.css +80 -0
- package/assets/sass/elements/buttons--action.scss +8 -8
- package/assets/sass/elements/buttons--compact.scss +12 -12
- package/assets/sass/elements/buttons--global.scss +31 -33
- package/assets/sass/elements/buttons--secondary.scss +4 -4
- package/assets/sass/elements/buttons--special.scss +3 -3
- package/assets/sass/elements/buttons--tertiary.scss +7 -7
- package/assets/sass/elements/buttons.scss +9 -33
- package/assets/sass/elements/code.css +46 -0
- package/assets/sass/elements/container.scss +14 -63
- package/assets/sass/elements/details.scss +35 -35
- package/assets/sass/elements/dialog.scss +7 -7
- package/assets/sass/elements/feature.scss +4 -4
- package/assets/sass/elements/forms.scss +121 -89
- package/assets/sass/elements/{hr.scss → hr.css} +1 -10
- package/assets/sass/elements/{icons.scss → icons.css} +6 -12
- package/assets/sass/elements/input.scss +58 -8
- package/assets/sass/elements/links.scss +27 -26
- package/assets/sass/elements/lists--breadcrumbs.scss +26 -0
- package/assets/sass/elements/lists--steps.css +171 -0
- package/assets/sass/elements/lists--tick-list.scss +81 -0
- package/assets/sass/elements/lists.scss +19 -310
- package/assets/sass/elements/media.css +20 -0
- package/assets/sass/elements/modal.scss +23 -23
- package/assets/sass/elements/popover.scss +13 -13
- package/assets/sass/elements/prefix.scss +9 -9
- package/assets/sass/elements/progress.scss +24 -24
- package/assets/sass/elements/table.element.scss +19 -19
- package/assets/sass/elements/toggle-button.scss +4 -4
- package/assets/sass/elements/tooltips.scss +41 -49
- package/assets/sass/elements/type.css +158 -0
- package/assets/sass/email.scss +7 -6
- package/assets/sass/error.scss +7 -14
- package/assets/sass/foundations/colours.scss +91 -0
- package/assets/sass/foundations/reboot.scss +16 -64
- package/assets/sass/foundations/root.scss +150 -138
- package/assets/sass/main.scss +3 -13
- package/assets/sass/templates/auth.scss +14 -14
- package/assets/sass/templates/form.scss +10 -12
- package/assets/sass/utilities/align.scss +25 -0
- package/assets/sass/utilities/border.scss +81 -0
- package/assets/sass/utilities/clearfix.scss +9 -0
- package/assets/sass/utilities/colours.scss +43 -0
- package/assets/sass/utilities/display.scss +90 -0
- package/assets/sass/utilities/fixed.scss +17 -0
- package/assets/sass/utilities/flex.scss +150 -0
- package/assets/sass/utilities/gap.scss +8 -0
- package/assets/sass/utilities/gradients.scss +40 -0
- package/assets/sass/utilities/js-display.scss +13 -0
- package/assets/sass/utilities/line-clamp.scss +25 -0
- package/assets/sass/utilities/margins.scss +75 -0
- package/assets/sass/utilities/max-height.scss +94 -0
- package/assets/sass/utilities/opacity.scss +21 -0
- package/assets/sass/utilities/order.scss +43 -0
- package/assets/sass/utilities/overflow.scss +17 -0
- package/assets/sass/utilities/paddings.scss +34 -0
- package/assets/sass/utilities/pointer-events.scss +9 -0
- package/assets/sass/utilities/position.scss +90 -0
- package/assets/sass/utilities/ratio.scss +33 -0
- package/assets/sass/utilities/rounded.scss +57 -0
- package/assets/sass/utilities/sizes.scss +89 -0
- package/assets/sass/utilities/sticky.scss +39 -0
- package/assets/sass/utilities/text-truncate.scss +7 -0
- package/assets/sass/utilities/text.scss +122 -0
- package/assets/sass/utilities/visible.scss +9 -0
- package/assets/sass/utilities/visually-hidden.scss +14 -0
- package/assets/sass/utilities/wider-colours.scss +10 -0
- package/assets/ts/components/actionbar/actionbar.component.ts +1 -1
- package/assets/ts/components/address-lookup/address-lookup.component.ts +24 -3
- package/assets/ts/components/darkmode/darkmode.component.ts +2 -2
- package/assets/ts/components/input/input.component.ts +3 -3
- package/assets/ts/components/modal/modal.component.ts +2 -2
- package/assets/ts/components/multi-step-modal/multi-step-modal.component.ts +2 -2
- package/assets/ts/components/multiselect/multiselect.component.ts +1 -1
- package/assets/ts/components/std-address-lookup/std-address-lookup.component.ts +2 -3
- package/assets/ts/modules/advanced-select.ts +1 -1
- package/assets/ts/modules/applied-filters.ts +2 -2
- package/assets/ts/modules/chart.module.ts +1 -1
- package/dist/components.es.js +28 -28
- package/dist/components.umd.js +178 -178
- package/package.json +7 -7
- package/src/components/Snapshot/Snapshot.vue +1 -1
- package/assets/css/mobile-core.min.css +0 -1
- package/assets/css/mobile-core.min.css.map +0 -1
- package/assets/css/mobile.min.css +0 -1
- package/assets/css/mobile.min.css.map +0 -1
- package/assets/sass/_example.scss +0 -61
- package/assets/sass/_tests/colours.spec.js +0 -9
- package/assets/sass/_tests/colours.spec.scss +0 -32
- package/assets/sass/_tests/func.spec.js +0 -9
- package/assets/sass/_tests/func.spec.scss +0 -196
- package/assets/sass/_tests/mixins.spec.js +0 -9
- package/assets/sass/_tests/mixins.spec.scss +0 -113
- package/assets/sass/_tests/typography.spec.js +0 -9
- package/assets/sass/_tests/typography.spec.scss +0 -35
- package/assets/sass/_utility-mixins.scss +0 -38
- package/assets/sass/elements/brand.scss +0 -83
- package/assets/sass/elements/media.scss +0 -26
- package/assets/sass/elements/type.scss +0 -174
- package/assets/sass/helpers/dynamic.scss +0 -15
- package/assets/sass/helpers/line-clamp.scss +0 -0
- package/assets/sass/helpers/max-height.scss +0 -86
- package/assets/sass/helpers/wider-colours.scss +0 -8
- package/assets/sass/mobile-core.scss +0 -14
- package/assets/sass/mobile.scss +0 -16
|
@@ -0,0 +1,2103 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:math';
|
|
3
|
+
@use 'sass:meta';
|
|
4
|
+
@use 'sass:list';
|
|
5
|
+
@use 'sass:string';
|
|
6
|
+
|
|
7
|
+
@use 'bs_variables' as *;
|
|
8
|
+
@use 'bs_functions' as *;
|
|
9
|
+
|
|
10
|
+
// Utility generator
|
|
11
|
+
// Used to generate utilities & print utilities
|
|
12
|
+
@mixin generate-utility($utility, $infix, $is-rfs-media-query: false) {
|
|
13
|
+
$values: map.get($utility, values);
|
|
14
|
+
|
|
15
|
+
// If the values are a list or string, convert it into a map
|
|
16
|
+
@if meta.type-of($values) == 'string' or meta.type-of(list.nth($values, 1)) != 'list' {
|
|
17
|
+
$values: list.zip($values, $values);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@each $key, $value in $values {
|
|
21
|
+
$properties: map.get($utility, property);
|
|
22
|
+
|
|
23
|
+
// Multiple properties are possible, for example with vertical or horizontal margins or paddings
|
|
24
|
+
@if meta.type-of($properties) == 'string' {
|
|
25
|
+
$properties: list.append((), $properties);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Use custom class if present
|
|
29
|
+
$property-class: if(map.has-key($utility, class), map.get($utility, class), list.nth($properties, 1));
|
|
30
|
+
$property-class: if($property-class == null, '', $property-class);
|
|
31
|
+
|
|
32
|
+
// Use custom CSS variable name if present, otherwise default to `class`
|
|
33
|
+
$css-variable-name: if(
|
|
34
|
+
map.has-key($utility, css-variable-name),
|
|
35
|
+
map.get($utility, css-variable-name),
|
|
36
|
+
map.get($utility, class)
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
// State params to generate pseudo-classes
|
|
40
|
+
$state: if(map.has-key($utility, state), map.get($utility, state), ());
|
|
41
|
+
|
|
42
|
+
$infix: if($property-class == '' and string.slice($infix, 1, 1) == '-', string.slice($infix, 2), $infix);
|
|
43
|
+
|
|
44
|
+
// Don't prefix if value key is null (eg. with shadow class)
|
|
45
|
+
$property-class-modifier: if($key, if($property-class == '' and $infix == '', '', '-') + $key, '');
|
|
46
|
+
|
|
47
|
+
@if map.get($utility, rfs) {
|
|
48
|
+
// Inside the media query
|
|
49
|
+
@if $is-rfs-media-query {
|
|
50
|
+
$val: rfs-value($value);
|
|
51
|
+
|
|
52
|
+
// Do not render anything if fluid and non fluid values are the same
|
|
53
|
+
$value: if($val == rfs-fluid-value($value), null, $val);
|
|
54
|
+
} @else {
|
|
55
|
+
$value: rfs-fluid-value($value);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
$is-css-var: map.get($utility, css-var);
|
|
60
|
+
$is-local-vars: map.get($utility, local-vars);
|
|
61
|
+
$is-rtl: map.get($utility, rtl);
|
|
62
|
+
|
|
63
|
+
@if $value != null {
|
|
64
|
+
@if $is-rtl == false {
|
|
65
|
+
/* rtl:begin:remove */
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@if $is-css-var {
|
|
69
|
+
.#{$property-class + $infix + $property-class-modifier} {
|
|
70
|
+
--#{$css-variable-name}: #{$value};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@each $pseudo in $state {
|
|
74
|
+
.#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
|
|
75
|
+
--#{$css-variable-name}: #{$value};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
} @else {
|
|
79
|
+
.#{$property-class + $infix + $property-class-modifier} {
|
|
80
|
+
@each $property in $properties {
|
|
81
|
+
@if $is-local-vars {
|
|
82
|
+
@each $local-var, $variable in $is-local-vars {
|
|
83
|
+
--#{$local-var}: #{$variable};
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
#{$property}: $value !important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@each $pseudo in $state {
|
|
91
|
+
.#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
|
|
92
|
+
@each $property in $properties {
|
|
93
|
+
@if $is-local-vars {
|
|
94
|
+
@each $local-var, $variable in $is-local-vars {
|
|
95
|
+
--#{$local-var}: #{$variable};
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
#{$property}: $value !important;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@if $is-rtl == false {
|
|
105
|
+
/* rtl:end:remove */
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// #endregion
|
|
112
|
+
|
|
113
|
+
// #region Boostrap Grid breakpoints
|
|
114
|
+
// Breakpoint viewport sizes and media queries.
|
|
115
|
+
//
|
|
116
|
+
// Breakpoints are defined as a map of (name: minimum width), order from small to large:
|
|
117
|
+
//
|
|
118
|
+
// (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)
|
|
119
|
+
//
|
|
120
|
+
// The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
|
|
121
|
+
|
|
122
|
+
// Name of the next breakpoint, or null for the last breakpoint.
|
|
123
|
+
//
|
|
124
|
+
// >> breakpoint-next(sm)
|
|
125
|
+
// md
|
|
126
|
+
// >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px))
|
|
127
|
+
// md
|
|
128
|
+
// >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl xxl))
|
|
129
|
+
// md
|
|
130
|
+
@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
|
|
131
|
+
$n: index($breakpoint-names, $name);
|
|
132
|
+
@if not $n {
|
|
133
|
+
@error "breakpoint `#{$name}` not found in `#{$breakpoints}`";
|
|
134
|
+
}
|
|
135
|
+
@return if($n < length($breakpoint-names), list.nth($breakpoint-names, $n + 1), null);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
|
139
|
+
//
|
|
140
|
+
// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px))
|
|
141
|
+
// 576px
|
|
142
|
+
@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
|
|
143
|
+
$min: map.get($breakpoints, $name);
|
|
144
|
+
@return if($min != 0, $min, null);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// Maximum breakpoint width.
|
|
148
|
+
// The maximum value is reduced by 0.02px to work around the limitations of
|
|
149
|
+
// `min-` and `max-` prefixes and viewports with fractional widths.
|
|
150
|
+
// See https://www.w3.org/TR/mediaqueries-4/#mq-min-max
|
|
151
|
+
// Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.
|
|
152
|
+
// See https://bugs.webkit.org/show_bug.cgi?id=178261
|
|
153
|
+
//
|
|
154
|
+
// >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px))
|
|
155
|
+
// 767.98px
|
|
156
|
+
/*
|
|
157
|
+
@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
|
|
158
|
+
$max: map.get($breakpoints, $name);
|
|
159
|
+
@return if($max and $max > 0, $max - 0.02, null);
|
|
160
|
+
}
|
|
161
|
+
*/
|
|
162
|
+
// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.
|
|
163
|
+
// Useful for making responsive utilities.
|
|
164
|
+
//
|
|
165
|
+
// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px))
|
|
166
|
+
// "" (Returns a blank string)
|
|
167
|
+
// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px))
|
|
168
|
+
// "-sm"
|
|
169
|
+
@function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
|
|
170
|
+
@return if(breakpoint-min($name, $breakpoints) == null, '', '-#{$name}');
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Media of at most the maximum breakpoint width. No query for the largest breakpoint.
|
|
174
|
+
// Makes the @content apply to the given breakpoint and narrower.
|
|
175
|
+
@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
|
|
176
|
+
$max: breakpoint-max($name, $breakpoints);
|
|
177
|
+
@if $max {
|
|
178
|
+
@media (max-width: $max) {
|
|
179
|
+
@content;
|
|
180
|
+
}
|
|
181
|
+
} @else {
|
|
182
|
+
@content;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// Media that spans multiple breakpoint widths.
|
|
187
|
+
// Makes the @content apply between the min and max breakpoints
|
|
188
|
+
@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
|
|
189
|
+
$min: breakpoint-min($lower, $breakpoints);
|
|
190
|
+
$max: breakpoint-max($upper, $breakpoints);
|
|
191
|
+
|
|
192
|
+
@if $min != null and $max != null {
|
|
193
|
+
@media (min-width: $min) and (max-width: $max) {
|
|
194
|
+
@content;
|
|
195
|
+
}
|
|
196
|
+
} @else if $max == null {
|
|
197
|
+
@include media-breakpoint-up($lower, $breakpoints) {
|
|
198
|
+
@content;
|
|
199
|
+
}
|
|
200
|
+
} @else if $min == null {
|
|
201
|
+
@include media-breakpoint-down($upper, $breakpoints) {
|
|
202
|
+
@content;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// Media between the breakpoint's minimum and maximum widths.
|
|
208
|
+
// No minimum for the smallest breakpoint, and no maximum for the largest one.
|
|
209
|
+
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
|
|
210
|
+
@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
|
|
211
|
+
$min: breakpoint-min($name, $breakpoints);
|
|
212
|
+
$next: breakpoint-next($name, $breakpoints);
|
|
213
|
+
$max: breakpoint-max($next, $breakpoints);
|
|
214
|
+
|
|
215
|
+
@if $min != null and $max != null {
|
|
216
|
+
@media (min-width: $min) and (max-width: $max) {
|
|
217
|
+
@content;
|
|
218
|
+
}
|
|
219
|
+
} @else if $max == null {
|
|
220
|
+
@include media-breakpoint-up($name, $breakpoints) {
|
|
221
|
+
@content;
|
|
222
|
+
}
|
|
223
|
+
} @else if $min == null {
|
|
224
|
+
@include media-breakpoint-down($next, $breakpoints) {
|
|
225
|
+
@content;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
// #endregion
|
|
230
|
+
|
|
231
|
+
// #region Bootstrap layout
|
|
232
|
+
// scss-docs-start clearfix
|
|
233
|
+
/*
|
|
234
|
+
@mixin clearfix() {
|
|
235
|
+
&::after {
|
|
236
|
+
display: block;
|
|
237
|
+
clear: both;
|
|
238
|
+
content: '';
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
*/
|
|
242
|
+
// scss-docs-end clearfix
|
|
243
|
+
// Container mixins
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
// Grid system
|
|
247
|
+
//
|
|
248
|
+
// Generate semantic grid columns with these mixins.
|
|
249
|
+
|
|
250
|
+
@mixin make-row($gutter: $grid-gutter-width) {
|
|
251
|
+
--gutter-x: #{$gutter};
|
|
252
|
+
--gutter-y: 0;
|
|
253
|
+
display: flex;
|
|
254
|
+
flex-wrap: wrap;
|
|
255
|
+
// TODO: Revisit calc order after https://github.com/react-bootstrap/react-bootstrap/issues/6039 is fixed
|
|
256
|
+
margin-top: calc(-1 * var(--gutter-y)); // stylelint-disable-line function-disallowed-list
|
|
257
|
+
margin-right: calc(-0.5 * var(--gutter-x)); // stylelint-disable-line function-disallowed-list
|
|
258
|
+
margin-left: calc(-0.5 * var(--gutter-x)); // stylelint-disable-line function-disallowed-list
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@mixin make-col-ready() {
|
|
262
|
+
// Add box sizing if only the grid is loaded
|
|
263
|
+
box-sizing: if(meta.variable-exists(include-column-box-sizing) and $include-column-box-sizing, border-box, null);
|
|
264
|
+
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
|
265
|
+
// always setting `width: 100%;`. This works because we set the width
|
|
266
|
+
// later on to override this initial width.
|
|
267
|
+
flex-shrink: 0;
|
|
268
|
+
width: 100%;
|
|
269
|
+
max-width: 100%; // Prevent `.col-auto`, `.col` (& responsive variants) from breaking out the grid
|
|
270
|
+
padding-right: calc(var(--gutter-x) * 0.5); // stylelint-disable-line function-disallowed-list
|
|
271
|
+
padding-left: calc(var(--gutter-x) * 0.5); // stylelint-disable-line function-disallowed-list
|
|
272
|
+
margin-top: var(--gutter-y);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
@mixin make-col($size: false, $columns: $grid-columns) {
|
|
276
|
+
@if $size {
|
|
277
|
+
flex: 0 0 auto;
|
|
278
|
+
$width: math.div($size, 12);
|
|
279
|
+
width: math.percentage($width);
|
|
280
|
+
} @else {
|
|
281
|
+
flex: 1 1 0;
|
|
282
|
+
max-width: 100%;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@mixin make-col-auto() {
|
|
287
|
+
flex: 0 0 auto;
|
|
288
|
+
width: auto;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
@mixin make-col-offset($size, $columns: $grid-columns) {
|
|
292
|
+
$num: math.div($size, $columns);
|
|
293
|
+
margin-left: if($num == 0, 0, math.percentage($num));
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
// Row columns
|
|
297
|
+
//
|
|
298
|
+
// Specify on a parent element(e.g., .row) to force immediate children into NN
|
|
299
|
+
// number of columns. Supports wrapping to new lines, but does not do a Masonry
|
|
300
|
+
// style grid.
|
|
301
|
+
@mixin row-cols($count) {
|
|
302
|
+
> * {
|
|
303
|
+
flex: 0 0 auto;
|
|
304
|
+
width: math.div(100%, $count);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
// Framework grid generation
|
|
309
|
+
//
|
|
310
|
+
// Used only by Bootstrap to generate the correct number of grid classes given
|
|
311
|
+
// any value of `$grid-columns`.
|
|
312
|
+
|
|
313
|
+
@mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {
|
|
314
|
+
@each $breakpoint in map.keys($breakpoints) {
|
|
315
|
+
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
|
316
|
+
|
|
317
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
318
|
+
// Provide basic `.col-{bp}` classes for equal-width flexbox columns
|
|
319
|
+
.col#{$infix} {
|
|
320
|
+
flex: 1 0 0%; // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.row-cols#{$infix}-auto > * {
|
|
324
|
+
@include make-col-auto();
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
@if $grid-row-columns > 0 {
|
|
328
|
+
@for $i from 1 through $grid-row-columns {
|
|
329
|
+
.row-cols#{$infix}-#{$i} {
|
|
330
|
+
@include row-cols($i);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.col#{$infix}-auto {
|
|
336
|
+
@include make-col-auto();
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
@if $columns > 0 {
|
|
340
|
+
@for $i from 1 through $columns {
|
|
341
|
+
.col#{$infix}-#{$i} {
|
|
342
|
+
@include make-col($i, $columns);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
// `$columns - 1` because offsetting by the width of an entire row isn't possible
|
|
347
|
+
@for $i from 0 through ($columns - 1) {
|
|
348
|
+
@if not($infix == '' and $i == 0) {
|
|
349
|
+
// Avoid emitting useless .offset-0
|
|
350
|
+
.offset#{$infix}-#{$i} {
|
|
351
|
+
@include make-col-offset($i, $columns);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
// Gutters
|
|
358
|
+
//
|
|
359
|
+
// Make use of `.g-*`, `.gx-*` or `.gy-*` utilities to change spacing between the columns.
|
|
360
|
+
@each $key, $value in $gutters {
|
|
361
|
+
.g#{$infix}-#{$key},
|
|
362
|
+
.gx#{$infix}-#{$key} {
|
|
363
|
+
--gutter-x: #{$value};
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.g#{$infix}-#{$key},
|
|
367
|
+
.gy#{$infix}-#{$key} {
|
|
368
|
+
--gutter-y: #{$value};
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
@mixin make-cssgrid($columns: $grid-columns, $breakpoints: $grid-breakpoints) {
|
|
376
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
377
|
+
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
|
378
|
+
|
|
379
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
380
|
+
@if $columns > 0 {
|
|
381
|
+
@for $i from 1 through $columns {
|
|
382
|
+
.g-col#{$infix}-#{$i} {
|
|
383
|
+
grid-column: auto / span $i;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
// Start with `1` because `0` is and invalid value.
|
|
388
|
+
// Ends with `$columns - 1` because offsetting by the width of an entire row isn't possible.
|
|
389
|
+
@for $i from 1 through ($columns - 1) {
|
|
390
|
+
.g-start#{$infix}-#{$i} {
|
|
391
|
+
grid-column-start: $i;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
// #endregion
|
|
400
|
+
|
|
401
|
+
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
|
|
402
|
+
$min: breakpoint-min($name, $breakpoints);
|
|
403
|
+
@if $min {
|
|
404
|
+
@media screen and (min-width: $min) {
|
|
405
|
+
@content;
|
|
406
|
+
}
|
|
407
|
+
} @else if $name == 'xs' {
|
|
408
|
+
@content;
|
|
409
|
+
} @else {
|
|
410
|
+
@content;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
@mixin container-up($name) {
|
|
415
|
+
@if $name == 'sm' {
|
|
416
|
+
@container (width > 23.4375em) {
|
|
417
|
+
@content;
|
|
418
|
+
}
|
|
419
|
+
} @else if $name == 'md' {
|
|
420
|
+
@container (width > 48em) {
|
|
421
|
+
@content;
|
|
422
|
+
}
|
|
423
|
+
} @else if $name == 'xs' {
|
|
424
|
+
@content;
|
|
425
|
+
} @else {
|
|
426
|
+
@content;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
// Example: @include prefix(transition, transform 1.5s, webkit ms o);
|
|
431
|
+
@mixin prefix($property, $value, $prefixes: (webkit ms o)) {
|
|
432
|
+
@each $prefix in $prefixes {
|
|
433
|
+
#{'-' + $prefix + '-' + $property}: $value;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// Output standard non-prefixed declaration
|
|
437
|
+
#{$property}: $value;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
// Used to make it possible to use css properties but still support IE11
|
|
441
|
+
@mixin var($property, $varName, $important: '') {
|
|
442
|
+
#{$property}: var(#{$varName}) #{$important};
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
@mixin inline-text() {
|
|
446
|
+
p,
|
|
447
|
+
ul,
|
|
448
|
+
ol,
|
|
449
|
+
dd,
|
|
450
|
+
.body,
|
|
451
|
+
table:not(.table--email) td {
|
|
452
|
+
@content;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
@mixin headers($includeClasses: 'false') {
|
|
457
|
+
h1,
|
|
458
|
+
h2,
|
|
459
|
+
h3,
|
|
460
|
+
h4,
|
|
461
|
+
h5,
|
|
462
|
+
h6 {
|
|
463
|
+
@content;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
@if $includeClasses == 'true' {
|
|
467
|
+
.h1,
|
|
468
|
+
.h2,
|
|
469
|
+
.h3,
|
|
470
|
+
.h4,
|
|
471
|
+
.h5,
|
|
472
|
+
.h6 {
|
|
473
|
+
@content;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
@mixin bg-variant($parent, $color, $ignore-warning: false) {
|
|
479
|
+
#{$parent} {
|
|
480
|
+
--bg-colour: var(--colour-#{str-replace($parent, '.bg-', '')});
|
|
481
|
+
--bg-colour-tint: var(--colour-#{str-replace($parent, '.bg-', '')}-tint);
|
|
482
|
+
|
|
483
|
+
@include var(background-color, --colour-#{str-replace($parent, '.bg-', '')}, !important);
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
@mixin text-emphasis-variant($parent, $color, $ignore-warning: false) {
|
|
487
|
+
#{$parent} {
|
|
488
|
+
@include var(color, --colour-#{str-replace($parent, '.text-', '')}, '!important');
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
@mixin is($selector, $before: '', $after: '') {
|
|
496
|
+
#{$before}:is(#{$selector})#{$after} {
|
|
497
|
+
@content;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
@mixin slotted($el, $isComponent: 'true') {
|
|
503
|
+
@if $isComponent == 'true' {
|
|
504
|
+
::slotted(#{$el}) {
|
|
505
|
+
@content;
|
|
506
|
+
}
|
|
507
|
+
} @else {
|
|
508
|
+
#{$el} {
|
|
509
|
+
@content;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
@mixin list-unstyled {
|
|
515
|
+
padding-left: 0;
|
|
516
|
+
list-style: none;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
@mixin breakpoint($name, $breakpoints: $breakpoints) {
|
|
520
|
+
@media screen and (min-width: #{map.get($breakpoints,$name)}) {
|
|
521
|
+
@content;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
@mixin input {
|
|
525
|
+
display: block;
|
|
526
|
+
width: 100%;
|
|
527
|
+
display: block;
|
|
528
|
+
width: 100%;
|
|
529
|
+
padding: var(--input-padding-block, 0.75rem) var(--input-padding-inline, 1rem);
|
|
530
|
+
font-size: var(--input-fs, 1rem);
|
|
531
|
+
line-height: var(--input-lh, 1.25rem);
|
|
532
|
+
color: var(--colour-heading);
|
|
533
|
+
background-color: var(--colour-canvas-2);
|
|
534
|
+
background-clip: padding-box;
|
|
535
|
+
border: 2px solid var(--colour-primary);
|
|
536
|
+
appearance: none; // Fix appearance for date inputs in Safari
|
|
537
|
+
border-radius: 0.5rem;
|
|
538
|
+
margin-bottom: 1.5rem;
|
|
539
|
+
min-height: calc(
|
|
540
|
+
var(--input-padding-block, 0.75rem) + var(--input-padding-block, 0.75rem) + var(--input-lh, 1.25rem) +
|
|
541
|
+
4px
|
|
542
|
+
);
|
|
543
|
+
max-height: calc(
|
|
544
|
+
var(--input-padding-block, 0.75rem) + var(--input-padding-block, 0.75rem) + var(--input-lh, 1.25rem) +
|
|
545
|
+
4px
|
|
546
|
+
);
|
|
547
|
+
|
|
548
|
+
&:is(textarea) {
|
|
549
|
+
max-height: 100%;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
// Customize the `:focus` state to imitate native WebKit styles.
|
|
553
|
+
&:is(:focus, .focus):not(:disabled) {
|
|
554
|
+
border-color: var(--colour-info);
|
|
555
|
+
outline: 0;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
&:is(:focus, .focus):not(:disabled):not(:invalid) {
|
|
559
|
+
box-shadow: 0 0 0 0.1rem rgba(30, 190, 230, 0.25);
|
|
560
|
+
}
|
|
561
|
+
// Add some height to date inputs on iOS
|
|
562
|
+
// https://github.com/twbs/bootstrap/issues/23307
|
|
563
|
+
// TODO: we can remove this workaround once https://bugs.webkit.org/show_bug.cgi?id=198959 is resolved
|
|
564
|
+
&::-webkit-date-and-time-value {
|
|
565
|
+
// Multiply line-height by 1em if it has no unit
|
|
566
|
+
height: if(math.unit(1.5) == '', 1.5 * 1em, 1.5);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
// Disabled inputs
|
|
570
|
+
&:disabled {
|
|
571
|
+
background-color: #ccd6d8;
|
|
572
|
+
opacity: 0.4;
|
|
573
|
+
cursor: not-allowed;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
$breakpoints: (
|
|
579
|
+
sm: 36em,
|
|
580
|
+
md: 62em
|
|
581
|
+
);
|
|
582
|
+
|
|
583
|
+
$new_utilities: ();
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
// #region Clearfix
|
|
587
|
+
$new_utilities: map.merge(
|
|
588
|
+
$new_utilities,
|
|
589
|
+
(
|
|
590
|
+
'clearfix': 'Clear the floats from both sides',
|
|
591
|
+
)
|
|
592
|
+
);
|
|
593
|
+
|
|
594
|
+
@mixin clearfix() {
|
|
595
|
+
.clearfix {
|
|
596
|
+
&::after {
|
|
597
|
+
display: block;
|
|
598
|
+
clear: both;
|
|
599
|
+
content: '';
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
// #endregion
|
|
604
|
+
|
|
605
|
+
// #region visually-hidden
|
|
606
|
+
$new_utilities: map.merge(
|
|
607
|
+
$new_utilities,
|
|
608
|
+
(
|
|
609
|
+
'visually-hidden': 'Hide an element from the standard user but not from screen readers',
|
|
610
|
+
)
|
|
611
|
+
);
|
|
612
|
+
|
|
613
|
+
@mixin visually-hidden() {
|
|
614
|
+
.visually-hidden,
|
|
615
|
+
.visually-hidden-focusable:not(:focus):not(:focus-within) {
|
|
616
|
+
position: absolute !important;
|
|
617
|
+
width: 1px !important;
|
|
618
|
+
height: 1px !important;
|
|
619
|
+
padding: 0 !important;
|
|
620
|
+
margin: -1px !important; // Fix for https://github.com/twbs/bootstrap/issues/25686
|
|
621
|
+
overflow: hidden !important;
|
|
622
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
623
|
+
white-space: nowrap !important;
|
|
624
|
+
border: 0 !important;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
// #endregion
|
|
628
|
+
|
|
629
|
+
// #region text-truncate
|
|
630
|
+
$new_utilities: map.merge(
|
|
631
|
+
$new_utilities,
|
|
632
|
+
(
|
|
633
|
+
'text-truncate': 'Keep the text onto one line and add an ellipsis if needed',
|
|
634
|
+
)
|
|
635
|
+
);
|
|
636
|
+
|
|
637
|
+
@mixin text-truncate() {
|
|
638
|
+
.text-truncate {
|
|
639
|
+
overflow: hidden;
|
|
640
|
+
text-overflow: ellipsis;
|
|
641
|
+
white-space: nowrap;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
// #endregion
|
|
645
|
+
|
|
646
|
+
// #region ratio
|
|
647
|
+
$new_utilities: map.merge(
|
|
648
|
+
$new_utilities,
|
|
649
|
+
(
|
|
650
|
+
'ratio': 'Use pre-defined aspect ratios to generate the sizing or elements',
|
|
651
|
+
)
|
|
652
|
+
);
|
|
653
|
+
|
|
654
|
+
@mixin ratio() {
|
|
655
|
+
.ratio {
|
|
656
|
+
position: relative;
|
|
657
|
+
width: 100%;
|
|
658
|
+
|
|
659
|
+
&::before {
|
|
660
|
+
display: block;
|
|
661
|
+
padding-top: var(--aspect-ratio);
|
|
662
|
+
content: '';
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
> * {
|
|
666
|
+
position: absolute;
|
|
667
|
+
top: 0;
|
|
668
|
+
left: 0;
|
|
669
|
+
width: 100%;
|
|
670
|
+
height: 100%;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.ratio-1x1 {
|
|
675
|
+
--aspect-ratio: 100%;
|
|
676
|
+
}
|
|
677
|
+
.ratio-4x3 {
|
|
678
|
+
--aspect-ratio: calc(3 / 4 * 100%);
|
|
679
|
+
}
|
|
680
|
+
.ratio-16x9 {
|
|
681
|
+
--aspect-ratio: calc(9 / 16 * 100%);
|
|
682
|
+
}
|
|
683
|
+
.ratio-21x9 {
|
|
684
|
+
--aspect-ratio: calc(9 / 21 * 100%);
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
// #endregion
|
|
688
|
+
|
|
689
|
+
// #region fixed
|
|
690
|
+
$new_utilities: map.merge(
|
|
691
|
+
$new_utilities,
|
|
692
|
+
(
|
|
693
|
+
'fixed': 'Fix elements to either the top or bottom',
|
|
694
|
+
)
|
|
695
|
+
);
|
|
696
|
+
|
|
697
|
+
@mixin fixed() {
|
|
698
|
+
.fixed-top {
|
|
699
|
+
position: fixed;
|
|
700
|
+
top: 0;
|
|
701
|
+
right: 0;
|
|
702
|
+
left: 0;
|
|
703
|
+
z-index: var(--index-floating);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.fixed-bottom {
|
|
707
|
+
position: fixed;
|
|
708
|
+
right: 0;
|
|
709
|
+
bottom: 0;
|
|
710
|
+
left: 0;
|
|
711
|
+
z-index: var(--index-floating);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
// #endregion
|
|
715
|
+
|
|
716
|
+
// #region sticky
|
|
717
|
+
$new_utilities: map.merge(
|
|
718
|
+
$new_utilities,
|
|
719
|
+
(
|
|
720
|
+
'sticky': 'Make elements stick to either the top or bottom',
|
|
721
|
+
)
|
|
722
|
+
);
|
|
723
|
+
|
|
724
|
+
@mixin sticky() {
|
|
725
|
+
|
|
726
|
+
@media screen and (min-width: 36em) {
|
|
727
|
+
|
|
728
|
+
.sticky-sm-top {
|
|
729
|
+
position: sticky;
|
|
730
|
+
top: 0;
|
|
731
|
+
z-index: var(--index-floating);
|
|
732
|
+
}
|
|
733
|
+
.sticky-sm-bottom {
|
|
734
|
+
position: sticky;
|
|
735
|
+
bottom: 0;
|
|
736
|
+
z-index: var(--index-floating);
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
@media screen and (min-width: 62em) {
|
|
740
|
+
|
|
741
|
+
.sticky-md-top {
|
|
742
|
+
position: sticky;
|
|
743
|
+
top: 0;
|
|
744
|
+
z-index: var(--index-floating);
|
|
745
|
+
}
|
|
746
|
+
.sticky-md-bottom {
|
|
747
|
+
position: sticky;
|
|
748
|
+
bottom: 0;
|
|
749
|
+
z-index: var(--index-floating);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
// #endregion
|
|
754
|
+
|
|
755
|
+
// #region max-height
|
|
756
|
+
$new_utilities: map.merge(
|
|
757
|
+
$new_utilities,
|
|
758
|
+
(
|
|
759
|
+
'max-height':
|
|
760
|
+
'Set a pre-defined max height on an element, note this will create a scrollable area if the content is larger than the max height.',
|
|
761
|
+
)
|
|
762
|
+
);
|
|
763
|
+
|
|
764
|
+
@mixin max-height() {
|
|
765
|
+
:is(.mh-sm, .mh-md, .mh-lg, .mh-sm-sm, .mh-sm-md, .mh-sm-lg, .mh-md-sm, .mh-md-md, .mh-md-lg, .mh-fluid) {
|
|
766
|
+
&:not(iam-table):not(.table__wrapper) {
|
|
767
|
+
padding-inline: var(--mh-padding-inline, 0);
|
|
768
|
+
margin-inline: calc(var(--mh-padding-inline, 0) * -1);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
&::before {
|
|
772
|
+
top: calc(100% - 1.5rem);
|
|
773
|
+
bottom: 0;
|
|
774
|
+
left: 0;
|
|
775
|
+
right: 0;
|
|
776
|
+
height: 1.5rem;
|
|
777
|
+
position: sticky;
|
|
778
|
+
display: block;
|
|
779
|
+
background: linear-gradient(180deg, transparent 0%, var(--colour-canvas-2) 100%);
|
|
780
|
+
z-index: 2;
|
|
781
|
+
margin-bottom: -1.5rem;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
:is(.mh-sm, .mh-md, .mh-lg, .mh-fluid) {
|
|
786
|
+
overflow: auto;
|
|
787
|
+
overscroll-behavior: contain;
|
|
788
|
+
|
|
789
|
+
&::before {
|
|
790
|
+
content: '';
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.mh-sm {
|
|
795
|
+
max-height: calc(#{rem(200)} - var(--mh-modifier, 0rem));
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.mh-md {
|
|
799
|
+
max-height: calc(#{rem(400)} - var(--mh-modifier, 0rem));
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
.mh-lg {
|
|
803
|
+
max-height: calc(#{rem(600)} - var(--mh-modifier, 0rem));
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.mh-fluid {
|
|
807
|
+
max-height: 100%;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
@media screen and (min-width: 36em) {
|
|
811
|
+
:is(.mh-sm-sm, .mh-sm-md, .mh-sm-lg) {
|
|
812
|
+
overflow: auto;
|
|
813
|
+
overscroll-behavior: contain;
|
|
814
|
+
|
|
815
|
+
&::before {
|
|
816
|
+
content: '';
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
.mh-sm-sm {
|
|
821
|
+
max-height: calc(#{rem(200)} - var(--mh-modifier, 0rem));
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
.mh-sm-md {
|
|
825
|
+
max-height: calc(#{rem(400)} - var(--mh-modifier, 0rem));
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.mh-sm-lg {
|
|
829
|
+
max-height: calc(#{rem(600)} - var(--mh-modifier, 0rem));
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
@media screen and (min-width: 62em) {
|
|
834
|
+
:is(.mh-md-sm, .mh-md-md, .mh-md-lg) {
|
|
835
|
+
overflow: auto;
|
|
836
|
+
overscroll-behavior: contain;
|
|
837
|
+
|
|
838
|
+
&::before {
|
|
839
|
+
content: '';
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
.mh-md-sm {
|
|
844
|
+
max-height: calc(#{rem(200)} - var(--mh-modifier, 0rem));
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.mh-md-md {
|
|
848
|
+
max-height: calc(#{rem(400)} - var(--mh-modifier, 0rem));
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
.mh-md-lg {
|
|
852
|
+
max-height: calc(#{rem(600)} - var(--mh-modifier, 0rem));
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
// #endregion
|
|
857
|
+
|
|
858
|
+
// #region js-display
|
|
859
|
+
$new_utilities: map.merge(
|
|
860
|
+
$new_utilities,
|
|
861
|
+
(
|
|
862
|
+
'js-display': 'Show and hide elements depending upon if javascript is running or not',
|
|
863
|
+
)
|
|
864
|
+
);
|
|
865
|
+
|
|
866
|
+
@mixin js-display() {
|
|
867
|
+
@media (scripting: enabled) {
|
|
868
|
+
.js-show {
|
|
869
|
+
display: none !important;
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
@media (scripting: none) {
|
|
874
|
+
.js-hide {
|
|
875
|
+
display: none !important;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
// #endregion
|
|
880
|
+
|
|
881
|
+
// #region Line clamp
|
|
882
|
+
$new_utilities: map.merge(
|
|
883
|
+
$new_utilities,
|
|
884
|
+
(
|
|
885
|
+
'line-clamp': 'Restricts a texts height to a number of lines (1-5)',
|
|
886
|
+
)
|
|
887
|
+
);
|
|
888
|
+
|
|
889
|
+
@mixin line-clamp() {
|
|
890
|
+
.line-clamp {
|
|
891
|
+
display: -webkit-box;
|
|
892
|
+
-webkit-box-orient: vertical;
|
|
893
|
+
-webkit-line-clamp: 1;
|
|
894
|
+
text-overflow: hidden;
|
|
895
|
+
overflow: hidden;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
.line-clamp--2 {
|
|
899
|
+
-webkit-line-clamp: 2;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
.line-clamp--3 {
|
|
903
|
+
-webkit-line-clamp: 3;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.line-clamp--4 {
|
|
907
|
+
-webkit-line-clamp: 4;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.line-clamp--5 {
|
|
911
|
+
-webkit-line-clamp: 5;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
// #endregion
|
|
915
|
+
|
|
916
|
+
// #region Wider colours
|
|
917
|
+
$new_utilities: map.merge(
|
|
918
|
+
$new_utilities,
|
|
919
|
+
(
|
|
920
|
+
'wider-colours': 'Apply the wider range of colours in our design system',
|
|
921
|
+
)
|
|
922
|
+
);
|
|
923
|
+
|
|
924
|
+
@mixin wider-colours() {
|
|
925
|
+
|
|
926
|
+
@for $i from 1 through 23 {
|
|
927
|
+
.wider-colour-#{$i} {
|
|
928
|
+
--wider-colour: var(--wider-colour-#{$i} );
|
|
929
|
+
--wider-colour-hover: var(--wider-colour-#{$i}-hover);
|
|
930
|
+
--wider-colour-active: var(--wider-colour-#{$i}-active);
|
|
931
|
+
color: #262626 !important;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
}
|
|
936
|
+
// #endregion
|
|
937
|
+
|
|
938
|
+
// #region Align
|
|
939
|
+
$new_utilities: map.merge(
|
|
940
|
+
$new_utilities,
|
|
941
|
+
(
|
|
942
|
+
'align': 'Change the alignment of the text ',
|
|
943
|
+
)
|
|
944
|
+
);
|
|
945
|
+
|
|
946
|
+
@mixin align() {
|
|
947
|
+
.align-baseline {
|
|
948
|
+
vertical-align: baseline !important;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.align-top {
|
|
952
|
+
vertical-align: top !important;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
.align-middle {
|
|
956
|
+
vertical-align: middle !important;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
.align-bottom {
|
|
960
|
+
vertical-align: bottom !important;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
.align-text-bottom {
|
|
964
|
+
vertical-align: text-bottom !important;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
.align-text-top {
|
|
968
|
+
vertical-align: text-top !important;
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
// #endregion
|
|
972
|
+
|
|
973
|
+
// #region Opacity
|
|
974
|
+
$new_utilities: map.merge(
|
|
975
|
+
$new_utilities,
|
|
976
|
+
(
|
|
977
|
+
'opacity': 'Apply the opacity of an element by intervals of 25%',
|
|
978
|
+
)
|
|
979
|
+
);
|
|
980
|
+
|
|
981
|
+
@mixin opacity() {
|
|
982
|
+
.opacity-0 {
|
|
983
|
+
opacity: 0 !important;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
.opacity-25 {
|
|
987
|
+
opacity: 0.25 !important;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.opacity-50 {
|
|
991
|
+
opacity: 0.5 !important;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
.opacity-75 {
|
|
995
|
+
opacity: 0.75 !important;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
.opacity-100 {
|
|
999
|
+
opacity: 1 !important;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
// #endregion
|
|
1003
|
+
|
|
1004
|
+
// #region Overflow
|
|
1005
|
+
$new_utilities: map.merge(
|
|
1006
|
+
$new_utilities,
|
|
1007
|
+
(
|
|
1008
|
+
'overflow': 'Update the overflow of an element',
|
|
1009
|
+
)
|
|
1010
|
+
);
|
|
1011
|
+
|
|
1012
|
+
@mixin overflow() {
|
|
1013
|
+
.overflow-auto {
|
|
1014
|
+
overflow: auto !important;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
.overflow-hidden {
|
|
1018
|
+
overflow: hidden !important;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.overflow-visible {
|
|
1022
|
+
overflow: visible !important;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.overflow-scroll {
|
|
1026
|
+
overflow: scroll !important;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
// #endregion
|
|
1030
|
+
|
|
1031
|
+
// #region Display
|
|
1032
|
+
$new_utilities: map.merge(
|
|
1033
|
+
$new_utilities,
|
|
1034
|
+
(
|
|
1035
|
+
'display': 'Update the display of an element, can be applied at different breakpoints',
|
|
1036
|
+
)
|
|
1037
|
+
);
|
|
1038
|
+
|
|
1039
|
+
@mixin display() {
|
|
1040
|
+
.d-inline {
|
|
1041
|
+
display: inline !important;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
.d-inline-block {
|
|
1045
|
+
display: inline-block !important;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
.d-block {
|
|
1049
|
+
display: block !important;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.d-grid {
|
|
1053
|
+
display: grid !important;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
.d-table {
|
|
1057
|
+
display: table !important;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
.d-table-row {
|
|
1061
|
+
display: table-row !important;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
.d-table-cell {
|
|
1065
|
+
display: table-cell !important;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
.d-flex {
|
|
1069
|
+
display: flex !important;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
.d-inline-flex {
|
|
1073
|
+
display: inline-flex !important;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
.d-none {
|
|
1077
|
+
display: none !important;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
@each $breakpoint,$width in $breakpoints {
|
|
1081
|
+
@media screen and (min-width: $width) {
|
|
1082
|
+
|
|
1083
|
+
.d-#{$breakpoint}-inline {
|
|
1084
|
+
display: inline !important;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
.d-#{$breakpoint}-inline-block {
|
|
1088
|
+
display: inline-block !important;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
.d-#{$breakpoint}-block {
|
|
1092
|
+
display: block !important;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
.d-#{$breakpoint}-grid {
|
|
1096
|
+
display: grid !important;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
.d-#{$breakpoint}-table {
|
|
1100
|
+
display: table !important;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
.d-#{$breakpoint}-table-row {
|
|
1104
|
+
display: table-row !important;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
.d-#{$breakpoint}-table-cell {
|
|
1108
|
+
display: table-cell !important;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
.d-#{$breakpoint}-flex {
|
|
1112
|
+
display: flex !important;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
.d-#{$breakpoint}-inline-flex {
|
|
1116
|
+
display: inline-flex !important;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.d-#{$breakpoint}-none {
|
|
1120
|
+
display: none !important;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
// #endregion
|
|
1126
|
+
|
|
1127
|
+
// #region Position
|
|
1128
|
+
$new_utilities: map.merge(
|
|
1129
|
+
$new_utilities,
|
|
1130
|
+
(
|
|
1131
|
+
'position': 'Update the position of an element, can be applied at different breakpoints',
|
|
1132
|
+
)
|
|
1133
|
+
);
|
|
1134
|
+
|
|
1135
|
+
@mixin position() {
|
|
1136
|
+
@each $breakpoint,$width in $breakpoints {
|
|
1137
|
+
@media screen and (min-width: $width) {
|
|
1138
|
+
|
|
1139
|
+
.position-#{$breakpoint}-static {
|
|
1140
|
+
position: static !important;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
.position-#{$breakpoint}-relative {
|
|
1144
|
+
position: relative !important;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
.position-#{$breakpoint}-absolute {
|
|
1148
|
+
position: absolute !important;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.position-#{$breakpoint}-fixed {
|
|
1152
|
+
position: fixed !important;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.position-#{$breakpoint}-sticky {
|
|
1156
|
+
position: sticky !important;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
.top-#{$breakpoint}-0 {
|
|
1160
|
+
top: 0 !important;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
.top-#{$breakpoint}-50 {
|
|
1164
|
+
top: 50% !important;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
.top-#{$breakpoint}-100 {
|
|
1168
|
+
top: 100% !important;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
.bottom-#{$breakpoint}-0 {
|
|
1172
|
+
bottom: 0 !important;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
.bottom-#{$breakpoint}-50 {
|
|
1176
|
+
bottom: 50% !important;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
.bottom-#{$breakpoint}-100 {
|
|
1180
|
+
bottom: 100% !important;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
.start-#{$breakpoint}-0 {
|
|
1184
|
+
left: 0 !important;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
.start-#{$breakpoint}-50 {
|
|
1188
|
+
left: 50% !important;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
.start-#{$breakpoint}-100 {
|
|
1192
|
+
left: 100% !important;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
.end-#{$breakpoint}-0 {
|
|
1196
|
+
right: 0 !important;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
.end-#{$breakpoint}-50 {
|
|
1200
|
+
right: 50% !important;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
.end-#{$breakpoint}-100 {
|
|
1204
|
+
right: 100% !important;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
.translate-#{$breakpoint}-middle {
|
|
1208
|
+
transform: translate(-50%, -50%) !important;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
.translate-#{$breakpoint}-middle-x {
|
|
1212
|
+
transform: translateX(-50%) !important;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
.translate-#{$breakpoint}-middle-y {
|
|
1216
|
+
transform: translateY(-50%) !important;
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
// #endregion
|
|
1222
|
+
|
|
1223
|
+
// #region Border
|
|
1224
|
+
$new_utilities: map.merge(
|
|
1225
|
+
$new_utilities,
|
|
1226
|
+
(
|
|
1227
|
+
'border': 'Apply a border and adjust its settings',
|
|
1228
|
+
)
|
|
1229
|
+
);
|
|
1230
|
+
|
|
1231
|
+
@mixin border() {
|
|
1232
|
+
.border {
|
|
1233
|
+
border: var(--border-width) var(--border-style) var(--border-color) !important;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
.border-0 {
|
|
1237
|
+
border: 0 !important;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
.border-top {
|
|
1241
|
+
border-top: var(--border-width) var(--border-style) var(--border-color) !important;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
.border-top-0 {
|
|
1245
|
+
border-top: 0 !important;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
.border-end {
|
|
1249
|
+
border-right: var(--border-width) var(--border-style) var(--border-color) !important;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
.border-end-0 {
|
|
1253
|
+
border-right: 0 !important;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
.border-bottom {
|
|
1257
|
+
border-bottom: var(--border-width) var(--border-style) var(--border-color) !important;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
.border-bottom-0 {
|
|
1261
|
+
border-bottom: 0 !important;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
.border-start {
|
|
1265
|
+
border-left: var(--border-width) var(--border-style) var(--border-color) !important;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
.border-start-0 {
|
|
1269
|
+
border-left: 0 !important;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
.border-1 {
|
|
1273
|
+
--border-width: 1px;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
.border-2 {
|
|
1277
|
+
--border-width: 2px;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
.border-3 {
|
|
1281
|
+
--border-width: 3px;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
.border-4 {
|
|
1285
|
+
--border-width: 4px;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
.border-5 {
|
|
1289
|
+
--border-width: 5px;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
.border-opacity-10 {
|
|
1293
|
+
--border-opacity: 0.1;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
.border-opacity-25 {
|
|
1297
|
+
--border-opacity: 0.25;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
.border-opacity-50 {
|
|
1301
|
+
--border-opacity: 0.5;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
.border-opacity-75 {
|
|
1305
|
+
--border-opacity: 0.75;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
.border-opacity-100 {
|
|
1309
|
+
--border-opacity: 1;
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
// #endregion
|
|
1313
|
+
|
|
1314
|
+
// #region Sizes
|
|
1315
|
+
$new_utilities: map.merge(
|
|
1316
|
+
$new_utilities,
|
|
1317
|
+
(
|
|
1318
|
+
'sizes': 'Apply sizing rules to an element',
|
|
1319
|
+
)
|
|
1320
|
+
);
|
|
1321
|
+
|
|
1322
|
+
@mixin sizes() {
|
|
1323
|
+
.w-25 {
|
|
1324
|
+
width: 25% !important;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
.w-50 {
|
|
1328
|
+
width: 50% !important;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
.w-75 {
|
|
1332
|
+
width: 75% !important;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
.w-100 {
|
|
1336
|
+
width: 100% !important;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
.w-auto {
|
|
1340
|
+
width: auto !important;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
.mw-100 {
|
|
1344
|
+
max-width: 100% !important;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
.mw-fit-content {
|
|
1348
|
+
max-width: fit-content !important;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
.mw-content {
|
|
1352
|
+
max-width: var(--content-max-width) !important;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
.vw-100 {
|
|
1356
|
+
width: 100vw !important;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
.min-vw-100 {
|
|
1360
|
+
min-width: 100vw !important;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
.h-25 {
|
|
1364
|
+
height: 25% !important;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
.h-50 {
|
|
1368
|
+
height: 50% !important;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
.h-75 {
|
|
1372
|
+
height: 75% !important;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
.h-100 {
|
|
1376
|
+
height: 100% !important;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
.h-auto {
|
|
1380
|
+
height: auto !important;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
.mh-100 {
|
|
1384
|
+
max-height: 100% !important;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
.vh-100 {
|
|
1388
|
+
height: 100vh !important;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
.min-vh-100 {
|
|
1392
|
+
min-height: 100vh !important;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
.min-100 {
|
|
1396
|
+
min-width: 100% !important;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
.min-fit-content {
|
|
1400
|
+
min-width: fit-content !important;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
.object-cover {
|
|
1404
|
+
object-fit: cover !important;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
.object-contain {
|
|
1408
|
+
object-fit: contain !important;
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
// #endregion
|
|
1412
|
+
|
|
1413
|
+
// #region Flex
|
|
1414
|
+
$new_utilities: map.merge(
|
|
1415
|
+
$new_utilities,
|
|
1416
|
+
(
|
|
1417
|
+
'flex': 'Update the flex rules of an element, can be applied at different breakpoints',
|
|
1418
|
+
)
|
|
1419
|
+
);
|
|
1420
|
+
|
|
1421
|
+
@mixin flex() {
|
|
1422
|
+
@each $breakpoint,$width in $breakpoints {
|
|
1423
|
+
@media screen and (min-width: $width) {
|
|
1424
|
+
|
|
1425
|
+
.flex-#{$breakpoint}-fill {
|
|
1426
|
+
flex: 1 1 auto !important;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
.flex-#{$breakpoint}-row {
|
|
1430
|
+
flex-direction: row !important;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
.flex-#{$breakpoint}-column {
|
|
1434
|
+
flex-direction: column !important;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
.flex-#{$breakpoint}-row-reverse {
|
|
1438
|
+
flex-direction: row-reverse !important;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
.flex-#{$breakpoint}-column-reverse {
|
|
1442
|
+
flex-direction: column-reverse !important;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
.flex-#{$breakpoint}-grow-0 {
|
|
1446
|
+
flex-grow: 0 !important;
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
.flex-#{$breakpoint}-grow-1 {
|
|
1450
|
+
flex-grow: 1 !important;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
.flex-#{$breakpoint}-shrink-0 {
|
|
1454
|
+
flex-shrink: 0 !important;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
.flex-#{$breakpoint}-shrink-1 {
|
|
1458
|
+
flex-shrink: 1 !important;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
.flex-#{$breakpoint}-wrap {
|
|
1462
|
+
flex-wrap: wrap !important;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
.flex-#{$breakpoint}-nowrap {
|
|
1466
|
+
flex-wrap: nowrap !important;
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
.flex-#{$breakpoint}-wrap-reverse {
|
|
1470
|
+
flex-wrap: wrap-reverse !important;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
.justify-content-#{$breakpoint}-start {
|
|
1474
|
+
justify-content: flex-start !important;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
.justify-content-#{$breakpoint}-end {
|
|
1478
|
+
justify-content: flex-end !important;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
.justify-content-#{$breakpoint}-center {
|
|
1482
|
+
justify-content: center !important;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
.justify-content-#{$breakpoint}-between {
|
|
1486
|
+
justify-content: space-between !important;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
.justify-content-#{$breakpoint}-around {
|
|
1490
|
+
justify-content: space-around !important;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
.justify-content-#{$breakpoint}-evenly {
|
|
1494
|
+
justify-content: space-evenly !important;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
.align-items-#{$breakpoint}-start {
|
|
1498
|
+
align-items: flex-start !important;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
.align-items-#{$breakpoint}-end {
|
|
1502
|
+
align-items: flex-end !important;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
.align-items-#{$breakpoint}-center {
|
|
1506
|
+
align-items: center !important;
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
.align-items-#{$breakpoint}-baseline {
|
|
1510
|
+
align-items: baseline !important;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
.align-items-#{$breakpoint}-stretch {
|
|
1514
|
+
align-items: stretch !important;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
.align-content-#{$breakpoint}-start {
|
|
1518
|
+
align-content: flex-start !important;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
.align-content-#{$breakpoint}-end {
|
|
1522
|
+
align-content: flex-end !important;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
.align-content-#{$breakpoint}-center {
|
|
1526
|
+
align-content: center !important;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
.align-content-#{$breakpoint}-between {
|
|
1530
|
+
align-content: space-between !important;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
.align-content-#{$breakpoint}-around {
|
|
1534
|
+
align-content: space-around !important;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
.align-content-#{$breakpoint}-stretch {
|
|
1538
|
+
align-content: stretch !important;
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
.align-self-#{$breakpoint}-auto {
|
|
1542
|
+
align-self: auto !important;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
.align-self-#{$breakpoint}-start {
|
|
1546
|
+
align-self: flex-start !important;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
.align-self-#{$breakpoint}-end {
|
|
1550
|
+
align-self: flex-end !important;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
.align-self-#{$breakpoint}-center {
|
|
1554
|
+
align-self: center !important;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
.align-self-#{$breakpoint}-baseline {
|
|
1558
|
+
align-self: baseline !important;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
.align-self-#{$breakpoint}-stretch {
|
|
1562
|
+
align-self: stretch !important;
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
// #endregion
|
|
1568
|
+
|
|
1569
|
+
// #region Order
|
|
1570
|
+
$new_utilities: map.merge(
|
|
1571
|
+
$new_utilities,
|
|
1572
|
+
(
|
|
1573
|
+
'order': 'Update the order of an element, can be applied at different breakpoints',
|
|
1574
|
+
)
|
|
1575
|
+
);
|
|
1576
|
+
|
|
1577
|
+
@mixin order() {
|
|
1578
|
+
@each $breakpoint,$width in $breakpoints {
|
|
1579
|
+
@media screen and (min-width: $width) {
|
|
1580
|
+
|
|
1581
|
+
.order-#{$breakpoint}-first {
|
|
1582
|
+
order: -1 !important;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
.order-#{$breakpoint}-0 {
|
|
1586
|
+
order: 0 !important;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
.order-#{$breakpoint}-1 {
|
|
1590
|
+
order: 1 !important;
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
.order-#{$breakpoint}-2 {
|
|
1594
|
+
order: 2 !important;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
.order-#{$breakpoint}-3 {
|
|
1598
|
+
order: 3 !important;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
.order-#{$breakpoint}-4 {
|
|
1602
|
+
order: 4 !important;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
.order-#{$breakpoint}-5 {
|
|
1606
|
+
order: 5 !important;
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
.order-#{$breakpoint}-last {
|
|
1610
|
+
order: 6 !important;
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
// #endregion
|
|
1616
|
+
|
|
1617
|
+
// #region Margins
|
|
1618
|
+
$new_utilities: map.merge(
|
|
1619
|
+
$new_utilities,
|
|
1620
|
+
(
|
|
1621
|
+
'margins': 'Adjust the margins of an element',
|
|
1622
|
+
)
|
|
1623
|
+
);
|
|
1624
|
+
|
|
1625
|
+
@mixin margins() {
|
|
1626
|
+
@for $key from 0 through 5 {
|
|
1627
|
+
$value: var(--spacer-#{$key});
|
|
1628
|
+
|
|
1629
|
+
.m-#{$key} {
|
|
1630
|
+
margin: #{$value} !important;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
.mx-#{$key} {
|
|
1634
|
+
margin-left: #{$value} !important;
|
|
1635
|
+
margin-right: #{$value} !important;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
.mx-minus-#{$key} {
|
|
1639
|
+
margin-left: -#{$value} !important;
|
|
1640
|
+
margin-right: -#{$value} !important;
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
.my-minus-#{$key} {
|
|
1644
|
+
margin-top: -#{$value} !important;
|
|
1645
|
+
margin-bottom: -#{$value} !important;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
.my-#{$key} {
|
|
1649
|
+
margin-top: #{$value} !important;
|
|
1650
|
+
margin-bottom: #{$value} !important;
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
.mt-#{$key} {
|
|
1654
|
+
margin-top: #{$value} !important;
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
.me-#{$key} {
|
|
1658
|
+
margin-right: #{$value} !important;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
.mb-#{$key} {
|
|
1662
|
+
margin-bottom: #{$value} !important;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
.ms-#{$key} {
|
|
1666
|
+
margin-left: #{$value} !important;
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
.m-auto {
|
|
1671
|
+
margin: auto !important;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
.mx-auto {
|
|
1675
|
+
margin-right: auto !important;
|
|
1676
|
+
margin-left: auto !important;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
.my-auto {
|
|
1680
|
+
margin-top: auto !important;
|
|
1681
|
+
margin-bottom: auto !important;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
.mt-auto {
|
|
1685
|
+
margin-top: auto !important;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
.me-auto {
|
|
1689
|
+
margin-right: auto !important;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
.mb-auto {
|
|
1693
|
+
margin-bottom: auto !important;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
.ms-auto {
|
|
1697
|
+
margin-left: auto !important;
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
// #endregion
|
|
1701
|
+
|
|
1702
|
+
// #region Paddings
|
|
1703
|
+
$new_utilities: map.merge(
|
|
1704
|
+
$new_utilities,
|
|
1705
|
+
(
|
|
1706
|
+
'paddings': 'Adjust the paddings of an element',
|
|
1707
|
+
)
|
|
1708
|
+
);
|
|
1709
|
+
|
|
1710
|
+
@mixin paddings() {
|
|
1711
|
+
@for $key from 0 through 5 {
|
|
1712
|
+
$value: var(--spacer-#{$key});
|
|
1713
|
+
.p-#{$key} {
|
|
1714
|
+
padding: #{$value} !important;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
.px-#{$key} {
|
|
1718
|
+
padding-left: #{$value} !important;
|
|
1719
|
+
padding-right: #{$value} !important;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
.py-#{$key} {
|
|
1723
|
+
padding-top: #{$value} !important;
|
|
1724
|
+
padding-bottom: #{$value} !important;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
.pt-#{$key} {
|
|
1728
|
+
padding-top: #{$value} !important;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
.pe-#{$key} {
|
|
1732
|
+
padding-right: #{$value} !important;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
.pb-#{$key} {
|
|
1736
|
+
padding-bottom: #{$value} !important;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
.ps-#{$key} {
|
|
1740
|
+
padding-left: #{$value} !important;
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
// #endregion
|
|
1745
|
+
|
|
1746
|
+
// #region Gap
|
|
1747
|
+
$new_utilities: map.merge(
|
|
1748
|
+
$new_utilities,
|
|
1749
|
+
(
|
|
1750
|
+
'gap': 'Update the gap sizing of an element with the display flex',
|
|
1751
|
+
)
|
|
1752
|
+
);
|
|
1753
|
+
|
|
1754
|
+
@mixin gap() {
|
|
1755
|
+
@for $key from 0 through 5 {
|
|
1756
|
+
$value: var(--spacer-#{$key});
|
|
1757
|
+
.gap-#{$key} {
|
|
1758
|
+
gap: #{$value} !important;
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
// #endregion
|
|
1763
|
+
|
|
1764
|
+
// #region Text
|
|
1765
|
+
$new_utilities: map.merge(
|
|
1766
|
+
$new_utilities,
|
|
1767
|
+
(
|
|
1768
|
+
'text': 'Apply the text settings',
|
|
1769
|
+
)
|
|
1770
|
+
);
|
|
1771
|
+
|
|
1772
|
+
@mixin text() {
|
|
1773
|
+
.font-monospace {
|
|
1774
|
+
font-family: var(--font-monospace) !important;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
.font-body {
|
|
1778
|
+
font-family: var(--font-body) !important;
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
.fs-1 {
|
|
1782
|
+
font-size: rfs-fluid-value(2.5rem) !important;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
.fs-2 {
|
|
1786
|
+
font-size: rfs-fluid-value(2rem) !important;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
.fs-3 {
|
|
1790
|
+
font-size: rfs-fluid-value(1.75rem) !important;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
.fs-4 {
|
|
1794
|
+
font-size: rfs-fluid-value(1.5rem) !important;
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
.fs-5 {
|
|
1798
|
+
font-size: rfs-fluid-value(1.25rem) !important;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
.fs-6 {
|
|
1802
|
+
font-size: rfs-fluid-value(1rem) !important;
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
.fst-italic {
|
|
1806
|
+
font-style: italic !important;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
.fst-normal {
|
|
1810
|
+
font-style: normal !important;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
.fw-light {
|
|
1814
|
+
font-weight: 300 !important;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
.fw-lighter {
|
|
1818
|
+
font-weight: lighter !important;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
.fw-normal {
|
|
1822
|
+
font-weight: 400 !important;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
.fw-bold {
|
|
1826
|
+
font-weight: 700 !important;
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
.fw-semibold {
|
|
1830
|
+
font-weight: 600 !important;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
.fw-bolder {
|
|
1834
|
+
font-weight: bolder !important;
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
.lh-0 {
|
|
1838
|
+
line-height: 0 !important;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
.lh-1 {
|
|
1842
|
+
line-height: 1 !important;
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
.text-start {
|
|
1846
|
+
text-align: left !important;
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
.text-end {
|
|
1850
|
+
text-align: right !important;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
.text-center {
|
|
1854
|
+
text-align: center !important;
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
.text-decoration-none {
|
|
1858
|
+
text-decoration: none !important;
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
.text-decoration-underline {
|
|
1862
|
+
text-decoration: underline !important;
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
.text-decoration-line-through {
|
|
1866
|
+
text-decoration: line-through !important;
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
.text-lowercase {
|
|
1870
|
+
text-transform: lowercase !important;
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
.text-uppercase {
|
|
1874
|
+
text-transform: uppercase !important;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
.text-capitalize {
|
|
1878
|
+
text-transform: capitalize !important;
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
.text-wrap {
|
|
1882
|
+
white-space: normal !important;
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
.text-nowrap {
|
|
1886
|
+
white-space: nowrap !important;
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
.text-break {
|
|
1890
|
+
word-wrap: break-word !important;
|
|
1891
|
+
word-break: break-word !important;
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
// #endregion
|
|
1895
|
+
|
|
1896
|
+
// #region Colours
|
|
1897
|
+
$new_utilities: map.merge(
|
|
1898
|
+
$new_utilities,
|
|
1899
|
+
(
|
|
1900
|
+
'colours': 'Applu our design system colours by either text colour or background',
|
|
1901
|
+
)
|
|
1902
|
+
);
|
|
1903
|
+
|
|
1904
|
+
@mixin colours() {
|
|
1905
|
+
|
|
1906
|
+
.text-heading {
|
|
1907
|
+
|
|
1908
|
+
color: var(--colour-heading) !important;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
$theme-colors: (
|
|
1912
|
+
'primary': var(--colour-primary),
|
|
1913
|
+
'secondary': var(--colour-secondary),
|
|
1914
|
+
'info': var(--colour-info),
|
|
1915
|
+
'warning': var(--colour-warning),
|
|
1916
|
+
'success': var(--colour-success),
|
|
1917
|
+
'complete': var(--colour-complete),
|
|
1918
|
+
'danger': var(--colour-danger),
|
|
1919
|
+
'dark': var(--colour-dark),
|
|
1920
|
+
'light': var(--colour-light),
|
|
1921
|
+
'canvas': var(--colour-canvas),
|
|
1922
|
+
'white': var(--colour-white),
|
|
1923
|
+
);
|
|
1924
|
+
|
|
1925
|
+
@each $color, $value in $theme-colors {
|
|
1926
|
+
.text-#{$color} {
|
|
1927
|
+
--text-opacity: 1;
|
|
1928
|
+
color: var(--colour-#{$color}) !important;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
.bg-#{$color} {
|
|
1932
|
+
--bg-opacity: 1;
|
|
1933
|
+
--bg-colour: var(--colour-#{$color}) !important;
|
|
1934
|
+
background-color: var(--colour-#{$color}) !important;
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
.hover-#{$color}:is(:hover,:focus,:focus-within) {
|
|
1938
|
+
--bg-opacity: 1;
|
|
1939
|
+
--bg-colour: var(--colour-#{$color}) !important;
|
|
1940
|
+
background-color: var(--colour-#{$color}) !important;
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
.colour-#{$color} {
|
|
1944
|
+
--colour: var(--colour-#{$color}) !important;
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
// #endregion
|
|
1949
|
+
|
|
1950
|
+
// #region gradients
|
|
1951
|
+
$new_utilities: map.merge(
|
|
1952
|
+
$new_utilities,
|
|
1953
|
+
(
|
|
1954
|
+
'gradients': 'Add gradients to backgrounds',
|
|
1955
|
+
)
|
|
1956
|
+
);
|
|
1957
|
+
|
|
1958
|
+
@mixin gradients() {
|
|
1959
|
+
.bg-gradient {
|
|
1960
|
+
background-image: var(--gradient) !important;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
.gradient-success {
|
|
1964
|
+
--gradient-direction: 180deg;
|
|
1965
|
+
background-image: linear-gradient(
|
|
1966
|
+
var(--gradient-direction),
|
|
1967
|
+
var(--colour-success-theme) 0,
|
|
1968
|
+
transparent 100%
|
|
1969
|
+
) !important;
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
.gradient-primary {
|
|
1973
|
+
--gradient-direction: 180deg;
|
|
1974
|
+
background-image: linear-gradient(
|
|
1975
|
+
var(--gradient-direction),
|
|
1976
|
+
var(--colour-primary-theme) 0,
|
|
1977
|
+
transparent 100%
|
|
1978
|
+
) !important;
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
.gradient-info {
|
|
1982
|
+
--gradient-direction: 180deg;
|
|
1983
|
+
background-image: linear-gradient(
|
|
1984
|
+
var(--gradient-direction),
|
|
1985
|
+
var(--colour-info-theme) 0,
|
|
1986
|
+
transparent 100%
|
|
1987
|
+
) !important;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
.gradient-direction-left {
|
|
1991
|
+
--gradient-direction: 90deg;
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
.gradient-direction-angle {
|
|
1995
|
+
--gradient-direction: 135deg;
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
// #endregion
|
|
1999
|
+
|
|
2000
|
+
// #region Pointer-events
|
|
2001
|
+
$new_utilities: map.merge(
|
|
2002
|
+
$new_utilities,
|
|
2003
|
+
(
|
|
2004
|
+
'pointer-events': 'Disable or enable point events',
|
|
2005
|
+
)
|
|
2006
|
+
);
|
|
2007
|
+
|
|
2008
|
+
@mixin pointer-events() {
|
|
2009
|
+
.pe-none {
|
|
2010
|
+
pointer-events: none !important;
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
.pe-auto {
|
|
2014
|
+
pointer-events: auto !important;
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
// #endregion
|
|
2018
|
+
|
|
2019
|
+
// #region Rounded
|
|
2020
|
+
$new_utilities: map.merge(
|
|
2021
|
+
$new_utilities,
|
|
2022
|
+
(
|
|
2023
|
+
'rounded': 'Add rounded corners',
|
|
2024
|
+
)
|
|
2025
|
+
);
|
|
2026
|
+
|
|
2027
|
+
@mixin rounded() {
|
|
2028
|
+
.rounded {
|
|
2029
|
+
border-radius: var(--border-radius) !important;
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
.rounded-0 {
|
|
2033
|
+
border-radius: 0 !important;
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
.rounded-1 {
|
|
2037
|
+
border-radius: var(--border-radius-sm) !important;
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
.rounded-2 {
|
|
2041
|
+
border-radius: var(--border-radius) !important;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
.rounded-3 {
|
|
2045
|
+
border-radius: var(--border-radius-lg) !important;
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
.rounded-4 {
|
|
2049
|
+
border-radius: var(--border-radius-xl) !important;
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
.rounded-5 {
|
|
2053
|
+
border-radius: var(--border-radius-2xl) !important;
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
.rounded-circle {
|
|
2057
|
+
border-radius: 50% !important;
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
.rounded-pill {
|
|
2061
|
+
border-radius: var(--border-radius-pill) !important;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
.rounded-top {
|
|
2065
|
+
border-top-left-radius: var(--border-radius) !important;
|
|
2066
|
+
border-top-right-radius: var(--border-radius) !important;
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
.rounded-end {
|
|
2070
|
+
border-top-right-radius: var(--border-radius) !important;
|
|
2071
|
+
border-bottom-right-radius: var(--border-radius) !important;
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
.rounded-bottom {
|
|
2075
|
+
border-bottom-right-radius: var(--border-radius) !important;
|
|
2076
|
+
border-bottom-left-radius: var(--border-radius) !important;
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
.rounded-start {
|
|
2080
|
+
border-bottom-left-radius: var(--border-radius) !important;
|
|
2081
|
+
border-top-left-radius: var(--border-radius) !important;
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
// #endregion
|
|
2085
|
+
|
|
2086
|
+
// #region Visible
|
|
2087
|
+
$new_utilities: map.merge(
|
|
2088
|
+
$new_utilities,
|
|
2089
|
+
(
|
|
2090
|
+
'visible': 'Change the visibility of elements',
|
|
2091
|
+
)
|
|
2092
|
+
);
|
|
2093
|
+
|
|
2094
|
+
@mixin visible() {
|
|
2095
|
+
.visible {
|
|
2096
|
+
visibility: visible !important;
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
.invisible {
|
|
2100
|
+
visibility: hidden !important;
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
// #endregion
|