Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 127 additions & 11 deletions website/modules/asset/ui/src/scss/_cases.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
.tag-item {
display: flex;
align-items: center;
margin-bottom: 20px;
}

.tag-link {
Expand Down Expand Up @@ -148,16 +147,6 @@
}
}

.clear-all-link {
color: #e53e3e;
text-decoration: none;
font-weight: 500;

&:hover {
text-decoration: underline;
}
}

// Pagination
.pagination-container {
margin-top: 3rem;
Expand Down Expand Up @@ -188,6 +177,133 @@
}
}

// Filter info

.cs_filter-info {
display: flex;
flex-wrap: wrap;
gap: 16px;
justify-content: space-between;
margin-bottom: 32px;

@include breakpoint-medium {
flex-wrap: nowrap;
align-items: flex-start;
justify-content: flex-start;
margin-bottom: 42px;
}
}

.items-count {
font-weight: $font-weight-extra-bold;
font-size: $font-size-body-small-mobile;
line-height: 140%;
color: $gray-500;
margin: 0;
white-space: nowrap;
@include breakpoint-medium {
font-size: $font-size-h6;
line-height: 110%;
}
}

.selected-tags-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
list-style: none;
padding: 0;
margin: 0;
@include breakpoint-medium {
gap: 12px;
}
}

.selected-tag {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
background-color: $gray-100;
font-weight: $font-weight-medium;
font-size: 10px;
line-height: 140%;
text-transform: capitalize;
color: $gray-300;
height: 24px;
@include breakpoint-medium {
font-size: 11px;
line-height: 110%;
height: 28px;
gap: 12px;
}
}

.remove-tag {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
font-size: 16px;
color: $gray-300;
text-decoration: none;
}

.clear-all {
display: flex;
align-items: center;
padding: 4px 8px;
border: 1px solid $red;
background-color: $white;
font-weight: $font-weight-medium;
font-size: 11px;
line-height: 140%;
color: $gray-300;
height: 24px;
min-width: 87px;
text-transform: capitalize;
white-space: nowrap;
@include breakpoint-medium {
margin-right: 8px;
height: 28px;
padding: 6px 12px;
min-width: 99px;
}
}

.clear-all-link {
color: $gray-300;
text-decoration: none;
}

.clear-all-content {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
width: 100%;
gap: 8px;
@include breakpoint-medium {
gap: 12px;
}
}

.clear-text {
display: flex;
align-items: center;
height: 100%;
line-height: 1;
}

.remove-sign {
display: grid;
place-items: center;
font-size: 16px;
width: 16px;
height: 16px;
}

// Case Study preview card
.cs_grid {
display: grid;
Expand Down
44 changes: 41 additions & 3 deletions website/modules/case-studies-page/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,47 @@
<div class="cs_container">
<div class="cs_content">
<div class="page-main_content">{% area data.page, 'main' %}</div>
{% if data.query.tags.length >= 1 %}
<div class="cs_filter-info">
<p class="items-count">
{{ data.totalPieces }} Ite{% if data.totalPieces == 1 %}m{% else %}ms{%
endif %} found
</p>

<div class="clear-all">
<a
class="clear-all-link"
href="{{ data.url | build({ tags: null }) }}"
aria-label="Clear all tags"
>
<span class="clear-all-content">
<span class="clear-text">Clear all</span>
<span class="remove-sign"
><img src="/images/close.svg" alt="Close Icon" />
</span>
</span>
</a>
</div>
{% if data.query.tags and data.query.tags.length %}
<div class="selected-tags">
<ul class="selected-tags-list">
{% for tag in tags %} {% if tag.value in data.query.tags %}
<li class="selected-tag">
{{ tag.label }}
<a
class="remove-tag"
href="{{ data.url | build({}, { tags: { $pull: tag.value } }) }}"
aria-label="Remove tag {{ tag.label }}"
>
<img src="/images/close.svg" alt="Close Icon" />
</a>
</li>
{% endif %} {% endfor %}
</ul>
</div>
{% endif %}
</div>
{% endif %}
<form class="cs_search-form" action="" method="GET">
<input
class="cs_search-input"
Expand Down Expand Up @@ -48,9 +89,6 @@
</a>
</li>
{% endif %} {% endfor %}
<li class="tag-item clear-all">
<a class="clear-all-link" href="{{ data.page._url }}">Clear all</a>
</li>
</ul>
</div>

Expand Down
3 changes: 3 additions & 0 deletions website/public/images/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading