All checks were successful
Deploy / Deploy to Production (push) Successful in 2m1s
202 lines
3.4 KiB
SCSS
202 lines
3.4 KiB
SCSS
header {
|
|
width: 100%;
|
|
position: fixed;
|
|
z-index: 3;
|
|
height: auto;
|
|
overflow: visible;
|
|
}
|
|
|
|
nav.main-menu {
|
|
width: calc(100% - var(--body-margin) * 2);
|
|
opacity: 0;
|
|
transition-duration: var(--disparition-duration);
|
|
transition-property: opacity;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
z-index: 2;
|
|
/*! margin: var(--margin-XL); */
|
|
top: 0;
|
|
font-size: var(--font-size-XL);
|
|
padding-bottom: 4rem;
|
|
|
|
ul {
|
|
margin-top: var(--line-height-S);
|
|
padding: 0;
|
|
font-size: var(--font-size-L);
|
|
z-index: 2;
|
|
position: absolute;
|
|
|
|
li {
|
|
float: left;
|
|
color: var(--text-color);
|
|
|
|
a {
|
|
list-style: none;
|
|
text-decoration: none;
|
|
text-transform: initial;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.title-nav {
|
|
font-size: var(--font-size-XL);
|
|
line-break: strict;
|
|
left: -0.65vw;
|
|
position: relative;
|
|
top: var(--main-title-top);
|
|
margin-top: var(--body-margin);
|
|
line-height: 0.75;
|
|
}
|
|
|
|
.title-nav a {
|
|
text-decoration: none;
|
|
padding-bottom: var(--nav-margin);
|
|
}
|
|
|
|
.title-nav-mobile {
|
|
display: none;
|
|
}
|
|
|
|
.main-title {
|
|
font-size: var(--font-size-S);
|
|
top: var(--body-margin);
|
|
cursor: pointer;
|
|
width: fit-content;
|
|
position: fixed;
|
|
}
|
|
|
|
.main-title a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.main-title:hover ~ nav {
|
|
opacity: 1;
|
|
transition-duration: var(--apparition-duration);
|
|
transition-property: opacity;
|
|
pointer-events: all;
|
|
z-index: 1;
|
|
}
|
|
|
|
header:hover ~ main {
|
|
opacity: var(--low-opacity);
|
|
transition-duration: var(--apparition-duration);
|
|
}
|
|
|
|
main {
|
|
transition-duration: var(--disparition-duration);
|
|
transition-property: opacity;
|
|
}
|
|
|
|
.main-title:hover {
|
|
opacity: 0;
|
|
transition-duration: var(--apparition-duration);
|
|
}
|
|
|
|
.main-title:has(+ nav:hover) {
|
|
opacity: 0;
|
|
transition-duration: var(--apparition-duration);
|
|
}
|
|
|
|
nav.main-menu:hover {
|
|
opacity: 1;
|
|
position: absolute;
|
|
pointer-events: all;
|
|
z-index: 1;
|
|
}
|
|
|
|
[data-template="home"] nav li .nav-item-home {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
[data-template="index"] nav li .nav-item-projects {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
[data-template="infos"] nav li .nav-item-about {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* SPECIFIC TO HOME */
|
|
|
|
[data-template="home"] .main-title {
|
|
font-size: var(--font-size-XL);
|
|
line-break: strict;
|
|
left: -0.65vw;
|
|
position: relative;
|
|
top: var(--main-title-top);
|
|
margin-top: var(--body-margin);
|
|
line-height: 0.75;
|
|
}
|
|
|
|
[data-template="home"] .main-title a {
|
|
color: transparent;
|
|
}
|
|
|
|
[data-template="home"] header {
|
|
mix-blend-mode: difference;
|
|
}
|
|
|
|
[data-template="home"] .main-title span {
|
|
color: var(--mix-blend-color);
|
|
}
|
|
|
|
@media (min-width: 1500px) {
|
|
:root {
|
|
--main-title-top: -0.4vw;
|
|
}
|
|
}
|
|
|
|
/* MOBILE-MENU */
|
|
|
|
.toggle-mobile-menu {
|
|
position: fixed;
|
|
bottom: 0;
|
|
width: 100%;
|
|
left: 0;
|
|
font-size: var(--font-size-XL);
|
|
display: flex;
|
|
justify-content: center;
|
|
line-height: normal;
|
|
}
|
|
|
|
#mobile-menu {
|
|
padding: 0;
|
|
border: none;
|
|
justify-content: center;
|
|
align-items: center;
|
|
overflow: visible;
|
|
|
|
display: none;
|
|
position: fixed;
|
|
bottom: var(--body-margin);
|
|
width: 100%;
|
|
left: 0;
|
|
box-sizing: border-box;
|
|
justify-content: center;
|
|
z-index: 3;
|
|
}
|
|
|
|
[data-template="home"] .mobile-menu-toggle {
|
|
color: var(--mix-blend-color);
|
|
}
|
|
|
|
#mobile-menu ul {
|
|
margin-top: 0;
|
|
display: flex;
|
|
text-align: center;
|
|
}
|
|
|
|
#mobile-menu .title-nav {
|
|
position: fixed;
|
|
padding: var(--body-margin);
|
|
}
|
|
|
|
button#mobile-menu-toggle {
|
|
display: none;
|
|
}
|
|
|
|
#mobile-menu-wrapper {
|
|
display: none;
|
|
}
|