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

143 lines
3 KiB
CSS
Raw Normal View History

#main-header {
2024-11-26 09:53:05 +01:00
position: fixed;
box-sizing: border-box;
width: 100vw;
2024-11-26 13:21:42 +01:00
padding-top: calc(var(--unit--vertical) / 2);
2024-11-26 09:53:05 +01:00
}
#logo * {
font-size: 26.65vw;
font-weight: var(--font-weight-extra-bold);
}
#logo span {
height: 20vw;
2024-11-26 13:21:42 +01:00
width: 100%;
2024-11-26 09:53:05 +01:00
box-sizing: border-box;
padding-right: 1vw;
display: flex;
justify-content: flex-end;
align-items: center;
}
#logo {
text-align: right;
}
#logo #actuel,
#logo #inactuel {
mix-blend-mode: difference;
}
#logo #inactuel {
transition: margin-top 0.3s ease-in-out, transform 0.3s ease-in-out;
}
2024-11-26 13:21:42 +01:00
2024-11-26 09:53:05 +01:00
#main-header.minimized #inactuel {
2024-11-26 18:24:41 +01:00
margin-top: -20vw;
2024-11-26 09:53:05 +01:00
transform: translateX(-2px) translateY(-2px);
}
2024-11-26 18:24:41 +01:00
#main-header.minimized #inactuel:not([data-template="home"] *) {
transform: translateX(-1px) translateY(-1px) !important;
}
.page-cover {
position: relative;
2024-11-26 13:21:42 +01:00
height: 100svh;
box-sizing: border-box;
2024-11-26 13:21:42 +01:00
padding-top: calc(var(--unit--vertical-relative) * 9);
2024-04-10 16:52:41 +02:00
display: flex;
flex-direction: column;
}
2024-04-10 16:52:41 +02:00
.page-cover .text-wrapper {
height: 100%;
overflow: auto;
}
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-15 13:43:57 +02:00
top: calc(var(--unit--vertical) * 4);
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;
}
2024-04-15 09:35:39 +02:00
[data-template="info"] #entry-btns {
top: calc(var(--unit--vertical) * 4);
}
2024-04-10 14:55:34 +02:00
[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: "+";
}
2024-04-10 15:23:18 +02:00
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) {
2024-11-26 13:21:42 +01:00
body:not([data-template="home"]) #main-header {
width: var(--body-padding);
}
body:not([data-template="home"]) #logo * {
font-size: 6vw;
}
body:not([data-template="home"]) #logo span {
height: 5vw;
}
body:not([data-template="home"]) #main-header.minimized #inactuel {
margin-top: -4.9vw;
transform: translateX(-2px) translateY(-2px);
2024-03-10 19:24:24 +01:00
}
.page-cover:not(
[data-template="author"] .page-cover,
[data-template="year"] .page-cover,
[data-template="category"] .page-cover
) {
2024-04-15 13:43:57 +02:00
height: 100vh;
2024-03-10 19:24:24 +01:00
padding: calc(10 * var(--unit--vertical)) 0;
2024-11-26 13:21:42 +01:00
padding-top: calc(var(--unit--vertical) * 8);
2024-03-10 19:24:24 +01:00
}
2024-11-26 13:21:42 +01:00
[data-template="home"] .page-cover {
padding-top: calc(42.5vw) !important;
}
[data-template="author"] .page-cover,
[data-template="category"] .page-cover,
[data-template="year"] .page-cover {
height: initial;
}
2024-04-15 13:43:57 +02:00
#entry-btns {
display: none;
}
}