2024-04-07 12:24:40 +02:00
|
|
|
/* ================= PANELS ================= */
|
|
|
|
|
.panel {
|
|
|
|
|
position: fixed;
|
|
|
|
|
width: 100%;
|
2024-04-09 12:35:24 +02:00
|
|
|
height: 100dvh;
|
2024-04-07 12:24:40 +02:00
|
|
|
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;
|
2024-04-10 14:55:34 +02:00
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.panel--left {
|
|
|
|
|
left: calc(-100vw - 1px);
|
|
|
|
|
}
|
|
|
|
|
.panel--right {
|
|
|
|
|
right: calc(-100vw - 1px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.panel--left.open {
|
|
|
|
|
left: 0;
|
|
|
|
|
}
|
|
|
|
|
.panel--right.open {
|
|
|
|
|
right: 0;
|
2024-04-07 12:24:40 +02:00
|
|
|
}
|
|
|
|
|
|
2024-04-09 17:10:43 +02:00
|
|
|
.search {
|
2024-04-10 14:55:34 +02:00
|
|
|
position: relative;
|
|
|
|
|
width: 100%;
|
2024-04-09 18:37:45 +02:00
|
|
|
background-color: #000;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
top: 0;
|
2024-04-09 17:10:43 +02:00
|
|
|
}
|
|
|
|
|
.search__input {
|
2024-04-09 18:58:31 +02:00
|
|
|
all: unset;
|
2024-04-09 17:10:43 +02:00
|
|
|
width: 100%;
|
|
|
|
|
background-color: transparent;
|
2024-04-09 18:58:31 +02:00
|
|
|
padding: 0;
|
2024-04-09 18:37:45 +02:00
|
|
|
padding-bottom: calc(var(--unit--vertical) / 4);
|
2024-04-09 17:10:43 +02:00
|
|
|
border: none;
|
|
|
|
|
border-bottom: 1px solid #fff;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: var(--font-size-m);
|
|
|
|
|
font-weight: var(--font-weight-light);
|
|
|
|
|
}
|
2024-04-09 18:40:54 +02:00
|
|
|
.search__input::placeholder {
|
2024-04-10 14:55:34 +02:00
|
|
|
font-size: var(--font-size-sm);
|
2024-04-09 18:40:54 +02:00
|
|
|
letter-spacing: 1px;
|
|
|
|
|
}
|
2024-04-09 17:10:43 +02:00
|
|
|
.search__icon {
|
2024-04-09 18:58:31 +02:00
|
|
|
all: unset;
|
2024-04-09 17:10:43 +02:00
|
|
|
position: absolute;
|
2024-04-09 18:58:31 +02:00
|
|
|
width: 1.2rem;
|
|
|
|
|
height: 1.2rem;
|
|
|
|
|
padding: 0.5rem;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
right: calc(var(--unit--horizontal) / 6);
|
|
|
|
|
transform: translateX(0.5rem);
|
|
|
|
|
}
|
|
|
|
|
button.search__icon {
|
|
|
|
|
cursor: pointer;
|
2024-04-09 17:10:43 +02:00
|
|
|
}
|
|
|
|
|
|
2024-04-09 18:37:45 +02:00
|
|
|
.panel__items {
|
2024-04-10 14:55:34 +02:00
|
|
|
scroll-behavior: smooth;
|
|
|
|
|
height: 100%;
|
|
|
|
|
padding-top: var(--unit--vertical);
|
|
|
|
|
overflow: auto;
|
2024-04-07 12:24:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.panel-close {
|
2024-04-09 10:44:12 +02:00
|
|
|
justify-content: center;
|
|
|
|
|
width: calc(100% - 2 * var(--unit--horizontal));
|
|
|
|
|
bottom: 0;
|
2024-04-07 12:24:40 +02:00
|
|
|
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-07 12:24:40 +02:00
|
|
|
}
|
|
|
|
|
|
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);
|
|
|
|
|
}
|