@iamproperty/components 2.6.1 → 2.7.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.
Files changed (78) hide show
  1. package/assets/css/core.min.css +1 -1
  2. package/assets/css/core.min.css.map +1 -1
  3. package/assets/css/error.min.css +1 -0
  4. package/assets/css/error.min.css.map +1 -0
  5. package/assets/css/style.min.css +1 -1
  6. package/assets/css/style.min.css.map +1 -1
  7. package/assets/favicons/android-chrome-512x512-maskable.png +0 -0
  8. package/assets/js/scripts.bundle.js +1 -1
  9. package/assets/js/scripts.bundle.min.js +1 -1
  10. package/assets/sass/_components.scss +14 -37
  11. package/assets/sass/_corefiles.scss +25 -43
  12. package/assets/sass/_forms.scss +10 -0
  13. package/assets/sass/_func.scss +6 -4
  14. package/assets/sass/_functions/functions.scss +54 -8
  15. package/assets/sass/_functions/mixins.scss +70 -18
  16. package/assets/sass/_functions/utilities.scss +4 -0
  17. package/assets/sass/_functions/variables.scss +47 -39
  18. package/assets/sass/_print.scss +2 -0
  19. package/assets/sass/components/accordion.scss +4 -2
  20. package/assets/sass/components/alert.scss +2 -0
  21. package/assets/sass/components/cardDeck.scss +1 -0
  22. package/assets/sass/components/carousel.scss +10 -40
  23. package/assets/sass/components/charts.scss +13 -2
  24. package/assets/sass/components/drawer.scss +2 -0
  25. package/assets/sass/components/header.scss +6 -0
  26. package/assets/sass/components/modal.scss +5 -2
  27. package/assets/sass/components/nav.scss +5 -6
  28. package/assets/sass/components/property-searchbar.scss +5 -0
  29. package/assets/sass/components/snapshot.scss +2 -0
  30. package/assets/sass/components/stepper.scss +6 -4
  31. package/assets/sass/components/tabs.scss +2 -0
  32. package/assets/sass/components/testimonial.scss +2 -0
  33. package/assets/sass/components/timeline.scss +5 -2
  34. package/assets/sass/core.scss +4 -4
  35. package/assets/sass/elements/buttons.scss +41 -88
  36. package/assets/sass/{components → elements}/card.scss +9 -0
  37. package/assets/sass/elements/container.scss +17 -14
  38. package/assets/sass/elements/links.scss +2 -0
  39. package/assets/sass/elements/lists.scss +3 -2
  40. package/assets/sass/elements/tables.scss +3 -0
  41. package/assets/sass/elements/tooltips.scss +4 -1
  42. package/assets/sass/elements/type.scss +44 -21
  43. package/assets/sass/email.scss +66 -0
  44. package/assets/sass/error.scss +5 -0
  45. package/assets/sass/foundations/brand.scss +6 -8
  46. package/assets/sass/foundations/circles.scss +2 -0
  47. package/assets/sass/foundations/icons.scss +5 -4
  48. package/assets/sass/foundations/media.scss +4 -0
  49. package/assets/sass/foundations/reboot.scss +12 -6
  50. package/assets/sass/foundations/root.scss +67 -18
  51. package/assets/sass/main.scss +5 -5
  52. package/dist/components.common.js +106 -123
  53. package/dist/components.common.js.map +1 -1
  54. package/dist/components.css +1 -1
  55. package/dist/components.css.map +1 -1
  56. package/dist/components.umd.js +106 -123
  57. package/dist/components.umd.js.map +1 -1
  58. package/dist/components.umd.min.js +1 -1
  59. package/dist/components.umd.min.js.map +1 -1
  60. package/package.json +6 -1
  61. package/src/components/Accordion/Accordion.vue +0 -2
  62. package/src/components/Alert/Alert.vue +1 -2
  63. package/src/components/CardDeck/CardDeck.vue +1 -2
  64. package/src/components/Carousel/Carousel.vue +1 -2
  65. package/src/components/Chart/Chart.vue +0 -1
  66. package/src/components/Drawer/Drawer.vue +0 -1
  67. package/src/components/Header/Header.vue +0 -1
  68. package/src/components/Modal/Modal.vue +0 -1
  69. package/src/components/Nav/Nav.vue +0 -2
  70. package/src/components/PropertySearchbar/PropertySearchbar.vue +0 -2
  71. package/src/components/Snapshot/Snapshot.vue +0 -1
  72. package/src/components/Stepper/Stepper.vue +0 -1
  73. package/src/components/Tabs/Tabs.vue +0 -1
  74. package/src/components/Testimonial/Testimonial.vue +0 -1
  75. package/src/components/Timeline/Timeline.vue +0 -1
  76. package/src/{components → elements}/Card/Card.vue +1 -3
  77. package/src/{components → elements}/Card/README.md +0 -0
  78. package/src/index.js +1 -1
