Extend NDS patterns and migrate shared UI surfaces
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s

This commit is contained in:
Shinuwa 2026-09-02 15:50:04 +02:00
parent fef7735a1d
commit 9aa98c892d
41 changed files with 1035 additions and 405 deletions

View file

@ -5,7 +5,7 @@
.drawer-backdrop {
position: fixed;
inset: 0;
inset: var(--drawer-top-offset, 68px) 0 0 0;
z-index: 40;
background: rgba(2, 3, 9, 0.24);
backdrop-filter: none;
@ -13,26 +13,11 @@
.drawer-panel {
position: fixed;
inset: 0 0 0 auto;
inset: var(--drawer-top-offset, 68px) 0 0 auto;
z-index: 50;
width: min(720px, 94vw);
min-width: 360px;
max-width: 94vw;
overflow: auto;
border-left: 0;
background:
linear-gradient(
180deg,
rgba(246, 196, 83, 0.92),
rgba(139, 92, 246, 0.64) 48%,
rgba(196, 181, 253, 0.72)
) left top / 1px 100% no-repeat,
rgba(7, 9, 19, 0.82);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
box-shadow:
inset 8px 0 18px rgba(139, 92, 246, 0.08),
var(--shadow-lg);
padding: var(--space-5);
}
@ -50,28 +35,14 @@
.drawer-resize-handle {
position: fixed;
top: 50%;
top: calc(var(--drawer-top-offset, 68px) + ((100vh - var(--drawer-top-offset, 68px)) / 2));
right: calc(var(--drawer-panel-width, min(720px, 94vw)) - 18px);
z-index: 62;
width: 14px;
height: 72px;
border-radius: var(--radius-pill);
cursor: ew-resize;
transform: translateY(-50%);
}
.drawer-resize-handle::before {
content: "";
position: absolute;
top: 0;
left: 5px;
width: 4px;
height: 100%;
border-radius: inherit;
background: var(--gradient-brand);
opacity: 0.72;
}
body.is-resizing-drawer,
body.is-resizing-drawer * {
cursor: ew-resize !important;

View file

@ -19,23 +19,8 @@
overscroll-behavior: contain;
}
.confirm-backdrop {
position: absolute;
inset: 0;
background: rgba(2, 3, 9, 0.62);
backdrop-filter: blur(6px);
}
.confirm-modal {
position: relative;
width: min(520px, calc(100vw - 32px));
max-height: calc(100vh - 48px);
overflow: auto;
border: 1px solid var(--color-border);
border-radius: var(--radius-xl);
background: rgba(16, 20, 38, 0.96);
box-shadow: var(--shadow-lg);
padding: var(--space-5);
}
.confirm-modal h2 {
@ -46,12 +31,6 @@
margin-bottom: var(--space-6);
}
.confirm-modal footer {
display: flex;
justify-content: flex-end;
gap: 10px;
}
@property --notification-toast-angle {
syntax: "<angle>";
inherits: false;

View file

@ -1,52 +1,5 @@
// Rôle : gère les toasts de notification et leurs animations.
.notification-toast-stack {
position: fixed;
bottom: var(--space-5);
z-index: 360;
display: flex;
max-width: min(460px, calc(100vw - 32px));
flex-direction: column-reverse;
gap: var(--space-3);
pointer-events: none;
}
.notification-toast-stack.is-right {
right: var(--space-5);
}
.notification-toast-stack.is-left {
left: var(--space-5);
}
.notification-toast {
--notification-toast-angle: 0deg;
display: grid;
grid-template-columns: minmax(0, 1fr) 34px;
align-items: center;
gap: var(--space-3);
width: 100%;
min-width: min(360px, calc(100vw - 32px));
padding: 14px 14px 14px 18px;
border: 2px solid transparent;
border-radius: var(--radius-lg);
background:
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.12), transparent 38%) padding-box,
linear-gradient(135deg, rgba(16, 20, 38, 0.98), rgba(24, 20, 42, 0.98)) padding-box,
conic-gradient(
from var(--notification-toast-angle),
rgba(246, 196, 83, 0.95),
rgba(139, 92, 246, 0.8),
rgba(56, 189, 248, 0.62),
rgba(246, 196, 83, 0.95)
) border-box;
color: var(--color-text-primary);
box-shadow:
var(--shadow-md),
0 0 24px rgba(139, 92, 246, 0.22),
0 0 18px rgba(246, 196, 83, 0.1);
font-size: var(--font-size-md);
font-weight: 900;
pointer-events: auto;
animation:
notification-toast-enter-right 320ms var(--ease-standard),
notification-toast-border-spin 2.4s linear infinite,
@ -64,24 +17,6 @@
min-width: 0;
}
.notification-toast button {
display: inline-grid;
width: 34px;
min-width: 34px;
min-height: 34px;
place-items: center;
padding: 0;
border-color: rgba(165, 180, 252, 0.12);
background: rgba(5, 7, 17, 0.28);
color: var(--color-text-secondary);
}
.notification-toast button:hover {
border-color: rgba(196, 181, 253, 0.26);
background: rgba(21, 26, 48, 0.72);
color: var(--color-text-primary);
}
.notification-toast button .ui-icon {
width: 16px;
height: 16px;