@acms-subir/core 0.3.13 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/layouts/Admin.astro +13 -5
- package/src/styles/admin.css +4 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/layouts/Admin.astro
CHANGED
|
@@ -185,11 +185,19 @@ const themeOpts = [
|
|
|
185
185
|
<div class="shell" id="acms-shell">
|
|
186
186
|
<aside class="sidebar" aria-label="Admin navigation">
|
|
187
187
|
<div class="brand">
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
188
|
+
{/* the site's own logo (Design) replaces the framework mark */}
|
|
189
|
+
{settings.siteLogo ? (
|
|
190
|
+
<>
|
|
191
|
+
<img class:list={['brand-logo', { 'logo-light': !!settings.siteLogoDark }]} src={settings.siteLogo} alt="" />
|
|
192
|
+
{settings.siteLogoDark && <img class="brand-logo logo-dark" src={settings.siteLogoDark} alt="" />}
|
|
193
|
+
</>
|
|
194
|
+
) : (
|
|
195
|
+
<svg width="20" height="20" viewBox="0 0 24 24" role="img" aria-label={BRAND.name}>
|
|
196
|
+
<rect x="1" y="3" width="22" height="4.4" rx="1.9" fill="currentColor" opacity="0.85" />
|
|
197
|
+
<rect x="1" y="10" width="12.5" height="4.4" rx="1.9" fill="var(--accent)" />
|
|
198
|
+
<rect x="1" y="17" width="17.5" height="4.4" rx="1.9" fill="currentColor" opacity="0.35" />
|
|
199
|
+
</svg>
|
|
200
|
+
)}
|
|
193
201
|
<span class="brand-name" title={`v${BRAND.version} · ${BRAND.stack}`}>{siteName}</span>
|
|
194
202
|
<button class="icon-btn" type="button" id="acms-rail-toggle" aria-label="Collapse sidebar" title="Collapse sidebar">
|
|
195
203
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d={icons.side} /></svg>
|
package/src/styles/admin.css
CHANGED
|
@@ -132,6 +132,9 @@ kbd {
|
|
|
132
132
|
}
|
|
133
133
|
.brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 12px; min-width: 0; }
|
|
134
134
|
.brand-name { font-weight: 700; font-size: 13.5px; letter-spacing: -0.01em; color: var(--text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
135
|
+
.brand-logo { height: 20px; width: auto; max-width: 96px; object-fit: contain; flex: none; }
|
|
136
|
+
.brand .logo-dark, :root[data-theme='dark'] .brand .logo-light { display: none; }
|
|
137
|
+
:root[data-theme='dark'] .brand .logo-dark { display: block; }
|
|
135
138
|
.brand-sub { font-size: 11px; color: var(--faint); margin-top: -2px; }
|
|
136
139
|
.icon-btn {
|
|
137
140
|
display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto;
|
|
@@ -224,6 +227,7 @@ kbd {
|
|
|
224
227
|
.shell.is-rail .nav-item span, .shell.is-rail .nav-item .count, .shell.is-rail .nav-group > summary,
|
|
225
228
|
.shell.is-rail .account .who, .shell.is-rail .account > svg { display: none; }
|
|
226
229
|
.shell.is-rail .brand { padding: 6px 0 12px; flex-direction: column; }
|
|
230
|
+
.shell.is-rail .brand-logo { max-width: 40px; }
|
|
227
231
|
.shell.is-rail .side-search { width: auto; padding: 7px; }
|
|
228
232
|
.shell.is-rail .nav-item { justify-content: center; padding: 8px; }
|
|
229
233
|
.shell.is-rail .nav-scroll { margin: 4px 0 0; padding: 0; }
|