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

125 lines
2.6 KiB
CSS
Raw Normal View History

/* ================= ENTRIES BTNS ================= */
#entry-btns {
2024-04-07 11:09:43 +02:00
position: sticky;
2024-04-09 10:44:12 +02:00
top: calc(var(--unit--vertical) * 10);
2024-04-07 11:09:43 +02:00
display: flex;
justify-content: space-between;
z-index: 2;
2024-04-07 11:09:43 +02:00
}
.entry-btn {
transition: all 0.5s var(--curve-sine);
}
2024-04-09 10:44:12 +02:00
[data-template="home"] #entry-btns {
transform: translateY(calc(0rem - var(--unit--vertical-relative) * 8));
}
[data-template="linear"] #entry-btns {
2024-04-07 11:09:43 +02:00
transform: translateY(calc(0rem - var(--unit--vertical-relative) * 4));
}
.entry-btn--left::after,
.entry-btn--right::before {
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);
}
#entry-btns.minimized {
2024-04-07 11:09:43 +02:00
color: var(--color-secondary);
}
#entry-btns.minimized .entry-btn::before,
#entry-btns.minimized .entry-btn::after {
2024-04-07 11:09:43 +02:00
font-weight: bold;
}
#entry-btns.minimized .entry-btn--left {
2024-04-07 11:09:43 +02:00
margin-left: calc(-4px - var(--width));
}
#entry-btns.minimized .entry-btn--right {
2024-04-07 11:09:43 +02:00
margin-right: calc(-4px - var(--width));
}
/* ================= PANELS ================= */
.panel {
position: fixed;
width: 100%;
height: 100svh;
top: 0;
background-color: #000;
outline: 1px solid #fff;
transition: all 0.5s var(--curve-sine);
z-index: 2;
padding: 0 var(--unit--horizontal);
padding-top: calc(var(--unit--vertical) * 5);
box-sizing: border-box;
overflow: auto;
}
.panel--left {
left: calc(-100% - var(--unit--horizontal) * 2 - 1px);
}
.panel--right {
right: calc(-100% - var(--unit--horizontal) * 2 - 1px);
}
.panel--right.open {
right: 0;
}
.panel--left.open {
left: 0;
}
.panel-close {
position: fixed;
2024-04-09 10:44:12 +02:00
justify-content: center;
width: calc(100% - 2 * var(--unit--horizontal));
bottom: 0;
outline: none;
2024-04-09 10:44:12 +02:00
border-top: 1px solid #fff;
font-size: var(--font-size-m);
background-color: #000;
padding: calc(var(--unit--vertical) / 2) 0;
margin-bottom: env(safe-area-inset-bottom);
}
2024-04-09 10:44:12 +02:00
/* ================= LISTS ================= */
2024-04-09 08:38:29 +02:00
2024-04-09 10:44:12 +02:00
.panel__toggle-btn {
2024-04-09 08:38:29 +02:00
width: 100%;
display: flex;
justify-content: space-between;
margin-bottom: var(--unit--vertical);
}
2024-04-09 10:44:12 +02:00
.panel__toggle-icon {
2024-04-09 08:38:29 +02:00
color: var(--color-secondary);
font-size: var(--font-size-xl);
}
2024-04-09 10:44:12 +02:00
/* ================= YEARS ================= */
.panel-item-content__edito {
2024-04-09 08:38:29 +02:00
margin-bottom: calc(var(--unit--vertical) / 2);
}
2024-04-09 10:44:12 +02:00
.panel-item-content__edito.short {
2024-04-09 08:38:29 +02:00
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 5;
overflow: hidden;
}
2024-04-09 10:44:12 +02:00
.panel-item-content__texts {
2024-04-09 08:38:29 +02:00
margin-top: var(--unit--vertical);
}
/* ================= TEXT ITEM ================= */
.text {
margin-bottom: var(--unit--vertical);
}