Skip to content

Commit

Permalink
remise en place du trait blanc vertical menu doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédérique Chambinaud committed Feb 7, 2024
1 parent e00e372 commit f2d7812
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 51 deletions.
2 changes: 1 addition & 1 deletion _layouts/doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<main class="doc-page">
{{ content }}
</main>
<nav class="navbar nav-doc nav-doc-right">
<nav class="navbar nav-doc">
{% include toc.html html=content %}
</nav>
</div>
89 changes: 41 additions & 48 deletions _sass/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ nav{
color: $yellow;
}
}

}

ul{
Expand Down Expand Up @@ -136,10 +135,8 @@ a{
align-items: center;
}

.fond-gris {
// background-color: $darkgrey;
.espace-des-logos {
padding: 0.5rem;
// margin-bottom: 3rem;
}

.ligne-logo {
Expand All @@ -149,13 +146,6 @@ a{
align-items: center;
flex-wrap: wrap;
margin-bottom: 3.5rem;
// background-color: white;
}

.ligne-logo>img {
// height: auto;
// overflow-clip-margin: unset;
// overflow: auto;
}

.largeur-img-30prct {
Expand Down Expand Up @@ -213,10 +203,8 @@ main {
background-color: white;
display: flex;
flex-direction: column;
// align-items: center;
align-items: start;
justify-content: center;
// margin: 200px 0 0 0;
box-shadow: 5px 0px 10px $middlegrey-shadow, -5px 0px 10px $middlegrey-shadow;

h1, h2, h3, h4, h5, h6 {
Expand Down Expand Up @@ -376,11 +364,10 @@ margin-right: 3rem;
height: fit-content;
padding: 1rem 1rem 1rem 0;
}

.trait-vertical{
border-left: 1px white solid;
}

// .trait-vertical{
// border-left: 1px white solid;
// }

.nav-doc ul li, .nav-doc ul li a{
width: 100%;
padding-right: 0;
Expand All @@ -389,35 +376,34 @@ margin-right: 3rem;
margin-top: 0.3rem;
}

.nav-doc > div > ul > li{
font-family: $serifFont;
font-size: 1.2rem;
margin: 0 0 1.5rem 0;
}

.nav-doc > div > ul > li > ul{
font-family: $bodyFont;
font-size: 1rem;
}
// .nav-doc > div > ul > li{
// font-family: $serifFont;
// font-size: 1.2rem;
// margin: 0 0 1.5rem 0;
// }

.nav-doc > div > ul > li > ul > li > a{
margin-top: 0.5rem;
width: 100%;
}
.nav-doc > div > ul > li:hover:first-child{
background-color: $yellow;
}
.nav-doc > div > ul > li > ul > li:hover:first-of-type{
background-color: #866363;
// .nav-doc > div > ul > li > ul{
// font-family: $bodyFont;
// font-size: 1rem;
// }

}
// .nav-doc > div > ul > li > ul > li > a{
// margin-top: 0.5rem;
// width: 100%;
// }
// .nav-doc > div > ul > li:hover:first-child{
// background-color: $yellow;
// }
// .nav-doc > div > ul > li > ul > li:hover:first-of-type{
// background-color: #866363;
// }
// .nav-doc > div > ul > li > ul > li >ul:hover:nth-child(n + 2){
// background-color: purple;
// }
.nav-doc > div > ul > li > ul > li > ul > li:hover{
width: 100%;
background-color: $yellow;
}
// .nav-doc > div > ul > li > ul > li > ul > li:hover{
// width: 100%;
// background-color: $yellow;
// }
// .nav-doc > div > ul > li:focus, .nav-doc > div > ul > li > ul > li:focus{
// background-color: blue;
// }
Expand All @@ -426,18 +412,25 @@ margin-right: 3rem;
display: flex;
flex-direction: column;
padding: 0;
&.collapse{
border-left: 1px white solid;
&.collapse {
display: none;
&.show{
border-left: 0px white solid;
&.show {
display: flex;
}
}
.list-group-item{
.dropdown-toggle{
width:100%;

.list-group-item {
.dropdown-toggle {
width: 100%;
}
&.current:not(:has(.list-group)){
&.current:not(:has(.list-group)) {
background-color: $yellow;
a {
color: #000;
font-weight: 500;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion en/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h4>March 2023</h4>
</p>
</section>

<section class="fond-gris center">
<section class="espace-des-logos center">
<div class="ligne-logo">
<div class="largeur-img-30prct">
<img src="/assets/img/about/LogoIRHiS_256.png"
Expand Down
2 changes: 1 addition & 1 deletion fr/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h4>Mars 2023</h4>
</p>
</section>

<section class="fond-gris center">
<section class="espace-des-logos center">
<div class="ligne-logo">
<div class="largeur-img-30prct">
<img src="/assets/img/about/LogoIRHiS_256.png"
Expand Down

0 comments on commit f2d7812

Please sign in to comment.