From 0b2878a2900e055d777b8a6e44b68b225f0671a8 Mon Sep 17 00:00:00 2001 From: ouidade Date: Tue, 21 Dec 2021 12:31:45 +0100 Subject: [PATCH] header menu propre --- web/themes/custom/eql/css-compiled/styles.css | 17 +++++++++++------ .../custom/eql/scss/partials/_header.scss | 17 +++++++++++++---- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/web/themes/custom/eql/css-compiled/styles.css b/web/themes/custom/eql/css-compiled/styles.css index 5215ca7..537e569 100644 --- a/web/themes/custom/eql/css-compiled/styles.css +++ b/web/themes/custom/eql/css-compiled/styles.css @@ -1988,21 +1988,26 @@ a { list-style: none; display: flex; flex-direction: row; - width: 100%; } + justify-content: space-around; + width: 100%; + padding: 0.5rem; } #header-top .region-header-top-left ul .is-active { color: #009ee3; } #header-top .region-header-top-left ul ul { display: flex; flex-direction: column; - padding: 1rem; } + padding: 0.5rem; } #header-top .region-header-top-left ul ul .is-active { color: #009ee3; } #header-top .region-header-top-left ul li { display: flex; flex-direction: column; - padding: 1rem; } + padding: 0.5rem; + align-items: center; + min-width: 260px; } #header-top .region-header-top-left ul li a { - color: black; } + color: black; + text-align: center; } #header-top .region-header-top-left ul li .is-active { color: #009ee3; } #header-top .region-header-top-left ul li :hover { @@ -2010,9 +2015,9 @@ a { #header-top .region-header-top-left ul ul { display: none; } #header-top .region-header-top-left :hover ul ul { - display: block; + display: flex; background-color: white; - padding: 0.2rem; } + justify-content: space-around; } #header-top .region-header-top-left :hover ul ul .is-active { color: #009ee3; } #header-top .region-header-top-left :hover ul ul a { diff --git a/web/themes/custom/eql/scss/partials/_header.scss b/web/themes/custom/eql/scss/partials/_header.scss index aa02158..f4e1711 100644 --- a/web/themes/custom/eql/scss/partials/_header.scss +++ b/web/themes/custom/eql/scss/partials/_header.scss @@ -78,14 +78,18 @@ list-style: none; display: flex; flex-direction: row; + justify-content: space-around; width: 100%; + padding: 0.5rem; + .is-active{ color:$blue-light; } ul{ display: flex; flex-direction: column; - padding: 1rem; + // padding: 1rem; + padding: 0.5rem; .is-active{ color:$blue-light; } @@ -93,9 +97,13 @@ li{ display: flex; flex-direction: column; - padding: 1rem; + padding: 0.5rem; + align-items: center; + min-width: 260px; a { color: $black; + text-align: center; + } .is-active{ color:$blue-light; @@ -112,9 +120,10 @@ :hover ul{ ul{ - display: block; + display: flex; background-color: $white; - padding: 0.2rem; + justify-content: space-around; + // padding: 0.5rem; .is-active{ color:$blue-light; }