Changeset 0.37.14 (#226)

Co-authored-by: gobha <jasafpro@gmail.com>
Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
2026-03-23 16:47:48 +00:00
committed by xcaliber
parent fcb998bff9
commit b7746c3004
164 changed files with 6972 additions and 3527 deletions

View File

@@ -10,6 +10,11 @@
width: 100%;
overflow: hidden;
background: var(--bg);
/* Safe-area insets for notched devices */
padding-top: env(safe-area-inset-top, 0);
padding-bottom: env(safe-area-inset-bottom, 0);
padding-left: env(safe-area-inset-left, 0);
padding-right: env(safe-area-inset-right, 0);
}
/* ── Banner (fixed top / bottom — identical component) ── */
@@ -137,3 +142,184 @@
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* ── Notification Bell ───────────────────── */
.sw-notification-bell {
position: relative;
}
.sw-notification-bell__trigger {
display: flex;
align-items: center;
justify-content: center;
position: relative;
width: 32px;
height: 32px;
background: none;
border: none;
border-radius: 6px;
color: var(--text-3, #555);
cursor: pointer;
transition: color 0.15s, background 0.15s;
}
.sw-notification-bell__trigger:hover {
color: var(--text, #eee);
background: var(--bg, #0e0e10);
}
.sw-notification-bell__badge {
position: absolute;
top: 2px;
right: 2px;
background: var(--danger, #ef4444);
color: #fff;
font-size: 9px;
font-weight: 700;
min-width: 14px;
height: 14px;
border-radius: 7px;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
padding: 0 3px;
}
.sw-notification-bell__panel {
position: absolute;
top: 100%;
right: 0;
margin-top: 6px;
width: 320px;
max-height: 420px;
background: var(--bg-secondary, #151517);
border: 1px solid var(--border, #2a2a2e);
border-radius: 10px;
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
z-index: 200;
overflow: hidden;
display: flex;
flex-direction: column;
}
.sw-notification-bell__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
border-bottom: 1px solid var(--border, #2a2a2e);
font-size: 13px;
font-weight: 600;
color: var(--text, #eee);
}
.sw-notification-bell__mark-all {
background: none;
border: none;
color: var(--accent, #b38a4e);
font-size: 11px;
cursor: pointer;
padding: 2px 6px;
border-radius: 4px;
}
.sw-notification-bell__mark-all:hover {
background: var(--accent-dim, rgba(179, 138, 78, 0.1));
}
.sw-notification-bell__list {
overflow-y: auto;
flex: 1;
}
.sw-notification-bell__empty {
padding: 24px 14px;
text-align: center;
color: var(--text-3, #555);
font-size: 12px;
}
.sw-notification-bell__item {
padding: 10px 14px;
border-bottom: 1px solid var(--border, #2a2a2e);
cursor: pointer;
transition: background 0.15s;
}
.sw-notification-bell__item:last-child {
border-bottom: none;
}
.sw-notification-bell__item:hover {
background: var(--bg, #0e0e10);
}
.sw-notification-bell__item--unread {
background: var(--accent-dim, rgba(179, 138, 78, 0.05));
}
.sw-notification-bell__item--unread::before {
content: '';
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--accent, #b38a4e);
margin-right: 8px;
vertical-align: middle;
}
.sw-notification-bell__item-text {
font-size: 12px;
color: var(--text, #eee);
display: inline;
}
.sw-notification-bell__item-body {
font-size: 11px;
color: var(--text-3, #555);
margin-top: 3px;
line-height: 1.4;
}
.sw-notification-bell__item-time {
font-size: 10px;
color: var(--text-3, #555);
margin-top: 3px;
display: flex;
align-items: center;
justify-content: space-between;
}
.sw-notification-bell__item--navigable {
cursor: pointer;
}
.sw-notification-bell__item-action {
font-size: 10px;
color: var(--accent, #4a9eff);
font-weight: 600;
opacity: 0;
transition: opacity 0.15s;
}
.sw-notification-bell__item:hover .sw-notification-bell__item-action {
opacity: 1;
}
/* ── Notification Bell — Mobile ──────────── */
@media (max-width: 768px) {
.sw-notification-bell__panel {
width: calc(100vw - 24px);
max-width: 320px;
right: -8px;
}
.sw-notification-bell__trigger {
min-width: 44px;
min-height: 44px;
}
}