You've already forked zblade.dev
style(ui): simplify changelog section styling and toggle design
This commit is contained in:
+36
-41
@@ -1157,7 +1157,7 @@ import BaseLayout from '../layouts/BaseLayout.astro';
|
|||||||
toggle.setAttribute('aria-expanded', String(nextExpanded));
|
toggle.setAttribute('aria-expanded', String(nextExpanded));
|
||||||
list.hidden = !nextExpanded;
|
list.hidden = !nextExpanded;
|
||||||
section.classList.toggle('changes-section-open', nextExpanded);
|
section.classList.toggle('changes-section-open', nextExpanded);
|
||||||
chevron.textContent = nextExpanded ? '▾' : '▸';
|
chevron.style.transform = nextExpanded ? 'rotate(90deg)' : 'rotate(0deg)';
|
||||||
});
|
});
|
||||||
|
|
||||||
title.replaceWith(toggle);
|
title.replaceWith(toggle);
|
||||||
@@ -1358,26 +1358,26 @@ import BaseLayout from '../layouts/BaseLayout.astro';
|
|||||||
.changes-section {
|
.changes-section {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
|
background: transparent;
|
||||||
border: 1px solid var(--color-border);
|
border: none;
|
||||||
border-left: 2px solid transparent;
|
border-left: none;
|
||||||
padding: var(--space-md);
|
padding: var(--space-md);
|
||||||
transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
|
transition: background-color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.changes-section:hover {
|
.changes-section:hover {
|
||||||
border-color: var(--color-accent);
|
background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 100%);
|
||||||
transform: translateY(-1px);
|
transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.changes-section-open {
|
.changes-section-open {
|
||||||
border-color: var(--color-accent);
|
border: none;
|
||||||
border-left-color: var(--color-accent);
|
border-left: none;
|
||||||
background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 100%);
|
background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.version-latest .changes-section {
|
.version-latest .changes-section {
|
||||||
background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-elevated) 100%);
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.version-latest .changes-section-open {
|
.version-latest .changes-section-open {
|
||||||
@@ -1475,24 +1475,19 @@ import BaseLayout from '../layouts/BaseLayout.astro';
|
|||||||
}
|
}
|
||||||
|
|
||||||
.changes-title {
|
.changes-title {
|
||||||
display: flex;
|
font-size: 0.82rem;
|
||||||
align-items: center;
|
font-weight: 500;
|
||||||
gap: var(--space-xs);
|
|
||||||
font-size: 0.92rem;
|
|
||||||
font-weight: 700;
|
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
margin-bottom: var(--space-sm);
|
margin-bottom: var(--space-sm);
|
||||||
color: var(--color-accent);
|
color: var(--color-text-tertiary);
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
letter-spacing: 0.08em;
|
letter-spacing: 0.12em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.changes-toggle {
|
.changes-toggle {
|
||||||
display: inline-flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
width: 100%;
|
||||||
flex-wrap: wrap;
|
|
||||||
width: auto;
|
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -1500,57 +1495,57 @@ import BaseLayout from '../layouts/BaseLayout.astro';
|
|||||||
background: none;
|
background: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: var(--color-accent);
|
color: var(--color-text-tertiary);
|
||||||
font: inherit;
|
font-family: var(--font-mono);
|
||||||
text-shadow: 0 0 14px rgba(34, 197, 94, 0.1);
|
font-size: 0.82rem;
|
||||||
transition: color 0.2s ease, opacity 0.2s ease;
|
font-weight: 500;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
transition: color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.changes-toggle:hover {
|
.changes-toggle:hover {
|
||||||
color: var(--color-accent);
|
color: var(--color-text-secondary);
|
||||||
opacity: 0.92;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.changes-toggle:focus-visible {
|
.changes-toggle:focus-visible {
|
||||||
outline: 1px solid var(--color-accent);
|
outline: 1px solid var(--color-accent);
|
||||||
outline-offset: 5px;
|
outline-offset: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.changes-toggle-main {
|
.changes-toggle-main {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.45rem;
|
gap: 0.4rem;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.changes-toggle-meta {
|
.changes-toggle-meta {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.45rem;
|
gap: 0.4rem;
|
||||||
margin-left: 0.55rem;
|
margin-left: 0.5rem;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
color: color-mix(in srgb, var(--color-accent) 78%, var(--color-text-secondary) 22%);
|
color: inherit;
|
||||||
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.changes-count {
|
.changes-count {
|
||||||
color: currentColor;
|
color: inherit;
|
||||||
font-size: 0.8rem;
|
font-size: 0.78rem;
|
||||||
letter-spacing: 0.04em;
|
letter-spacing: 0.04em;
|
||||||
opacity: 0.9;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.changes-chevron {
|
.changes-chevron {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: auto;
|
font-size: 0.75rem;
|
||||||
height: auto;
|
|
||||||
font-size: 0.85rem;
|
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
border: none;
|
transition: transform 0.15s ease;
|
||||||
border-radius: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.changes-icon {
|
.changes-icon {
|
||||||
font-size: 1rem;
|
font-size: 0.9rem;
|
||||||
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.changes-list {
|
.changes-list {
|
||||||
|
|||||||
Reference in New Issue
Block a user