Skip to content

Commit 71a8a0e

Browse files
committed
Merge branch 'develop' into feat-sign-up-poc
2 parents d5a602b + a847df8 commit 71a8a0e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+538
-211
lines changed

assets/scss/theme/typography.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ $fontAssetPath: 'assets/fonts';
106106
}
107107

108108
@mixin h3 { // Card headings
109-
font-size: toRem(24);
110-
line-height: leading(30, 24);
109+
font-size: toRem(20);
110+
line-height: leading(25, 20);
111111
font-weight: 500;
112112
letter-spacing: 0.03em;
113113
@include medium {

assets/scss/theme/utilities.scss

+26-4
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@ $siam: #565D50; // siam
197197
}
198198

199199
@mixin selection-dark {
200-
::-moz-selection { background: $alto; color: $codGray; }
201-
::selection { background: $alto; color: $codGray; }
200+
::-moz-selection { background: $sageGreen; color: $codGray; }
201+
::selection { background: $sageGreen; color: $codGray; }
202202
}
203203

204204
@mixin selection-light {
205-
::-moz-selection { background: $alto; color: $codGray; }
206-
::selection { background: $alto; color: $codGray; }
205+
::-moz-selection { background: $sageGreen; color: $codGray; }
206+
::selection { background: $sageGreen; color: $codGray; }
207207
}
208208

209209
@mixin gradientText {
@@ -228,3 +228,25 @@ $siam: #565D50; // siam
228228
text-fill-color: $codGray;
229229
}
230230
}
231+
232+
@mixin gradientTextBase {
233+
background-clip: text;
234+
-moz-background-clip: text;
235+
-webkit-text-fill-color: transparent;
236+
-moz-text-fill-color: transparent;
237+
text-fill-color: transparent;
238+
// IE11 fix
239+
@include IE10and11 {
240+
background: none;
241+
}
242+
&::-moz-selection {
243+
-webkit-text-fill-color: $codGray;
244+
-moz-text-fill-color: $codGray;
245+
text-fill-color: $codGray;
246+
}
247+
&::selection {
248+
-webkit-text-fill-color: $codGray;
249+
-moz-text-fill-color: $codGray;
250+
text-fill-color: $codGray;
251+
}
252+
}

components/blocks/accordion-block.vue

+12-17
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
<div
55
v-for="(section, index) in sections"
66
:key="`accordion-section-${index}`"
7-
:class="['accordion-section', { open: active[index] } ]">
7+
:class="['accordion-section', { open: active[index] } ]"
8+
@click="toggleSection(index)">
89

910
<div class="border"></div>
1011

11-
<div
12-
class="accordion-heading"
13-
@click="toggleSection(index)">
12+
<div class="accordion-heading">
1413

1514
<component :is="getIconComponent(section.icon)" class="icon" />
1615

@@ -96,7 +95,6 @@ const getIconComponent = (icon) => {
9695
display: flex;
9796
align-items: center;
9897
padding: toRem(16) 0;
99-
cursor: pointer;
10098
@include tiny {
10199
padding: toRem(10) 0;
102100
padding-right: toRem(38);
@@ -159,6 +157,7 @@ const getIconComponent = (icon) => {
159157
position: relative;
160158
padding: 0 toRem(17);
161159
margin-bottom: toRem(13);
160+
cursor: pointer;
162161
@include shadow2;
163162
@include blurredBackdrop;
164163
&:after {
@@ -178,6 +177,14 @@ const getIconComponent = (icon) => {
178177
-webkit-mask-composite: xor;
179178
mask-composite: exclude;
180179
}
180+
&:hover {
181+
&:after {
182+
opacity: 1;
183+
}
184+
:deep(.plus-minus-icon) {
185+
filter: drop-shadow(0px 0px 3px rgba(#FFC582, 0.6));
186+
}
187+
}
181188
&.open {
182189
.accordion-content {
183190
max-height: toRem(200);
@@ -189,17 +196,5 @@ const getIconComponent = (icon) => {
189196
}
190197
}
191198
}
192-
&.open,
193-
&:hover {
194-
&:after {
195-
opacity: 1;
196-
}
197-
:deep(.plus-minus-icon) {
198-
filter: drop-shadow(0px 0px 3px rgba(#FFC582, 0.6));
199-
circle {
200-
fill: rgba($codGray, 0.8);
201-
}
202-
}
203-
}
204199
}
205200
</style>

components/blocks/text-block.vue

+70-4
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@
2525
</div>
2626

2727
<div v-if="block.ctas" class="button-row">
28-
<template v-if="block.ctas && Array.isArray(block.ctas)">
28+
<template v-if="ctaData">
2929
<ButtonCta
3030
v-for="(cta, index) in ctaData"
3131
:key="index"
3232
:tag="cta.tag"
3333
:to="cta.to"
3434
:theme="cta.theme"
35+
:target="cta.target"
36+
:variant="ctaVariant || cta.variant"
3537
:disabled="cta.disabled">
3638
{{ cta.text }}
3739
<span
@@ -71,11 +73,43 @@ export default {
7173
}
7274
},
7375
76+
data () {
77+
return {
78+
resize: false,
79+
ctaVariant: false
80+
}
81+
},
82+
7483
computed: {
7584
ctaData () {
76-
return this.block.ctas.map((object) => {
77-
return { ...object, disabled: object.to === undefined || object.to === '' }
78-
})
85+
if (this.block.ctas && Array.isArray(this.block.ctas)) {
86+
return this.block.ctas.map((object) => {
87+
return { ...object, disabled: object.to === undefined || object.to === '' }
88+
})
89+
}
90+
return false
91+
}
92+
},
93+
94+
mounted () {
95+
if (this.ctaData && this.ctaData.some(cta => cta.theme === 'primary' && cta.variant !== 'large')) {
96+
this.resizeCta()
97+
this.resize = () => { this.resizeCta() }
98+
window.addEventListener('resize', this.resize )
99+
}
100+
},
101+
102+
beforeUnmount () {
103+
if (this.resize) { window.removeEventListener('resize', this.resize) }
104+
},
105+
106+
methods: {
107+
resizeCta () {
108+
if (window.matchMedia('(max-width: 40rem)').matches) {
109+
if (!this.ctaVariant) { this.ctaVariant = 'small' }
110+
} else if (this.ctaVariant) {
111+
this.ctaVariant = false
112+
}
79113
}
80114
}
81115
}
@@ -139,6 +173,38 @@ export default {
139173
-webkit-text-fill-color: $alto;
140174
-moz-text-fill-color: $alto;
141175
text-fill-color: $alto;
176+
&::-moz-selection {
177+
-webkit-text-fill-color: $codGray;
178+
-moz-text-fill-color: $codGray;
179+
text-fill-color: $codGray;
180+
}
181+
&::selection {
182+
-webkit-text-fill-color: $codGray;
183+
-moz-text-fill-color: $codGray;
184+
text-fill-color: $codGray;
185+
}
186+
}
187+
}
188+
189+
.button-row {
190+
:deep(.button) {
191+
&.theme__primary {
192+
@include mini {
193+
height: toRem(33);
194+
}
195+
.inner-content {
196+
@include mini {
197+
height: toRem(33);
198+
padding: toRem(8) toRem(28) toRem(8) toRem(10);
199+
}
200+
}
201+
.detail-wrapper {
202+
@include mini {
203+
left: toRem(-19);
204+
width: calc(100% + toRem(19) - toRem(2));
205+
}
206+
}
207+
}
142208
}
143209
}
144210
</style>

0 commit comments

Comments
 (0)