@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,263 @@
|
|
|
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);
|
|
9
|
+
|
|
10
|
+
--btn-bg-active: white;
|
|
11
|
+
--btn-outline-active: var(--colour-primary);
|
|
12
|
+
--btn-text-active: var(--colour-primary);
|
|
13
|
+
|
|
14
|
+
display: inline-block;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
text-align: center;
|
|
17
|
+
text-decoration: none;
|
|
18
|
+
vertical-align: middle;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
user-select: none;
|
|
21
|
+
background: var(--btn-bg);
|
|
22
|
+
border: 2px solid var(--btn-outline);
|
|
23
|
+
color: var(--btn-text);
|
|
24
|
+
font-family: var(--font-heading);
|
|
25
|
+
font-size: 1rem;
|
|
26
|
+
line-height: 1.25;
|
|
27
|
+
padding: em(12) em(28);
|
|
28
|
+
border-radius: rem(20);
|
|
29
|
+
margin-bottom: rem(24);
|
|
30
|
+
margin-right: rem(16);
|
|
31
|
+
transition: background-color .5s, color .5s;
|
|
32
|
+
height: auto;
|
|
33
|
+
|
|
34
|
+
a:hover &,
|
|
35
|
+
a:focus &,
|
|
36
|
+
&:hover,
|
|
37
|
+
&:focus {
|
|
38
|
+
outline: 0;
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
border-radius: rem(20);
|
|
41
|
+
|
|
42
|
+
background: var(--btn-bg-hover);
|
|
43
|
+
border-color: var(--btn-outline-hover);
|
|
44
|
+
color: var(--btn-text-hover);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
a:active &,
|
|
48
|
+
a.active &,
|
|
49
|
+
&:active,
|
|
50
|
+
&.active,
|
|
51
|
+
*:checked + &,
|
|
52
|
+
details[open] & {
|
|
53
|
+
--btn-colour: var(--btn-active-colour);
|
|
54
|
+
@include box-shadow($btn-active-box-shadow);
|
|
55
|
+
border-radius: rem(20);
|
|
56
|
+
transition: 0s;
|
|
57
|
+
|
|
58
|
+
background: var(--btn-bg-active);
|
|
59
|
+
border-color: var(--btn-outline-active);
|
|
60
|
+
color: var(--btn-text-active);
|
|
61
|
+
|
|
62
|
+
&:focus {
|
|
63
|
+
@include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
a:disabled &,
|
|
68
|
+
&:disabled {
|
|
69
|
+
pointer-events: none;
|
|
70
|
+
opacity: 0.5;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.btn-secondary {
|
|
74
|
+
|
|
75
|
+
--btn-bg: var(--colour-secondary);
|
|
76
|
+
--btn-outline: var(--colour-secondary);
|
|
77
|
+
--btn-outline-hover: var(--colour-secondary);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.btn-tertiary,
|
|
81
|
+
&.btn-tag:not(.btn-primary):not(.btn-secondary) {
|
|
82
|
+
|
|
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;
|
|
101
|
+
|
|
102
|
+
&.btn-tertiary,
|
|
103
|
+
&.btn-tag:not(.btn-primary):not(.btn-secondary) {
|
|
104
|
+
|
|
105
|
+
--btn-bg: transparent;
|
|
106
|
+
--btn-bg-hover: var(--colour-primary);
|
|
107
|
+
--btn-text: var(--colour-primary);
|
|
108
|
+
--btn-text-hover: #ffffff;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
> .icon {
|
|
113
|
+
display: inline-block;
|
|
114
|
+
margin-right: 0.5em;
|
|
115
|
+
margin-left: 0.5em;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@include invert-colours {
|
|
119
|
+
|
|
120
|
+
--btn-bg: #ffffff;
|
|
121
|
+
--btn-bg-hover: transparent;
|
|
122
|
+
--btn-outline: #ffffff;
|
|
123
|
+
--btn-outline-hover: #ffffff;
|
|
124
|
+
--btn-text-hover: #ffffff;
|
|
125
|
+
--btn-text: var(--colour-primary-theme);
|
|
126
|
+
|
|
127
|
+
&.btn-tertiary,
|
|
128
|
+
&.btn-tag:not(.btn-primary):not(.btn-secondary) {
|
|
129
|
+
|
|
130
|
+
--btn-bg: transparent;
|
|
131
|
+
--btn-bg-hover: #ffffff;
|
|
132
|
+
--btn-text: #ffffff;
|
|
133
|
+
--btn-text-hover: var(--colour-primary-theme);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
[class*="bg-"].bg-light:not(.prevent-invert) & {
|
|
138
|
+
|
|
139
|
+
--btn-bg: #ffffff;
|
|
140
|
+
--btn-bg-hover: transparent;
|
|
141
|
+
--btn-outline: #ffffff;
|
|
142
|
+
--btn-outline-hover: var(--colour-dark-theme);
|
|
143
|
+
--btn-text-hover: var(--colour-dark-theme);
|
|
144
|
+
--btn-text: var(--colour-dark-theme);
|
|
145
|
+
|
|
146
|
+
&.btn-tertiary,
|
|
147
|
+
&.btn-tag:not(.btn-primary):not(.btn-secondary) {
|
|
148
|
+
|
|
149
|
+
--btn-bg: transparent;
|
|
150
|
+
--btn-bg-hover: #ffffff;
|
|
151
|
+
--btn-text: var(--colour-dark-theme);
|
|
152
|
+
--btn-outline: var(--colour-dark-theme);
|
|
153
|
+
--btn-outline-hover: #ffffff;
|
|
154
|
+
--btn-text-hover: var(--colour-dark-theme);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// #region button small and tag
|
|
160
|
+
.btn-sm {
|
|
161
|
+
|
|
162
|
+
padding: em(6) em(12);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.btn-tag {
|
|
166
|
+
// btn tag also uses the styles of btn-tertiary by default, see above
|
|
167
|
+
padding: em(6) em(12);
|
|
168
|
+
margin-bottom: 0.5rem;
|
|
169
|
+
margin-right: 0.5rem;
|
|
170
|
+
}
|
|
171
|
+
// #endregion
|
|
172
|
+
|
|
173
|
+
// #region Direction button
|
|
174
|
+
.btn-next,
|
|
175
|
+
.btn-prev {
|
|
176
|
+
--marker-bg: var(--colour-secondary);
|
|
177
|
+
text-indent: 100%;
|
|
178
|
+
white-space: nowrap;
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
background: var(--marker-bg);
|
|
181
|
+
border-radius: 100%;
|
|
182
|
+
width: rem(36);
|
|
183
|
+
height: rem(36);
|
|
184
|
+
|
|
185
|
+
@include media-breakpoint-up(md) {
|
|
186
|
+
|
|
187
|
+
width: rem(48);
|
|
188
|
+
height: rem(48);
|
|
189
|
+
}
|
|
190
|
+
text-indent: -300rem;
|
|
191
|
+
overflow: hidden;
|
|
192
|
+
border: none;
|
|
193
|
+
position: relative;
|
|
194
|
+
margin: 0 rem(8);
|
|
195
|
+
padding: 0;
|
|
196
|
+
|
|
197
|
+
&:disabled {
|
|
198
|
+
opacity: 0.8;
|
|
199
|
+
pointer-events: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&:after {
|
|
203
|
+
content: "";
|
|
204
|
+
position: absolute;
|
|
205
|
+
right: 0;
|
|
206
|
+
top: 0;
|
|
207
|
+
height: 100%;
|
|
208
|
+
width: 100%;
|
|
209
|
+
background: currentColor;
|
|
210
|
+
mask-image: escape-svg($accordion-button-icon);
|
|
211
|
+
mask-size: 50%;
|
|
212
|
+
mask-repeat: no-repeat;
|
|
213
|
+
mask-position: 50% 60%;
|
|
214
|
+
-webkit-mask-image: escape-svg($accordion-button-icon);
|
|
215
|
+
-webkit-mask-size: 50%;
|
|
216
|
+
-webkit-mask-repeat: no-repeat;
|
|
217
|
+
-webkit-mask-position: 55% 50%;
|
|
218
|
+
transform: rotate(0deg);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&:hover,
|
|
222
|
+
&:focus {
|
|
223
|
+
|
|
224
|
+
background: var(--colour-warning);
|
|
225
|
+
color: var(--colour-hover);
|
|
226
|
+
border-radius: 100%;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&:active {
|
|
230
|
+
border-radius: 100%;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.btn-prev {
|
|
235
|
+
&:after {
|
|
236
|
+
|
|
237
|
+
transform: rotate(180deg);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
// #endregion
|
|
241
|
+
|
|
242
|
+
// #region button group
|
|
243
|
+
.btn-group {
|
|
244
|
+
|
|
245
|
+
flex-wrap: wrap;
|
|
246
|
+
|
|
247
|
+
> .btn {
|
|
248
|
+
margin-right: 0;
|
|
249
|
+
padding: 0.75rem;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
> .btn:last-of-type {
|
|
253
|
+
|
|
254
|
+
border-top-right-radius: rem(20)!important;
|
|
255
|
+
border-bottom-right-radius: rem(20)!important;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
> *:not(.btn) {
|
|
259
|
+
width: 100%;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// #endregion
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
// #region container
|
|
2
|
+
.container {
|
|
3
|
+
|
|
4
|
+
margin-left: auto;
|
|
5
|
+
margin-right: auto;
|
|
6
|
+
padding: var(--container-padding-top) var(--container-padding-x) var(--container-padding-bottom) var(--container-padding-x);
|
|
7
|
+
width: 100%;
|
|
8
|
+
|
|
9
|
+
&:not(.container-fluid) {
|
|
10
|
+
max-width: rem(1440);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.container {
|
|
14
|
+
padding-left: 0;
|
|
15
|
+
padding-right: 0;
|
|
16
|
+
padding-bottom: 0;
|
|
17
|
+
padding-top: 0;
|
|
18
|
+
content-visiblity: unset!important; /* We only want to delay the painting of top level containers */
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&[class*="bg-"] {
|
|
22
|
+
--container-padding-top: #{rem(48)};
|
|
23
|
+
--container-padding-bottom: #{rem(32)};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&[class*="bg-"] + .container:not([class*="bg-"]) {
|
|
27
|
+
|
|
28
|
+
--container-padding-top: #{rem(32)};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
// Fix the clearing for containers
|
|
33
|
+
&:before {
|
|
34
|
+
display: table;
|
|
35
|
+
clear: both;
|
|
36
|
+
content: "";
|
|
37
|
+
}
|
|
38
|
+
&:after {
|
|
39
|
+
display: table;
|
|
40
|
+
clear: both;
|
|
41
|
+
content: "";
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
// #endregion
|
|
45
|
+
|
|
46
|
+
// #region Circles
|
|
47
|
+
.container {
|
|
48
|
+
position: relative;
|
|
49
|
+
z-index: 1;
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
&[class*="circle-pattern"] {
|
|
53
|
+
//overflow: hidden;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
> .circle {
|
|
57
|
+
|
|
58
|
+
position: absolute;
|
|
59
|
+
z-index: -1;
|
|
60
|
+
border-width: 3px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Default pattern
|
|
64
|
+
&:not([class*="circle-pattern-"]) > .circle {
|
|
65
|
+
font-size: rem(300);
|
|
66
|
+
top: rem(-75);
|
|
67
|
+
left: rem(-200);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:not([class*="circle-pattern-"]) > .circle ~ .circle {
|
|
71
|
+
|
|
72
|
+
font-size: rem(350);
|
|
73
|
+
top: auto;
|
|
74
|
+
left: auto;
|
|
75
|
+
right: rem(-100);
|
|
76
|
+
bottom: rem(-200);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@include media-breakpoint-up(sm) {
|
|
80
|
+
&:not([class*="circle-pattern-"]) > .circle {
|
|
81
|
+
font-size: rem(450);
|
|
82
|
+
top: rem(-50);
|
|
83
|
+
left: rem(-175);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:not([class*="circle-pattern-"]) > .circle ~ .circle {
|
|
87
|
+
|
|
88
|
+
font-size: rem(500);
|
|
89
|
+
right: rem(-150);
|
|
90
|
+
bottom: rem(-150);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Pattern 2
|
|
95
|
+
&.circle-pattern-2 > .circle {
|
|
96
|
+
font-size: rem(300);
|
|
97
|
+
top: rem(-75);
|
|
98
|
+
right: rem(-200);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.circle-pattern-2 > .circle ~ .circle {
|
|
102
|
+
font-size: rem(450);
|
|
103
|
+
top: auto;
|
|
104
|
+
bottom: rem(-50);
|
|
105
|
+
left: rem(-175);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@include media-breakpoint-up(sm) {
|
|
109
|
+
&.circle-pattern-2 > .circle {
|
|
110
|
+
font-size: rem(450);
|
|
111
|
+
top: rem(-75);
|
|
112
|
+
right: rem(-200);
|
|
113
|
+
}
|
|
114
|
+
&.circle-pattern-2 > .circle ~ .circle {
|
|
115
|
+
font-size: rem(500);
|
|
116
|
+
bottom: rem(-75);
|
|
117
|
+
left: rem(-200);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Desktop container adjustment
|
|
122
|
+
@include media-breakpoint-up(md) {
|
|
123
|
+
> .circle {
|
|
124
|
+
margin-left: rem(60);
|
|
125
|
+
margin-right: rem(60);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
// #endregion
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
// #region Curve
|
|
133
|
+
@mixin curve($start: 10, $point-1: 20, $point-2: 95, $end: 70, $padding-top:16)
|
|
134
|
+
{
|
|
135
|
+
// Constant rules
|
|
136
|
+
position: relative;
|
|
137
|
+
|
|
138
|
+
// Let vars
|
|
139
|
+
$height: 100;
|
|
140
|
+
$width: 576;
|
|
141
|
+
$middle-x: $width/2;
|
|
142
|
+
$edge: 2;
|
|
143
|
+
$modify: 1;
|
|
144
|
+
|
|
145
|
+
// Rules that will change
|
|
146
|
+
width: #{$width}px;
|
|
147
|
+
padding-top: calc(#{($height*$modify)}px + #{$padding-top}px)!important;
|
|
148
|
+
margin-top: -#{($height*$modify)}px;
|
|
149
|
+
margin-left: calc(-#{($width/2)}px + 50vw);
|
|
150
|
+
clip-path: path('#{'M0,'+($start*$modify)+' L'+($edge)+','+($start*$modify)+' C'+$middle-x+','+($point-1*$modify)+' '+$middle-x+','+($point-2*$modify)+' '+($width - $edge)+','+($end*$modify)+' L'+($width + $edge)+','+($end * $modify)+' L'+$width+',5000 L0,5000 Z'}');
|
|
151
|
+
|
|
152
|
+
@include media-breakpoint-up(sm) {
|
|
153
|
+
|
|
154
|
+
// Tablet vars
|
|
155
|
+
$width: 992;
|
|
156
|
+
$middle-x: $width/2;
|
|
157
|
+
$modify: 1.5;
|
|
158
|
+
|
|
159
|
+
// Tablet CSS rules
|
|
160
|
+
width: #{$width}px;
|
|
161
|
+
padding-top: calc(#{($height*$modify)}px + #{$padding-top}px)!important;
|
|
162
|
+
margin-top: -#{($height*$modify)}px;
|
|
163
|
+
margin-left: calc(-#{($width/2)}px + 50vw);
|
|
164
|
+
clip-path: path('#{'M0,'+($start*$modify)+' L'+($edge)+','+($start*$modify)+' C'+$middle-x+','+($point-1*$modify)+' '+$middle-x+','+($point-2*$modify)+' '+($width - $edge)+','+($end*$modify)+' L'+($width + $edge)+','+($end*$modify)+' L'+$width+',5000 L0,5000 Z'}');
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@include media-breakpoint-up(md) {
|
|
168
|
+
|
|
169
|
+
// Desktop vars
|
|
170
|
+
$width: 1440;
|
|
171
|
+
$middle-x: $width/2;
|
|
172
|
+
$modify: 2;
|
|
173
|
+
|
|
174
|
+
// Desktop CSS rules
|
|
175
|
+
width: #{$width}px;
|
|
176
|
+
max-width: #{$width}px!important;
|
|
177
|
+
padding-top: calc(#{($height*$modify)}px + #{$padding-top}px)!important;
|
|
178
|
+
margin-top: -#{($height*$modify)}px;
|
|
179
|
+
margin-left: calc(-#{($width/2)}px + 50vw);
|
|
180
|
+
clip-path: path('#{'M0,'+($start*$modify)+' L'+($edge)+','+($start*$modify)+' C'+$middle-x+','+($point-1*$modify)+' '+$middle-x+','+($point-2*$modify)+' '+($width - $edge)+','+($end*$modify)+' L'+($width + $edge)+','+($end*$modify)+' L'+$width+',5000 L0,5000 Z'}');
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.container--curve-below {
|
|
185
|
+
|
|
186
|
+
padding-bottom: calc(100px + #{rem(16)});
|
|
187
|
+
|
|
188
|
+
@include media-breakpoint-up(sm) {
|
|
189
|
+
padding-bottom: calc(150px + #{rem(16)});
|
|
190
|
+
}
|
|
191
|
+
@include media-breakpoint-up(md) {
|
|
192
|
+
padding-bottom: calc(200px + #{rem(16)});
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
.container--curve {
|
|
198
|
+
|
|
199
|
+
@include curve();
|
|
200
|
+
}
|
|
201
|
+
.container--curve--right {
|
|
202
|
+
|
|
203
|
+
@include curve(70, 95, 20, 10);
|
|
204
|
+
}
|
|
205
|
+
.container--curve--up {
|
|
206
|
+
|
|
207
|
+
@include curve(90,0,0,90,-16);
|
|
208
|
+
}
|
|
209
|
+
.container--curve--down {
|
|
210
|
+
|
|
211
|
+
@include curve(0,90,90,0,16);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
[class*="container--curve"] {
|
|
215
|
+
|
|
216
|
+
position: relative;
|
|
217
|
+
|
|
218
|
+
@media (min-width: #{em(1440)}) {
|
|
219
|
+
margin-left: auto;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
// #endregion
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
.form-control__wrapper {
|
|
2
|
+
margin-bottom: 1.5rem;
|
|
3
|
+
max-width: $content-max-width;
|
|
4
|
+
|
|
5
|
+
label {
|
|
6
|
+
display: block;
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
.form-control-inline {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
|
|
16
|
+
label {
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
padding-right: 1rem;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.form-control-color {
|
|
23
|
+
width: $form-color-width;
|
|
24
|
+
height: $form-color-width; // Override fixed browser height
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
padding: 0;
|
|
27
|
+
|
|
28
|
+
.input-group > & {
|
|
29
|
+
|
|
30
|
+
flex: 0 0 3rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&::-moz-color-swatch {
|
|
34
|
+
height: $form-color-width;
|
|
35
|
+
border-radius: 0;
|
|
36
|
+
border: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&::-webkit-color-swatch {
|
|
40
|
+
height: $form-color-width;
|
|
41
|
+
border-radius: 0;
|
|
42
|
+
border: none;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
.input-group {
|
|
48
|
+
.form-range {
|
|
49
|
+
flex: 1 1 0;
|
|
50
|
+
height: auto;
|
|
51
|
+
margin-right: 1rem;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// #region checkbox
|
|
56
|
+
.form-check {
|
|
57
|
+
|
|
58
|
+
input,
|
|
59
|
+
label {
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
input:not([disabled]) + label:hover,
|
|
64
|
+
input:not([disabled]):hover + label,
|
|
65
|
+
input:not([disabled]):focus + label {
|
|
66
|
+
|
|
67
|
+
color: var(--colour-hover);
|
|
68
|
+
border-color: var(--colour-hover);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
.form-check + .form-check {
|
|
72
|
+
margin-top: -0.5rem;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.form-check-label {
|
|
76
|
+
float: left;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.form-check-label + .form-check-input {
|
|
80
|
+
|
|
81
|
+
margin-left: 1rem;
|
|
82
|
+
margin-right: 0.5rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// #endregion
|
|
86
|
+
|
|
87
|
+
// #region Conditional reveal
|
|
88
|
+
.conditional {
|
|
89
|
+
display: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
input:checked + .conditional,
|
|
93
|
+
input:checked + label + .conditional {
|
|
94
|
+
display: block;
|
|
95
|
+
clear: both;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
input:not([class*="conditional-input-"]):nth-of-type(1):checked ~ .conditional-1,
|
|
99
|
+
input:not([class*="conditional-input-"]):nth-of-type(2):checked ~ .conditional-2,
|
|
100
|
+
input:not([class*="conditional-input-"]):nth-of-type(3):checked ~ .conditional-3,
|
|
101
|
+
input:not([class*="conditional-input-"]):nth-of-type(4):checked ~ .conditional-4,
|
|
102
|
+
input:not([class*="conditional-input-"]):nth-of-type(5):checked ~ .conditional-5,
|
|
103
|
+
input.conditional-input-1:checked ~ .conditional-1,
|
|
104
|
+
input.conditional-input-2:checked ~ .conditional-2,
|
|
105
|
+
input.conditional-input-3:checked ~ .conditional-3,
|
|
106
|
+
input.conditional-input-4:checked ~ .conditional-4,
|
|
107
|
+
input.conditional-input-5:checked ~ .conditional-5 {
|
|
108
|
+
display: block;
|
|
109
|
+
clear: both;
|
|
110
|
+
}
|
|
111
|
+
// #endregion
|
|
112
|
+
|
|
113
|
+
// #region Multi-select
|
|
114
|
+
select[multiple] {
|
|
115
|
+
border-radius: 0.35rem;
|
|
116
|
+
}
|
|
117
|
+
select[multiple]::-webkit-scrollbar {
|
|
118
|
+
width: 0.7rem; // manage scrollbar width here
|
|
119
|
+
}
|
|
120
|
+
select[multiple]::-webkit-scrollbar * {
|
|
121
|
+
background-color:transparent; // manage scrollbar background color here
|
|
122
|
+
}
|
|
123
|
+
select[multiple]::-webkit-scrollbar-thumb {
|
|
124
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
125
|
+
//background-color:#000000!important; // manage scrollbar thumb background color here
|
|
126
|
+
border-radius: 0.35rem;
|
|
127
|
+
}
|
|
128
|
+
// #endregion
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
a,
|
|
2
|
+
.link {
|
|
3
|
+
@include var (color, --colour-link);
|
|
4
|
+
display: inline-block;
|
|
5
|
+
min-height: em(28);
|
|
6
|
+
margin-bottom: rem(16);
|
|
7
|
+
position: relative;
|
|
8
|
+
text-decoration: none;
|
|
9
|
+
|
|
10
|
+
&:not(.text-decoration-none):not(.btn):before {
|
|
11
|
+
content: '';
|
|
12
|
+
position: absolute;
|
|
13
|
+
left: 50%;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 3px;
|
|
17
|
+
@include var(background-color,--colour-underline);
|
|
18
|
+
-webkit-transform: translateX(-50%);
|
|
19
|
+
-ms-transform: translateX(-50%);
|
|
20
|
+
transform: translateX(-50%);
|
|
21
|
+
-webkit-transition: .3s ease-in;
|
|
22
|
+
transition: .3s ease-in;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:not(.text-decoration-none):not(.btn):hover:before,
|
|
26
|
+
.card:hover &:before,
|
|
27
|
+
details[open] &:not(.text-decoration-none):not(.btn):before {
|
|
28
|
+
width: 0%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:hover,
|
|
32
|
+
&:focus,
|
|
33
|
+
.card:hover &,
|
|
34
|
+
.card:focus & {
|
|
35
|
+
@include var (color, --colour-hover);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:active,
|
|
39
|
+
&.active,
|
|
40
|
+
.card:active & {
|
|
41
|
+
@include var (color, --colour-active);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&[target="_blank"]:after {
|
|
45
|
+
|
|
46
|
+
content: "";
|
|
47
|
+
height: 1em;
|
|
48
|
+
width: 1em;
|
|
49
|
+
margin-left: 0.5em;
|
|
50
|
+
margin-right: -0.2em;
|
|
51
|
+
display: inline-block;
|
|
52
|
+
vertical-align: baseline;
|
|
53
|
+
margin-bottom: -0.15em;
|
|
54
|
+
|
|
55
|
+
mask-image: var(--icon-blank);
|
|
56
|
+
mask-size: 100% 100%;
|
|
57
|
+
mask-repeat: no-repeat;
|
|
58
|
+
mask-position: 0 0;
|
|
59
|
+
|
|
60
|
+
-webkit-mask-image: var(--icon-blank);
|
|
61
|
+
-webkit-mask-size: 100% 100%;
|
|
62
|
+
-webkit-mask-repeat: no-repeat;
|
|
63
|
+
-webkit-mask-position: 0 0;
|
|
64
|
+
background-color: currentColor;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
@include inline-text(){
|
|
69
|
+
a {
|
|
70
|
+
min-height: none;
|
|
71
|
+
display: inline;
|
|
72
|
+
margin-bottom: 0;
|
|
73
|
+
text-decoration: underline;
|
|
74
|
+
text-underline-offset: 0.2em;
|
|
75
|
+
text-decoration-thickness: 2px;
|
|
76
|
+
text-decoration-color: var(--colour-underline);
|
|
77
|
+
|
|
78
|
+
&:hover,
|
|
79
|
+
&:focus,
|
|
80
|
+
&:active{
|
|
81
|
+
|
|
82
|
+
text-decoration: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:before {
|
|
86
|
+
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&[target="_blank"]:after {
|
|
91
|
+
margin-left: 0.25em;
|
|
92
|
+
margin-right: 0.2em;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|