@iamproperty/components 2.9.0 → 3.0.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 (74) hide show
  1. package/README.md +9 -130
  2. package/assets/css/core.min.css +1 -1
  3. package/assets/css/core.min.css.map +1 -1
  4. package/assets/css/style.min.css +1 -1
  5. package/assets/css/style.min.css.map +1 -1
  6. package/assets/favicons/manifest.json +32 -0
  7. package/assets/js/main.js +57 -0
  8. package/assets/js/modules/chart.js +18 -17
  9. package/assets/js/modules/nav.js +9 -8
  10. package/assets/js/modules/table.js +24 -24
  11. package/assets/js/scripts.bundle.js +20 -17
  12. package/assets/js/scripts.bundle.js.map +1 -1
  13. package/assets/js/scripts.bundle.min.js +1 -1
  14. package/assets/js/scripts.bundle.min.js.map +1 -1
  15. package/assets/sass/_functions/utilities.scss +3 -3
  16. package/assets/sass/_functions/variables.scss +3 -2
  17. package/assets/sass/_tests/colours.spec.scss +45 -0
  18. package/assets/sass/_tests/func.spec.scss +233 -0
  19. package/assets/sass/_tests/mixins.spec.scss +194 -0
  20. package/assets/sass/_tests/sass.spec.js +9 -0
  21. package/assets/sass/_tests/typography.spec.scss +36 -0
  22. package/assets/sass/components/alert.scss +1 -1
  23. package/assets/sass/components/cardDeck.scss +1 -1
  24. package/assets/sass/components/carousel.scss +4 -4
  25. package/assets/sass/components/charts.scss +1 -1
  26. package/assets/sass/components/nav.scss +5 -2
  27. package/assets/sass/components/stepper.scss +3 -3
  28. package/assets/sass/elements/panel.scss +3 -3
  29. package/assets/sass/elements/tooltips.scss +1 -1
  30. package/assets/sass/foundations/root.scss +4 -4
  31. package/assets/ts/main.js +57 -0
  32. package/assets/ts/main.js.map +1 -0
  33. package/assets/ts/main.ts +9 -9
  34. package/assets/ts/modules/accordion.js +33 -0
  35. package/assets/ts/modules/accordion.js.map +1 -0
  36. package/dist/components.es.js +2504 -0
  37. package/dist/components.umd.js +56 -3784
  38. package/dist/style.css +1 -0
  39. package/package.json +87 -87
  40. package/src/components/Accordion/Accordion.screenshot.vue +57 -0
  41. package/src/components/Accordion/Accordion.spec.js +63 -0
  42. package/src/components/Accordion/AccordionItem.vue +1 -1
  43. package/src/components/Accordion/__screenshots__/win32/laptop/Accordion.png +0 -0
  44. package/src/components/Accordion/__screenshots__/win32/mobile/Accordion.png +0 -0
  45. package/src/components/Accordion/__screenshots__/win32/tablet/Accordion.png +0 -0
  46. package/src/components/Alert/Alert.spec.js +49 -0
  47. package/src/components/Alert/Alert.vue +3 -3
  48. package/src/components/Banner/Banner.spec.js +28 -0
  49. package/src/components/CardDeck/CardDeck.spec.js +99 -0
  50. package/src/components/Carousel/Carousel.spec.js +45 -0
  51. package/src/components/Chart/Chart.spec.js +201 -0
  52. package/src/components/Chart/Chart.vue +3 -3
  53. package/src/components/Header/Header.spec.js +33 -0
  54. package/src/components/Modal/Modal.spec.js +22 -0
  55. package/src/components/Nav/Nav.spec.js +35 -0
  56. package/src/components/Nav/Nav.vue +5 -2
  57. package/src/components/Stepper/Stepper.spec.js +99 -0
  58. package/src/components/Tabs/Tab.vue +6 -0
  59. package/src/components/Tabs/Tabs.vue +15 -13
  60. package/src/components/Testimonial/Testimonial.spec.js +57 -0
  61. package/src/components/Timeline/Timeline.spec.js +17 -0
  62. package/src/elements/Table/Table.spec.js +90 -0
  63. package/src/elements/Table/Table.vue +8 -5
  64. package/src/foundations/Icon/Icon.spec.js +24 -0
  65. package/src/foundations/Logo/Logo.spec.js +56 -0
  66. package/src/vue-shim.d.ts +6 -0
  67. package/dist/components.common.js +0 -3773
  68. package/dist/components.common.js.map +0 -1
  69. package/dist/components.css +0 -2
  70. package/dist/components.css.map +0 -1
  71. package/dist/components.umd.js.map +0 -1
  72. package/dist/components.umd.min.js +0 -2
  73. package/dist/components.umd.min.js.map +0 -1
  74. package/dist/demo.html +0 -1
