Extend NDS patterns and migrate shared UI surfaces
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
This commit is contained in:
parent
fef7735a1d
commit
9aa98c892d
41 changed files with 1035 additions and 405 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// Rôle : regroupe les styles de cards, panels et variantes compactes.
|
||||
@use "mixins";
|
||||
@use "design-system/surfaces";
|
||||
@use "design-system/controls";
|
||||
|
||||
.section-grid,
|
||||
.cards,
|
||||
|
|
@ -22,33 +22,19 @@
|
|||
|
||||
.feature,
|
||||
.info-panel,
|
||||
.module,
|
||||
.empty,
|
||||
.card {
|
||||
.module {
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg);
|
||||
background: rgba(16, 20, 38, 0.88);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.card {
|
||||
@include surfaces.card-surface;
|
||||
}
|
||||
|
||||
@supports (corner-shape: scoop) {
|
||||
.card {
|
||||
corner-shape: scoop;
|
||||
}
|
||||
}
|
||||
|
||||
.feature,
|
||||
.info-panel,
|
||||
.empty {
|
||||
.info-panel {
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
||||
.feature,
|
||||
.card,
|
||||
.info-panel {
|
||||
transition:
|
||||
transform var(--duration-fast) var(--ease-standard),
|
||||
|
|
@ -57,51 +43,12 @@
|
|||
}
|
||||
|
||||
.feature:hover,
|
||||
.card:hover,
|
||||
.info-panel:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--color-border-hover);
|
||||
background: rgba(21, 26, 48, 0.96);
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
@include surfaces.card-surface-hover;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.compact-data-card {
|
||||
overflow: hidden;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-md);
|
||||
background:
|
||||
linear-gradient(rgba(17, 20, 34, 0.93), rgba(17, 20, 34, 0.93)) padding-box,
|
||||
radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.24), transparent 24%) border-box,
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.34) 0%, rgba(246, 196, 83, 0.2) 54%, rgba(34, 211, 238, 0.22) 100%) border-box;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition:
|
||||
transform var(--duration-fast) var(--ease-standard),
|
||||
border-color var(--duration-fast) var(--ease-standard),
|
||||
background-color var(--duration-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
@supports (corner-shape: scoop) {
|
||||
.compact-data-card {
|
||||
corner-shape: scoop;
|
||||
}
|
||||
}
|
||||
|
||||
.compact-data-card:hover {
|
||||
transform: none;
|
||||
border-color: transparent;
|
||||
background:
|
||||
linear-gradient(rgba(20, 23, 39, 0.96), rgba(20, 23, 39, 0.96)) padding-box,
|
||||
linear-gradient(135deg, rgba(139, 92, 246, 0.62), rgba(196, 181, 253, 0.42)) border-box;
|
||||
box-shadow:
|
||||
var(--shadow-sm),
|
||||
0 0 14px rgba(139, 92, 246, 0.12),
|
||||
0 0 22px rgba(196, 181, 253, 0.07);
|
||||
}
|
||||
|
||||
.feature {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
|
|
@ -113,27 +60,7 @@
|
|||
|
||||
.page-heading,
|
||||
.toolbox-head {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-5);
|
||||
}
|
||||
|
||||
.card {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.card-cover {
|
||||
min-height: 124px;
|
||||
@include surfaces.card-cover-divider;
|
||||
}
|
||||
|
||||
.card-body {
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
||||
.card-actions {
|
||||
margin-top: var(--space-5);
|
||||
@include controls.section-heading-pattern;
|
||||
}
|
||||
|
||||
.toolbox-card {
|
||||
|
|
@ -406,40 +333,14 @@
|
|||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.storage-quota-track {
|
||||
width: 100%;
|
||||
height: 9px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(150, 165, 205, 0.14);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(5, 7, 17, 0.82);
|
||||
}
|
||||
|
||||
.storage-quota-track span {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: var(--gradient-brand);
|
||||
box-shadow: 0 0 18px rgba(99, 102, 241, 0.32);
|
||||
transition: width var(--duration-normal) var(--ease-standard);
|
||||
}
|
||||
|
||||
.storage-quota-warning {
|
||||
border-color: rgba(251, 191, 36, 0.34);
|
||||
}
|
||||
|
||||
.storage-quota-warning .storage-quota-track span {
|
||||
background: linear-gradient(135deg, #fbbf24, #f97316);
|
||||
}
|
||||
|
||||
.storage-quota-danger {
|
||||
border-color: rgba(251, 113, 133, 0.42);
|
||||
}
|
||||
|
||||
.storage-quota-danger .storage-quota-track span {
|
||||
background: linear-gradient(135deg, #fb7185, #d946ef);
|
||||
}
|
||||
|
||||
.card-icon-button {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -452,6 +452,88 @@
|
|||
gap: 6px;
|
||||
}
|
||||
|
||||
.design-system-pattern-card,
|
||||
.design-system-pattern-wide,
|
||||
.design-system-pattern-hero,
|
||||
.design-system-pattern-overlay,
|
||||
.design-system-pattern-toast {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.design-system-pattern-card {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
min-height: 120px;
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.design-system-pattern-card strong,
|
||||
.design-system-pattern-wide strong,
|
||||
.design-system-pattern-hero strong,
|
||||
.design-system-pattern-overlay strong {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.design-system-pattern-card p,
|
||||
.design-system-pattern-card span,
|
||||
.design-system-pattern-hero span {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.design-system-pattern-cover {
|
||||
display: grid;
|
||||
min-height: 74px;
|
||||
place-items: center;
|
||||
background:
|
||||
radial-gradient(circle at 50% 38%, rgba(246, 196, 83, 0.16), transparent 42%),
|
||||
var(--gradient-nebula);
|
||||
}
|
||||
|
||||
.design-system-pattern-cover .ui-icon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.design-system-pattern-inline {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.design-system-pattern-wide {
|
||||
min-height: 72px;
|
||||
padding: var(--space-3);
|
||||
border: 1px dashed rgba(150, 165, 205, 0.18);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.design-system-pattern-hero {
|
||||
min-height: 120px;
|
||||
}
|
||||
|
||||
.design-system-pattern-reorder {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
min-height: 62px;
|
||||
place-items: center;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.36);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.design-system-pattern-overlay {
|
||||
min-height: 92px;
|
||||
padding: var(--space-3);
|
||||
}
|
||||
|
||||
.design-system-pattern-toast {
|
||||
min-width: min(300px, 100%);
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.design-system-page .calendar-month-event-repeat-switch {
|
||||
width: min(230px, 100%);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,6 +54,10 @@
|
|||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.drawer {
|
||||
--drawer-top-offset: 110px;
|
||||
}
|
||||
|
||||
.app-shell {
|
||||
display: block;
|
||||
padding-bottom: 76px;
|
||||
|
|
|
|||
|
|
@ -7,3 +7,4 @@
|
|||
@use "attributes/menus";
|
||||
@use "attributes/events";
|
||||
@use "attributes/states";
|
||||
@use "attributes/patterns";
|
||||
|
|
|
|||
|
|
@ -7,3 +7,4 @@
|
|||
@forward "controls/events";
|
||||
@forward "controls/checkboxes";
|
||||
@forward "controls/scrollbars";
|
||||
@forward "controls/patterns";
|
||||
|
|
|
|||
212
website/src/styles/design-system/attributes/_patterns.scss
Normal file
212
website/src/styles/design-system/attributes/_patterns.scss
Normal file
|
|
@ -0,0 +1,212 @@
|
|||
// Rôle : expose les primitives NDS publiques pour surfaces, feedback et overlays.
|
||||
@use "../controls";
|
||||
@use "../surfaces";
|
||||
|
||||
.nds-panel {
|
||||
@include controls.panel-surface;
|
||||
}
|
||||
|
||||
.nds-panel[data-variant="interactive"] {
|
||||
@include controls.panel-surface(true);
|
||||
}
|
||||
|
||||
.nds-card {
|
||||
@include controls.card-pattern;
|
||||
}
|
||||
|
||||
@supports (corner-shape: scoop) {
|
||||
.nds-card {
|
||||
corner-shape: scoop;
|
||||
}
|
||||
}
|
||||
|
||||
.nds-card[data-variant="interactive"]:hover,
|
||||
.nds-card[data-variant="interactive"]:focus-within {
|
||||
@include controls.card-pattern-hover;
|
||||
}
|
||||
|
||||
.nds-card-cover {
|
||||
min-height: 124px;
|
||||
@include surfaces.card-cover-divider;
|
||||
}
|
||||
|
||||
.nds-card-body {
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
||||
.nds-card-actions {
|
||||
margin-top: var(--space-5);
|
||||
}
|
||||
|
||||
.nds-tool-panel {
|
||||
@include controls.tool-panel-surface;
|
||||
}
|
||||
|
||||
.nds-tool-panel[data-variant="interactive"]:hover,
|
||||
.nds-tool-panel[data-variant="tool"]:hover {
|
||||
box-shadow:
|
||||
var(--shadow-sm),
|
||||
0 0 14px rgba(139, 92, 246, 0.14),
|
||||
0 0 24px rgba(196, 181, 253, 0.08);
|
||||
}
|
||||
|
||||
.nds-toolbar {
|
||||
@include controls.toolbar-pattern;
|
||||
}
|
||||
|
||||
.nds-section-heading {
|
||||
@include controls.section-heading-pattern;
|
||||
}
|
||||
|
||||
.nds-page-hero {
|
||||
@include controls.page-hero-pattern(true);
|
||||
}
|
||||
|
||||
.nds-badge {
|
||||
@include controls.badge-pattern;
|
||||
}
|
||||
|
||||
.nds-badge[data-variant="neutral"] {
|
||||
@include controls.badge-pattern(neutral);
|
||||
}
|
||||
|
||||
.nds-badge[data-variant="gold"] {
|
||||
@include controls.badge-pattern(gold);
|
||||
}
|
||||
|
||||
.nds-badge[data-variant="success"] {
|
||||
@include controls.badge-pattern(success);
|
||||
}
|
||||
|
||||
.nds-badge[data-variant="warning"] {
|
||||
@include controls.badge-pattern(warning);
|
||||
}
|
||||
|
||||
.nds-badge[data-variant="danger"] {
|
||||
@include controls.badge-pattern(danger);
|
||||
}
|
||||
|
||||
.nds-chip {
|
||||
@include controls.chip-pattern;
|
||||
}
|
||||
|
||||
.nds-chip:hover,
|
||||
.nds-chip.active,
|
||||
.nds-chip.is-active,
|
||||
.nds-chip[aria-pressed="true"],
|
||||
.nds-chip:has(input:checked) {
|
||||
@include controls.chip-active;
|
||||
}
|
||||
|
||||
.nds-chip[data-size="sm"] {
|
||||
min-height: 34px;
|
||||
padding: 5px 10px;
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
.nds-empty-state {
|
||||
@include controls.empty-state-pattern;
|
||||
}
|
||||
|
||||
.nds-inline-notice {
|
||||
@include controls.inline-notice-pattern;
|
||||
}
|
||||
|
||||
.nds-inline-notice[data-variant="success"] {
|
||||
@include controls.inline-notice-pattern(success);
|
||||
}
|
||||
|
||||
.nds-inline-notice[data-variant="warning"] {
|
||||
@include controls.inline-notice-pattern(warning);
|
||||
}
|
||||
|
||||
.nds-inline-notice[data-variant="danger"] {
|
||||
@include controls.inline-notice-pattern(danger);
|
||||
}
|
||||
|
||||
.nds-progress {
|
||||
@include controls.progress-pattern;
|
||||
}
|
||||
|
||||
.nds-progress > span,
|
||||
.nds-progress-bar {
|
||||
@include controls.progress-bar-pattern;
|
||||
}
|
||||
|
||||
.nds-progress[data-variant="success"] > span,
|
||||
.nds-progress[data-variant="success"] .nds-progress-bar {
|
||||
@include controls.progress-bar-pattern(success);
|
||||
}
|
||||
|
||||
.nds-progress[data-variant="warning"] > span,
|
||||
.nds-progress[data-variant="warning"] .nds-progress-bar {
|
||||
@include controls.progress-bar-pattern(warning);
|
||||
}
|
||||
|
||||
.nds-progress[data-variant="danger"] > span,
|
||||
.nds-progress[data-variant="danger"] .nds-progress-bar {
|
||||
@include controls.progress-bar-pattern(danger);
|
||||
}
|
||||
|
||||
.nds-filter-panel {
|
||||
@include controls.filter-panel-pattern;
|
||||
}
|
||||
|
||||
.nds-reorder-indicator,
|
||||
.nds-reorder-indicator[data-axis="vertical"][data-placement="before"] {
|
||||
@include controls.reorder-indicator-pattern(vertical, before);
|
||||
}
|
||||
|
||||
.nds-reorder-indicator[data-axis="vertical"][data-placement="after"] {
|
||||
@include controls.reorder-indicator-pattern(vertical, after);
|
||||
}
|
||||
|
||||
.nds-reorder-indicator[data-axis="horizontal"][data-placement="before"] {
|
||||
@include controls.reorder-indicator-pattern(horizontal, before);
|
||||
}
|
||||
|
||||
.nds-reorder-indicator[data-axis="horizontal"][data-placement="after"] {
|
||||
@include controls.reorder-indicator-pattern(horizontal, after);
|
||||
}
|
||||
|
||||
.nds-modal {
|
||||
@include controls.modal-panel-pattern;
|
||||
}
|
||||
|
||||
.nds-modal-backdrop {
|
||||
@include controls.overlay-backdrop-pattern;
|
||||
}
|
||||
|
||||
.nds-modal-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.nds-drawer-panel {
|
||||
@include controls.drawer-panel-pattern;
|
||||
}
|
||||
|
||||
.nds-drawer-resize-handle {
|
||||
@include controls.drawer-resize-handle-pattern;
|
||||
}
|
||||
|
||||
.nds-popover {
|
||||
@include controls.popover-pattern;
|
||||
}
|
||||
|
||||
.nds-toast-stack {
|
||||
@include controls.toast-stack-pattern;
|
||||
}
|
||||
|
||||
.nds-toast-stack[data-position="right"] {
|
||||
right: var(--space-5);
|
||||
}
|
||||
|
||||
.nds-toast-stack[data-position="left"] {
|
||||
left: var(--space-5);
|
||||
}
|
||||
|
||||
.nds-toast {
|
||||
@include controls.toast-pattern;
|
||||
}
|
||||
373
website/src/styles/design-system/controls/_patterns.scss
Normal file
373
website/src/styles/design-system/controls/_patterns.scss
Normal file
|
|
@ -0,0 +1,373 @@
|
|||
// Rôle : fournit les mixins publics des patterns NDS non limités aux contrôles.
|
||||
@use "../../mixins";
|
||||
@use "../surfaces";
|
||||
|
||||
@mixin panel-surface($interactive: false) {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-lg);
|
||||
background: rgba(16, 20, 38, 0.42);
|
||||
box-shadow: var(--shadow-sm);
|
||||
|
||||
@include mixins.gold-panel-frame($interactive);
|
||||
|
||||
> * {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin tool-panel-surface {
|
||||
@include panel-surface(true);
|
||||
contain: paint;
|
||||
}
|
||||
|
||||
@mixin card-pattern($fill: rgba(16, 20, 38, 0.88)) {
|
||||
overflow: hidden;
|
||||
border: 1px solid transparent;
|
||||
box-shadow: var(--shadow-sm);
|
||||
@include surfaces.card-surface($fill);
|
||||
}
|
||||
|
||||
@mixin card-pattern-hover {
|
||||
@include surfaces.card-surface-hover;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
@mixin toolbar-pattern {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
@mixin section-heading-pattern {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-5);
|
||||
}
|
||||
|
||||
@mixin page-hero-pattern($compact: false) {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
display: grid;
|
||||
align-items: end;
|
||||
gap: var(--space-6);
|
||||
overflow: hidden;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-xl);
|
||||
background:
|
||||
var(--gradient-nebula),
|
||||
radial-gradient(circle at 86% 18%, rgba(246, 196, 83, 0.1), transparent 28%),
|
||||
linear-gradient(135deg, rgba(16, 20, 38, 0.98), rgba(5, 7, 17, 0.96));
|
||||
box-shadow: var(--shadow-md);
|
||||
|
||||
@if $compact {
|
||||
min-height: 180px;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
padding: var(--space-6);
|
||||
} @else {
|
||||
min-height: 360px;
|
||||
padding: var(--space-10);
|
||||
}
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 2;
|
||||
padding: 1px;
|
||||
border-radius: inherit;
|
||||
background:
|
||||
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.5), transparent 26%),
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.38), rgba(139, 92, 246, 0.22) 48%, rgba(196, 181, 253, 0.3));
|
||||
@include mixins.border-mask;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
background:
|
||||
linear-gradient(135deg, rgba(5, 7, 17, 0.1), rgba(5, 7, 17, 0.52)),
|
||||
radial-gradient(circle at 82% 16%, rgba(246, 196, 83, 0.18), transparent 30%);
|
||||
}
|
||||
|
||||
> * {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin badge-pattern($tone: primary) {
|
||||
display: inline-flex;
|
||||
min-height: 24px;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 3px 9px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-pill);
|
||||
background: var(--color-primary-soft);
|
||||
color: #b69cff;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 800;
|
||||
line-height: 1.2;
|
||||
|
||||
@if $tone == gold {
|
||||
border-color: rgba(246, 196, 83, 0.22);
|
||||
background: rgba(246, 196, 83, 0.08);
|
||||
color: var(--color-accent-gold);
|
||||
} @else if $tone == success {
|
||||
border-color: rgba(52, 211, 153, 0.22);
|
||||
background: var(--color-success-soft);
|
||||
color: var(--color-success);
|
||||
} @else if $tone == warning {
|
||||
border-color: rgba(251, 191, 36, 0.24);
|
||||
background: var(--color-warning-soft);
|
||||
color: var(--color-warning);
|
||||
} @else if $tone == danger {
|
||||
border-color: rgba(251, 113, 133, 0.24);
|
||||
background: var(--color-danger-soft);
|
||||
color: var(--color-danger);
|
||||
} @else if $tone == neutral {
|
||||
border-color: rgba(165, 180, 252, 0.12);
|
||||
background: rgba(5, 7, 17, 0.3);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin chip-pattern {
|
||||
display: inline-grid;
|
||||
min-height: 40px;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 7px 12px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(5, 7, 17, 0.32);
|
||||
color: var(--color-text-secondary);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
border-color var(--duration-fast) var(--ease-standard),
|
||||
background-color var(--duration-fast) var(--ease-standard),
|
||||
color var(--duration-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
@mixin chip-active {
|
||||
border-color: var(--color-primary-border);
|
||||
background: var(--color-primary-soft);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
@mixin empty-state-pattern {
|
||||
display: grid;
|
||||
align-content: center;
|
||||
gap: var(--space-2);
|
||||
min-height: 132px;
|
||||
padding: var(--space-5);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg);
|
||||
background: rgba(16, 20, 38, 0.88);
|
||||
box-shadow: var(--shadow-sm);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
@mixin inline-notice-pattern($tone: info) {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid rgba(56, 189, 248, 0.24);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--color-info-soft);
|
||||
color: var(--color-info);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 800;
|
||||
|
||||
@if $tone == danger {
|
||||
border-color: rgba(251, 113, 133, 0.26);
|
||||
background: var(--color-danger-soft);
|
||||
color: var(--color-danger);
|
||||
} @else if $tone == warning {
|
||||
border-color: rgba(251, 191, 36, 0.26);
|
||||
background: var(--color-warning-soft);
|
||||
color: var(--color-warning);
|
||||
} @else if $tone == success {
|
||||
border-color: rgba(52, 211, 153, 0.26);
|
||||
background: var(--color-success-soft);
|
||||
color: var(--color-success);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin progress-pattern {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(165, 180, 252, 0.1);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(5, 7, 17, 0.62);
|
||||
}
|
||||
|
||||
@mixin progress-bar-pattern($tone: primary) {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(90deg, var(--color-primary), var(--color-accent-cyan));
|
||||
transition: width var(--duration-normal) var(--ease-standard);
|
||||
|
||||
@if $tone == warning {
|
||||
background: linear-gradient(90deg, var(--color-warning), var(--color-accent-gold));
|
||||
} @else if $tone == danger {
|
||||
background: linear-gradient(90deg, var(--color-danger), var(--color-accent-pink));
|
||||
} @else if $tone == success {
|
||||
background: linear-gradient(90deg, var(--color-success), var(--color-accent-cyan));
|
||||
}
|
||||
}
|
||||
|
||||
@mixin filter-panel-pattern {
|
||||
@include panel-surface;
|
||||
isolation: isolate;
|
||||
padding: var(--space-4);
|
||||
border-radius: var(--radius-xl);
|
||||
background: rgba(16, 20, 38, 0.58);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
@mixin reorder-indicator-pattern($axis: vertical, $placement: before) {
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(246, 196, 83, 0.9);
|
||||
box-shadow: 0 0 12px rgba(246, 196, 83, 0.24);
|
||||
pointer-events: none;
|
||||
|
||||
@if $axis == horizontal {
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 3px;
|
||||
|
||||
@if $placement == after {
|
||||
right: 0;
|
||||
left: auto;
|
||||
} @else {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
} @else {
|
||||
right: 0;
|
||||
left: 0;
|
||||
height: 3px;
|
||||
|
||||
@if $placement == after {
|
||||
top: auto;
|
||||
bottom: 0;
|
||||
} @else {
|
||||
top: 0;
|
||||
bottom: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin modal-panel-pattern {
|
||||
width: min(520px, calc(100vw - 32px));
|
||||
max-height: calc(100vh - 48px);
|
||||
overflow: auto;
|
||||
padding: var(--space-5);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-xl);
|
||||
background: rgba(16, 20, 38, 0.96);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
@mixin overlay-backdrop-pattern {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(2, 3, 9, 0.62);
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
|
||||
@mixin drawer-panel-pattern {
|
||||
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);
|
||||
}
|
||||
|
||||
@mixin drawer-resize-handle-pattern {
|
||||
border-radius: var(--radius-pill);
|
||||
cursor: ew-resize;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 5px;
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: var(--gradient-brand);
|
||||
opacity: 0.72;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin popover-pattern {
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(165, 180, 252, 0.14);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(7, 10, 24, 0.96);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
@mixin toast-stack-pattern {
|
||||
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;
|
||||
}
|
||||
|
||||
@mixin toast-pattern {
|
||||
--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;
|
||||
}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
// Rôle : regroupe les grilles, cartes, couvertures et badges des pages jeux.
|
||||
@use "../design-system/controls";
|
||||
|
||||
.game-grid {
|
||||
display: grid;
|
||||
|
|
@ -53,14 +54,6 @@
|
|||
}
|
||||
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
min-height: 24px;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
border-radius: var(--radius-pill);
|
||||
background: var(--color-primary-soft);
|
||||
color: #b69cff;
|
||||
font-size: var(--font-size-xs);
|
||||
@include controls.badge-pattern;
|
||||
font-weight: 700;
|
||||
padding: 3px 9px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
// Rôle : regroupe le layout, les filtres et les barres de contrôle des pages jeux.
|
||||
@use "../mixins";
|
||||
|
||||
.game-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
|
||||
|
|
@ -14,48 +12,6 @@
|
|||
top: 92px;
|
||||
}
|
||||
|
||||
.filter-panel {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
overflow: hidden;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-xl);
|
||||
background: rgba(16, 20, 38, 0.58);
|
||||
box-shadow: var(--shadow-sm);
|
||||
backdrop-filter: blur(10px);
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.filter-panel::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
background:
|
||||
radial-gradient(circle at 92% 12%, rgba(246, 196, 83, 0.009), transparent 34%),
|
||||
radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.011), transparent 42%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.filter-panel::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
padding: 1px;
|
||||
border-radius: inherit;
|
||||
background:
|
||||
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.42), transparent 34%),
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.42), rgba(139, 92, 246, 0.32) 54%, rgba(196, 181, 253, 0.24));
|
||||
@include mixins.border-mask;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.filter-panel > * {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.filter-panel-head,
|
||||
.filter-logic {
|
||||
display: flex;
|
||||
|
|
@ -111,22 +67,7 @@
|
|||
.filter-chip {
|
||||
display: grid;
|
||||
grid-template-columns: 18px 22px 1fr;
|
||||
min-height: 40px;
|
||||
align-items: center;
|
||||
column-gap: 6px;
|
||||
padding: 7px 10px 7px 13px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(5, 7, 17, 0.32);
|
||||
color: var(--color-text-secondary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.filter-chip:hover,
|
||||
.filter-chip.active {
|
||||
border-color: var(--color-primary-border);
|
||||
background: var(--color-primary-soft);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.filter-chip img {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Rôle : regroupe les fondations partagées des pages home et sections éditoriales.
|
||||
@use "../mixins";
|
||||
@use "../design-system/controls";
|
||||
|
||||
.hero,
|
||||
.game-hero,
|
||||
|
|
@ -133,9 +134,7 @@ span {
|
|||
.actions,
|
||||
.card-actions,
|
||||
.toolbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
@include controls.toolbar-pattern;
|
||||
}
|
||||
|
||||
.hero-library-button {
|
||||
|
|
|
|||
|
|
@ -1,22 +1,4 @@
|
|||
// Rôle : gère les panneaux narratifs Nebula et les dialogues home.
|
||||
@use "../mixins";
|
||||
|
||||
.nebula-panel {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-lg);
|
||||
background: rgba(16, 20, 38, 0.42);
|
||||
box-shadow: var(--shadow-sm);
|
||||
|
||||
@include mixins.gold-panel-frame;
|
||||
}
|
||||
|
||||
.nebula-panel > * {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.origin-section {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
|
||||
|
|
@ -75,4 +57,3 @@
|
|||
font-style: italic;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Rôle : stylise les indicateurs de synthèse de la librairie.
|
||||
.library-summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
|
@ -45,3 +45,10 @@
|
|||
height: 18px;
|
||||
background: currentColor;
|
||||
}
|
||||
|
||||
@media (max-width: 520px) {
|
||||
.library-summary {
|
||||
grid-template-columns: 1fr;
|
||||
padding: var(--space-4);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-4);
|
||||
padding: var(--space-2);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Rôle : regroupe les colonnes, modules et zones de dépôt des toolboxes.
|
||||
@use "../../mixins";
|
||||
@use "../../design-system/controls";
|
||||
|
||||
.modules {
|
||||
align-items: start;
|
||||
|
|
@ -50,19 +51,9 @@
|
|||
.module {
|
||||
--reorder-drop-shadow: var(--shadow-sm);
|
||||
|
||||
position: relative;
|
||||
contain: paint;
|
||||
overflow: hidden;
|
||||
border-color: transparent;
|
||||
background: rgba(16, 20, 38, 0.42);
|
||||
box-shadow: var(--shadow-sm);
|
||||
|
||||
@include mixins.gold-panel-frame(true);
|
||||
}
|
||||
|
||||
.module > * {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
@include controls.tool-panel-surface;
|
||||
}
|
||||
|
||||
.module:hover {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue