sticky anchor menu page static

This commit is contained in:
2022-01-28 10:16:39 +01:00
parent c643774767
commit a747887595
5 changed files with 262 additions and 283 deletions
+178 -179
View File
@@ -181,191 +181,191 @@ a {
/* /*
@import "pages/partials/header_footer"; @import "pages/partials/header_footer";
@import "pages/home";*/ @import "pages/home";*/
.path-node.page-node-type-static .layout-container .layout-content .layout__region--top { .path-node.page-node-type-static .layout-container {
padding-bottom: 3rem; overflow: unset; }
height: 30vh; } .path-node.page-node-type-static .layout-container .layout-content .layout__region--top {
@media (max-width: 810px) { padding-bottom: 3rem;
.path-node.page-node-type-static .layout-container .layout-content .layout__region--top { height: 30vh; }
padding-bottom: 0rem; } }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--top .block-entity-fieldnodetitle {
width: fit-content;
margin-left: 11%;
margin-top: 15vh; }
@media (max-width: 810px) { @media (max-width: 810px) {
.path-node.page-node-type-static .layout-container .layout-content .layout__region--top .block-entity-fieldnodetitle { .path-node.page-node-type-static .layout-container .layout-content .layout__region--top {
margin-left: 8%; padding-bottom: 0rem; } }
margin-right: 5%; } } .path-node.page-node-type-static .layout-container .layout-content .layout__region--top .block-entity-fieldnodetitle {
.path-node.page-node-type-static .layout-container .layout-content .layout__region--top .block-entity-fieldnodetitle .field--name-title { width: fit-content;
font-family: 'Source Code Pro'; margin-left: 11%;
font-size: 2rem; margin-top: 15vh; }
font-weight: 800; @media (max-width: 810px) {
text-transform: uppercase; } .path-node.page-node-type-static .layout-container .layout-content .layout__region--top .block-entity-fieldnodetitle {
margin-left: 8%;
.path-node.page-node-type-static .layout-container .layout-content .layout__region--first { margin-right: 5%; } }
position: relative; } .path-node.page-node-type-static .layout-container .layout-content .layout__region--top .block-entity-fieldnodetitle .field--name-title {
.path-node.page-node-type-static .layout-container .layout-content .layout__region--first .block-region-first { font-family: 'Source Code Pro';
display: flex; font-size: 2rem;
justify-content: flex-end; font-weight: 800;
position: sticky; text-transform: uppercase; }
top: 7rem; } .path-node.page-node-type-static .layout-container .layout-content .layout__region--first {
@media (max-width: 810px) { position: relative; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--first .block-region-first { .path-node.page-node-type-static .layout-container .layout-content .layout__region--first .block-region-first {
display: none; } }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--first .block-region-first .block-entity-fieldnodefield-textes {
display: flex; display: flex;
width: 50%; justify-content: flex-end;
background-color: white; position: -webkit-sticky;
padding-right: 2rem; } position: sticky;
.path-node.page-node-type-static .layout-container .layout-content .layout__region--first .block-region-first .block-entity-fieldnodefield-textes .field--name-field-titre { top: 9rem; }
@media (max-width: 810px) {
.path-node.page-node-type-static .layout-container .layout-content .layout__region--first .block-region-first {
display: none; } }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--first .block-region-first .block-entity-fieldnodefield-textes {
display: flex; display: flex;
font-size: 1rem; width: 50%;
font-weight: 1000; background-color: white;
color: #09398b; padding-right: 2rem; }
border-bottom: 1px solid #009ee3; .path-node.page-node-type-static .layout-container .layout-content .layout__region--first .block-region-first .block-entity-fieldnodefield-textes .field--name-field-titre {
padding-bottom: 0.8rem; display: flex;
padding-right: 1rem; font-size: 1rem;
margin-top: 1rem; } font-weight: 1000;
.path-node.page-node-type-static .layout-container .layout-content .layout__region--first .block-region-first .block-entity-fieldnodefield-textes .field--name-field-titre:hover { color: #09398b;
text-decoration: underline; } border-bottom: 1px solid #009ee3;
padding-bottom: 0.8rem;
@media (max-width: 810px) { padding-right: 1rem;
.path-node.page-node-type-static .layout-container .layout-content .layout__region--second { margin-top: 1rem;
flex: 0 1 80%; scroll-margin-top: 7em; }
margin: auto; } } .path-node.page-node-type-static .layout-container .layout-content .layout__region--first .block-region-first .block-entity-fieldnodefield-textes .field--name-field-titre:hover {
text-decoration: underline; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes {
margin-top: 1rem;
background-color: white; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes .field--name-field-titre {
font-size: 1.5rem;
font-weight: 1000;
font-family: 'Source Code Pro', monospace;
color: #09398b;
text-transform: uppercase;
margin-top: 2rem;
margin-bottom: 0.8rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes h4 {
text-transform: none !important; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes h4 img {
width: 100%;
height: auto; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes .field--type-text-long {
padding-right: 2rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes p {
margin-top: 0; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third {
margin-top: 1rem;
display: flex;
flex-direction: column;
width: 70%; }
@media (max-width: 810px) { @media (max-width: 810px) {
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third { .path-node.page-node-type-static .layout-container .layout-content .layout__region--second {
flex: 0 1 80%;
margin: auto; } } margin: auto; } }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-fichiers { .path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes {
height: fit-content; margin-top: 1rem;
border: 2px solid #009ee3;
background-color: white; } background-color: white; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers { .path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes .field--name-field-titre {
min-height: 4rem; font-size: 1.5rem;
background: white; font-weight: 1000;
color: #009ee3; font-family: 'Source Code Pro', monospace;
padding-left: 0.8rem; color: #09398b;
padding-top: 1rem; text-transform: uppercase;
margin-bottom: 1rem; } margin-top: 2rem;
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers span:nth-of-type(2) { margin-bottom: 0.8rem; }
display: none; } .path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes h4 {
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers .file--mime-application-pdf { text-transform: none !important; }
height: inherit; .path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes h4 img {
margin: auto; } width: 100%;
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers .file--mime-application-pdf ::before { height: auto; }
content: url("../images/pictos/noun_Download_file_307900.svg"); .path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes .field--type-text-long {
padding-right: 2rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes p {
margin-top: 0; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third {
margin-top: 1rem;
display: flex;
flex-direction: column;
width: 70%; }
@media (max-width: 810px) {
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third {
margin: auto; } }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-fichiers {
height: fit-content;
border: 2px solid #009ee3;
background-color: white; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers {
min-height: 4rem;
background: white;
color: #009ee3;
padding-left: 0.8rem;
padding-top: 1rem;
margin-bottom: 1rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers span:nth-of-type(2) {
display: none; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers .file--mime-application-pdf {
height: inherit;
margin: auto; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers .file--mime-application-pdf ::before {
content: url("../images/pictos/noun_Download_file_307900.svg");
min-width: 40px;
height: auto;
padding-right: 0.5rem;
display: inline-flex;
align-items: center; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers .file--mime-application-pdf a {
hyphens: auto;
display: inline-flex;
align-items: center;
color: #009ee3;
font-weight: 800; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens .field__item {
margin: auto;
height: fit-content;
border: 2px solid #009ee3;
min-height: 4rem;
background: white;
color: #009ee3;
padding-left: 0.8rem;
padding-top: 1rem;
margin-bottom: 1rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens a {
display: inline-flex;
align-items: center;
justify-items: center;
color: #009ee3;
font-weight: 800; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens a::before {
content: url("../images/pictos/noun_External Link_674151.svg");
min-width: 40px; min-width: 40px;
height: auto; height: auto;
padding-right: 0.5rem; padding-right: 0.5rem;
display: inline-flex; display: inline-flex;
align-items: center; } align-items: center; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers .file--mime-application-pdf a { .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens a svg.ext {
hyphens: auto;
display: inline-flex;
align-items: center;
color: #009ee3;
font-weight: 800; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens .field__item {
margin: auto;
height: fit-content;
border: 2px solid #009ee3;
min-height: 4rem;
background: white;
color: #009ee3;
padding-left: 0.8rem;
padding-top: 1rem;
margin-bottom: 1rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens a {
display: inline-flex;
align-items: center;
justify-items: center;
color: #009ee3;
font-weight: 800; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens a::before {
content: url("../images/pictos/noun_External Link_674151.svg");
min-width: 40px;
height: auto;
padding-right: 0.5rem;
display: inline-flex;
align-items: center; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens a svg.ext {
display: none; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress {
margin-top: 3rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress h2 {
font-size: 0.8rem;
color: black;
font-weight: 900; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource {
display: flex;
flex-direction: column;
border: 2px solid #009ee3;
padding: 1rem;
height: fit-content;
margin-bottom: 1rem;
background-color: white; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource:first-of-type {
border-top: 1px solid #009ee3;
padding-top: 1rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource:first-of-type::after {
content: url("../images/pictos/noun_Arrow_3771902.svg");
align-self: flex-end; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-title a {
color: black;
font-size: 1.4rem;
font-weight: 600; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-auteur-s- {
font-weight: 800; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-auteur-s- p {
margin: 0; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-auteur-s- .field__label {
display: none; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-edition p {
margin: 0; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-edition .field__label {
display: none; } display: none; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-images { .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress {
display: none; margin-top: 3rem; }
width: 50%; } .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress h2 {
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-images img { font-size: 0.8rem;
width: 100%; color: black;
height: auto; } font-weight: 900; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-type-de-ressource { .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource {
display: inline-flex; display: flex;
margin-top: 2rem; flex-direction: column;
background: #09398b; border: 2px solid #009ee3;
margin-right: 1rem; padding: 1rem;
padding-left: 0.3rem; height: fit-content;
padding-right: 0.3rem; margin-bottom: 1rem;
color: white; background-color: white; }
font-weight: 800; .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource:first-of-type {
vertical-align: middle; } border-top: 1px solid #009ee3;
padding-top: 1rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource:first-of-type::after {
content: url("../images/pictos/noun_Arrow_3771902.svg");
align-self: flex-end; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-title a {
color: black;
font-size: 1.4rem;
font-weight: 600; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-auteur-s- {
font-weight: 800; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-auteur-s- p {
margin: 0; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-auteur-s- .field__label {
display: none; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-edition p {
margin: 0; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-edition .field__label {
display: none; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-images {
display: none;
width: 50%; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-images img {
width: 100%;
height: auto; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-type-de-ressource {
display: inline-flex;
margin-top: 2rem;
background: #09398b;
margin-right: 1rem;
padding-left: 0.3rem;
padding-right: 0.3rem;
color: white;
font-weight: 800;
vertical-align: middle; }
.path-frontpage .block-region-content { .path-frontpage .block-region-content {
display: grid; display: grid;
@@ -2900,6 +2900,7 @@ a {
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
padding-inline-start: 0px;
padding: 1rem; } padding: 1rem; }
#header-top .region-header-top-left ul .is-active { #header-top .region-header-top-left ul .is-active {
color: #009ee3; } color: #009ee3; }
@@ -2908,21 +2909,19 @@ a {
flex-direction: column; flex-direction: column;
display: none; display: none;
min-width: 100px; min-width: 100px;
width: 100%;
justify-content: space-between; justify-content: space-between;
background: white; } background: white;
padding-inline-start: 0px; }
#header-top .region-header-top-left ul ul .is-active { #header-top .region-header-top-left ul ul .is-active {
color: #009ee3; } color: #009ee3; }
#header-top .region-header-top-left ul li { #header-top .region-header-top-left ul li {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between;
background-color: white; background-color: white;
padding-bottom: 0.8rem; padding-bottom: 0.8rem;
max-width: inherit; max-width: inherit;
align-items: center; align-items: center; }
padding-left: 0; }
#header-top .region-header-top-left ul li .menuOpen {
display: flex; }
#header-top .region-header-top-left ul li a { #header-top .region-header-top-left ul li a {
color: black; } color: black; }
#header-top .region-header-top-left ul li .is-active { #header-top .region-header-top-left ul li .is-active {
File diff suppressed because one or more lines are too long
-54
View File
@@ -132,41 +132,8 @@ jQuery(function($) {
}); });
///////////////////////////////////////////
// border box change color when protagoniste change
// var protagoniste = document.getElementsByClassName("type-de-protagoniste-7");
// console.log(protagoniste);
// ressource.classList.add('opened');
/**
* Return the term id for a given term name.
*/
// function _get_tid_from_term_name($term_name) {
// $vocabulary = 'Type de protagoniste';
// $arr_terms = taxonomy_get_term_by_name($term_name, $vocabulary);
// if (!empty($arr_terms)) {
// $arr_terms = array_values($arr_terms);
// $tid = $arr_terms[0]->tid;
// }
// else {
// $vobj = taxonomy_vocabulary_machine_name_load($vocabulary);
// $term = new stdClass();
// $term->name = $term_name;
// $term->vid = $vobj->vid;
// taxonomy_term_save($term);
// $tid = $term->tid;
// }
// return $tid;
// }
// function getVal() {
// const val = document. querySelector('input').value;
// log(val);
// }
// ///////////////// // /////////////////
//// ancre dans texte //// ancre dans texte
// document.querySelector('.paragraph--view-mode--textes-toc').click( function() { // document.querySelector('.paragraph--view-mode--textes-toc').click( function() {
@@ -178,25 +145,4 @@ jQuery(function($) {
// return false; // return false;
// }); // });
/// sticky header on scroll
// // When the user scrolls the page, execute myFunction
// window.onscroll = function() {stickyHeader()};
// console.log(Event);
// // Get the header
// var header = document.getElementById("header-top");
// // Get the offset position of the navbar
// var sticky = header.offsetTop;
// // Add the sticky class to the header when you reach its scroll position. Remove "sticky" when you leave the scroll position
// function stickyHeader() {
// if (window.pageYOffset > sticky) {
// header.classList.add("sticky");
// } else {
// header.classList.remove("sticky");
// }
// }
///////////////////
+21 -11
View File
@@ -1,5 +1,6 @@
.path-node.page-node-type-static{ .path-node.page-node-type-static{
.layout-container{ .layout-container{
overflow: unset;
// display: flex; // display: flex;
// flex-direction: column; // flex-direction: column;
// flex-flow: row wrap; // flex-flow: row wrap;
@@ -9,6 +10,7 @@
// main{ // main{
// flex: 0 0 100%; // flex: 0 0 100%;
.layout-content{ .layout-content{
// padding-top: 0; // padding-top: 0;
.layout__region--top{ //bandeau titre page static .layout__region--top{ //bandeau titre page static
@@ -39,14 +41,16 @@
// } // }
} }
// menu ancres a gauche
.layout__region--first{ // menu ancres a gauche .layout__region--first{ // menu ancres a gauche
position: relative; position: relative;
.block-region-first{ .block-region-first{
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
position: sticky; position: -webkit-sticky;
top: 7rem; position: sticky;
top: 9rem;
@media (max-width: 810px){ @media (max-width: 810px){
display: none; display: none;
} }
@@ -65,6 +69,7 @@
padding-bottom: 0.8rem; padding-bottom: 0.8rem;
padding-right: 1rem; padding-right: 1rem;
margin-top: 1rem; margin-top: 1rem;
scroll-margin-top: 7em;
&:hover{ &:hover{
text-decoration: underline; text-decoration: underline;
@@ -74,12 +79,14 @@
} }
} }
.layout__region--second{ // paragraphe texte // paragraphe texte
.layout__region--second{
@media (max-width: 810px){ @media (max-width: 810px){
flex: 0 1 80%; flex: 0 1 80%;
margin: auto; margin: auto;
} // paragraphe texte }
// paragraphe texte
.block-entity-fieldnodefield-textes{ .block-entity-fieldnodefield-textes{
margin-top: 1rem; margin-top: 1rem;
background-color: $white; background-color: $white;
@@ -109,13 +116,16 @@
} }
} }
// colone de droite fichiers et ressources liées
.layout__region--third{ // colone de droite fichiers et ressources liées .layout__region--third{
.block-region-third{ .block-region-third{
margin-top: 1rem; margin-top: 1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 70%; width: 70%;
// position: -webkit-sticky;
// position: sticky;
// top: 11rem;
@media (max-width: 810px){ @media (max-width: 810px){
margin: auto; margin: auto;
} }
@@ -79,6 +79,7 @@
justify-content: space-between; justify-content: space-between;
// margin-right: 20px; // margin-right: 20px;
width: 100%; width: 100%;
padding-inline-start: 0px;
padding: 1rem; padding: 1rem;
.is-active{ .is-active{
color:$blue-light; color:$blue-light;
@@ -88,9 +89,11 @@
flex-direction: column; flex-direction: column;
display: none; display: none;
min-width: 100px; min-width: 100px;
width: 100%;
justify-content: space-between; justify-content: space-between;
background:$white; background:$white;
// padding-inline-start: 0; // padding-inline-start: 0;
padding-inline-start: 0px;
.is-active{ .is-active{
color:$blue-light; color:$blue-light;
@@ -99,15 +102,17 @@
li{ li{
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; // justify-content: space-between;
background-color: $white; background-color: $white;
padding-bottom: 0.8rem; padding-bottom: 0.8rem;
max-width: inherit; max-width: inherit;
align-items: center; align-items: center;
padding-left: 0; // padding-left: 0;
.menuOpen{ // text-align: none
display: flex; ;
} // .menuOpen{
// display: flex;
// }
a { a {
color: $black; color: $black;
} }