605 lines
12 KiB
SCSS
605 lines
12 KiB
SCSS
// Rôle : met en page le catalogue de contrôles visible uniquement en développement.
|
|
@use "design-system/controls";
|
|
@use "design-system/interactive-controls";
|
|
|
|
.design-system-page {
|
|
display: grid;
|
|
grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
|
|
gap: var(--space-6);
|
|
width: min(1480px, calc(100% - 32px));
|
|
margin: 0 auto;
|
|
padding: var(--space-6) 0;
|
|
}
|
|
|
|
.design-system-nav {
|
|
position: sticky;
|
|
top: var(--space-4);
|
|
display: grid;
|
|
max-height: calc(100vh - var(--space-6));
|
|
align-content: start;
|
|
gap: var(--space-4);
|
|
padding: var(--space-5);
|
|
overflow: auto;
|
|
border: 1px solid rgba(150, 165, 205, 0.14);
|
|
border-radius: var(--radius-lg);
|
|
background:
|
|
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.08), transparent 34%),
|
|
rgba(7, 10, 24, 0.66);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.design-system-nav h1,
|
|
.design-system-section h2,
|
|
.design-system-matrix h3,
|
|
.design-system-nav p {
|
|
margin: 0;
|
|
}
|
|
|
|
.design-system-nav h1 {
|
|
font-size: clamp(2rem, 4vw, 3.2rem);
|
|
line-height: 0.95;
|
|
}
|
|
|
|
.design-system-nav p:not(.eyebrow) {
|
|
color: var(--color-text-secondary);
|
|
font-size: var(--font-size-sm);
|
|
}
|
|
|
|
.design-system-nav nav,
|
|
.design-system-token-stack {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.design-system-nav nav {
|
|
padding-top: var(--space-2);
|
|
border-top: 1px solid rgba(150, 165, 205, 0.12);
|
|
}
|
|
|
|
.design-system-nav button {
|
|
display: flex;
|
|
min-height: 34px;
|
|
align-items: center;
|
|
padding: 0 10px;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-md);
|
|
background: transparent;
|
|
color: var(--color-text-secondary);
|
|
font-size: var(--font-size-sm);
|
|
font-weight: 800;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.design-system-nav button:hover,
|
|
.design-system-nav button:focus-visible {
|
|
border-color: rgba(246, 196, 83, 0.28);
|
|
background: rgba(246, 196, 83, 0.08);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.design-system-main {
|
|
display: grid;
|
|
min-width: 0;
|
|
gap: var(--space-6);
|
|
}
|
|
|
|
.design-system-section {
|
|
display: grid;
|
|
min-width: 0;
|
|
scroll-margin-top: var(--space-5);
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.design-system-section > header {
|
|
display: flex;
|
|
min-width: 0;
|
|
align-items: end;
|
|
justify-content: space-between;
|
|
gap: var(--space-4);
|
|
padding: 0;
|
|
border: 0;
|
|
}
|
|
|
|
.design-system-section h2 {
|
|
font-size: clamp(1.6rem, 3vw, 2.35rem);
|
|
line-height: 1;
|
|
}
|
|
|
|
.design-system-component-intro {
|
|
display: grid;
|
|
grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2.4fr);
|
|
gap: var(--space-3);
|
|
padding: var(--space-4);
|
|
border: 1px solid rgba(150, 165, 205, 0.14);
|
|
border-radius: var(--radius-lg);
|
|
background: rgba(7, 10, 24, 0.34);
|
|
}
|
|
|
|
.design-system-doc-summary,
|
|
.design-system-attributes-doc {
|
|
display: grid;
|
|
align-content: start;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.design-system-component-intro span:first-child {
|
|
color: var(--color-accent-gold);
|
|
font-size: var(--font-size-xs);
|
|
font-weight: 900;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.design-system-component-intro strong {
|
|
color: var(--color-text-primary);
|
|
font-size: var(--font-size-lg);
|
|
}
|
|
|
|
.design-system-component-intro code,
|
|
.design-system-component-intro li code {
|
|
color: var(--color-text-primary);
|
|
font-size: var(--font-size-sm);
|
|
}
|
|
|
|
.design-system-attributes-doc dl {
|
|
display: grid;
|
|
overflow: hidden;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 1px solid rgba(165, 180, 252, 0.12);
|
|
border-radius: var(--radius-md);
|
|
background: rgba(5, 7, 17, 0.22);
|
|
}
|
|
|
|
.design-system-attributes-doc dl > div {
|
|
display: grid;
|
|
grid-template-columns: minmax(118px, 0.42fr) minmax(0, 1fr);
|
|
min-width: 0;
|
|
border-top: 1px solid rgba(165, 180, 252, 0.1);
|
|
}
|
|
|
|
.design-system-attributes-doc dl > div:first-child {
|
|
border-top: 0;
|
|
}
|
|
|
|
.design-system-attributes-doc dt,
|
|
.design-system-attributes-doc dd {
|
|
min-width: 0;
|
|
margin: 0;
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.design-system-attributes-doc dt {
|
|
border-right: 1px solid rgba(165, 180, 252, 0.1);
|
|
background: rgba(139, 92, 246, 0.06);
|
|
}
|
|
|
|
.design-system-attributes-doc dd {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
color: var(--color-text-secondary);
|
|
font-size: var(--font-size-xs);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.design-system-attributes-doc dd code {
|
|
padding: 2px 6px;
|
|
border: 1px solid rgba(246, 196, 83, 0.16);
|
|
border-radius: var(--radius-sm);
|
|
background: rgba(246, 196, 83, 0.06);
|
|
}
|
|
|
|
.design-system-matrix {
|
|
display: grid;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
border: 1px solid rgba(150, 165, 205, 0.14);
|
|
border-radius: var(--radius-lg);
|
|
background: rgba(7, 10, 24, 0.42);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.design-system-matrix > header {
|
|
display: flex;
|
|
min-width: 0;
|
|
align-items: start;
|
|
justify-content: flex-end;
|
|
gap: var(--space-3);
|
|
padding: var(--space-3);
|
|
border-bottom: 1px solid rgba(150, 165, 205, 0.12);
|
|
}
|
|
|
|
.design-system-matrix h3 {
|
|
font-size: var(--font-size-lg);
|
|
}
|
|
|
|
.design-system-matrix p {
|
|
margin: 4px 0 0;
|
|
color: var(--color-text-secondary);
|
|
font-size: var(--font-size-sm);
|
|
}
|
|
|
|
.design-system-config-panel {
|
|
display: flex;
|
|
width: 100%;
|
|
min-width: 0;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.design-system-config-field {
|
|
display: grid;
|
|
min-width: 118px;
|
|
gap: 4px;
|
|
}
|
|
|
|
.design-system-config-field span {
|
|
color: var(--color-text-muted);
|
|
font-size: 0.68rem;
|
|
font-weight: 900;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.design-system-matrix-grid {
|
|
@include controls.scrollbar-control;
|
|
display: grid;
|
|
grid-template-columns: 136px repeat(var(--nds-matrix-columns), minmax(150px, 1fr));
|
|
min-width: 0;
|
|
overflow-x: auto;
|
|
overscroll-behavior-x: contain;
|
|
}
|
|
|
|
.design-system-matrix-grid > * {
|
|
min-width: 0;
|
|
border-top: 1px dashed rgba(139, 92, 246, 0.42);
|
|
border-left: 1px dashed rgba(139, 92, 246, 0.42);
|
|
}
|
|
|
|
.design-system-matrix-corner,
|
|
.design-system-matrix-heading,
|
|
.design-system-matrix-row-label {
|
|
display: flex;
|
|
min-height: 48px;
|
|
align-items: center;
|
|
padding: 10px 12px;
|
|
color: var(--color-text-secondary);
|
|
font-size: var(--font-size-xs);
|
|
font-weight: 900;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.design-system-matrix-heading {
|
|
color: var(--color-accent-gold);
|
|
}
|
|
|
|
.design-system-matrix-row-label {
|
|
display: grid;
|
|
align-content: center;
|
|
gap: 3px;
|
|
background: rgba(5, 7, 17, 0.22);
|
|
line-height: 1.25;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.design-system-matrix-row-label span {
|
|
color: var(--color-text-muted);
|
|
font-size: 0.66rem;
|
|
}
|
|
|
|
.design-system-matrix-row-label strong {
|
|
color: var(--color-text-secondary);
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.design-system-matrix-cell {
|
|
display: flex;
|
|
min-height: 104px;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.design-system-matrix-separator {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
min-height: 38px;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
border-top: 2px solid rgba(246, 196, 83, 0.34);
|
|
border-left: 0;
|
|
background: rgba(246, 196, 83, 0.055);
|
|
color: var(--color-accent-gold);
|
|
font-size: var(--font-size-xs);
|
|
font-weight: 900;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.design-system-control-sample {
|
|
display: grid;
|
|
width: 100%;
|
|
min-width: 0;
|
|
min-height: 48px;
|
|
align-items: center;
|
|
justify-items: center;
|
|
}
|
|
|
|
.design-system-sample-preview {
|
|
display: flex;
|
|
width: 100%;
|
|
min-width: 0;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.design-system-matrix-cell > input,
|
|
.design-system-matrix-cell > select,
|
|
.design-system-matrix-cell > textarea,
|
|
.design-system-matrix-cell > .nds-field,
|
|
.design-system-matrix-cell > .mix-tags-input,
|
|
.design-system-control-sample input,
|
|
.design-system-control-sample select,
|
|
.design-system-control-sample textarea,
|
|
.design-system-control-sample .mix-tags-input {
|
|
width: 100%;
|
|
}
|
|
|
|
.design-system-foundations {
|
|
display: grid;
|
|
grid-template-columns: minmax(210px, 1.2fr) repeat(3, minmax(180px, 1fr));
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.design-system-foundations article {
|
|
display: grid;
|
|
min-height: 180px;
|
|
align-content: space-between;
|
|
gap: var(--space-3);
|
|
padding: var(--space-4);
|
|
border: 1px solid rgba(150, 165, 205, 0.14);
|
|
border-radius: var(--radius-lg);
|
|
background: rgba(7, 10, 24, 0.42);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.design-system-foundations p {
|
|
margin: 0;
|
|
color: var(--color-text-primary);
|
|
font-size: var(--font-size-lg);
|
|
font-weight: 900;
|
|
}
|
|
|
|
.design-system-type-card strong {
|
|
display: block;
|
|
color: var(--color-text-primary);
|
|
font-size: clamp(4rem, 10vw, 7rem);
|
|
line-height: 0.9;
|
|
}
|
|
|
|
.design-system-type-card span {
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.design-system-swatches {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, minmax(24px, 1fr));
|
|
overflow: hidden;
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.design-system-swatches span {
|
|
min-height: 96px;
|
|
background: var(--nds-swatch-color);
|
|
}
|
|
|
|
.design-system-radius-card > div,
|
|
.design-system-focus-card {
|
|
align-items: end;
|
|
}
|
|
|
|
.design-system-radius-card > div {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.design-system-radius-card span {
|
|
display: grid;
|
|
width: 52px;
|
|
height: 52px;
|
|
place-items: center;
|
|
border: 1px solid rgba(246, 196, 83, 0.32);
|
|
background: rgba(21, 26, 48, 0.72);
|
|
color: var(--color-text-secondary);
|
|
font-size: var(--font-size-xs);
|
|
font-weight: 900;
|
|
}
|
|
|
|
.design-system-spec-pill,
|
|
.design-system-size-spec {
|
|
display: inline-flex;
|
|
min-width: 0;
|
|
align-items: center;
|
|
}
|
|
|
|
.design-system-size-spec {
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.design-system-spec-pill {
|
|
gap: 5px;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
padding: 3px 7px;
|
|
border: 1px solid rgba(165, 180, 252, 0.12);
|
|
border-radius: var(--radius-pill);
|
|
background: rgba(5, 7, 17, 0.28);
|
|
color: var(--color-text-muted);
|
|
font-size: 0.68rem;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.design-system-spec-pill b {
|
|
color: var(--color-accent-gold);
|
|
}
|
|
|
|
.design-system-inline-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
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-filter-preview {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.design-system-filter-preview[data-variant="horizontal-compact"] {
|
|
container-type: inline-size;
|
|
}
|
|
|
|
.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%);
|
|
}
|
|
|
|
@media (max-width: 980px) {
|
|
.design-system-page {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.design-system-nav {
|
|
position: static;
|
|
max-height: none;
|
|
}
|
|
|
|
.design-system-nav nav {
|
|
grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
|
|
}
|
|
|
|
.design-system-foundations {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.design-system-component-intro {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.design-system-matrix > header {
|
|
display: grid;
|
|
}
|
|
|
|
.design-system-config-panel {
|
|
max-width: none;
|
|
justify-content: start;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.design-system-page {
|
|
width: min(100% - 20px, 1480px);
|
|
padding-block: var(--space-4) calc(var(--space-4) + 88px);
|
|
}
|
|
|
|
.design-system-nav,
|
|
.design-system-foundations article,
|
|
.design-system-matrix > header {
|
|
padding: var(--space-3);
|
|
}
|
|
|
|
.design-system-foundations {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.design-system-matrix-grid {
|
|
grid-template-columns: 116px repeat(var(--nds-matrix-columns), minmax(140px, 1fr));
|
|
}
|
|
|
|
.design-system-matrix-cell {
|
|
padding: 12px;
|
|
}
|
|
}
|