Refine toolbox navigation and local data controls
All checks were successful
Deploy Sokko G / deploy (push) Successful in 20s

This commit is contained in:
Shinuwa 2026-10-15 10:52:34 +02:00
parent 954240adf9
commit 2f2e79d200
27 changed files with 614 additions and 302 deletions

View file

@ -105,6 +105,10 @@
flex-direction: column;
}
.toolbox-card .card-body h2 {
overflow-wrap: anywhere;
}
.toolbox-card .card-actions {
margin-top: auto;
padding-top: var(--space-5);
@ -157,119 +161,6 @@
gap: var(--space-4);
}
.storage-help-card {
position: relative;
min-height: 292px;
overflow: hidden;
border-color: rgba(246, 196, 83, 0.22);
background:
linear-gradient(135deg, rgba(246, 196, 83, 0.1), transparent 38%),
rgba(10, 13, 29, 0.84);
}
.storage-help-card::after {
content: "";
position: absolute;
inset: 0 auto 0 0;
width: 3px;
background: var(--gradient-brand);
}
.storage-help-card .card-body {
display: flex;
min-height: 100%;
flex-direction: column;
padding: 18px;
}
.storage-help-heading {
display: grid;
grid-template-columns: 36px minmax(0, 1fr);
gap: 10px;
align-items: center;
margin-bottom: 12px;
}
.storage-help-mark {
display: grid;
width: 36px;
height: 36px;
place-items: center;
border: 1px solid rgba(246, 196, 83, 0.32);
border-radius: var(--radius-md);
background: rgba(246, 196, 83, 0.1);
color: var(--color-accent-gold);
box-shadow: 0 0 22px rgba(246, 196, 83, 0.12);
}
.storage-help-mark::before {
content: "";
width: 19px;
height: 19px;
background: currentColor;
mask: url("/static/icons/save.svg") center / contain no-repeat;
-webkit-mask: url("/static/icons/save.svg") center / contain no-repeat;
}
.storage-help-card h2 {
margin: 0;
font-size: var(--font-size-lg);
line-height: 1.2;
}
.storage-help-card .eyebrow {
color: var(--color-accent-gold);
}
.storage-help-intro {
color: var(--color-text-secondary);
font-size: var(--font-size-xs);
line-height: 1.45;
}
.storage-help-card p,
.storage-help-card ul {
margin: 0;
}
.storage-help-list {
display: grid;
gap: 7px;
margin-top: 18px;
padding: 10px 0 0;
list-style: none;
}
.storage-help-list li {
display: grid;
grid-template-columns: 22px minmax(0, 1fr);
gap: 8px;
align-items: start;
padding: 8px 9px;
border: 1px solid rgba(150, 165, 205, 0.12);
border-radius: var(--radius-md);
background: rgba(7, 10, 24, 0.45);
}
.storage-help-list span {
display: grid;
width: 18px;
height: 18px;
place-items: center;
border-radius: var(--radius-sm);
background: rgba(139, 92, 246, 0.18);
color: var(--color-text-primary);
font-size: var(--font-size-xs);
font-weight: 800;
}
.storage-help-list p {
align-self: center;
color: var(--color-text-secondary);
font-size: var(--font-size-xs);
line-height: 1.32;
}
.storage-quota {
position: relative;
isolation: isolate;

View file

@ -4,3 +4,4 @@
@use "overlays/modals";
@use "overlays/notifications";
@use "overlays/tool-add";
@use "overlays/toolbox-management";

View file

@ -244,7 +244,8 @@
.hero,
.game-hero,
.page-hero {
.page-hero,
.page-hero.primary-list-hero {
min-height: auto;
padding: var(--space-6);
}
@ -412,21 +413,6 @@
justify-content: flex-end;
}
.toolbox-actions-row {
align-items: stretch;
flex-direction: column;
}
.toolbox-actions-row > div,
.toolbox-actions-row > div:last-child {
justify-content: flex-start;
}
.toolbox-preferences-row {
max-width: none;
justify-self: stretch;
}
}
@media (max-width: 767px) {

View file

@ -288,12 +288,23 @@
.sidebar-storage-actions {
display: flex;
width: max-content;
max-width: 100%;
gap: var(--space-2);
margin-top: var(--space-4);
margin: var(--space-4) auto 0;
}
.sidebar-action-button {
display: inline-flex;
white-space: nowrap;
}
.sidebar-storage-actions .sidebar-backup-button.nds-button {
padding-inline: var(--space-2);
}
.sidebar-storage-action-label {
color: inherit;
}
.sidebar[data-variant="compact"] {
@ -339,16 +350,22 @@
}
.sidebar[data-variant="compact"] .sidebar-storage-actions {
flex-direction: column;
width: auto;
align-items: center;
flex-direction: column;
gap: 6px;
margin-top: 0;
margin: 0 auto;
}
.sidebar[data-variant="compact"] .sidebar-action-button {
width: 36px;
height: 36px;
flex: 0 0 36px;
padding: 0;
}
.sidebar[data-variant="compact"] .sidebar-storage-action-label {
display: none;
}
.content-shell {

View file

@ -92,6 +92,10 @@
padding: var(--space-6);
}
.page-hero.primary-list-hero {
min-height: 195px;
}
.page-hero p:last-child {
max-width: 720px;
margin-bottom: 0;

View file

@ -59,8 +59,18 @@
line-height: 1.6;
}
.auto-backup-settings {
margin-top: var(--space-5);
}
.auto-backup-status-grid {
display: grid;
grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
gap: var(--space-4);
}
.auto-backup-compatibility {
margin-bottom: var(--space-5);
margin-top: var(--space-5);
padding: var(--space-4);
border: 1px solid rgba(165, 180, 252, 0.14);
border-radius: var(--radius-md);
@ -92,14 +102,8 @@
font-weight: 800;
}
.auto-backup-compatibility p {
margin: 0;
color: var(--color-text-muted);
font-size: var(--font-size-sm);
}
.auto-backup-permission-guide {
margin-bottom: var(--space-5);
margin-top: var(--space-5);
padding: var(--space-4);
border: 1px solid rgba(34, 211, 238, 0.2);
border-radius: var(--radius-md);
@ -132,7 +136,6 @@
align-items: stretch;
flex-direction: column;
gap: var(--space-4);
margin-top: var(--space-5);
}
.auto-backup-folder,
@ -156,7 +159,7 @@
}
.auto-backup-last {
margin-top: var(--space-6);
min-width: 0;
}
.auto-backup-last strong {
@ -259,8 +262,8 @@
}
@media (max-width: 600px) {
.auto-backup-folder {
gap: var(--space-3);
.auto-backup-status-grid {
grid-template-columns: 1fr;
}
.auto-backup-modal-footer {

View file

@ -0,0 +1,107 @@
// Rôle : stylise la fenêtre de gestion locale de la collection de toolboxes.
.toolbox-management-modal.nds-modal {
width: min(720px, calc(100vw - 32px));
max-height: min(760px, calc(100vh - 32px));
overflow-y: auto;
}
.toolbox-management-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: var(--space-4);
}
.toolbox-management-header h2,
.toolbox-management-header .eyebrow {
margin-bottom: 0;
}
.toolbox-management-description {
color: var(--color-text-secondary);
line-height: 1.55;
}
.toolbox-management-section {
display: grid;
gap: var(--space-4);
margin-top: var(--space-4);
padding: var(--space-4);
border: 1px solid rgba(165, 180, 252, 0.14);
border-radius: var(--radius-md);
background: rgba(5, 7, 17, 0.32);
}
.toolbox-management-section h3 {
margin: 0;
font-size: var(--font-size-base);
}
.toolbox-management-section p {
margin: var(--space-2) 0 0;
color: var(--color-text-muted);
font-size: var(--font-size-sm);
line-height: 1.45;
}
.toolbox-management-actions {
flex-wrap: wrap;
justify-content: flex-start;
}
.toolbox-management-preferences {
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
}
.toolbox-management-preferences .eyebrow {
margin: 0 0 4px;
}
.toolbox-storage-details {
margin-top: var(--space-4);
border: 1px solid rgba(165, 180, 252, 0.14);
border-radius: var(--radius-md);
background: rgba(16, 20, 38, 0.42);
}
.toolbox-storage-details summary {
padding: var(--space-4);
color: var(--color-text-primary);
font-size: var(--font-size-sm);
font-weight: 800;
cursor: pointer;
}
.toolbox-storage-details summary:focus-visible {
outline: 2px solid var(--color-accent-gold);
outline-offset: -2px;
}
.toolbox-storage-details-content {
padding: 0 var(--space-4) var(--space-4);
color: var(--color-text-secondary);
font-size: var(--font-size-sm);
line-height: 1.5;
}
.toolbox-storage-details-content > p {
margin: 0;
}
.toolbox-storage-details-content ul {
display: grid;
gap: var(--space-2);
margin: var(--space-3) 0 0;
padding-left: 20px;
}
.toolbox-management-footer {
margin-top: var(--space-5);
}
@media (max-width: 600px) {
.toolbox-management-preferences {
grid-template-columns: 1fr;
}
}

View file

@ -1,78 +1,91 @@
// Rôle : regroupe les préférences toolbox, colonnes et contrôles de layout.
@use "../../mixins";
// Rôle : structure l’en-tête, la collection et les préférences de la page toolboxes.
.modules-toolbar {
display: flex;
justify-content: flex-end;
margin-top: var(--space-4);
}
.toolbox-actions-row {
display: flex;
width: 100%;
align-items: center;
justify-content: space-between;
gap: var(--space-4);
.toolbox-list-hero .eyebrow,
.toolbox-collection-heading .eyebrow {
margin-bottom: 4px;
}
.toolbox-actions-row > div {
display: flex;
flex-wrap: wrap;
gap: 10px;
.toolbox-list-primary-actions {
justify-content: flex-start;
}
.toolbox-actions-row > div:last-child {
.toolbox-list-actions {
justify-content: flex-end;
}
.toolbox-preferences-row {
position: relative;
isolation: isolate;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
width: 100%;
max-width: 520px;
.toolbox-list-hero > div > p:last-of-type {
max-width: 720px;
}
.toolbox-collection {
min-width: 0;
}
.toolbox-collection-heading {
display: flex;
align-items: center;
justify-self: end;
justify-content: flex-start;
gap: var(--space-4);
margin-top: var(--space-4);
padding: var(--space-4);
overflow: hidden;
border: 1px solid transparent;
border-radius: var(--radius-lg);
background:
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.08), transparent 34%),
linear-gradient(135deg, rgba(16, 20, 38, 0.84), rgba(5, 7, 17, 0.76));
color: var(--color-text-muted);
font-size: var(--font-size-sm);
font-weight: 800;
box-shadow: var(--shadow-sm);
}
.toolbox-preferences-row::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
padding: 1px;
border-radius: inherit;
background:
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.38), transparent 30%),
linear-gradient(135deg, rgba(246, 196, 83, 0.26), rgba(139, 92, 246, 0.16), rgba(56, 189, 248, 0.18));
@include mixins.border-mask;
.toolbox-collection-title-row {
display: flex;
align-items: center;
gap: var(--space-2);
}
.toolbox-preferences-row .eyebrow {
margin-bottom: 4px;
font-size: 0.68rem;
.toolbox-collection-heading h2 {
margin: 0;
font-size: var(--font-size-xl);
}
.toolbox-preferences-row strong {
display: block;
color: var(--color-text-primary);
font-size: var(--font-size-sm);
.toolbox-collection-title-row .nds-badge {
flex: 0 0 auto;
}
.toolbox-preferences-row + .cards {
margin-top: 0;
.toolbox-collection > .cards {
margin-top: var(--space-3);
}
.toolbox-list-empty {
grid-column: 1 / -1;
align-items: flex-start;
text-align: left;
}
.toolbox-list-empty .nds-button {
width: fit-content;
}
@media (max-width: 1024px) {
.toolbox-list-actions {
justify-content: flex-end;
}
.toolbox-list-action-label {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
clip-path: inset(50%);
white-space: nowrap;
}
}
@media (max-width: 767px) {
.toolbox-list-primary-actions,
.toolbox-list-actions {
justify-content: flex-start;
}
.toolbox-list-primary-actions > *,
.toolbox-list-actions > * {
max-width: 100%;
}
}