Refactor calendar widget changes

This commit is contained in:
2026-04-23 10:56:05 +02:00
parent 910be60ed5
commit 4751a99e8e
9 changed files with 51 additions and 122 deletions
+9 -61
View File
@@ -417,7 +417,7 @@ hr {
font-size: 0.85rem;
}
.toc-header {
.panel-header {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
@@ -455,7 +455,7 @@ hr {
padding-left: 1.6rem;
}
.toc-toggle {
.panel-toggle {
display: none;
}
@@ -528,16 +528,6 @@ hr {
font-size: 0.85rem;
}
.diary-cal-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
border-bottom: 1px dashed var(--secondary);
padding-bottom: 0.25rem;
margin-bottom: 0.4rem;
}
.diary-cal-nav {
display: flex;
align-items: center;
@@ -609,13 +599,9 @@ hr {
color: var(--primary-hover);
}
.diary-cal-toggle {
display: none;
}
/* === Responsive === */
@media (max-width: 1100px) {
.diary-cal-toggle {
.panel-toggle {
display: block;
background: none;
border: 1px solid var(--secondary);
@@ -630,13 +616,14 @@ hr {
width: calc(100% - 2rem);
max-width: 860px;
}
.diary-cal-toggle::before {
.panel-toggle::before {
content: "▸ ";
color: var(--secondary);
}
.diary-cal-toggle[aria-expanded="true"]::before {
.panel-toggle[aria-expanded="true"]::before {
content: "▾ ";
}
.toc,
.diary-cal {
position: static;
display: none;
@@ -645,48 +632,12 @@ hr {
margin: 0 auto 1rem;
max-height: none;
}
.toc.is-open,
.diary-cal.is-open {
display: block;
}
}
/* === Responsive === */
@media (max-width: 1100px) {
.toc-toggle {
display: block;
background: none;
border: 1px solid var(--secondary);
color: var(--text);
font: inherit;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.05em;
cursor: pointer;
padding: 0.4rem 0.75rem;
margin: 1rem auto;
width: calc(100% - 2rem);
max-width: 860px;
}
.toc-toggle::before {
content: "▸ ";
color: var(--secondary);
}
.toc-toggle[aria-expanded="true"]::before {
content: "▾ ";
}
.toc {
position: static;
display: none;
width: calc(100% - 2rem);
max-width: 860px;
margin: 0 auto 1rem;
max-height: none;
}
.toc.is-open {
display: block;
}
}
@media (max-width: 600px) {
header {
padding: 0.5rem 0.75rem;
@@ -697,11 +648,8 @@ hr {
textarea {
min-height: 50vh;
}
.toc-toggle,
.toc.is-open {
width: calc(100% - 1.5rem);
}
.diary-cal-toggle,
.panel-toggle,
.toc.is-open,
.diary-cal.is-open {
width: calc(100% - 1.5rem);
}