diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-14 00:35:49 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-14 00:35:49 +0100 |
| commit | 9c150f28e4a23dfb4965fc3a4cdee16933a3def5 (patch) | |
| tree | c6d4e8ce62c57f67b5bc8500b3735cdce62c8367 /src/components/FooterNav | |
| parent | b79a46e6c2dc4b6df0a8e4c1a28ecf9178af965e (diff) | |
chore: improve footer
The "Mentions légales" link was not enough visible on small viewports
because of the back to top link. So I change the disposition to improve
that.
Diffstat (limited to 'src/components/FooterNav')
| -rw-r--r-- | src/components/FooterNav/FooterNav.module.scss | 17 | ||||
| -rw-r--r-- | src/components/FooterNav/FooterNav.tsx | 20 |
2 files changed, 19 insertions, 18 deletions
diff --git a/src/components/FooterNav/FooterNav.module.scss b/src/components/FooterNav/FooterNav.module.scss index af72df0..73ea568 100644 --- a/src/components/FooterNav/FooterNav.module.scss +++ b/src/components/FooterNav/FooterNav.module.scss @@ -1,17 +1,20 @@ +@use "@styles/abstracts/mixins" as mix; @use "@styles/abstracts/placeholders"; -.wrapper { - font-size: var(--font-size-sm); -} - .list { @extend %flex-list; + gap: var(--spacing-xs); + place-content: center; } .item { - &::before { - content: "\2022"; - margin-right: var(--spacing-xs); + @include mix.media("screen") { + @include mix.dimensions("sm") { + &::before { + content: "\2022"; + margin-right: var(--spacing-xs); + } + } } } diff --git a/src/components/FooterNav/FooterNav.tsx b/src/components/FooterNav/FooterNav.tsx index f1fd0b7..7167b69 100644 --- a/src/components/FooterNav/FooterNav.tsx +++ b/src/components/FooterNav/FooterNav.tsx @@ -28,17 +28,15 @@ const FooterNav = () => { }); return ( - <div className={styles.wrapper}> - <nav - className={styles.nav} - aria-label={intl.formatMessage({ - defaultMessage: 'Footer', - description: 'FooterNav: aria-label', - })} - > - <ul className={styles.list}>{navItems}</ul> - </nav> - </div> + <nav + className={styles.nav} + aria-label={intl.formatMessage({ + defaultMessage: 'Footer', + description: 'FooterNav: aria-label', + })} + > + <ul className={styles.list}>{navItems}</ul> + </nav> ); }; |
