Skip to content

Commit 0479439

Browse files
authored
Merge branch 'main' into 754-add-favicon
2 parents 76bdeb9 + 5f7322c commit 0479439

6 files changed

Lines changed: 63 additions & 33 deletions

File tree

website/modules/asset/ui/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function initFilterModal() {
249249
window.caseStudiesFilterModal = new FilterModal({
250250
modalSelector: '#filter-modal',
251251
openBtnSelector: '.filters-cta',
252-
closeBtnSelector: '.filter-modal__close',
252+
closeBtnSelector: '.filter-modal__button',
253253
backdropSelector: '.filter-modal__backdrop',
254254
clearAllSelector: '.clear-all',
255255
selectedTagsSelector: '.selected-tags',

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

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -293,20 +293,20 @@
293293
background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
294294
color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
295295
transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
296-
296+
297297
&:hover,
298298
&:focus-visible {
299299
background-color: rgba($gray-100, 0.6);
300300
color: $gray-500;
301301
transform: translateX(4px);
302-
302+
303303
&::before {
304304
background-color: rgba($gray-200, 0.8);
305305
transform: scale(1.1);
306306
box-shadow: 0 2px 4px rgba($gray-300, 0.2);
307307
}
308308
}
309-
309+
310310
&::before {
311311
content: '';
312312
display: inline-block;
@@ -323,18 +323,18 @@
323323
border-radius: 2px;
324324
flex-shrink: 0;
325325
}
326-
326+
327327
.tag-label {
328328
@include truncate-lines(2);
329329
}
330-
330+
331331
.tag-count {
332332
flex-shrink: 0;
333333
white-space: nowrap;
334334
margin-left: 4px;
335335
color: $gray-300;
336336
}
337-
}
337+
}
338338
}
339339

340340
.no-tags-message {
@@ -1278,15 +1278,27 @@
12781278
background: #fff;
12791279
transform: translate(-50%, -50%);
12801280
z-index: 2;
1281-
padding: 24px 16px;
1281+
padding: 0 16px 24px;
12821282
max-height: 90vh;
12831283
overflow-y: auto;
12841284
box-shadow: 0 8px 32px rgba($black, 0.18);
12851285
}
12861286

1287-
&__close {
1288-
background-color: transparent;
1287+
&__button-wrapper {
1288+
z-index: 3;
1289+
position: sticky;
1290+
background: white;
1291+
top: 0;
1292+
display: flex;
1293+
align-items: center;
1294+
width: 100%;
1295+
padding: 24px 0 14px;
1296+
}
1297+
1298+
&__button {
1299+
background: transparent;
12891300
border: 0;
1301+
padding: 4px 6px;
12901302
cursor: pointer;
12911303
font-style: $font-style-normal;
12921304
text-transform: lowercase;
@@ -1295,7 +1307,7 @@
12951307
}
12961308

12971309
&__body {
1298-
margin-top: 43px;
1310+
margin-top: 26px;
12991311
}
13001312

13011313
.filter-header {

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
}
1111

1212
&__content {
13+
position: relative;
1314
width: min(1280px, 100%);
1415
margin: 0 auto;
1516
padding: 0 40px;
@@ -101,6 +102,8 @@
101102
overflow: hidden;
102103
overflow-y: auto;
103104
width: 100%;
105+
top: $mobile-header-height;
106+
right: 0;
104107

105108
@include breakpoint-medium {
106109
top: 40px;
@@ -109,10 +112,6 @@
109112
padding-right: 10px;
110113
}
111114

112-
@include breakpoint-extra-extra-large {
113-
right: 120px;
114-
}
115-
116115
&.open {
117116
transform: translateY(0);
118117
@include breakpoint-medium {

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,16 @@ <h4 class="portfolio-title">{{ article.portfolioTitle }}</h4>
273273
<div id="filter-modal" class="filter-modal">
274274
<div class="filter-modal__backdrop"></div>
275275
<div class="filter-modal__content">
276-
<button
277-
type="button"
278-
class="filter-modal__close"
279-
aria-label="Close filter modal"
280-
>
281-
<i class="back-icon"></i>
282-
back to all projects
283-
</button>
276+
<div class="filter-modal__button-wrapper">
277+
<button
278+
type="button"
279+
class="filter-modal__button"
280+
aria-label="Close filter modal"
281+
>
282+
<i class="back-icon"></i>
283+
back to all projects
284+
</button>
285+
</div>
284286
<div class="filter-modal__body"></div>
285287
</div>
286288
</div>

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,22 @@ <h5 class="sf-person__position sf-person__organization">
4242
{{ card.organization }}
4343
</h5>
4444
</div>
45-
{% endif %} {% if card.url %}
46-
<a href="{{ card.url }}" target="_blank" class="sf-person__url"
47-
>{{ card.url }}</a
45+
{% endif %} {% if card.url %} {# Remove protocol #} {% set
46+
urlWithoutProtocol = card.url %} {% if card.url.split('://') |
47+
length > 1 %} {% set urlWithoutProtocol =
48+
card.url.split('://')[1] %} {% endif %} {# Remove
49+
path/query/fragment #} {% set domainWithOrWithoutWww =
50+
urlWithoutProtocol.split('/')[0] %} {# Remove www. if present #}
51+
{% set cleanDomain = domainWithOrWithoutWww | trim |
52+
replace('www.', '') %}
53+
<a
54+
href="{{ card.url }}"
55+
target="_blank"
56+
class="sf-person__url"
57+
rel="noopener noreferrer"
4858
>
59+
{{ cleanDomain }}
60+
</a>
4961
{% endif %}
5062
</div>
5163
</div>

website/views/fragments/fragments.html

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@
1313
<span></span>
1414
<span></span>
1515
</button>
16+
<nav
17+
id="main-navigation"
18+
class="sf-nav"
19+
data-menu
20+
aria-label="Main navigation"
21+
>
22+
<ol class="sf-nav__list">
23+
{% for item in data.global.primaryNav %}
24+
<li>{% render utilities.navLink(item.menuItem) %}</li>
25+
{% endfor %}
26+
</ol>
27+
</nav>
1628
</div>
17-
<nav class="sf-nav" data-menu>
18-
<ol class="sf-nav__list">
19-
{% for item in data.global.primaryNav %}
20-
<li>{% render utilities.navLink(item.menuItem) %}</li>
21-
{% endfor %}
22-
</ol>
23-
</nav>
2429
</header>
2530
{% endfragment %} {% fragment footer() %}
2631
<footer class="sf-container">

0 commit comments

Comments
 (0)