@iamproperty/components 1.0.12 → 2.1.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/css/core.min.css +1 -0
- package/assets/css/core.min.css.map +1 -0
- package/assets/css/style.min.css +1 -0
- package/assets/css/style.min.css.map +1 -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/js/scripts.bundle.js +1313 -0
- package/assets/js/scripts.bundle.js.map +1 -0
- package/assets/js/scripts.bundle.min.js +7 -0
- package/assets/js/scripts.bundle.min.js.map +1 -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 +198 -0
- package/assets/sass/_functions/variables.scss +365 -0
- package/assets/sass/components/accordion.scss +194 -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 +134 -0
- package/assets/sass/elements/forms.scss +128 -0
- package/assets/sass/elements/links.scss +95 -0
- package/assets/sass/elements/lists.scss +21 -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 +99 -0
- package/assets/sass/foundations/brand.scss +64 -0
- package/assets/sass/foundations/circles.scss +66 -0
- package/assets/sass/foundations/fonts.scss +17 -0
- package/assets/sass/foundations/icons.scss +46 -0
- package/assets/sass/foundations/reboot.scss +110 -0
- package/assets/sass/foundations/root.scss +42 -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 +8253 -328
- 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 +8253 -328
- 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 +91 -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 -4
- 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/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
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// #region Property searchbar
|
|
2
|
+
.property-searchbar {
|
|
3
|
+
|
|
4
|
+
fieldset {
|
|
5
|
+
position: relative;
|
|
6
|
+
|
|
7
|
+
@include media-breakpoint-up(md) {
|
|
8
|
+
position: relative;
|
|
9
|
+
padding-right: 1.5rem;
|
|
10
|
+
|
|
11
|
+
&:after {
|
|
12
|
+
content: "";
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
right: 0.5rem;
|
|
16
|
+
display: block;
|
|
17
|
+
height: 100%;
|
|
18
|
+
width: 1px;
|
|
19
|
+
background-color: var(--colour-muted);
|
|
20
|
+
opacity: 0.25;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.form-control__wrapper {
|
|
26
|
+
margin-bottom: 1rem;
|
|
27
|
+
|
|
28
|
+
@include media-breakpoint-up(md) {
|
|
29
|
+
margin-bottom: 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.form-label,
|
|
34
|
+
label {
|
|
35
|
+
font-size: rem(14);
|
|
36
|
+
text-transform: uppercase;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@include media-breakpoint-up(md) {
|
|
40
|
+
|
|
41
|
+
.row .row {
|
|
42
|
+
.form-label {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.form-control,
|
|
48
|
+
.form-select {
|
|
49
|
+
padding: 0.5rem 1.5rem 0.5rem 0.5rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.form-select {
|
|
53
|
+
background-position: right 0.5rem center;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.input--locations {
|
|
58
|
+
padding-right: 5.5rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.select--miles {
|
|
62
|
+
position: absolute;
|
|
63
|
+
bottom: 0rem;
|
|
64
|
+
right: 0.5rem;
|
|
65
|
+
width: 5rem;
|
|
66
|
+
|
|
67
|
+
@include media-breakpoint-up(md) {
|
|
68
|
+
right: 1.5rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
label {
|
|
72
|
+
display: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
select {
|
|
76
|
+
background-color: transparent;
|
|
77
|
+
border-color: transparent;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@include media-breakpoint-up(md) {
|
|
82
|
+
.property-searchbar__btn {
|
|
83
|
+
align-items: flex-end;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
button {
|
|
88
|
+
margin-top: 1rem;
|
|
89
|
+
margin-bottom: 1rem;
|
|
90
|
+
|
|
91
|
+
@include media-breakpoint-up(md) {
|
|
92
|
+
margin: 0;
|
|
93
|
+
padding-left: 3.5rem;
|
|
94
|
+
padding-right: 3.5rem;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
// #endregion
|
|
99
|
+
|
|
100
|
+
// #region Heror searchbar
|
|
101
|
+
.property-searchbar--hero .property-searchbar {
|
|
102
|
+
padding: 1rem;
|
|
103
|
+
background-color: #fff;
|
|
104
|
+
width: 100%;
|
|
105
|
+
border-radius: rem(10);
|
|
106
|
+
-webkit-box-shadow: 0 2px 4px 0 rgb(0 0 0 / 24%);
|
|
107
|
+
box-shadow: 0 2px 4px 0 rgb(0 0 0 / 24%);
|
|
108
|
+
position: relative;
|
|
109
|
+
|
|
110
|
+
@include media-breakpoint-up(md) {
|
|
111
|
+
|
|
112
|
+
border-radius: rem(48);
|
|
113
|
+
padding: 1.5rem 2.5rem;
|
|
114
|
+
|
|
115
|
+
.form-label,
|
|
116
|
+
label {
|
|
117
|
+
margin-bottom: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.form-control,
|
|
121
|
+
.form-select {
|
|
122
|
+
margin-left: -0.5rem; // Add a negative margin too keep text inline but also allow for a padding left so that the focus state looks presentable
|
|
123
|
+
border: none;
|
|
124
|
+
padding-top: 0.25rem;
|
|
125
|
+
padding-bottom: 0.25rem;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.form-select {
|
|
129
|
+
background-position: right 0rem center;
|
|
130
|
+
padding-right: 1rem;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.property-searchbar__btn {
|
|
134
|
+
align-items: center;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
// #endregion
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
.snapshot {
|
|
2
|
+
|
|
3
|
+
> .row {
|
|
4
|
+
|
|
5
|
+
padding-bottom: 1rem;
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
> .row > .col {
|
|
10
|
+
|
|
11
|
+
margin-bottom: 1rem;
|
|
12
|
+
min-width: rem(150);
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@include media-breakpoint-up(sm) {
|
|
17
|
+
> .row > .col:nth-child(8) ~ .col {
|
|
18
|
+
max-width: 25%;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include media-breakpoint-up(md) {
|
|
23
|
+
> .row > .col:nth-child(8) ~ .col {
|
|
24
|
+
max-width: 12.5%;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__item {
|
|
29
|
+
|
|
30
|
+
position: relative;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
height: 100%;
|
|
35
|
+
padding: 1rem;
|
|
36
|
+
|
|
37
|
+
&:not([class*="bg-"]){
|
|
38
|
+
border: 1px solid var(--colour-border);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
a {
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 0;
|
|
46
|
+
left: 0;
|
|
47
|
+
height: 100%;
|
|
48
|
+
width: 100%;
|
|
49
|
+
opacity: 0;
|
|
50
|
+
z-index: 1;
|
|
51
|
+
|
|
52
|
+
&:hover + .snapshot__item {
|
|
53
|
+
opacity: 0.8;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__title {
|
|
58
|
+
margin-bottom: 1rem;
|
|
59
|
+
|
|
60
|
+
&:after {
|
|
61
|
+
content: ":";
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.stat {
|
|
66
|
+
text-decoration: none;
|
|
67
|
+
margin-bottom: 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.tabs__container {
|
|
2
|
+
|
|
3
|
+
.tabs__links {
|
|
4
|
+
padding-bottom: 1.5rem;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
|
|
7
|
+
.link:not(.text-decoration-none):not(.btn) {
|
|
8
|
+
font-weight: bold;
|
|
9
|
+
font-family: var(--font-heading);
|
|
10
|
+
font-size: rem(18);
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
margin: 0 0 0.5rem 0;
|
|
13
|
+
float: left;
|
|
14
|
+
clear: both;
|
|
15
|
+
|
|
16
|
+
@include media-breakpoint-up(sm) {
|
|
17
|
+
clear: none;
|
|
18
|
+
margin-bottom: 0;
|
|
19
|
+
margin-right: 2rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:before {
|
|
23
|
+
width: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:hover:before,
|
|
27
|
+
&:focus:before {
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.tab {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@for $i from 1 through 10 {
|
|
38
|
+
input:checked:nth-child(#{$i}) ~ .tabs__links .link:not(.text-decoration-none):not(.btn):nth-child(#{$i}):before {
|
|
39
|
+
width: 100%;
|
|
40
|
+
}
|
|
41
|
+
input:checked:nth-child(#{$i}) ~ .tabs .tab:nth-child(#{$i}){
|
|
42
|
+
display: block;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
.testimonial {
|
|
2
|
+
|
|
3
|
+
--testimonial-padding: 1rem;
|
|
4
|
+
--testimonial-spacing: 1rem;
|
|
5
|
+
|
|
6
|
+
@include media-breakpoint-up(md) {
|
|
7
|
+
--testimonial-padding: 4rem;
|
|
8
|
+
--testimonial-spacing: 2rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Circle
|
|
12
|
+
> div:first-child {
|
|
13
|
+
|
|
14
|
+
position: relative;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.circle {
|
|
19
|
+
color: currentColor;
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: -18rem;
|
|
22
|
+
right: -8rem;
|
|
23
|
+
font-size: 28rem;
|
|
24
|
+
border-width: 4px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__images {
|
|
28
|
+
overflow: auto;
|
|
29
|
+
scroll-snap-type: x mandatory;
|
|
30
|
+
display: flex;
|
|
31
|
+
user-select: none;
|
|
32
|
+
touch-action: pan-x;
|
|
33
|
+
height: rem(230);
|
|
34
|
+
|
|
35
|
+
@include media-breakpoint-up(sm) {
|
|
36
|
+
|
|
37
|
+
height: rem(340);
|
|
38
|
+
}
|
|
39
|
+
@include media-breakpoint-up(md) {
|
|
40
|
+
|
|
41
|
+
min-height: 100%;
|
|
42
|
+
scroll-snap-type: y mandatory;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
touch-action: pan-y;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
img {
|
|
48
|
+
|
|
49
|
+
scroll-snap-align: start;
|
|
50
|
+
user-select: none;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
flex-shrink: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.testimonial__controls {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.testimonial--multi .testimonial__controls {
|
|
61
|
+
display: block;
|
|
62
|
+
position: absolute;
|
|
63
|
+
bottom: 0;
|
|
64
|
+
left: 50%;
|
|
65
|
+
transform: translate(-50%, 50%);
|
|
66
|
+
|
|
67
|
+
@include media-breakpoint-up(md) {
|
|
68
|
+
left: auto;
|
|
69
|
+
bottom: auto;
|
|
70
|
+
right: 0;
|
|
71
|
+
top: 50%;
|
|
72
|
+
transform: rotate(90deg) translate(0,-120%);
|
|
73
|
+
transform-origin: center;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Make space for the circle
|
|
78
|
+
h2 {
|
|
79
|
+
padding: 2rem var(--testimonial-padding) 0 var(--testimonial-padding);
|
|
80
|
+
|
|
81
|
+
@include media-breakpoint-up(sm) {
|
|
82
|
+
padding-top: 3rem;
|
|
83
|
+
}
|
|
84
|
+
@include media-breakpoint-up(md) {
|
|
85
|
+
padding-top: 9rem;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&__content {
|
|
90
|
+
|
|
91
|
+
--display-none: none;
|
|
92
|
+
margin: 0 var(--testimonial-padding) var(--testimonial-spacing) var(--testimonial-padding);
|
|
93
|
+
position: relative;
|
|
94
|
+
|
|
95
|
+
@include media-breakpoint-up(md) {
|
|
96
|
+
--display-none: block;
|
|
97
|
+
|
|
98
|
+
blockquote:not(.largest) {
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Only show 1 blockquote at a time
|
|
106
|
+
@for $i from 1 through 10 {
|
|
107
|
+
|
|
108
|
+
&[data-show="#{$i}"] blockquote:not(:nth-child(#{$i})) {
|
|
109
|
+
display: var(--display-none);
|
|
110
|
+
opacity: 0;
|
|
111
|
+
user-select: none;
|
|
112
|
+
pointer-events: none;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&__after {
|
|
117
|
+
|
|
118
|
+
padding: 1rem var(--testimonial-padding) var(--testimonial-spacing) var(--testimonial-padding);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Hide scrollbar for Chrome, Safari and Opera */
|
|
123
|
+
.testimonial__images::-webkit-scrollbar {
|
|
124
|
+
display: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Hide scrollbar for IE, Edge and Firefox */
|
|
128
|
+
.testimonial__images {
|
|
129
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
130
|
+
scrollbar-width: none; /* Firefox */
|
|
131
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
.timeline {
|
|
2
|
+
|
|
3
|
+
--breakpoint:(100% - #{rem(992)});
|
|
4
|
+
--pl: clamp(0rem, var(--breakpoint) * -1000, 4rem);
|
|
5
|
+
--line-pos: clamp(1rem, var(--breakpoint) * 1000, 50%);
|
|
6
|
+
--circle-pos: 1rem;
|
|
7
|
+
--line-length: 100%;
|
|
8
|
+
--img-order: 1;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
position: relative;
|
|
12
|
+
padding-top: rem(4);
|
|
13
|
+
padding-left: var(--pl);
|
|
14
|
+
padding-bottom: 1rem;
|
|
15
|
+
width: 100%;
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
flex-wrap: wrap;
|
|
20
|
+
align-items: flex-start;
|
|
21
|
+
|
|
22
|
+
.timeline__container:not(.timeline--simple) & {
|
|
23
|
+
|
|
24
|
+
align-items: center;
|
|
25
|
+
|
|
26
|
+
@include media-breakpoint-up(md) {
|
|
27
|
+
--img-order: 0;
|
|
28
|
+
--circle-pos: 50%;
|
|
29
|
+
--line-length: 50%;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:before {
|
|
34
|
+
content: " ";
|
|
35
|
+
display: block;
|
|
36
|
+
background: black;
|
|
37
|
+
width: 4px;
|
|
38
|
+
height: 100%;
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 0;
|
|
41
|
+
left: var(--line-pos);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:after {
|
|
45
|
+
content: " ";
|
|
46
|
+
display: block;
|
|
47
|
+
background: white;
|
|
48
|
+
width: 2rem;
|
|
49
|
+
height: 2rem;
|
|
50
|
+
margin-top: -1rem;
|
|
51
|
+
position: absolute;
|
|
52
|
+
top: var(--circle-pos);
|
|
53
|
+
left: var(--line-pos);
|
|
54
|
+
margin-left: calc(-1rem + 2px);
|
|
55
|
+
border: 4px solid black;
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
> * {
|
|
60
|
+
max-width: rem((1320 / 2) - 96);
|
|
61
|
+
order: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
> img {
|
|
65
|
+
max-width: min(100%, #{rem((1320 / 2) - 96)});
|
|
66
|
+
margin-bottom: 2rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:nth-child(even) > img {
|
|
70
|
+
order: var(--img-order);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:first-child {
|
|
74
|
+
|
|
75
|
+
&:before {
|
|
76
|
+
top: var(--circle-pos);
|
|
77
|
+
height: var(--line-length);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:last-child {
|
|
82
|
+
padding-bottom: 0;
|
|
83
|
+
margin-bottom: 2rem;
|
|
84
|
+
|
|
85
|
+
&:before {
|
|
86
|
+
height: var(--line-length);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
> img {
|
|
90
|
+
margin-bottom: 0;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|