From 72f5fb9d5dcde29b7ae3b3087c2144f67c91f9b8 Mon Sep 17 00:00:00 2001 From: Olivia206 <olivia.simonet@mmibordeaux.com> Date: Fri, 16 Dec 2022 15:39:14 +0100 Subject: [PATCH] fonts config for block key figures --- assets/sass/_theme/_configuration.sass | 6 ++++++ assets/sass/_theme/_utils.sass | 2 ++ assets/sass/_theme/blocks/key_figures.sass | 6 +++--- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/assets/sass/_theme/_configuration.sass b/assets/sass/_theme/_configuration.sass index 9ec84e10..97275330 100644 --- a/assets/sass/_theme/_configuration.sass +++ b/assets/sass/_theme/_configuration.sass @@ -282,6 +282,12 @@ $block-testimonials-pagination-background: $color-border !default $block-testimonials-pagination-progress-background: $color-accent !default // Block key_figures + +// TODO : overkill ? +$block-key_figures-number-font-family: $heading-font-family !default +$block-key_figures-unit-font-weight: normal !default +$block-key_figures-number-font-weight: bold !default + $block-key_figures-font-size: px2rem(16) !default $block-key_figures-number-font-size: px2rem(32) !default diff --git a/assets/sass/_theme/_utils.sass b/assets/sass/_theme/_utils.sass index b06c3f44..bb6c82e5 100644 --- a/assets/sass/_theme/_utils.sass +++ b/assets/sass/_theme/_utils.sass @@ -224,6 +224,8 @@ color: $color-accent @include media-breakpoint-down(desktop) + a:nth-child(2) + margin-top: calc(#{$spacing0} / 2) a, p display: block @include media-breakpoint-up(desktop) diff --git a/assets/sass/_theme/blocks/key_figures.sass b/assets/sass/_theme/blocks/key_figures.sass index f011c937..9df8d359 100644 --- a/assets/sass/_theme/blocks/key_figures.sass +++ b/assets/sass/_theme/blocks/key_figures.sass @@ -17,14 +17,14 @@ margin-top: 0 dt white-space: nowrap - font-family: $heading-font-family + font-family: $block-key_figures-number-font-family font-size: $block-key_figures-font-size - font-weight: $heading-font-weight - font-weight: bold + font-weight: $block-key_figures-unit-font-weight line-height: 1 strong display: inline-block font-size: $block-key_figures-number-font-size + font-weight: $block-key_figures-number-font-weight margin-inline-end: 0.1em @include media-breakpoint-up(md) font-size: $block-key_figures-font-size-desktop -- GitLab