Skip to content

Commit

Permalink
update about page manifesto section to use reduced padding icons (fix #…
Browse files Browse the repository at this point in the history
…15679) (#15761)

* update about page hero section to use reduced padding icons

* add viewBox for svgs and styles tweaks
  • Loading branch information
wen-2018 authored Dec 17, 2024
1 parent 6557524 commit 9b22516
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h2 class="m24-c-feature-title">{{ ftl('m24-about-together-we-can') }}</h2>
{% call picto(
base_el='li',
image=resp_img(
url='img/icons/m24-large/bell.svg',
url='img/icons/m24-reduced-padding/bell.svg',
optional_attributes={
'class': 'mzp-c-picto-image',
'loading': 'lazy'
Expand All @@ -59,7 +59,7 @@ <h2 class="m24-c-feature-title">{{ ftl('m24-about-together-we-can') }}</h2>
{% call picto(
base_el='li',
image=resp_img(
url='img/icons/m24-large/glasses.svg',
url='img/icons/m24-reduced-padding/glasses.svg',
optional_attributes={
'class': 'mzp-c-picto-image',
'loading': 'lazy',
Expand All @@ -75,7 +75,7 @@ <h2 class="m24-c-feature-title">{{ ftl('m24-about-together-we-can') }}</h2>
{% call picto(
base_el='li',
image=resp_img(
url='img/icons/m24-large/pencil.svg',
url='img/icons/m24-reduced-padding/pencil.svg',
optional_attributes={
'class': 'mzp-c-picto-image',
'loading': 'lazy'
Expand All @@ -91,7 +91,7 @@ <h2 class="m24-c-feature-title">{{ ftl('m24-about-together-we-can') }}</h2>
{% call picto(
base_el='li',
image=resp_img(
url='img/icons/m24-large/dollar.svg',
url='img/icons/m24-reduced-padding/dollar.svg',
optional_attributes={
'class': 'mzp-c-picto-image',
'loading': 'lazy'
Expand Down
11 changes: 3 additions & 8 deletions media/css/m24/feature.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@
text-wrap-style: balance;

.mzp-c-picto-image {
height: 48px;
width: 48px;
height: 30px;
width: auto;
margin: $spacer-sm 0 $spacer-md;
}

p {
Expand All @@ -73,12 +74,6 @@
font-size: 24px;
}

@media #{$mq-md} {
.mzp-c-picto-image {
margin-bottom: $spacer-sm;
}
}

@media #{$mq-lg} {
.mzp-c-picto {
max-width: grid(6);
Expand Down
3 changes: 0 additions & 3 deletions media/img/icons/m24-large/bell.svg

This file was deleted.

3 changes: 0 additions & 3 deletions media/img/icons/m24-large/dollar.svg

This file was deleted.

3 changes: 0 additions & 3 deletions media/img/icons/m24-large/glasses.svg

This file was deleted.

3 changes: 0 additions & 3 deletions media/img/icons/m24-large/pencil.svg

This file was deleted.

1 change: 1 addition & 0 deletions media/img/icons/m24-reduced-padding/bell.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions media/img/icons/m24-reduced-padding/dollar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions media/img/icons/m24-reduced-padding/glasses.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions media/img/icons/m24-reduced-padding/pencil.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9b22516

Please sign in to comment.