Skip to content

Commit 55265d4

Browse files
authored
Merge branch 'main' into 714-scrollbar-appears-briefly-when-the-text-loads-and-then-disappears
2 parents 4dadf41 + b431a74 commit 55265d4

9 files changed

Lines changed: 94 additions & 74 deletions

File tree

website/modules/asset/ui/src/scss/_buttons.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
@include responsive-font(12px, 20px);
2626
transform: scale(1);
2727
@include transition(transform, 0.3s);
28+
2829
@include breakpoint-medium {
2930
letter-spacing: -0.01em;
3031
}
@@ -73,8 +74,9 @@
7374
.sf-button {
7475
justify-content: center;
7576
align-items: center;
76-
padding: 12px;
77+
padding: 11px;
7778
margin: 0 auto 24px;
79+
border: 1px solid $gray-500;
7880
width: 100%;
7981

8082
&.sf-button_underline {
@@ -93,7 +95,6 @@
9395
&:last-child {
9496
background: none;
9597
color: $gray-500;
96-
border: 1px solid $gray-500;
9798
box-sizing: border-box;
9899
text-decoration: none;
99100
background-color: $white;

website/modules/asset/ui/src/scss/_carousel.scss

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,37 @@
3333
}
3434
}
3535
&__title {
36-
margin: 0 0 4px;
36+
margin: 0;
3737
font-weight: 700;
3838
font-size: 14px;
3939
line-height: 110%;
4040
@include breakpoint-medium {
41-
line-height: 150%;
41+
line-height: 120%;
4242
}
4343
color: $gray-500;
4444
text-decoration: none;
45-
@include truncate-lines(1);
45+
@include truncate-lines(2);
46+
}
47+
&__wrapper{
48+
display: flex;
49+
flex-direction: row;
50+
flex-wrap: wrap;
51+
margin-bottom: 4px;
52+
@include breakpoint-medium {
53+
margin-bottom: 8px;
54+
}
55+
56+
}
57+
&__container{
58+
display: flex;
59+
flex-direction: column;
60+
justify-content: center;
61+
min-height: 70px;
62+
min-width: 160px;
63+
margin-bottom: 4px;
64+
@include breakpoint-medium {
65+
margin-bottom: 13px;
66+
}
4667
}
4768
&__subtitle {
4869
font-weight: 500;
@@ -68,11 +89,8 @@
6889
@include truncate-lines(1);
6990
}
7091
&__organization {
71-
margin-bottom: 12px;
7292
@include truncate-lines(1);
73-
margin-bottom: 8px;
7493
}
75-
7694
&__content {
7795
p {
7896
font-weight: 500;

website/modules/asset/ui/src/scss/_cases.scss

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -277,44 +277,35 @@
277277
}
278278

279279
.tag-link {
280-
@include truncate-lines(1);
281-
@include font-settings(11px, 140%, $font-weight-medium);
282-
text-transform: capitalize;
283-
color: $gray-300;
284-
display: block;
280+
display: flex;
281+
align-items: center;
282+
gap: 6px;
285283
text-decoration: none;
286284
cursor: pointer;
285+
padding: 8px 8px;
286+
margin-left: -8px;
287+
margin-right: 0;
288+
color: $gray-300;
289+
@include font-settings(11px, 140%, $font-weight-medium);
290+
text-transform: capitalize;
287291
transition:
288292
background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
289293
color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
290294
transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
291-
margin: 0 -8px;
292-
padding: 8px 8px;
293-
294-
&:hover {
295-
background-color: rgba($gray-100, 0.6);
296-
color: $gray-500;
297-
transform: translateX(4px);
298-
299-
&::before {
300-
background-color: rgba($gray-200, 0.8);
301-
transform: scale(1.1);
302-
box-shadow: 0 2px 4px rgba($gray-300, 0.2);
303-
}
304-
}
305-
295+
296+
&:hover,
306297
&:focus-visible {
307298
background-color: rgba($gray-100, 0.6);
308299
color: $gray-500;
309300
transform: translateX(4px);
310-
301+
311302
&::before {
312303
background-color: rgba($gray-200, 0.8);
313304
transform: scale(1.1);
314305
box-shadow: 0 2px 4px rgba($gray-300, 0.2);
315306
}
316307
}
317-
308+
318309
&::before {
319310
content: '';
320311
display: inline-block;
@@ -329,13 +320,20 @@
329320
margin-top: -1px;
330321
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
331322
border-radius: 2px;
323+
flex-shrink: 0;
332324
}
333-
334-
span {
335-
margin-left: 5px;
336-
transition: color 0.3s ease;
325+
326+
.tag-label {
327+
@include truncate-lines(2);
337328
}
338-
}
329+
330+
.tag-count {
331+
flex-shrink: 0;
332+
white-space: nowrap;
333+
margin-left: 4px;
334+
color: $gray-300;
335+
}
336+
}
339337
}
340338

341339
.no-tags-message {
@@ -541,7 +539,7 @@
541539
line-height: 140%;
542540
text-transform: capitalize;
543541
color: $gray-300;
544-
height: 24px;
542+
min-height: 24px;
545543
@include breakpoint-medium {
546544
font-size: 11px;
547545
line-height: 110%;
@@ -559,6 +557,7 @@
559557
font-size: 16px;
560558
color: $gray-300;
561559
text-decoration: none;
560+
@include truncate-lines(1);
562561
}
563562

564563
.clear-all {

website/modules/asset/ui/src/scss/_services.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030

3131
&-expand-button {
32-
top: 20px;
32+
top: 25px;
3333
}
3434
}
3535
}
@@ -46,6 +46,11 @@
4646
opacity: 1;
4747
overflow: visible;
4848
transform: none;
49+
padding-top: 20px;
50+
51+
@include breakpoint-medium {
52+
padding-top: 0;
53+
}
4954
}
5055
}
5156
}
@@ -149,7 +154,6 @@
149154
font-size: 14px;
150155
line-height: 20px;
151156
color: $gray-300;
152-
margin: 0;
153157
display: block;
154158
max-height: 0;
155159
opacity: 0;
@@ -166,6 +170,10 @@
166170
opacity: 1;
167171
overflow: visible;
168172
transform: none;
173+
174+
p {
175+
padding-top: 20px;
176+
}
169177
}
170178
}
171179

website/modules/asset/ui/src/scss/_testimonials.scss

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,12 @@
3737
&__bio {
3838
display: block;
3939
width: calc(100% - 102px);
40-
padding: 12px 12px 0 24px;
40+
padding: 4px 12px 0 24px;
4141
@include breakpoint-medium {
4242
width: calc(100% - 160px);
43-
padding: 40px 40px 0;
43+
padding: 32px 40px 0;
4444
}
4545
a {
46-
margin-top: 8px;
4746
font-size: 11px;
4847
font-weight: 300;
4948
color: $gray-500;
@@ -57,12 +56,7 @@
5756
}
5857
&__title {
5958
@include breakpoint-medium {
60-
@include font-settings(14px, 150%, 700);
61-
}
62-
}
63-
&__organization {
64-
@include breakpoint-medium {
65-
margin-bottom: 14px;
59+
@include font-settings(14px, 120%, 700);
6660
}
6761
}
6862
&__url {
@@ -112,7 +106,7 @@
112106
margin-bottom: 10px;
113107
@include font-settings(22px, 110%, 700);
114108
}
115-
@include truncate-lines(1);
109+
@include truncate-lines(2);
116110
}
117111

118112
&__position {
@@ -162,7 +156,6 @@
162156
}
163157
&__bio {
164158
width: 100%;
165-
padding: 12px 12px 12px 24px;
166159
@include breakpoint-medium {
167160
padding: 0;
168161
}

website/modules/case-studies-page/views/index.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,21 +143,24 @@
143143
class="tag-link"
144144
href="{{ data.url | build({}, { industry: { $pull: tag.value } }) }}#filter"
145145
>
146-
{{ tag.label }} <span>[ {{ count }} ]</span>
146+
<span class="tag-label">{{ tag.label }}</span>
147+
<span class="tag-count">[ {{ count }} ]</span>
147148
</a>
148149
{% elif filterType == 'caseStudyType' %}
149150
<a
150151
class="tag-link"
151152
href="{{ data.url | build({}, { caseStudyType: { $pull: tag.value } }) }}#filter"
152153
>
153-
{{ tag.label }} <span>[ {{ count }} ]</span>
154+
<span class="tag-label">{{ tag.label }}</span>
155+
<span class="tag-count">[ {{ count }} ]</span>
154156
</a>
155157
{% elif filterType == 'stack' %}
156158
<a
157159
class="tag-link"
158160
href="{{ data.url | build({}, { stack: { $pull: tag.value } }) }}#filter"
159161
>
160-
{{ tag.label }} <span>[ {{ count }} ]</span>
162+
<span class="tag-label">{{ tag.label }}</span>
163+
<span class="tag-count">[ {{ count }} ]</span>
161164
</a>
162165
{% endif %}
163166
</li>
@@ -168,21 +171,24 @@
168171
class="tag-link"
169172
href="{{ data.url | build({}, { industry: { $addToSet: tag.value } }) }}#filter"
170173
>
171-
{{ tag.label }} <span>[ {{ count }} ]</span>
174+
<span class="tag-label">{{ tag.label }}</span>
175+
<span class="tag-count">[ {{ count }} ]</span>
172176
</a>
173177
{% elif filterType == 'caseStudyType' %}
174178
<a
175179
class="tag-link"
176180
href="{{ data.url | build({}, { caseStudyType: { $addToSet: tag.value } }) }}#filter"
177181
>
178-
{{ tag.label }} <span>[ {{ count }} ]</span>
182+
<span class="tag-label">{{ tag.label }}</span>
183+
<span class="tag-count">[ {{ count }} ]</span>
179184
</a>
180185
{% elif filterType == 'stack' %}
181186
<a
182187
class="tag-link"
183188
href="{{ data.url | build({}, { stack: { $addToSet: tag.value } }) }}#filter"
184189
>
185-
{{ tag.label }} <span>[ {{ count }} ]</span>
190+
<span class="tag-label">{{ tag.label }}</span>
191+
<span class="tag-count">[ {{ count }} ]</span>
186192
</a>
187193
{% endif %}
188194
</li>

website/modules/testimonials-carousel-widget/views/widget.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,16 @@
3232
/>
3333
</div>
3434
<div class="sf-testimonial-header__bio">
35-
<h4 class="sf-person__title">{{ card.title }}</h4>
36-
<h5 class="sf-person__position">{{ card.position }}</h5>
37-
{% if card.organization %}
38-
<h5 class="sf-person__position sf-person__organization">
39-
{{ card.organization }}
40-
</h5>
35+
<div class="sf-person__container">
36+
<div class="sf-person__wrapper">
37+
<h4 class="sf-person__title">{{ card.title }}</h4>
38+
</div>
39+
<h5 class="sf-person__position">{{ card.position }}</h5>
40+
{% if card.organization %}
41+
<h5 class="sf-person__position sf-person__organization">
42+
{{ card.organization }}
43+
</h5>
44+
</div>
4145
{% endif %} {% if card.url %}
4246
<a href="{{ card.url }}" target="_blank" class="sf-person__url"
4347
>{{ card.url }}</a
@@ -46,7 +50,7 @@ <h5 class="sf-person__position sf-person__organization">
4650
</div>
4751
</div>
4852
<div class="sf-person-wrapper">
49-
<div class="sf-person__content">{% area card, 'feedback' %}</div>
53+
<div class="sf-person__content">“{{ card.feedback }}”</div>
5054
{% if card._caseStudy %}
5155
<div class="card-swiper__case-study">
5256
<h5 class="card-swiper__case-study-title">

website/modules/testimonials/index.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
const headingToolbar = require('../../lib/headingToolbar');
2-
31
module.exports = {
42
extend: '@apostrophecms/piece-type',
53
options: {
@@ -75,15 +73,8 @@ module.exports = {
7573
},
7674
feedback: {
7775
label: 'Feedback',
78-
type: 'area',
79-
options: {
80-
max: 1,
81-
widgets: {
82-
'@apostrophecms/rich-text': {
83-
...headingToolbar,
84-
},
85-
},
86-
},
76+
type: 'string',
77+
help: 'Insert the text without quotation marks. They will be added automatically.',
8778
},
8879
},
8980
group: {

website/views/fragments/utilities.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h4 class="sf-team-card__position body-medium">{{ card.title }}</h4>
7272
</div>
7373
<div class="card-swiper-back">
7474
<div class="card-swiper__feedback">
75-
{% area card, 'feedback' %}
75+
“{{ card.feedback }}”
7676
</div>
7777
<hr>
7878
{% if card._caseStudy and card._caseStudy[0] %}

0 commit comments

Comments
 (0)