ehess: adapt page picture layout to custom nav location (#78049)
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Paul Marillonnet 2023-05-31 14:51:37 +02:00
parent e3e47cbdae
commit 3574a7e180
1 changed files with 28 additions and 0 deletions

View File

@ -43,6 +43,34 @@
}
}
@if $nav-after-image == true {
body.has-picture .site-nav::after {
top: 0;
}
}
@media screen and ($min-desktop-viewport) {
@if $nav-after-image == true {
body.has-picture .site-nav::after {
content: "";
display: none;
}
div#header-wrapper::after {
content: "";
display: block;
width: 100%;
height: $nav-after-image-height;
background-color: transparent;
background-image: var(--page-picture);
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
top: -0.5rem;
}
}
}
@media ($max-mobile-viewport) {
div.gru-nav .gru-nav-button + ul {
border: none;