actuel-inactuel/assets/css/src/header.css

151 lines
2.9 KiB
CSS
Raw Normal View History

#main-header {
2024-01-26 11:03:42 +01:00
position: fixed;
z-index: 3;
2024-01-26 11:03:42 +01:00
top: 0;
left: 0;
box-sizing: border-box;
2024-03-12 17:12:03 +01:00
width: 100vw;
height: calc(var(--unit--vertical) * 4);
2024-01-26 11:03:42 +01:00
padding: var(--unit--vertical) var(--unit--horizontal);
padding-bottom: 0;
2024-01-26 11:03:42 +01:00
transition: height 0.2s ease-in-out;
}
#logo {
position: relative;
}
#main-header.open #actuel {
2024-01-26 11:03:42 +01:00
color: var(--color-background);
}
#logo #actuel {
color: var(--color-primary--transparent);
position: relative;
z-index: 1;
}
#logo #inactuel {
position: absolute;
z-index: 0;
color: var(--color-secondary);
bottom: -48%;
transition: bottom 0.2s ease-in-out;
}
#main-header.minimized #logo #inactuel {
2024-01-26 11:03:42 +01:00
bottom: 0%;
}
2024-04-10 16:52:41 +02:00
body {
--entry-btns-height: 10svh;
}
body[data-template="home"] {
2024-04-11 10:38:07 +02:00
--entry-btns-height: 15svh;
2024-04-10 16:52:41 +02:00
}
.page-cover {
position: relative;
2024-04-10 16:52:41 +02:00
height: calc(100svh - var(--entry-btns-height));
box-sizing: border-box;
2024-04-10 16:52:41 +02:00
padding-top: calc(var(--unit--vertical-relative) * 5);
display: flex;
flex-direction: column;
}
2024-04-10 16:52:41 +02:00
.page-cover .text-wrapper {
height: 100%;
overflow: auto;
}
2024-04-07 11:09:43 +02:00
[data-template="home"] .page-cover {
padding-top: calc(var(--unit--vertical-relative) * 6);
2024-04-06 10:08:45 +02:00
}
2024-04-10 14:55:34 +02:00
/* ================= ENTRY BTNS ================= */
#entry-btns {
position: sticky;
2024-04-10 15:43:45 +02:00
position: -webkit-sticky;
2024-04-10 14:55:34 +02:00
top: calc(var(--unit--vertical) * 3);
2024-04-10 16:52:41 +02:00
height: var(--entry-btns-height);
2024-04-10 14:55:34 +02:00
display: flex;
justify-content: space-between;
}
.entry-btn {
transition: all 0.5s var(--curve-sine);
}
[data-template="home"] .entry-btn {
align-items: start;
}
2024-04-11 10:38:07 +02:00
button.toggle.left::after,
button.toggle.right::before {
2024-04-10 14:55:34 +02:00
transition: all 0.5s var(--curve-sine);
content: "+";
}
.entry-btn--left::after {
margin-left: var(--unit--horizontal);
}
.entry-btn--right::before {
margin-right: var(--unit--horizontal);
}
2024-04-10 15:23:18 +02:00
#entry-btns .entry-btn--left::before,
#entry-btns .entry-btn--right::after {
content: "";
position: absolute;
background-color: transparent;
height: var(--unit--vertical);
width: var(--unit--horizontal);
z-index: -1;
transition: all 0.5s var(--curve-sine);
}
#entry-btns .entry-btn--left::before {
right: 0;
}
#entry-btns .entry-btn--right::after {
left: 0;
}
2024-04-10 14:55:34 +02:00
#entry-btns.minimized {
2024-04-10 15:23:18 +02:00
color: #000;
2024-04-10 14:55:34 +02:00
}
2024-04-10 15:23:18 +02:00
#entry-btns.minimized .entry-btn--left::before,
#entry-btns.minimized .entry-btn--right::after {
background-color: var(--color-secondary);
}
2024-04-10 14:55:34 +02:00
#entry-btns.minimized .entry-btn::before,
#entry-btns.minimized .entry-btn::after {
font-weight: bold;
}
#entry-btns.minimized .entry-btn--left {
2024-04-10 15:23:18 +02:00
padding-right: 4px;
2024-04-10 14:55:34 +02:00
margin-left: calc(-4px - var(--width));
2024-04-06 10:08:45 +02:00
}
2024-04-10 14:55:34 +02:00
#entry-btns.minimized .entry-btn--right {
2024-04-10 15:23:18 +02:00
padding-left: 4px;
2024-04-10 14:55:34 +02:00
margin-right: calc(-4px - var(--width));
2024-04-06 10:08:45 +02:00
}
2024-03-10 19:24:24 +01:00
@media screen and (min-width: 640px) {
#main-header {
display: flex;
justify-content: center;
}
#logo {
width: 37vw;
}
#logo * {
font-size: 11vw;
}
#main-header.minimized {
height: calc(var(--unit--vertical) * 4.3);
}
.page-cover {
padding: calc(10 * var(--unit--vertical)) 0;
}
}