@iamproperty/components 1.0.13 → 2.2.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/README.md +120 -12
- package/assets/.DS_Store +0 -0
- package/assets/favicons/android-chrome-192x192.png +0 -0
- package/assets/favicons/android-chrome-512x512.png +0 -0
- package/assets/favicons/apple-touch-icon.png +0 -0
- package/assets/favicons/favicon-16x16.png +0 -0
- package/assets/favicons/favicon-32x32.png +0 -0
- package/assets/favicons/favicon.ico +0 -0
- package/assets/fonts/qanelas-medium-webfont.woff +0 -0
- package/assets/fonts/qanelas-medium-webfont.woff2 +0 -0
- package/assets/fonts/qanelassoft-extrabold-webfont.woff +0 -0
- package/assets/fonts/qanelassoft-extrabold-webfont.woff2 +0 -0
- package/assets/img/.DS_Store +0 -0
- package/{src/assets → assets}/img/logo.png +0 -0
- package/assets/js/main.js +62 -0
- package/assets/js/modules/accordion.js +36 -0
- package/assets/js/modules/carousel.js +102 -0
- package/assets/js/modules/drawer.js +16 -0
- package/assets/js/modules/form.js +49 -0
- package/assets/js/modules/helpers.js +93 -0
- package/assets/js/modules/modal.js +72 -0
- package/assets/js/modules/nav.js +27 -0
- package/assets/js/modules/table.js +573 -0
- package/assets/js/modules/testimonial.js +83 -0
- package/assets/sass/.DS_Store +0 -0
- package/assets/sass/_components.scss +35 -0
- package/assets/sass/_corefiles.scss +58 -0
- package/assets/sass/_func.scss +9 -0
- package/assets/sass/_functions/functions.scss +95 -0
- package/assets/sass/_functions/mixins.scss +109 -0
- package/assets/sass/_functions/utilities.scss +238 -0
- package/assets/sass/_functions/variables.scss +411 -0
- package/assets/sass/components/accordion.scss +195 -0
- package/assets/sass/components/card.scss +168 -0
- package/assets/sass/components/cardDeck.scss +107 -0
- package/assets/sass/components/carousel.scss +265 -0
- package/assets/sass/components/charts.scss +562 -0
- package/assets/sass/components/drawer.scss +45 -0
- package/assets/sass/components/header.scss +57 -0
- package/assets/sass/components/modal.scss +133 -0
- package/assets/sass/components/nav.scss +619 -0
- package/assets/sass/components/property-searchbar.scss +138 -0
- package/assets/sass/components/snapshot.scss +69 -0
- package/assets/sass/components/tabs.scss +46 -0
- package/assets/sass/components/testimonial.scss +131 -0
- package/assets/sass/components/timeline.scss +93 -0
- package/assets/sass/core.scss +4 -0
- package/assets/sass/elements/buttons.scss +263 -0
- package/assets/sass/elements/container.scss +222 -0
- package/assets/sass/elements/forms.scss +128 -0
- package/assets/sass/elements/links.scss +95 -0
- package/assets/sass/elements/lists.scss +26 -0
- package/assets/sass/elements/media.scss +3 -0
- package/assets/sass/elements/tables.scss +247 -0
- package/assets/sass/elements/tooltips.scss +71 -0
- package/assets/sass/elements/type.scss +114 -0
- package/assets/sass/foundations/brand.scss +74 -0
- package/assets/sass/foundations/circles.scss +63 -0
- package/assets/sass/foundations/fonts.scss +17 -0
- package/assets/sass/foundations/icons.scss +46 -0
- package/assets/sass/foundations/reboot.scss +120 -0
- package/assets/sass/foundations/root.scss +45 -0
- package/assets/sass/main.scss +5 -0
- package/assets/svg/.DS_Store +0 -0
- package/assets/svg/flat/.DS_Store +0 -0
- package/assets/svg/flat/agreed.svg +1 -0
- package/assets/svg/flat/alert.svg +1 -0
- package/assets/svg/flat/asset-37.svg +1 -0
- package/assets/svg/flat/asset-73.svg +1 -0
- package/assets/svg/flat/asset-82.svg +1 -0
- package/assets/svg/flat/award.svg +1 -0
- package/assets/svg/flat/bath.svg +1 -0
- package/assets/svg/flat/bed.svg +1 -0
- package/assets/svg/flat/calculate.svg +1 -0
- package/assets/svg/flat/calendar.svg +1 -0
- package/assets/svg/flat/celebrate.svg +1 -0
- package/assets/svg/flat/chat-house.svg +1 -0
- package/assets/svg/flat/chat.svg +1 -0
- package/assets/svg/flat/circle.svg +1 -0
- package/assets/svg/flat/clean.svg +1 -0
- package/assets/svg/flat/clock.svg +1 -0
- package/assets/svg/flat/computer.svg +1 -0
- package/assets/svg/flat/down.svg +1 -0
- package/assets/svg/flat/edit.svg +1 -0
- package/assets/svg/flat/email.svg +1 -0
- package/assets/svg/flat/event.svg +1 -0
- package/assets/svg/flat/family.svg +1 -0
- package/assets/svg/flat/file.svg +1 -0
- package/assets/svg/flat/find.svg +1 -0
- package/assets/svg/flat/fireworks.svg +1 -0
- package/assets/svg/flat/fist-left.svg +1 -0
- package/assets/svg/flat/fist.svg +1 -0
- package/assets/svg/flat/folder.svg +1 -0
- package/assets/svg/flat/footprints.svg +1 -0
- package/assets/svg/flat/hand.svg +1 -0
- package/assets/svg/flat/hands.svg +1 -0
- package/assets/svg/flat/house-2.svg +1 -0
- package/assets/svg/flat/house.svg +1 -0
- package/assets/svg/flat/idea.svg +1 -0
- package/assets/svg/flat/judge-house.svg +1 -0
- package/assets/svg/flat/judge.svg +1 -0
- package/assets/svg/flat/keys-house.svg +1 -0
- package/assets/svg/flat/lock.svg +1 -0
- package/assets/svg/flat/mobile.svg +1 -0
- package/assets/svg/flat/money.svg +1 -0
- package/assets/svg/flat/monument.svg +1 -0
- package/assets/svg/flat/online-judgement.svg +1 -0
- package/assets/svg/flat/paint.svg +1 -0
- package/assets/svg/flat/person-2.svg +1 -0
- package/assets/svg/flat/person.svg +1 -0
- package/assets/svg/flat/phone.svg +1 -0
- package/assets/svg/flat/pin.svg +1 -0
- package/assets/svg/flat/pound.svg +1 -0
- package/assets/svg/flat/present.svg +1 -0
- package/assets/svg/flat/qualification.svg +1 -0
- package/assets/svg/flat/rocket.svg +1 -0
- package/assets/svg/flat/sale.svg +1 -0
- package/assets/svg/flat/save.svg +1 -0
- package/assets/svg/flat/scale.svg +1 -0
- package/assets/svg/flat/send.svg +1 -0
- package/assets/svg/flat/share.svg +1 -0
- package/assets/svg/flat/sofa.svg +1 -0
- package/assets/svg/flat/sold.svg +1 -0
- package/assets/svg/flat/star.svg +1 -0
- package/assets/svg/flat/stopwatch.svg +1 -0
- package/assets/svg/flat/task.svg +1 -0
- package/assets/svg/flat/telescope.svg +1 -0
- package/assets/svg/flat/thumb.svg +1 -0
- package/assets/svg/flat/time.svg +1 -0
- package/assets/svg/flat/up.svg +1 -0
- package/assets/svg/flat/valuation.svg +1 -0
- package/assets/svg/flat/value-house.svg +1 -0
- package/assets/svg/flat/warning.svg +1 -0
- package/assets/svg/flat/water.svg +1 -0
- package/assets/svg/icons.svg +51 -0
- package/assets/svg/illustrations/commuter1.svg +1 -0
- package/assets/svg/illustrations/commuter2.svg +1 -0
- package/assets/svg/illustrations/commuter3.svg +1 -0
- package/assets/svg/logo.svg +43 -0
- package/dist/components.common.js +8218 -390
- package/dist/components.common.js.map +1 -1
- package/dist/components.css +2 -1
- package/dist/components.css.map +1 -0
- package/dist/components.umd.js +8218 -390
- package/dist/components.umd.js.map +1 -1
- package/dist/components.umd.min.js +1 -1
- package/dist/components.umd.min.js.map +1 -1
- package/package.json +88 -57
- package/src/.DS_Store +0 -0
- package/src/components/Accordion/Accordion.vue +24 -0
- package/src/components/Accordion/AccordionItem.vue +43 -0
- package/src/components/Accordion/README.md +34 -0
- package/src/components/Banner/Banner.vue +38 -0
- package/src/components/Banner/README.md +24 -0
- package/src/components/Card/Card.vue +115 -0
- package/src/components/Card/README.md +24 -0
- package/src/components/CardDeck/CardDeck.vue +78 -0
- package/src/components/CardDeck/README.md +25 -0
- package/src/components/Carousel/Carousel.vue +86 -0
- package/src/components/Carousel/README.md +20 -0
- package/src/components/Chart/Chart.vue +246 -0
- package/src/components/Chart/README.md +18 -0
- package/src/components/Drawer/Drawer.vue +54 -0
- package/src/components/Drawer/README.md +23 -0
- package/src/components/Header/Header.vue +39 -0
- package/src/components/Header/README.md +28 -0
- package/src/components/Modal/Modal.vue +44 -0
- package/src/components/Modal/README.md +20 -0
- package/src/components/Nav/Nav.vue +129 -0
- package/src/components/Nav/README.md +23 -0
- package/src/components/PropertySearchbar/PropertySearchbar.vue +206 -0
- package/src/components/PropertySearchbar/README.md +26 -0
- package/src/components/Snapshot/README.md +21 -0
- package/src/components/Snapshot/Snapshot.vue +33 -0
- package/src/components/Tabs/README.md +27 -0
- package/src/components/Tabs/Tab.vue +17 -0
- package/src/components/Tabs/Tabs.vue +55 -0
- package/src/components/Testimonial/README.md +26 -0
- package/src/components/Testimonial/Testimonial.vue +61 -0
- package/src/components/Timeline/README.md +18 -0
- package/src/components/Timeline/Timeline.vue +25 -0
- package/src/elements/Input/Input.vue +236 -0
- package/src/elements/Input/README.md +18 -0
- package/src/elements/Table/README.md +55 -0
- package/src/elements/Table/Table.vue +112 -0
- package/src/foundations/Icon/Icon.vue +21 -0
- package/src/foundations/Icon/README.md +11 -0
- package/src/foundations/Logo/Logo.vue +39 -0
- package/src/foundations/Logo/README.md +20 -0
- package/src/helpers/strings.js +12 -0
- package/src/index.js +21 -6
- package/src/assets/css/default.css +0 -99
- package/src/assets/logo.png +0 -0
- package/src/assets/scss/_variables.scss +0 -13
- package/src/components/KeyFacts/KeyFact.vue +0 -45
- package/src/components/KeyFacts/KeyFactGroup.vue +0 -44
- package/src/components/KeyFacts/README.md +0 -23
- package/src/components/KeyInformation/KeyInformation.vue +0 -23
- package/src/components/KeyInformation/README.md +0 -32
- package/src/components/PropertyTaskIntro/PropertyTaskIntro.vue +0 -74
- package/src/components/PropertyTaskIntro/README.md +0 -27
- package/src/components/TaskTitle/README.md +0 -24
- package/src/components/TaskTitle/TaskTitle.vue +0 -68
- package/src/components/VendorTable/README.md +0 -63
- package/src/components/VendorTable/VendorTable.vue +0 -49
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// Foundations and elements
|
|
2
|
+
@import "foundations/fonts.scss";
|
|
3
|
+
//@import "../../node_modules/bootstrap/scss/root";
|
|
4
|
+
@import "foundations/root.scss";
|
|
5
|
+
@import "../../node_modules/bootstrap/scss/reboot";
|
|
6
|
+
@import "foundations/reboot.scss";
|
|
7
|
+
@import "foundations/brand.scss";
|
|
8
|
+
@import "foundations/icons.scss";
|
|
9
|
+
@import "foundations/circles.scss";
|
|
10
|
+
@import "../../node_modules/bootstrap/scss/type";
|
|
11
|
+
@import "elements/type.scss";
|
|
12
|
+
@import "elements/lists.scss";
|
|
13
|
+
@import "elements/tooltips.scss";
|
|
14
|
+
@import "elements/media.scss";
|
|
15
|
+
@import "../../node_modules/bootstrap/scss/images";
|
|
16
|
+
// @import "../../node_modules/bootstrap/scss/containers";
|
|
17
|
+
@import "elements/container.scss";
|
|
18
|
+
@import "../../node_modules/bootstrap/scss/grid";
|
|
19
|
+
// @import "../../node_modules/bootstrap/scss/tables";
|
|
20
|
+
@import "elements/tables.scss";
|
|
21
|
+
// #region Forms
|
|
22
|
+
//@import "../../node_modules/bootstrap/scss/forms";
|
|
23
|
+
@import "../../node_modules/bootstrap/scss/forms/labels";
|
|
24
|
+
//@import "../../node_modules/bootstrap/scss/forms/form-text";
|
|
25
|
+
@import "../../node_modules/bootstrap/scss/forms/form-control";
|
|
26
|
+
@import "../../node_modules/bootstrap/scss/forms/form-select";
|
|
27
|
+
@import "../../node_modules/bootstrap/scss/forms/form-check";
|
|
28
|
+
@import "../../node_modules/bootstrap/scss/forms/form-range";
|
|
29
|
+
//@import "../../node_modules/bootstrap/scss/forms/floating-labels";
|
|
30
|
+
@import "../../node_modules/bootstrap/scss/forms/input-group";
|
|
31
|
+
@import "../../node_modules/bootstrap/scss/forms/validation";
|
|
32
|
+
@import "elements/forms.scss";
|
|
33
|
+
// #endregion
|
|
34
|
+
//@import "../../node_modules/bootstrap/scss/buttons";
|
|
35
|
+
@import "elements/buttons";
|
|
36
|
+
@import "elements/links.scss";
|
|
37
|
+
@import "../../node_modules/bootstrap/scss/transitions";
|
|
38
|
+
//@import "../../node_modules/bootstrap/scss/dropdown";
|
|
39
|
+
@import "../../node_modules/bootstrap/scss/button-group";
|
|
40
|
+
@import "../../node_modules/bootstrap/scss/pagination";
|
|
41
|
+
@import "../../node_modules/bootstrap/scss/badge";
|
|
42
|
+
|
|
43
|
+
// Helpers
|
|
44
|
+
//@import "../../node_modules/bootstrap/scss/helpers";
|
|
45
|
+
@import "../../node_modules/bootstrap/scss/helpers/clearfix";
|
|
46
|
+
//@import "../../node_modules/bootstrap/scss/helpers/colored-links";
|
|
47
|
+
//@import "../../node_modules/bootstrap/scss/helpers/ratio";
|
|
48
|
+
@import "../../node_modules/bootstrap/scss/helpers/position";
|
|
49
|
+
@import "../../node_modules/bootstrap/scss/helpers/stacks";
|
|
50
|
+
@import "../../node_modules/bootstrap/scss/helpers/visually-hidden";
|
|
51
|
+
//@import "../../node_modules/bootstrap/scss/helpers/stretched-link";
|
|
52
|
+
@import "../../node_modules/bootstrap/scss/helpers/text-truncation";
|
|
53
|
+
//@import "../../node_modules/bootstrap/scss/helpers/vr";
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
// Utilities
|
|
57
|
+
@import "../../node_modules/bootstrap/scss/utilities/api";
|
|
58
|
+
// #endregion:Bootstrap 5
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
$compatible: 'false'!default;
|
|
2
|
+
@import "../../node_modules/bootstrap/scss/functions";
|
|
3
|
+
@import "_functions/functions";
|
|
4
|
+
@import "../../node_modules/bootstrap/scss/variables";
|
|
5
|
+
@import "_functions/variables";
|
|
6
|
+
@import "../../node_modules/bootstrap/scss/mixins";
|
|
7
|
+
@import "_functions/mixins";
|
|
8
|
+
@import "../../node_modules/bootstrap/scss/utilities";
|
|
9
|
+
@import "_functions/utilities";
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
@function pow($x, $n) {
|
|
4
|
+
$ret: 1;
|
|
5
|
+
|
|
6
|
+
@if $n >= 0 {
|
|
7
|
+
@for $i from 1 through $n {
|
|
8
|
+
$ret: $ret * $x;
|
|
9
|
+
}
|
|
10
|
+
} @else {
|
|
11
|
+
@for $i from $n to 0 {
|
|
12
|
+
$ret: $ret/$x;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@return $ret;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@function to-fixed($float, $digits: 2) {
|
|
20
|
+
$sass-precision: 5;
|
|
21
|
+
|
|
22
|
+
@if $digits > $sass-precision {
|
|
23
|
+
@warn "Sass sets default precision to #{$sass-precision} digits, and there is no way to change that for now."
|
|
24
|
+
+ "The returned number will have #{$sass-precision} digits, even if you asked for `#{$digits}`."
|
|
25
|
+
+ "See https://github.com/sass/sass/issues/1122 for further informations.";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
$pow: pow(10, $digits);
|
|
29
|
+
@return round($float * $pow)/$pow;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
// converts pixels to em (context sets the current size of the font)
|
|
34
|
+
@function em($pixels, $context: 16)
|
|
35
|
+
{
|
|
36
|
+
@return #{$pixels/$context}em;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@function rem($pixels, $context: 16)
|
|
40
|
+
{
|
|
41
|
+
@return #{$pixels/$context}rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@function vw($pixels, $context: 16)
|
|
45
|
+
{
|
|
46
|
+
$size: 16/$pixels * 100;
|
|
47
|
+
@return #{to-fixed($size,5)}vw;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@function strip-px($number) {
|
|
51
|
+
@if type-of($number) == 'number' and not unitless($number) {
|
|
52
|
+
@return $number/ ($number * 0 + 1);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@return $number;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// prevent colours being changed via sass functions
|
|
59
|
+
@function darken($colour, $percent)
|
|
60
|
+
{
|
|
61
|
+
@return $colour;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@function lighten($colour, $percent)
|
|
65
|
+
{
|
|
66
|
+
@return $colour;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@function saturate($colour, $percent)
|
|
70
|
+
{
|
|
71
|
+
@return $colour;
|
|
72
|
+
}
|
|
73
|
+
@function desaturate($colour, $percent)
|
|
74
|
+
{
|
|
75
|
+
@return $colour;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@function adjust-hue($colour, $percent)
|
|
79
|
+
{
|
|
80
|
+
@return $colour;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@function tint($colour, $percent)
|
|
84
|
+
{
|
|
85
|
+
@return $colour;
|
|
86
|
+
}
|
|
87
|
+
@function shade($colour, $percent)
|
|
88
|
+
{
|
|
89
|
+
@return $colour;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
|
|
93
|
+
$next: breakpoint-next($name, $breakpoints);
|
|
94
|
+
@return if($next, breakpoint-min($next, $breakpoints), null);
|
|
95
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
|
|
2
|
+
// Example: @include prefix(transition, transform 1.5s, webkit ms o);
|
|
3
|
+
@mixin prefix($property, $value, $prefixes: (webkit ms o))
|
|
4
|
+
{
|
|
5
|
+
@each $prefix in $prefixes
|
|
6
|
+
{
|
|
7
|
+
#{'-' + $prefix + '-' + $property}: $value;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// Output standard non-prefixed declaration
|
|
11
|
+
#{$property}: $value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Used to make it possible to use css properties but still support IE11
|
|
15
|
+
@mixin var($property, $varName, $important:"", $compatible:$compatible) {
|
|
16
|
+
|
|
17
|
+
@if $compatible == 'true' {
|
|
18
|
+
#{$property}: map-get($vars, $varName) #{$important};
|
|
19
|
+
}
|
|
20
|
+
@else if $compatible == 'fallback' {
|
|
21
|
+
|
|
22
|
+
#{$property}: map-get($vars, $varName) #{$important};
|
|
23
|
+
#{$property}: var(#{$varName}) #{$important};
|
|
24
|
+
}
|
|
25
|
+
@else {
|
|
26
|
+
#{$property}: var(#{$varName}) #{$important};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@mixin inline-text(){
|
|
31
|
+
p,
|
|
32
|
+
ul,
|
|
33
|
+
ol,
|
|
34
|
+
dd,
|
|
35
|
+
.body,
|
|
36
|
+
td {
|
|
37
|
+
@content;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin invert-colours(){
|
|
42
|
+
[class*="bg-"].bg-dark:not(.prevent-invert) &,
|
|
43
|
+
[class*="bg-"].bg-danger:not(.prevent-invert) &,
|
|
44
|
+
[class*="bg-"].bg-primary:not(.prevent-invert) &,
|
|
45
|
+
.invert-colours & {
|
|
46
|
+
@content;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@mixin headers($includeClasses: 'false'){
|
|
51
|
+
h1,
|
|
52
|
+
h2,
|
|
53
|
+
h3,
|
|
54
|
+
h4,
|
|
55
|
+
h5,
|
|
56
|
+
h6 {
|
|
57
|
+
@content;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@if $includeClasses == 'true' {
|
|
61
|
+
|
|
62
|
+
.h1,
|
|
63
|
+
.h2,
|
|
64
|
+
.h3,
|
|
65
|
+
.h4,
|
|
66
|
+
.h5,
|
|
67
|
+
.h6 {
|
|
68
|
+
@content;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@mixin bg-variant($parent, $color, $ignore-warning: false) {
|
|
74
|
+
#{$parent} {
|
|
75
|
+
|
|
76
|
+
--bg-colour: var(--colour-#{str-replace($parent,'.bg-','')});
|
|
77
|
+
--bg-colour-tint: var(--colour-#{str-replace($parent,'.bg-','')}-tint);
|
|
78
|
+
|
|
79
|
+
@include var(background-color,--colour-#{str-replace($parent,'.bg-','')},!important);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
@mixin text-emphasis-variant($parent, $color, $ignore-warning: false) {
|
|
83
|
+
#{$parent} {
|
|
84
|
+
|
|
85
|
+
@include var(color,--colour-#{str-replace($parent,'.text-','')},"!important");
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@mixin font-size($value, $compatible:$compatible) {
|
|
90
|
+
|
|
91
|
+
$found: false;
|
|
92
|
+
|
|
93
|
+
@if $compatible == 'true' {
|
|
94
|
+
font-size: $value;
|
|
95
|
+
}
|
|
96
|
+
@else {
|
|
97
|
+
@each $size, $subvalue in $font-sizes {
|
|
98
|
+
|
|
99
|
+
@if($value == $subvalue and $found == false){
|
|
100
|
+
font-size: var(--fs-#{$size});
|
|
101
|
+
$found: true;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
@if $found == false {
|
|
105
|
+
font-size: $value;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
// #region Sizing
|
|
2
|
+
/* Enhance the max width utility to include fit-content which can come in handy for flex-box based layouts. */
|
|
3
|
+
$utilities: map-merge(
|
|
4
|
+
$utilities,
|
|
5
|
+
(
|
|
6
|
+
"max-width": (
|
|
7
|
+
responsive: true,
|
|
8
|
+
property: max-width,
|
|
9
|
+
class: mw,
|
|
10
|
+
values: (
|
|
11
|
+
100: 100%,
|
|
12
|
+
fit-content: fit-content
|
|
13
|
+
)
|
|
14
|
+
)
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
$utilities: map-merge(
|
|
19
|
+
$utilities,
|
|
20
|
+
(
|
|
21
|
+
"object-fit": (
|
|
22
|
+
property: object-fit,
|
|
23
|
+
class: object,
|
|
24
|
+
values: (
|
|
25
|
+
cover: cover,
|
|
26
|
+
contain: contain
|
|
27
|
+
)
|
|
28
|
+
)
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
// #endregion
|
|
32
|
+
|
|
33
|
+
// #region Add to line height classes
|
|
34
|
+
$utilities: map-merge(
|
|
35
|
+
$utilities,
|
|
36
|
+
(
|
|
37
|
+
"line-height": (
|
|
38
|
+
property: line-height,
|
|
39
|
+
class: lh,
|
|
40
|
+
values: (
|
|
41
|
+
0: 0,
|
|
42
|
+
1: 1,
|
|
43
|
+
/*
|
|
44
|
+
sm: $line-height-sm,
|
|
45
|
+
base: $line-height-base,
|
|
46
|
+
lg: $line-height-lg,
|
|
47
|
+
*/
|
|
48
|
+
)
|
|
49
|
+
)
|
|
50
|
+
)
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
// #endregion
|
|
58
|
+
|
|
59
|
+
// #region Remove Border colour utitlity classes
|
|
60
|
+
$utilities: map-merge(
|
|
61
|
+
$utilities,
|
|
62
|
+
(
|
|
63
|
+
"border-color": null
|
|
64
|
+
)
|
|
65
|
+
);
|
|
66
|
+
// #endregion
|
|
67
|
+
|
|
68
|
+
// #region Remove floats - They are too unpredictable and it is preferred to use flex or grid
|
|
69
|
+
$utilities: map-merge(
|
|
70
|
+
$utilities,
|
|
71
|
+
(
|
|
72
|
+
"float": null
|
|
73
|
+
)
|
|
74
|
+
);
|
|
75
|
+
// #endregion
|
|
76
|
+
|
|
77
|
+
// #region Remove the responsive classes for the spacing utilities
|
|
78
|
+
/*
|
|
79
|
+
The spacing utilities are useful but could be mis-used. The spacing of elements should be defined via the elements/components CSS.
|
|
80
|
+
But at times tweaks/fixes to spacing needs to be made and can prevent the need of duplicate CSS to be created.
|
|
81
|
+
However our spacing rules should be consistant across devices and we shouldn't allow device specific 'fixes' to be made
|
|
82
|
+
Removing the resposive classes aves around 8kbs
|
|
83
|
+
*/
|
|
84
|
+
$utilities: map-merge(
|
|
85
|
+
$utilities,
|
|
86
|
+
(
|
|
87
|
+
// Padding
|
|
88
|
+
"padding": map-merge(
|
|
89
|
+
map-get($utilities, "padding"),
|
|
90
|
+
(
|
|
91
|
+
responsive: false
|
|
92
|
+
),
|
|
93
|
+
),
|
|
94
|
+
"padding-x": map-merge(
|
|
95
|
+
map-get($utilities, "padding-x"),
|
|
96
|
+
(
|
|
97
|
+
responsive: false
|
|
98
|
+
),
|
|
99
|
+
),
|
|
100
|
+
"padding-y": map-merge(
|
|
101
|
+
map-get($utilities, "padding-y"),
|
|
102
|
+
(
|
|
103
|
+
responsive: false
|
|
104
|
+
),
|
|
105
|
+
),
|
|
106
|
+
"padding-top": map-merge(
|
|
107
|
+
map-get($utilities, "padding-top"),
|
|
108
|
+
(
|
|
109
|
+
responsive: false
|
|
110
|
+
),
|
|
111
|
+
),
|
|
112
|
+
"padding-end": map-merge(
|
|
113
|
+
map-get($utilities, "padding-end"),
|
|
114
|
+
(
|
|
115
|
+
responsive: false
|
|
116
|
+
),
|
|
117
|
+
),
|
|
118
|
+
"padding-bottom": map-merge(
|
|
119
|
+
map-get($utilities, "padding-bottom"),
|
|
120
|
+
(
|
|
121
|
+
responsive: false
|
|
122
|
+
),
|
|
123
|
+
),
|
|
124
|
+
"padding-start": map-merge(
|
|
125
|
+
map-get($utilities, "padding-start"),
|
|
126
|
+
(
|
|
127
|
+
responsive: false
|
|
128
|
+
),
|
|
129
|
+
),
|
|
130
|
+
// Margin
|
|
131
|
+
"margin": map-merge(
|
|
132
|
+
map-get($utilities, "margin"),
|
|
133
|
+
(
|
|
134
|
+
responsive: false
|
|
135
|
+
),
|
|
136
|
+
),
|
|
137
|
+
"margin-x": map-merge(
|
|
138
|
+
map-get($utilities, "margin-x"),
|
|
139
|
+
(
|
|
140
|
+
responsive: false
|
|
141
|
+
),
|
|
142
|
+
),
|
|
143
|
+
"margin-y": map-merge(
|
|
144
|
+
map-get($utilities, "margin-y"),
|
|
145
|
+
(
|
|
146
|
+
responsive: false
|
|
147
|
+
),
|
|
148
|
+
),
|
|
149
|
+
"margin-top": map-merge(
|
|
150
|
+
map-get($utilities, "margin-top"),
|
|
151
|
+
(
|
|
152
|
+
responsive: false
|
|
153
|
+
),
|
|
154
|
+
),
|
|
155
|
+
"margin-end": map-merge(
|
|
156
|
+
map-get($utilities, "margin-end"),
|
|
157
|
+
(
|
|
158
|
+
responsive: false
|
|
159
|
+
),
|
|
160
|
+
),
|
|
161
|
+
"margin-bottom": map-merge(
|
|
162
|
+
map-get($utilities, "margin-bottom"),
|
|
163
|
+
(
|
|
164
|
+
responsive: false
|
|
165
|
+
),
|
|
166
|
+
),
|
|
167
|
+
"margin-start": map-merge(
|
|
168
|
+
map-get($utilities, "margin-start"),
|
|
169
|
+
(
|
|
170
|
+
responsive: false
|
|
171
|
+
),
|
|
172
|
+
),
|
|
173
|
+
// Gap
|
|
174
|
+
"gap": map-merge(
|
|
175
|
+
map-get($utilities, "gap"),
|
|
176
|
+
(
|
|
177
|
+
responsive: false
|
|
178
|
+
),
|
|
179
|
+
),
|
|
180
|
+
)
|
|
181
|
+
);
|
|
182
|
+
// #endregion
|
|
183
|
+
|
|
184
|
+
// #region Fonts
|
|
185
|
+
$utilities: map-merge(
|
|
186
|
+
$utilities,
|
|
187
|
+
(
|
|
188
|
+
"font-body": (
|
|
189
|
+
responsive: false,
|
|
190
|
+
property: font-family,
|
|
191
|
+
class: font,
|
|
192
|
+
values: (
|
|
193
|
+
body: var(--font-body)
|
|
194
|
+
)
|
|
195
|
+
)
|
|
196
|
+
)
|
|
197
|
+
);
|
|
198
|
+
// #endregion
|
|
199
|
+
|
|
200
|
+
// #region Gradient colours
|
|
201
|
+
|
|
202
|
+
$utilities: map-merge(
|
|
203
|
+
$utilities,
|
|
204
|
+
(
|
|
205
|
+
"gradient-color": (
|
|
206
|
+
property: background-image,
|
|
207
|
+
class: gradient,
|
|
208
|
+
local-vars: (
|
|
209
|
+
"gradient-direction": 180deg
|
|
210
|
+
),
|
|
211
|
+
values:
|
|
212
|
+
(
|
|
213
|
+
"secondary": linear-gradient(var(--bs-gradient-direction), var(--colour-secondary) 0, transparent 100%),
|
|
214
|
+
"primary": linear-gradient(var(--bs-gradient-direction), var(--colour-primary) 0, transparent 100%),
|
|
215
|
+
"info": linear-gradient(var(--bs-gradient-direction), var(--colour-info) 0, transparent 100%)
|
|
216
|
+
)
|
|
217
|
+
)
|
|
218
|
+
)
|
|
219
|
+
);
|
|
220
|
+
$utilities: map-merge(
|
|
221
|
+
$utilities,
|
|
222
|
+
(
|
|
223
|
+
"gradient-direction": (
|
|
224
|
+
css-var: true,
|
|
225
|
+
class: gradient-direction,
|
|
226
|
+
values:
|
|
227
|
+
(
|
|
228
|
+
"left": 90deg,
|
|
229
|
+
"right": -90deg,
|
|
230
|
+
"up": 360deg
|
|
231
|
+
)
|
|
232
|
+
)
|
|
233
|
+
)
|
|
234
|
+
);
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
// #endregion
|