✨ Correction et Ajustement des fonctionnalités
This commit is contained in:
1 parent
d58d340d01
commit
795e4efe29
2 files changed
+488
-62
No files matched your search
+180
-15
@@ -14,6 +14,40 @@
|
||||
--text-muted: #a1a1aa;
|
||||
--text-faint: #71717a;
|
||||
--danger: #f87171;
|
||||
--danger-soft: #fecaca;
|
||||
--warning: #facc15;
|
||||
--warning-soft: #fde68a;
|
||||
--accent: #fafafa;
|
||||
--on-accent: #09090b;
|
||||
--border-hover: #d4d4d8;
|
||||
--pill: rgba(255, 255, 255, 0.06);
|
||||
--pill-hover: rgba(255, 255, 255, 0.12);
|
||||
--glow: rgba(255, 255, 255, 0.03);
|
||||
}
|
||||
|
||||
[data-theme="light"] {
|
||||
color: #18181b;
|
||||
background: #fafafa;
|
||||
color-scheme: light;
|
||||
|
||||
--bg: #fafafa;
|
||||
--surface: #ffffff;
|
||||
--surface-raised: #f4f4f5;
|
||||
--border: #e4e4e7;
|
||||
--border-strong: #d4d4d8;
|
||||
--border-hover: #a1a1aa;
|
||||
--text: #18181b;
|
||||
--text-muted: #52525b;
|
||||
--text-faint: #71717a;
|
||||
--danger: #dc2626;
|
||||
--danger-soft: #b91c1c;
|
||||
--warning: #ca8a04;
|
||||
--warning-soft: #a16207;
|
||||
--accent: #18181b;
|
||||
--on-accent: #fafafa;
|
||||
--pill: rgba(0, 0, 0, 0.06);
|
||||
--pill-hover: rgba(0, 0, 0, 0.12);
|
||||
--glow: rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
@@ -29,16 +63,16 @@ button {
|
||||
cursor: pointer;
|
||||
transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
|
||||
}
|
||||
button:hover:not(:disabled) { border-color: #d4d4d8; }
|
||||
button:hover:not(:disabled) { border-color: var(--border-hover); }
|
||||
button:disabled { cursor: not-allowed; opacity: 0.4; }
|
||||
button.primary {
|
||||
color: #09090b;
|
||||
background: #fafafa;
|
||||
border-color: #fafafa;
|
||||
color: var(--on-accent);
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
font-weight: 650;
|
||||
}
|
||||
button.primary:hover:not(:disabled) { background: #ffffff; border-color: #ffffff; }
|
||||
:focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }
|
||||
button.primary:hover:not(:disabled) { filter: brightness(1.08); }
|
||||
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
|
||||
main { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: 3.5rem 0 4rem; }
|
||||
header, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
|
||||
@@ -108,14 +142,14 @@ input {
|
||||
transition: border-color 0.15s ease;
|
||||
}
|
||||
input::placeholder { color: #52525b; }
|
||||
input:focus { outline: none; border-color: #fafafa; }
|
||||
input:focus { outline: none; border-color: var(--accent); }
|
||||
.hint { grid-column: 1 / -1; margin: 0.6rem 0 0; color: var(--text-faint); font-size: 0.8rem; }
|
||||
|
||||
.message {
|
||||
margin: 1.25rem 0 0;
|
||||
padding: 0.85rem 1.1rem;
|
||||
border: 1px solid var(--border);
|
||||
border-left: 3px solid #fafafa;
|
||||
border-left: 3px solid var(--accent);
|
||||
border-radius: 8px;
|
||||
background: var(--surface);
|
||||
font-size: 0.92rem;
|
||||
@@ -199,17 +233,93 @@ input[type="checkbox"] {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin: 0;
|
||||
accent-color: #fafafa;
|
||||
accent-color: var(--accent);
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
article.selected {
|
||||
background: var(--surface-raised);
|
||||
box-shadow: inset 2px 0 0 #fafafa;
|
||||
box-shadow: inset 2px 0 0 var(--accent);
|
||||
}
|
||||
.modal.confirm { width: min(480px, 100%); padding: 1.6rem; }
|
||||
.modal.confirm h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
|
||||
|
||||
.notifications {
|
||||
position: fixed;
|
||||
right: 1.25rem;
|
||||
bottom: 1.25rem;
|
||||
z-index: 80;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: min(380px, calc(100vw - 2.5rem));
|
||||
}
|
||||
.notification {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.7rem;
|
||||
padding: 0.85rem 0.95rem;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 12px;
|
||||
background: var(--surface);
|
||||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--glow);
|
||||
animation: rise 0.2s ease;
|
||||
transition: margin 0.3s ease;
|
||||
}
|
||||
.notification p {
|
||||
margin: 0;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
line-height: 1.45;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.notification .dot {
|
||||
flex-shrink: 0;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
margin-top: 0.35rem;
|
||||
border-radius: 999px;
|
||||
background: var(--accent);
|
||||
}
|
||||
.notification.error { color: var(--danger-soft); }
|
||||
.notification.warning { color: var(--warning-soft); }
|
||||
.notification.error .dot { background: var(--danger); }
|
||||
.notification.warning .dot { background: var(--warning); }
|
||||
/* Deck facon sonner: chaque carte est recouverte par la suivante; la plus
|
||||
recente est devant, en bas, et les anciennes depassent au-dessus. */
|
||||
.notification:not(:last-child) { margin-bottom: -2.2rem; }
|
||||
/* Au survol, la pile se deploie en colonne, de bas en haut. */
|
||||
.notifications:hover .notification:not(:last-child) { margin-bottom: 0.55rem; }
|
||||
.notification-close {
|
||||
flex-shrink: 0;
|
||||
padding: 0.1rem 0.55rem;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
color: var(--text-muted);
|
||||
background: var(--pill);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.3;
|
||||
cursor: pointer;
|
||||
}
|
||||
.notification-close:hover { color: var(--text); background: var(--pill-hover); }
|
||||
|
||||
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
|
||||
|
||||
.auth-main {
|
||||
width: min(1100px, calc(100% - 2rem));
|
||||
min-height: 100vh;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.auth-panel { width: min(420px, 100%); padding: 2.5rem; margin: 0; }
|
||||
.auth-panel h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 0.5rem; }
|
||||
.auth-sub { color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; margin-bottom: 1.5rem; }
|
||||
.auth-form { grid-template-columns: 1fr; gap: 1rem; }
|
||||
.auth-form button { margin-top: 0.5rem; }
|
||||
.auth-main .notifications { position: fixed; }
|
||||
|
||||
.activity {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
@@ -261,8 +371,8 @@ article.selected {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
.page-link:hover:not(.active) { color: var(--text); border-color: #d4d4d8; }
|
||||
.page-link.active { color: #09090b; background: #fafafa; border-color: #fafafa; }
|
||||
.page-link:hover:not(.active) { color: var(--text); border-color: var(--border-hover); }
|
||||
.page-link.active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
|
||||
.page-link .count { font-variant-numeric: tabular-nums; font-size: 0.78rem; opacity: 0.7; }
|
||||
|
||||
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
|
||||
@@ -277,7 +387,7 @@ article.selected {
|
||||
font-weight: 600;
|
||||
}
|
||||
.tab:hover:not(.active) { color: var(--text); }
|
||||
.tab.active { color: #09090b; background: #fafafa; border-color: #fafafa; }
|
||||
.tab.active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
|
||||
.tab .count { font-variant-numeric: tabular-nums; font-size: 0.78rem; opacity: 0.7; }
|
||||
.empty.small { padding: 1.6rem 1rem; font-size: 0.88rem; border-radius: 8px; }
|
||||
.panel-head .eyebrow { margin-bottom: 0.3rem; }
|
||||
@@ -365,7 +475,7 @@ button.danger {
|
||||
background: transparent;
|
||||
}
|
||||
button.danger:hover:not(:disabled) {
|
||||
color: #09090b;
|
||||
color: var(--on-accent);
|
||||
background: var(--danger);
|
||||
border-color: var(--danger);
|
||||
}
|
||||
@@ -382,6 +492,61 @@ button.danger:hover:not(:disabled) {
|
||||
.modal-grid { grid-template-columns: 1fr; }
|
||||
header { align-items: flex-end; }
|
||||
article { flex-direction: column; gap: 0.75rem; }
|
||||
article.selected { box-shadow: inset 2px 0 0 #fafafa; }
|
||||
article.selected { box-shadow: inset 2px 0 0 var(--accent); }
|
||||
.bulk-bar { flex-wrap: wrap; gap: 0.75rem; }
|
||||
}
|
||||
|
||||
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
|
||||
.user-menu { position: relative; }
|
||||
.avatar {
|
||||
width: 2.4rem;
|
||||
height: 2.4rem;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 999px;
|
||||
background: var(--surface-raised);
|
||||
color: var(--text);
|
||||
font-weight: 700;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.avatar:hover:not(:disabled) { border-color: var(--border-hover); }
|
||||
.user-dropdown {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: calc(100% + 0.5rem);
|
||||
z-index: 90;
|
||||
min-width: 210px;
|
||||
padding: 0.5rem;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 12px;
|
||||
background: var(--surface);
|
||||
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
|
||||
display: grid;
|
||||
gap: 0.15rem;
|
||||
animation: rise 0.15s ease;
|
||||
}
|
||||
.user-dropdown .user-name {
|
||||
margin: 0 0 0.3rem;
|
||||
padding: 0.45rem 0.7rem 0.55rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
color: var(--text-faint);
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
.user-dropdown button {
|
||||
padding: 0.55rem 0.7rem;
|
||||
border-color: transparent;
|
||||
border-radius: 8px;
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
text-align: left;
|
||||
}
|
||||
.user-dropdown button:hover:not(:disabled) {
|
||||
background: var(--surface-raised);
|
||||
border-color: transparent;
|
||||
}
|
||||
Reference in new issue
Block a user