@@ -1,6 +1,4 @@
1
- // Declare global vars variable
2
- $vars: ();
3
- $varsMD: ();
1
+ @import "../../../node_modules/bootstrap/scss/_variables.scss";
4
2
 
5
3
  // #region Grid Breakpoints, layouts
6
4
  $grid-breakpoints: (
@@ -85,41 +83,51 @@ $theme-colors: map-merge((
85
83
 
86
84
  $theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value");
87
85
 
88
- @each $color, $value in $theme-colors-rgb {
89
86
 
90
- $vars: map-merge((
91
- --colour-#{$color}-rgb: #{$value}
92
- ), $vars);
93
- }
94
87
  @each $color, $value in $theme-colors-rgb {
95
88
 
96
89
  $vars: map-merge((
97
- --colour-#{$color}: rgba(var(--colour-#{$color}-rgb),var(--alpha,1))
98
- ), $vars);
99
- }
100
-
101
- @each $color, $value in $theme-colors-rgb {
102
-
103
- $vars: map-merge((
104
- --colour-#{$color}-theme: rgba(var(--colour-#{$color}-rgb),var(--alpha,1))
90
+ --colour-#{$color}: rgba($value,var(--alpha, 1))
105
91
  ), $vars);
106
92
  }
107
93
 
108
94
  // RGB Theme colours
109
95
  @function show-css-var($identifier) {
110
- @return rgba(var(--colour-#{$identifier}-rgb),var(--bs-bg-opacity,1));
96
+
97
+ @if $compatible == "true" {
98
+ @return #{map-get($theme-colors, #{$identifier})};
99
+ }
100
+
101
+ @return var(--colour-#{$identifier});
111
102
  }
112
103
  @function show-css-var-text($identifier) {
113
- @return rgba(var(--colour-#{$identifier}-rgb),var(--bs-text-opacity,1));
104
+
105
+ @if $compatible == "true" {
106
+ @return #{map-get($theme-colors, #{$identifier})};
107
+ }
108
+
109
+ @return var(--colour-#{$identifier});
114
110
  }
111
+
112
+ $utilities-colors: map-merge(
113
+ $utilities-colors,
114
+ (
115
+ "black": to-rgb($black),
116
+ "white": to-rgb($white),
117
+ "body": to-rgb($body-color)
118
+ )
119
+ );
120
+
115
121
  $utilities-bg-colors: map-loop($utilities-colors, show-css-var, "$key");
116
- $utilities-text-colors: map-loop($utilities-colors, show-css-var-text, "$key");
122
+ $utilities-text-colors: map-loop($utilities-text, show-css-var-text, "$key");
117
123
 
118
124
 
119
125
 
120
126
  // Colours that we want setting but not used for Bootstraps mixins, i.e. .text-primary, .bg-muted
121
127
  $non-theme-colors: ();
122
128
  $non-theme-colors: map-merge((
129
+ "black": #000000,
130
+ "white": #ffffff,
123
131
  "muted": $colour-muted,
124
132
  "border": $colour-border,
125
133
  "link": $colour-link,
@@ -138,12 +146,12 @@ $non-theme-colors: map-merge((
138
146
  }
139
147
 
140
148
  $vars: map-merge((
141
- "--colour-body-rgb": to-rgb($colour-body),
142
- "--colour-white-rgb": to-rgb(#ffffff),
143
- "--colour-black-rgb": to-rgb(#000000),
144
- "--colour-body": rgba(var(--colour-body-rgb),var(--alpha,1)),
145
- "--colour-white": rgba(var(--colour-white-rgb),var(--alpha,1)),
146
- "--colour-black": rgba(var(--colour-black-rgb),var(--alpha,1))
149
+ "--colour-body-theme": rgba(to-rgb($colour-body),var(--alpha,1)),
150
+ "--colour-white-theme": rgba(to-rgb(#ffffff),var(--alpha,1)),
151
+ "--colour-black-theme": rgba(to-rgb(#000000),var(--alpha,1)),
152
+ "--colour-body": rgba(to-rgb($colour-body),var(--alpha,1)),
153
+ "--colour-white": rgba(to-rgb(#ffffff),var(--alpha,1)),
154
+ "--colour-black": rgba(to-rgb(#000000),var(--alpha,1))
147
155
  ), $vars);
148
156
 
149
157
  $gradient: linear-gradient(180deg, var(--colour-secondary) 0, var(--colour-info) 100%);
@@ -190,14 +198,6 @@ $type-scale-5: #{rem(28)};
190
198
  $type-scale-6: #{rem(16)};
191
199
  $type-scale-7: #{rem(14)};
192
200
 
193
-
194
- $h1-font-size: var(--fs-1);
195
- $h2-font-size: var(--fs-2);
196
- $h3-font-size: var(--fs-3);
197
- $h4-font-size: var(--fs-4);
198
- $h5-font-size: var(--fs-5);
199
- $h6-font-size: var(--fs-6);
200
-
201
201
  $font-sizes: (
202
202
  'display': $type-scale-3,
203
203
  1: $type-scale-3,
@@ -218,6 +218,14 @@ $font-sizes: (
218
218
  ), $vars);
219
219
  }
220
220
 
221
+
222
+ $h1-font-size: var(--fs-1);
223
+ $h2-font-size: var(--fs-2);
224
+ $h3-font-size: var(--fs-3);
225
+ $h4-font-size: var(--fs-4);
226
+ $h5-font-size: var(--fs-5);
227
+ $h6-font-size: var(--fs-6);
228
+
221
229
  $headings-margin-bottom: clamp(1rem,0.5em,0.5em);
222
230
  $headings-font-style: normal;
223
231
  $headings-line-height: clamp(1em,2.5rem,clamp(1.5em,1rem,1.2em));
@@ -373,23 +381,23 @@ $vars: map-merge((
373
381
 
374
382
  // #region pagination
375
383
  // Default
376
- $pagination-color: var(--colour-primary);
384
+ $pagination-color: var(--colour-heading);
377
385
  $pagination-disabled-color: var(--colour-muted);
378
386
  $pagination-bg: transparent;
379
387
  $pagination-border-width: 1px;
380
388
  $pagination-border-color: var(--colour-border);
381
389
 
382
390
  // Hover and focus
383
- $pagination-hover-color: var(--colour-primary);
391
+ $pagination-hover-color: var(--colour-heading);
384
392
  $pagination-hover-bg: var(--colour-muted);
385
393
  $pagination-hover-border-color: var(--colour-border);
386
- $pagination-focus-color: var(--colour-primary);
394
+ $pagination-focus-color: var(--colour-hover);
387
395
  $pagination-focus-bg: var(--colour-muted);
388
396
 
389
397
  // Active
390
- $pagination-active-color: white;
391
- $pagination-active-bg: var(--colour-primary);
392
- $pagination-active-border-color: var(--colour-primary);
398
+ $pagination-active-color: var(--bs-body-bg);
399
+ $pagination-active-bg: var(--colour-heading);
400
+ $pagination-active-border-color: var(--colour-heading);
393
401
 
394
402
  // Disabled
395
403
  $pagination-disabled-bg: $pagination-bg;
@@ -1,3 +1,5 @@
1
+ @use "_func" as *;
2
+
1
3
  $printMedia: print!default;
2
4
  @media #{$printMedia} {
3
5
  :root {
@@ -1,3 +1,5 @@
1
+ @use "../_func.scss" as *;
2
+
1
3
  // Accordion
2
4
  .accordion {
3
5
  --accordion-indent: 0.75rem;
@@ -18,7 +20,7 @@
18
20
  .accordion-button {
19
21
 
20
22
  padding: $accordion-button-padding-y var(--accordion-right-padding) $accordion-button-padding-y $accordion-button-padding-x;
21
- color: $accordion-button-color;
23
+ color: var(--colour-heading);
22
24
  text-align: left; // Reset button style
23
25
  background-color: $accordion-button-bg;
24
26
  overflow-anchor: none;
@@ -92,7 +94,7 @@
92
94
  }
93
95
 
94
96
  [open] > summary > & {
95
- color: $accordion-button-active-color;
97
+ color: var(--colour-heading);
96
98
  background-color: $accordion-button-active-bg;
97
99
 
98
100
  &::after {
@@ -1,3 +1,5 @@
1
+ @use "../_func" as *;
2
+
1
3
  .alert {
2
4
 
3
5
  &__inner {
@@ -1,3 +1,4 @@
1
+ @use "../_func" as *;
1
2
 
2
3
  // #region Card Deck
3
4
  .card-deck.container:not([data-card-type="simple"]) {
@@ -1,3 +1,5 @@
1
+ @use "../_func" as *;
2
+
1
3
  // #region default carousel
2
4
  .carousel {
3
5
  padding-bottom: 3rem;
@@ -89,18 +91,6 @@ body.js-enabled .carousel__inner::-webkit-scrollbar {
89
91
  }
90
92
  }
91
93
 
92
-
93
- .carousel__controls {
94
-
95
- @include invert-colours(){
96
-
97
- a:not(:hover):not(:focus):not(:active):not(.active){
98
-
99
- opacity: 0.5;
100
- }
101
- }
102
- }
103
-
104
94
  .carousel .carousel__controls > a:nth-child(10) ~ a {
105
95
 
106
96
  display: none;
@@ -176,20 +166,10 @@ body.js-enabled .carousel__inner::-webkit-scrollbar {
176
166
 
177
167
  // Make sure that we dont just have one pip showing
178
168
  .carousel .carousel__controls.cols-sm-2 > a:first-child:nth-last-child(2),
179
- .carousel .carousel__controls.cols-sm-3 > a:first-child:nth-last-child(2),
180
- .carousel .carousel__controls.cols-sm-3 > a:first-child:nth-last-child(3),
181
- .carousel .carousel__controls.cols-sm-4 > a:first-child:nth-last-child(2),
182
- .carousel .carousel__controls.cols-sm-4 > a:first-child:nth-last-child(3),
183
- .carousel .carousel__controls.cols-sm-4 > a:first-child:nth-last-child(4),
184
- .carousel .carousel__controls.cols-sm-5 > a:first-child:nth-last-child(2),
185
- .carousel .carousel__controls.cols-sm-5 > a:first-child:nth-last-child(3),
186
- .carousel .carousel__controls.cols-sm-5 > a:first-child:nth-last-child(4),
187
- .carousel .carousel__controls.cols-sm-5 > a:first-child:nth-last-child(5),
188
- .carousel .carousel__controls.cols-sm-6 > a:first-child:nth-last-child(2),
189
- .carousel .carousel__controls.cols-sm-6 > a:first-child:nth-last-child(3),
190
- .carousel .carousel__controls.cols-sm-6 > a:first-child:nth-last-child(4),
191
- .carousel .carousel__controls.cols-sm-6 > a:first-child:nth-last-child(5),
192
- .carousel .carousel__controls.cols-sm-6 > a:first-child:nth-last-child(6) {
169
+ .carousel .carousel__controls.cols-sm-3 > :is(a:first-child:nth-last-child(2), a:first-child:nth-last-child(3)),
170
+ .carousel .carousel__controls.cols-sm-4 > :is(a:first-child:nth-last-child(2), a:first-child:nth-last-child(3), a:first-child:nth-last-child(4)),
171
+ .carousel .carousel__controls.cols-sm-5 > :is(a:first-child:nth-last-child(2),a:first-child:nth-last-child(3),a:first-child:nth-last-child(4),a:first-child:nth-last-child(5)),
172
+ .carousel .carousel__controls.cols-sm-6 > :is(a:first-child:nth-last-child(2),a:first-child:nth-last-child(3),a:first-child:nth-last-child(4),a:first-child:nth-last-child(5),a:first-child:nth-last-child(6)) {
193
173
  display: none;
194
174
  }
195
175
 
@@ -235,20 +215,10 @@ body.js-enabled .carousel__inner::-webkit-scrollbar {
235
215
 
236
216
  // Make sure that we dont just have one pip showing
237
217
  .carousel .carousel__controls.cols-md-2 > a:first-child:nth-last-child(2),
238
- .carousel .carousel__controls.cols-md-3 > a:first-child:nth-last-child(2),
239
- .carousel .carousel__controls.cols-md-3 > a:first-child:nth-last-child(3),
240
- .carousel .carousel__controls.cols-md-4 > a:first-child:nth-last-child(2),
241
- .carousel .carousel__controls.cols-md-4 > a:first-child:nth-last-child(3),
242
- .carousel .carousel__controls.cols-md-4 > a:first-child:nth-last-child(4),
243
- .carousel .carousel__controls.cols-md-5 > a:first-child:nth-last-child(2),
244
- .carousel .carousel__controls.cols-md-5 > a:first-child:nth-last-child(3),
245
- .carousel .carousel__controls.cols-md-5 > a:first-child:nth-last-child(4),
246
- .carousel .carousel__controls.cols-md-5 > a:first-child:nth-last-child(5),
247
- .carousel .carousel__controls.cols-md-6 > a:first-child:nth-last-child(2),
248
- .carousel .carousel__controls.cols-md-6 > a:first-child:nth-last-child(3),
249
- .carousel .carousel__controls.cols-md-6 > a:first-child:nth-last-child(4),
250
- .carousel .carousel__controls.cols-md-6 > a:first-child:nth-last-child(5),
251
- .carousel .carousel__controls.cols-md-6 > a:first-child:nth-last-child(6) {
218
+ .carousel .carousel__controls.cols-md-3 > :is(a:first-child:nth-last-child(2), a:first-child:nth-last-child(3)),
219
+ .carousel .carousel__controls.cols-md-4 > :is(a:first-child:nth-last-child(2), a:first-child:nth-last-child(3), a:first-child:nth-last-child(4)),
220
+ .carousel .carousel__controls.cols-md-5 > :is(a:first-child:nth-last-child(2),a:first-child:nth-last-child(3),a:first-child:nth-last-child(4),a:first-child:nth-last-child(5)),
221
+ .carousel .carousel__controls.cols-md-6 > :is(a:first-child:nth-last-child(2),a:first-child:nth-last-child(3),a:first-child:nth-last-child(4),a:first-child:nth-last-child(5),a:first-child:nth-last-child(6)) {
252
222
  display: none;
253
223
  }
254
224
 
@@ -1,3 +1,5 @@
1
+ @use "../_func" as *;
2
+
1
3
  // #region Chart Colours
2
4
  $chart-colors: ();
3
5
  $chart-colors: map-merge((
@@ -13,12 +15,21 @@ $chart-colors: map-merge((
13
15
  10: --colour-warning,
14
16
  ), $chart-colors);
15
17
 
16
- html {
18
+ :root {
17
19
 
18
20
  @each $index, $value in $chart-colors {
19
21
  --colour-chart-#{$index}: var(#{$value});
20
22
  }
21
23
  }
24
+
25
+ @media screen and (prefers-color-scheme: dark) {
26
+ :root {
27
+ --colour-chart-1: var(--colour-dark);
28
+ --colour-chart-5: var(--colour-light);
29
+ --colour-chart-6: var(--colour-dark);
30
+ --colour-chart-7: var(--colour-secondary);
31
+ }
32
+ }
22
33
  // #endregion
23
34
 
24
35
  // #region Apply colours
@@ -507,7 +518,7 @@ html {
507
518
  }
508
519
 
509
520
  .pie foreignObject {
510
- background: white;
521
+ background: var(--bs-body-bg);
511
522
  border-radius: 50%;
512
523
  z-index: 100;
513
524
  pointer-events: none;
@@ -1,3 +1,5 @@
1
+ @use "../_func" as *;
2
+
1
3
  .drawer__btn {
2
4
 
3
5
  position: sticky;
@@ -1,3 +1,5 @@
1
+ @use "../_func" as *;
2
+
1
3
  .header-banner {
2
4
  background: linear-gradient(180deg,var(--colour-secondary) 0, var(--colour-info) 100%);
3
5
  margin-bottom: rem(32);
@@ -13,6 +15,10 @@
13
15
  }
14
16
 
15
17
  &__inner {
18
+
19
+ @include reset-colours();
20
+
21
+ color: var(--colour-body);
16
22
  background: white;
17
23
  padding: rem(32);
18
24
  margin: rem(30) 0;
@@ -1,3 +1,6 @@
1
+ @use "sass:math";
2
+ @use "../_func" as *;
3
+
1
4
  .modal {
2
5
  display: none;
3
6
  }
@@ -44,14 +47,14 @@
44
47
  }
45
48
 
46
49
  &.modal__dock--left {
47
- right: calc(50% + #{rem(820/2)} + 1rem);
50
+ right: calc(50% + #{rem(math.div(820,2))} + 1rem);
48
51
 
49
52
  &:after {
50
53
  transform: rotate(-180deg);
51
54
  }
52
55
  }
53
56
  &.modal__dock--right {
54
- left: calc(50% + #{rem(820/2)} + 1rem);
57
+ left: calc(50% + #{rem(math.div(820,2))} + 1rem);
55
58
  }
56
59
  }
57
60
  }
@@ -1,6 +1,9 @@
1
+ @use "../_func" as *;
2
+
1
3
  .nav {
2
4
 
3
- background: white;
5
+ background: var(--bs-body-bg);
6
+
4
7
 
5
8
  &__inner {
6
9
 
@@ -113,7 +116,7 @@
113
116
  &__menu li a:not(.text-decoration-none):not(.btn),
114
117
  &__menu li .link:not(.text-decoration-none):not(.btn) {
115
118
  text-decoration: none;
116
- @include var(color,--colour-primary,!important);
119
+ //@include var(color,--colour-primary,!important);
117
120
  display: inline-block;
118
121
  padding: rem(8) 0 rem(8) 0;
119
122
  margin-bottom: 0;
@@ -143,10 +146,6 @@
143
146
 
144
147
  background: rgba(0,0,0,.6);
145
148
  height: calc(100vh - 5rem);
146
-
147
- > div:first-child {
148
-
149
- }
150
149
  }
151
150
  }
152
151
 
@@ -1,3 +1,5 @@
1
+ @use "../_func" as *;
2
+
1
3
  // #region Property searchbar
2
4
  .property-searchbar {
3
5
 
@@ -99,6 +101,9 @@
99
101
 
100
102
  // #region Heror searchbar
101
103
  .property-searchbar--hero .property-searchbar {
104
+
105
+ @include reset-colours();
106
+
102
107
  padding: 1rem;
103
108
  background-color: #fff;
104
109
  width: 100%;
@@ -1,3 +1,5 @@
1
+ @use "../_func" as *;
2
+
1
3
  .snapshot {
2
4
 
3
5
  > .row {
@@ -1,9 +1,11 @@
1
+ @use "../_func" as *;
2
+
1
3
  .stepper {
2
- background: #f0f0f0;
4
+ background: var(--bs-body-bg);
3
5
  display: flex;
4
6
  flex-wrap: wrap;
5
7
  margin-bottom: 2rem;
6
- border: 1px solid white;
8
+ border: 1px solid var(--bs-body-bg);
7
9
  overflow: hidden;
8
10
 
9
11
  @include media-breakpoint-up(md) {
@@ -15,7 +17,7 @@
15
17
  ol {
16
18
  margin: 0;
17
19
  z-index: 1;
18
- background: white;
20
+ background: var(--bs-body-bg);
19
21
  counter-reset: section;
20
22
  width: 100%;
21
23
  overflow: auto;
@@ -38,7 +40,7 @@
38
40
  li {
39
41
  width: 100%;
40
42
  max-width: 100%;
41
- background: white;
43
+ background: var(--bs-body-bg);
42
44
  padding: 1px;
43
45
 
44
46
  @include media-breakpoint-up(sm) {
@@ -1,3 +1,5 @@
1
+ @use "../_func" as *;
2
+
1
3
  .tabs__container {
2
4
 
3
5
  .tabs__links {
@@ -1,3 +1,5 @@
1
+ @use "../_func" as *;
2
+
1
3
  .testimonial {
2
4
 
3
5
  --testimonial-padding: 1rem;
@@ -1,3 +1,6 @@
1
+ @use "sass:math";
2
+ @use "../_func" as *;
3
+
1
4
  .timeline {
2
5
 
3
6
  --breakpoint:(100% - #{rem(992)});
@@ -57,12 +60,12 @@
57
60
  }
58
61
 
59
62
  > * {
60
- max-width: rem((1320 / 2) - 96);
63
+ max-width: rem(math.div(1320,2) - 96);
61
64
  order: 1;
62
65
  }
63
66
 
64
67
  > img {
65
- max-width: min(100%, #{rem((1320 / 2) - 96)});
68
+ max-width: min(100%, #{rem(math.div(1320,2) - 96)});
66
69
  margin-bottom: 2rem;
67
70
  }
68
71
 
@@ -1,6 +1,6 @@
1
1
  @charset "UTF-8";
2
2
 
3
- @import "_fonts";
4
- @import "_func";
5
- @import "_corefiles";
6
- @import "_print";
3
+ @use "_fonts";
4
+ @use "_corefiles";
5
+ @use "_forms";
6
+ @use "_print";
@@ -1,15 +1,6 @@
1
- .btn {
2
- --btn-bg: var(--colour-warning);
3
- --btn-outline: var(--colour-warning);
4
- --btn-text: var(--colour-primary);
5
-
6
- --btn-bg-hover: white;
7
- --btn-outline-hover: var(--colour-warning);
8
- --btn-text-hover: var(--colour-primary);
1
+ @use "../_func.scss" as *;
9
2
 
10
- --btn-bg-active: white;
11
- --btn-outline-active: var(--colour-primary);
12
- --btn-text-active: var(--colour-primary);
3
+ .btn {
13
4
 
14
5
  display: inline-block;
15
6
  font-weight: 600;
@@ -19,7 +10,7 @@
19
10
  cursor: pointer;
20
11
  user-select: none;
21
12
  background: var(--btn-bg);
22
- border: 2px solid var(--btn-outline);
13
+ border: 2px solid var(--btn-bg);
23
14
  color: var(--btn-text);
24
15
  font-family: var(--font-heading);
25
16
  font-size: 1rem;
@@ -38,26 +29,21 @@
38
29
  outline: 0;
39
30
  text-decoration: none;
40
31
  border-radius: rem(20);
41
-
42
- background: var(--btn-bg-hover);
43
- border-color: var(--btn-outline-hover);
44
- color: var(--btn-text-hover);
32
+ background: transparent;
33
+ border-color: var(--btn-bg)!important;
34
+ color: var(--btn-hover-text);
45
35
  }
46
36
 
47
37
  a:active &,
48
38
  a.active &,
49
39
  &:active,
50
- &.active,
51
- *:checked + &,
52
- details[open] > &:is(summary):first-child {
53
- --btn-colour: var(--btn-active-colour);
54
- @include box-shadow($btn-active-box-shadow);
40
+ &.active {
41
+
55
42
  border-radius: rem(20);
56
43
  transition: 0s;
57
-
58
- background: var(--btn-bg-active);
59
- border-color: var(--btn-outline-active);
60
- color: var(--btn-text-active);
44
+ background: transparent;
45
+ border-color: var(--btn-text);
46
+ color: var(--btn-hover-text);
61
47
 
62
48
  &:focus {
63
49
  @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
@@ -73,83 +59,49 @@
73
59
  &.btn-secondary {
74
60
 
75
61
  --btn-bg: var(--colour-secondary);
76
- --btn-outline: var(--colour-secondary);
77
- --btn-outline-hover: var(--colour-secondary);
78
62
  }
79
63
 
80
64
  &.btn-tertiary,
81
65
  &.btn-tag:not(.btn-primary):not(.btn-secondary) {
82
66
 
83
- --btn-bg: transparent;
84
- --btn-bg-hover: var(--colour-primary);
85
- --btn-bg-active: var(--colour-primary);
86
- --btn-outline: var(--colour-primary);
87
- --btn-outline-hover: var(--colour-primary);
88
- --btn-text-hover: #ffffff;
89
- --btn-text-active: #ffffff;
90
- }
91
-
92
- [class*="bg-"]:not(.prevent-invert) & {
93
-
94
- --btn-bg: var(--colour-primary);
95
- --btn-bg-hover: transparent;
96
- --btn-bg-active: transparent;
97
- --btn-outline: var(--colour-primary);
98
- --btn-outline-hover: var(--colour-primary);
99
- --btn-text-hover: var(--colour-primary);
100
- --btn-text: #ffffff;
67
+ background: var(--btn-tertiary-bg);
68
+ border-color: var(--btn-hover-text) !important;
69
+ color: var(--btn-tertiary-hover-text);
101
70
 
102
- &.btn-tertiary,
103
- &.btn-tag:not(.btn-primary):not(.btn-secondary) {
71
+ &:not(:hover):not(:focus) {
104
72
 
105
- --btn-bg: transparent;
106
- --btn-bg-hover: var(--colour-primary);
107
- --btn-text: var(--colour-primary);
108
- --btn-text-hover: #ffffff;
73
+ background: transparent;
74
+ color: var(--colour-link);
75
+ border-color: var(--btn-hover-text);
109
76
  }
110
77
  }
111
78
 
112
- @include invert-colours {
113
-
114
- --btn-bg: #ffffff;
115
- --btn-bg-hover: transparent;
116
- --btn-outline: #ffffff;
117
- --btn-outline-hover: #ffffff;
118
- --btn-text-hover: #ffffff;
119
- --btn-text: var(--colour-primary-theme);
120
-
121
- &.btn-tertiary,
122
- &.btn-tag:not(.btn-primary):not(.btn-secondary) {
123
-
124
- --btn-bg: transparent;
125
- --btn-bg-hover: #ffffff;
126
- --btn-text: #ffffff;
127
- --btn-text-hover: var(--colour-primary-theme);
128
- }
79
+ &.btn-tag.btn-primary {
80
+ --btn-bg: var(--colour-warning);
129
81
  }
82
+ }
130
83
 
131
- [class*="bg-"].bg-light:not(.prevent-invert) & {
132
-
133
- --btn-bg: #ffffff;
134
- --btn-bg-hover: transparent;
135
- --btn-outline: #ffffff;
136
- --btn-outline-hover: var(--colour-dark-theme);
137
- --btn-text-hover: var(--colour-dark-theme);
138
- --btn-text: var(--colour-dark-theme);
139
-
140
- &.btn-tertiary,
141
- &.btn-tag:not(.btn-primary):not(.btn-secondary) {
142
-
143
- --btn-bg: transparent;
144
- --btn-bg-hover: #ffffff;
145
- --btn-text: var(--colour-dark-theme);
146
- --btn-outline: var(--colour-dark-theme);
147
- --btn-outline-hover: #ffffff;
148
- --btn-text-hover: var(--colour-dark-theme);
149
- }
84
+ input:checked + .btn:not(:hover):not(:focus),
85
+ details[open] > summary.btn:first-child {
86
+
87
+ transition: 0s;
88
+ background: var(--btn-tertiary-bg);
89
+ border-color: var(--btn-hover-text);
90
+ color: var(--btn-tertiary-hover-text);
91
+
92
+ &:focus {
93
+ @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
150
94
  }
151
95
  }
152
96
 
97
+ input:checked + .btn-tertiary:not(:hover):not(:focus):not(:active),
98
+ input:checked + .btn-tag:not(.btn-primary):not(.btn-secondary):not(:hover):not(:focus):not(:active) {
99
+ background: var(--btn-tertiary-bg);
100
+ border-color: var(--btn-hover-text);
101
+ color: var(--btn-tertiary-hover-text);
102
+ }
103
+
104
+
153
105
  // #region button small and tag
154
106
  .btn-sm {
155
107
 
@@ -253,5 +205,6 @@
253
205
  width: 100%;
254
206
  }
255
207
  }
208
+ // #endregion
256
209
 
257
- // #endregion
210
+ @import "../../../node_modules/bootstrap/scss/_button-group.scss";