mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-03 22:01:50 +00:00
feat: Show profile banners in web UI
This commit is contained in:
1 parent
f95292a83e
commit
32c8ff5b1b
9 files changed
+164
-36
No files matched your search
@@ -27,7 +27,7 @@
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
|
||||
background-color: oklch(from var(--panel-bg) calc(l - 0.05) c h);
|
||||
background-color: var(--card-bg);
|
||||
border-radius: var(--border-radius-lg);
|
||||
padding: 16px;
|
||||
|
||||
@@ -41,6 +41,8 @@
|
||||
.id {
|
||||
color: var(--secondary);
|
||||
font-weight: normal;
|
||||
font-size: small;
|
||||
font-family: monospace;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,6 +51,38 @@
|
||||
background-color: oklch(from red 0.2 c h);
|
||||
border: 1px dashed red;
|
||||
}
|
||||
|
||||
&.has-banner {
|
||||
background-image: linear-gradient(90deg, var(--card-bg) 40%, transparent 100%), var(--banner-url);
|
||||
background-size: cover;
|
||||
background-position: right;
|
||||
|
||||
@media (max-width: 450px) {
|
||||
--card-bg: oklch(from var(--panel-bg-dark) calc(l - 0.05) c h);
|
||||
|
||||
& {
|
||||
background-image: linear-gradient(90deg, oklch(from var(--card-bg) l c h / 0.9) 0%, transparent 40%), var(--banner-url);
|
||||
}
|
||||
|
||||
.info {
|
||||
padding: 10px;
|
||||
|
||||
border-radius: var(--border-radius-sm);
|
||||
outline: var(--glass-outline);
|
||||
outline-offset: -1px;
|
||||
|
||||
backdrop-filter: var(--glass-filter);
|
||||
|
||||
.name {
|
||||
color: var(--text-color-dark);
|
||||
}
|
||||
|
||||
.id {
|
||||
color: var(--secondary-dark);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card-list {
|
||||
|
||||
Reference in new issue
Block a user