@@ -0,0 +1,45 @@
1
+ @use 'true' as *;
2
+ @import '../../sass/func';
3
+
4
+ $test_colors: ();
5
+ $test_colors: map-merge((
6
+ "primary": rgba(0, 49, 60, var(--alpha, 1)),
7
+ "secondary": rgba(180, 230, 165, var(--alpha, 1)),
8
+ "success": rgba(180, 230, 165, var(--alpha, 1)),
9
+ "info": rgba(30, 190, 230, var(--alpha, 1)),
10
+ "warning": rgba(255, 165, 0, var(--alpha, 1)),
11
+ "danger": rgba(220, 53, 69, var(--alpha, 1)),
12
+ "light": rgba(255, 210, 210, var(--alpha, 1)),
13
+ "dark": rgba(70, 0, 60, var(--alpha, 1)),
14
+ "muted-theme": #9d9d9d,
15
+ "muted": var(--colour-muted-theme),
16
+ "border-theme": #6f6f6f,
17
+ "border": var(--colour-border-theme),
18
+ "link-theme": #00313c,
19
+ "link": var(--colour-link-theme),
20
+ "focus-theme": #000000,
21
+ "focus": var(--colour-focus-theme),
22
+ "hover-theme": #000000,
23
+ "hover": var(--colour-hover-theme),
24
+ "active-theme": #b4e6a5,
25
+ "active": var(--colour-active-theme),
26
+ "selected-theme": #b4e6a5,
27
+ "selected": var(--colour-selected-theme)
28
+ ), $test_colors);
29
+
30
+
31
+ @include describe('Colour variables are added to the global var array [Variable]') {
32
+ @each $color, $value in $test_colors {
33
+
34
+ @include it($color+' colour variable is added to the global var array with the correct hex code') {
35
+ @include assert {
36
+ @include output {
37
+ color: map-get($vars, --colour-#{$color});
38
+ }
39
+ @include expect {
40
+ color: $value;
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,233 @@
1
+ @use 'true' as *;
2
+ @import '../../sass/func';
3
+
4
+ /*#region em*/
5
+ @include describe('em [func]') {
6
+ @include it('em function returns the correct em size') {
7
+ // Assert the expected results
8
+ @include assert {
9
+ @include output {
10
+ font-size: em(16);
11
+ }
12
+ @include expect {
13
+ font-size: 1em;
14
+ }
15
+ }
16
+ }
17
+ }
18
+ /*#endregion*/
19
+
20
+ /*#region rem*/
21
+ @include describe('rem [func]') {
22
+ @include it('rem function returns the correct rem size') {
23
+ // Assert the expected results
24
+ @include assert {
25
+ @include output {
26
+ font-size: rem(16);
27
+ }
28
+ @include expect {
29
+ font-size: 1rem;
30
+ }
31
+ }
32
+ }
33
+ }
34
+ /*#endregion*/
35
+
36
+ /*#region rem*/
37
+ @include describe('rem [func]') {
38
+ @include it('rem function returns the correct rem size') {
39
+ // Assert the expected results
40
+ @include assert {
41
+ @include output {
42
+ font-size: rem(16);
43
+ }
44
+ @include expect {
45
+ font-size: 1rem;
46
+ }
47
+ }
48
+ }
49
+ }
50
+ /*#endregion*/
51
+
52
+ /*#region vw*/
53
+ @include describe('vw [func]') {
54
+ @include it('vw function returns the correct vw size') {
55
+ // Assert the expected results
56
+ @include assert {
57
+ @include output {
58
+ font-size: vw(375);
59
+ }
60
+ @include expect {
61
+ font-size: 4.26667vw;
62
+ }
63
+ }
64
+ @include assert {
65
+ @include output {
66
+ font-size: vw(768);
67
+ }
68
+ @include expect {
69
+ font-size: 2.08333vw;
70
+ }
71
+ }
72
+ @include assert {
73
+ @include output {
74
+ font-size: vw(1280);
75
+ }
76
+ @include expect {
77
+ font-size: 1.25vw;
78
+ }
79
+ }
80
+ }
81
+ }
82
+ /*#endregion*/
83
+
84
+
85
+ /*#region vw*/
86
+ @include describe('vw [func]') {
87
+ @include it('vw function returns the correct vw size') {
88
+ // Assert the expected results
89
+ @include assert {
90
+ @include output {
91
+ font-size: vw(375);
92
+ }
93
+ @include expect {
94
+ font-size: 4.26667vw;
95
+ }
96
+ }
97
+ @include assert {
98
+ @include output {
99
+ font-size: vw(768);
100
+ }
101
+ @include expect {
102
+ font-size: 2.08333vw;
103
+ }
104
+ }
105
+ @include assert {
106
+ @include output {
107
+ font-size: vw(1280);
108
+ }
109
+ @include expect {
110
+ font-size: 1.25vw;
111
+ }
112
+ }
113
+ }
114
+ }
115
+ /*#endregion*/
116
+
117
+ /*#region boostrap color functions*/
118
+ @include describe('Bootstrap colour functions dont do anything [func]') {
119
+ @include it('darken function returns the input without change') {
120
+ // Assert the expected results
121
+ @include assert {
122
+ @include output {
123
+ color: darken(#ffffff, 50);
124
+ }
125
+ @include expect {
126
+ color: #ffffff;
127
+ }
128
+ }
129
+ }
130
+ @include it('lighten function returns the input without change') {
131
+ // Assert the expected results
132
+ @include assert {
133
+ @include output {
134
+ color: lighten(#ffffff, 50);
135
+ }
136
+ @include expect {
137
+ color: #ffffff;
138
+ }
139
+ }
140
+ }
141
+ @include it('saturate function returns the input without change') {
142
+ // Assert the expected results
143
+ @include assert {
144
+ @include output {
145
+ color: saturate(#ffffff, 50);
146
+ }
147
+ @include expect {
148
+ color: #ffffff;
149
+ }
150
+ }
151
+ }
152
+ @include it('desaturate function returns the input without change') {
153
+ // Assert the expected results
154
+ @include assert {
155
+ @include output {
156
+ color: desaturate(#ffffff, 50);
157
+ }
158
+ @include expect {
159
+ color: #ffffff;
160
+ }
161
+ }
162
+ }
163
+ @include it('adjust-hue function returns the input without change') {
164
+ // Assert the expected results
165
+ @include assert {
166
+ @include output {
167
+ color: adjust-hue(#ffffff, 50);
168
+ }
169
+ @include expect {
170
+ color: #ffffff;
171
+ }
172
+ }
173
+ }
174
+ @include it('tint function returns the input without change') {
175
+ // Assert the expected results
176
+ @include assert {
177
+ @include output {
178
+ color: tint(#ffffff, 50);
179
+ }
180
+ @include expect {
181
+ color: #ffffff;
182
+ }
183
+ }
184
+ }
185
+ @include it('shade function returns the input without change') {
186
+ // Assert the expected results
187
+ @include assert {
188
+ @include output {
189
+ color: shade(#ffffff, 50);
190
+ }
191
+ @include expect {
192
+ color: #ffffff;
193
+ }
194
+ }
195
+ }
196
+ }
197
+ /*#endregion*/
198
+
199
+ /*#region breakpoint-max*/
200
+ @include describe('breakpoint-max [func]') {
201
+ @include it('breakpoint-max func creates a max-width media query') {
202
+ // Assert the expected results
203
+ @include assert {
204
+ @include output {
205
+ $name: 'sm';
206
+ $max: breakpoint-max($name);
207
+ @media (max-width: $max) {
208
+ color: red;
209
+ }
210
+ }
211
+ @include expect {
212
+ @media (max-width: 35.98em) {
213
+ color: red;
214
+ }
215
+ }
216
+ }
217
+ @include assert {
218
+ @include output {
219
+ $name: 'md';
220
+ $max: breakpoint-max($name);
221
+ @media (max-width: $max) {
222
+ color: red;
223
+ }
224
+ }
225
+ @include expect {
226
+ @media (max-width: 61.98em) {
227
+ color: red;
228
+ }
229
+ }
230
+ }
231
+ }
232
+ }
233
+ /*#endregion*/
@@ -0,0 +1,194 @@
1
+ @use 'true' as *;
2
+ @import '../../sass/func';
3
+
4
+ /*#region prefix*/
5
+ @include describe('prefix [Mixin]') {
6
+ @include it('prefix mixin duplicates the rule with the assigned prefixes') {
7
+ // Assert the expected results
8
+ @include assert {
9
+ @include output {
10
+ @include prefix(transform,scale(2));
11
+ }
12
+ @include expect {
13
+ -webkit-transform: scale(2);
14
+ -ms-transform: scale(2);
15
+ -o-transform: scale(2);
16
+ transform: scale(2);
17
+ }
18
+ }
19
+ @include assert {
20
+ @include output {
21
+ @include prefix(transform,scale(2),webkit);
22
+ }
23
+ @include expect {
24
+ -webkit-transform: scale(2);
25
+ transform: scale(2);
26
+ }
27
+ }
28
+ }
29
+ }
30
+ /*#endregion*/
31
+
32
+ /*#region var*/
33
+ @include describe('var [Mixin]') {
34
+ @include it('Var mixin returns the colour heading as a CSS variable') {
35
+ // Assert the expected results
36
+ @include assert {
37
+ @include output {
38
+ @include var(color,--colour-primary);
39
+ }
40
+ @include expect {
41
+ color: var(--colour-primary);
42
+ }
43
+ }
44
+ }
45
+ }
46
+ /*#endregion*/
47
+
48
+ /*#region inline-text*/
49
+ @include describe('inline-text[Mixin]') {
50
+ @include it('inline-text returns selecters prefixed with inline element selectors') {
51
+ // Assert the expected results
52
+ @include assert {
53
+ @include output {
54
+ @include inline-text(){
55
+ color: purple;
56
+ background: green;
57
+ }
58
+ }
59
+ @include expect {
60
+ p,
61
+ ul,
62
+ ol,
63
+ dd,
64
+ .body,
65
+ table:not(.table--email) td{
66
+ color: purple;
67
+ background: green;
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ /*#endregion */
74
+
75
+ // #region headers
76
+ @include describe('headers[Mixin]') {
77
+ @include it('headers returns selecters prefixed with the header selectors') {
78
+ // Assert the expected results
79
+ @include assert {
80
+ @include output {
81
+ @include headers(){
82
+ color: purple;
83
+ background: green;
84
+ }
85
+ }
86
+ @include expect {
87
+ h1,
88
+ h2,
89
+ h3,
90
+ h4,
91
+ h5,
92
+ h6 {
93
+ color: purple;
94
+ background: green;
95
+ }
96
+ }
97
+ }
98
+ @include assert {
99
+ @include output {
100
+ @include headers('true'){
101
+ color: purple;
102
+ background: green;
103
+ }
104
+ }
105
+ @include expect {
106
+ h1,
107
+ h2,
108
+ h3,
109
+ h4,
110
+ h5,
111
+ h6 {
112
+ color: purple;
113
+ background: green;
114
+ }
115
+
116
+ .h1,
117
+ .h2,
118
+ .h3,
119
+ .h4,
120
+ .h5,
121
+ .h6 {
122
+ color: purple;
123
+ background: green;
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ // #endregion
130
+
131
+ /*#region bg-variant*/
132
+ @include describe('bg-variant [Mixin]') {
133
+ @include it('bg-variant returns the correct css variable') {
134
+ // Assert the expected results
135
+ @include assert {
136
+ @include output {
137
+ $parent: '.bg-primary';
138
+ $color: 'primary';
139
+ @include bg-variant($parent,$color);
140
+ }
141
+ @include expect {
142
+ .bg-primary {
143
+ --bg-colour: var(--colour-primary);
144
+ --bg-colour-tint: var(--colour-primary-tint);
145
+ background-color: var(--colour-primary) !important;
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
151
+ /*#endregion */
152
+
153
+ /*#region text-emphasis-variant*/
154
+ @include describe('text-emphasis-variant [Mixin]') {
155
+ @include it('text-emphasis-variant returns') {
156
+ // Assert the expected results
157
+ @include assert {
158
+ @include output {
159
+ $parent: '.text-primary';
160
+ $color: 'primary';
161
+ @include text-emphasis-variant($parent,$color);
162
+ }
163
+ @include expect {
164
+ .text-primary {
165
+ color: var(--colour-primary) !important;
166
+ }
167
+ }
168
+ }
169
+ }
170
+ }
171
+ /*#endregion */
172
+
173
+
174
+ /*#region font-size*/
175
+ @include describe('font-size [Mixin]') {
176
+ @include it('font-size returns') {
177
+ // Assert the expected results
178
+ @include assert {
179
+ @include output {
180
+ @include font-size($h1-font-size);
181
+ @include font-size($h1-font-size, 'true');
182
+ }
183
+ @include expect {
184
+ font-size: var(--fs-1);
185
+ font-size: $h1-font-size;
186
+ }
187
+ }
188
+ }
189
+ }
190
+ /*#endregion */
191
+
192
+
193
+
194
+
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @jest-environment node
3
+ */
4
+
5
+ const path = require('path');
6
+ const sassTrue = require('sass-true');
7
+
8
+ const sassFile = path.join(__dirname, 'colours.spec.scss');
9
+ sassTrue.runSass({ file: sassFile }, { describe, it });
@@ -0,0 +1,36 @@
1
+ @use 'true' as *;
2
+ @import '../../sass/func';
3
+
4
+ @include describe('Font variables should be defined correctly') {
5
+
6
+ @include it('with the body font set to Qanelas Medium') {
7
+ @include assert {
8
+ @include output {
9
+ font-family: map-get($vars, --font-body);
10
+ }
11
+ @include expect {
12
+ font-family: qanelasmedium, arial, sans-serif;
13
+ }
14
+ }
15
+ }
16
+ @include it('with the header font set to Qanelas Soft') {
17
+ @include assert {
18
+ @include output {
19
+ font-family: map-get($vars, --font-heading);
20
+ }
21
+ @include expect {
22
+ font-family: qanelas_softextrabold, arial, sans-serif;
23
+ }
24
+ }
25
+ }
26
+ @include it('with the header font weight set to 700') {
27
+ @include assert {
28
+ @include output {
29
+ font-weight: map-get($vars, --heading-weight);
30
+ }
31
+ @include expect {
32
+ font-weight: 700;
33
+ }
34
+ }
35
+ }
36
+ }
@@ -7,7 +7,7 @@
7
7
  padding: 1.5rem;
8
8
  margin-bottom: 2rem;
9
9
  @include border-radius($alert-border-radius);
10
- //--bs-bg-opacity: 0.5;
10
+ //--bg-opacity: 0.5;
11
11
 
12
12
  &:not(.bg-primary):not(.bg-dark):not(.bg-danger) {
13
13
  --colour-body: black;
@@ -72,7 +72,7 @@
72
72
  display: grid;
73
73
  grid-template-columns: 1fr 1fr 41.66666667%;
74
74
  grid-template-rows: auto auto auto;
75
- gap: var(--bs-gutter-y) var(--bs-gutter-x);
75
+ gap: var(--gutter-y) var(--gutter-x);
76
76
  grid-template-areas:
77
77
  "featured featured card2"
78
78
  "featured featured card3"
@@ -11,11 +11,11 @@
11
11
 
12
12
  .carousel__inner {
13
13
 
14
- --bs-gutter-x: #{$grid-gutter-width};
14
+ --gutter-x: #{$grid-gutter-width};
15
15
  overflow: auto;
16
16
  scroll-snap-type: x mandatory;
17
- margin-right: calc(var(--bs-gutter-x) * -.5);
18
- margin-left: calc(var(--bs-gutter-x) * -.5);
17
+ margin-right: calc(var(--gutter-x) * -.5);
18
+ margin-left: calc(var(--gutter-x) * -.5);
19
19
 
20
20
  > .row {
21
21
  flex-wrap: nowrap;
@@ -25,7 +25,7 @@
25
25
  padding-top: rem(36);
26
26
  padding-bottom: rem(24);
27
27
  scroll-snap-align: start;
28
- scroll-padding: calc(var(--bs-gutter-x) * -1);
28
+ scroll-padding: calc(var(--gutter-x) * -1);
29
29
  }
30
30
  }
31
31
  }
@@ -514,7 +514,7 @@ $chart-colors: map-merge((
514
514
  }
515
515
 
516
516
  .pie foreignObject {
517
- background: var(--bs-body-bg);
517
+ background: var(--body-bg);
518
518
  border-radius: 50%;
519
519
  z-index: var(--index-focus);
520
520
  pointer-events: none;
@@ -5,6 +5,7 @@
5
5
 
6
6
  background: var(--colour-primary);
7
7
  color: white;
8
+
8
9
  @if $compatible != "true" {
9
10
 
10
11
  @include invert-colours();
@@ -160,7 +161,7 @@
160
161
  font-size: rem(18);
161
162
  text-indent: 0;
162
163
  overflow: visible;
163
- color: var(--colour-primary);
164
+ color: var(--colour-body);
164
165
  height: rem(48);
165
166
  line-height: rem(48);
166
167
  display: block;
@@ -399,7 +400,7 @@ nav + main > *:first-child {
399
400
  position: absolute;
400
401
  top: 0;
401
402
  left: 100%;
402
- background: white;
403
+ background: var(--body-bg);
403
404
  z-index: 2;
404
405
  width: 100%;
405
406
  overscroll-behavior: contain;
@@ -690,6 +691,8 @@ nav + main > *:first-child {
690
691
 
691
692
  @include reset-colours();
692
693
 
694
+ --colour-admin: var(--colour-admin-theme);
695
+
693
696
  li {
694
697
 
695
698
  padding-inline: rem(24);
@@ -5,7 +5,7 @@
5
5
  display: flex;
6
6
  flex-wrap: wrap;
7
7
  margin-bottom: 2rem;
8
- border: 1px solid var(--bs-body-bg);
8
+ border: 1px solid var(--body-bg);
9
9
  overflow: hidden;
10
10
 
11
11
  @include media-breakpoint-up(md) {
@@ -17,7 +17,7 @@
17
17
  ol {
18
18
  margin: 0;
19
19
  z-index: 1;
20
- background: var(--bs-body-bg);
20
+ background: var(--body-bg);
21
21
  counter-reset: section;
22
22
  width: 100%;
23
23
  overflow: auto;
@@ -40,7 +40,7 @@
40
40
  li {
41
41
  width: 100%;
42
42
  max-width: 100%;
43
- background: var(--bs-body-bg);
43
+ background: var(--body-bg);
44
44
  padding: 1px;
45
45
 
46
46
  @include media-breakpoint-up(sm) {
@@ -3,7 +3,7 @@
3
3
  .admin-panel {
4
4
  --panel-gutter: 1rem;
5
5
  --panel-tab-colour: #fafafa;
6
- background: var(--bs-body-bg);
6
+ background: var(--body-bg);
7
7
 
8
8
  &.bg-secondary{
9
9
 
@@ -113,7 +113,7 @@
113
113
  margin-right: calc(var(--panel-gutter) * -1);
114
114
  display: flex;
115
115
  flex-direction: column;
116
- background-color: var(--bs-body-bg);
116
+ background-color: var(--body-bg);
117
117
  border-bottom: 2px solid var(--colour-border-light);
118
118
  margin-bottom: var(--panel-gutter);
119
119
 
@@ -155,7 +155,7 @@
155
155
  .current {
156
156
 
157
157
  --is-current: 1;
158
- --panel-tab-colour: var(--bs-body-bg);;
158
+ --panel-tab-colour: var(--body-bg);;
159
159
  --panel-tab-border: var(--colour-secondary);
160
160
  pointer-events: none;
161
161
  }
@@ -25,7 +25,7 @@
25
25
  left: 50%;
26
26
  min-width: max(120%, #{rem(100)});
27
27
  transform: translate(-50%,0);
28
- background: var(--bs-body-bg);
28
+ background: var(--body-bg);
29
29
  color: inherit;
30
30
  padding: 0.5em;
31
31
  border-radius: 3px;
@@ -18,10 +18,10 @@
18
18
  }
19
19
 
20
20
  // Extra vars needed
21
- --bs-body-bg: white;
21
+ --body-bg: white;
22
22
  --colour-underline: var(--colour-primary);
23
23
  --colour-heading: var(--colour-primary);
24
- --alpha: var(--bs-bg-opacity,1);
24
+ --alpha: var(--bg-opacity,1);
25
25
  --#{$variable-prefix}gradient: #{$gradient};
26
26
  --content-max-width: #{$content-max-width};
27
27
  --colour-brand: var(--colour-primary);
@@ -37,7 +37,7 @@
37
37
  // Dark mode; functional colours get updated
38
38
  @media screen and (prefers-color-scheme: dark) {
39
39
  :root {
40
- --bs-body-bg: var(--colour-primary);
40
+ --body-bg: var(--colour-primary);
41
41
  --colour-admin: var(--colour-primary);
42
42
  @include invert-colours();
43
43
  }
@@ -77,7 +77,7 @@
77
77
 
78
78
  // Slight colour adjustments on the light background to match brand guidelines
79
79
  .bg-light[class*="bg-"]:not(.bg-primary):not(.bg-dark):not(.bg-danger):not(.prevent-invert) {
80
- --bs-body-bg: var(--colour-light);
80
+ --body-bg: var(--colour-light);
81
81
  --colour-heading: var(--colour-dark);
82
82
  color: var(--colour-dark);
83
83
  }