From 7fb5244d1c930955480d319ec99f2626946ea51c Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 6 Oct 2023 11:15:21 +0200 Subject: [PATCH] highlighted icons on mapnav active item #2244 --- src/assets/common.scss | 5 +++-- src/assets/main.scss | 10 +++++++++- src/components/MapConcernements.vue | 23 ++++++++++++----------- 3 files changed, 24 insertions(+), 14 deletions(-) diff --git a/src/assets/common.scss b/src/assets/common.scss index 9e792b4..57fe787 100644 --- a/src/assets/common.scss +++ b/src/assets/common.scss @@ -11,12 +11,13 @@ $pad_btn: 0.5em; span.icon{ background-repeat: no-repeat; - background-position: middle center; - background-size: contain; + background-position: center; + background-size: 85%; display: inline-block; vertical-align:bottom; width: 1.5em; height:1.5em; + border-radius: 0.75em; &.terraindevie{ background-image: url('./icons/terraindevie.svg'); } diff --git a/src/assets/main.scss b/src/assets/main.scss index 80fd726..1893e92 100644 --- a/src/assets/main.scss +++ b/src/assets/main.scss @@ -100,7 +100,14 @@ body{ a{ @include btn(); display: block; - line-height: 2.1; + // line-height: 2.1; + line-height: 1.7; + &.active{ + // color: red; + span.icon{ + background-color: rgba(255, 255, 255, 0.6); + } + } &.disabled{ pointer-events: none; opacity: 0.4; @@ -123,6 +130,7 @@ body{ } } } + $cartouch_width : 450px; #content{ display: flex; diff --git a/src/components/MapConcernements.vue b/src/components/MapConcernements.vue index f9569dc..f87f7d8 100644 --- a/src/components/MapConcernements.vue +++ b/src/components/MapConcernements.vue @@ -1308,48 +1308,49 @@ export default {
  • - terrain de vie + terrain de vie
  • - proximité + proximité
  • - superposition + superposition
  • - puissance d'agir + puissance d'agir
  • - action + action
  • - cercle politique + cercle politique