fill categories panel

This commit is contained in:
isUnknown 2024-04-09 10:44:12 +02:00
parent a2722a0264
commit 93a628ec57
5 changed files with 108 additions and 47 deletions

View file

@ -1,7 +1,7 @@
/* ================= ENTRIES BTNS ================= */
#entry-btns {
position: sticky;
top: calc(var(--unit--vertical) * 8);
top: calc(var(--unit--vertical) * 10);
display: flex;
justify-content: space-between;
z-index: 2;
@ -11,6 +11,9 @@
transition: all 0.5s var(--curve-sine);
}
[data-template="home"] #entry-btns {
transform: translateY(calc(0rem - var(--unit--vertical-relative) * 8));
}
[data-template="linear"] #entry-btns {
transform: translateY(calc(0rem - var(--unit--vertical-relative) * 4));
}
@ -74,49 +77,44 @@
.panel-close {
position: fixed;
top: 0;
border: none;
justify-content: center;
width: calc(100% - 2 * var(--unit--horizontal));
bottom: 0;
outline: none;
height: 100svh;
width: calc(var(--unit--horizontal) * 2);
font-size: 0.8rem;
display: flex;
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);
}
.panel--left .panel-close {
right: 0;
justify-content: flex-end;
}
/* ================= LISTS ================= */
.panel-close::after {
content: "◀";
}
/* ================= YEARS ================= */
.year__toggle {
.panel__toggle-btn {
width: 100%;
display: flex;
justify-content: space-between;
margin-bottom: var(--unit--vertical);
}
.year__toggle-icon {
.panel__toggle-icon {
color: var(--color-secondary);
font-size: var(--font-size-xl);
}
.year__edito {
/* ================= YEARS ================= */
.panel-item-content__edito {
margin-bottom: calc(var(--unit--vertical) / 2);
}
.year__edito.short {
.panel-item-content__edito.short {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 5;
overflow: hidden;
}
.year__texts {
.panel-item-content__texts {
margin-top: var(--unit--vertical);
}