Repository Public
1/* SP Mail Next — centre de commande : grille de 12 colonnes (selon la largeur du volet), widgets, chiffres, mode « personnaliser ». */2.nx-dash { container-type: inline-size; }3.nx-dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }4.nx-widget { grid-column: span 4; min-width: 0; display: flex; flex-direction: column; }5.nx-widget[data-wide="true"] { grid-column: span 8; }6@container (max-width: 900px) {7 .nx-widget { grid-column: span 6; }8 .nx-widget[data-wide="true"] { grid-column: span 12; }9}10@container (max-width: 560px) {11 .nx-dash-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }12 .nx-widget, .nx-widget[data-wide="true"] { grid-column: auto; }13}1415/* en-tête d'un widget : titre discret, lien « tout voir » */16.nx-widget .nx-card-head { padding: 14px 16px 6px; min-height: 44px; }17.nx-widget .nx-card-head h2 { font-size: var(--fs-s); font-weight: 600; color: var(--text-2); letter-spacing: 0.01em; }18.nx-widget-icon { color: var(--text-3); flex: none; }19.nx-widget-more { font-size: var(--fs-s); color: var(--accent-ink); text-decoration: none; padding: 4px 6px; margin: -4px -6px; border-radius: var(--radius-s); white-space: nowrap; }20.nx-widget-more:hover { text-decoration: underline; }21.nx-widget-body { padding: 2px 8px 10px; flex: 1; min-width: 0; display: flex; flex-direction: column; }22/* les tuiles gardent leur hauteur : elles ne s'étirent pas jusqu'au bas d'une rangée plus haute */23.nx-widget-body > .nx-stats { flex: none; margin-bottom: 6px; }24.nx-widget-body > .nx-dash-empty { flex: 1; }25.nx-widget-body > .nx-stats, .nx-widget-body > .nx-dash-sync, .nx-widget-body > .nx-dash-storage, .nx-widget-body > .nx-dash-quiet, .nx-widget-body > .nx-dash-skel { margin-left: 8px; margin-right: 8px; }2627/* lignes */28.nx-dash-row { padding: 8px; gap: 10px; min-height: var(--tap); }29.nx-dash-row .icon { color: var(--text-3); flex: none; }30.nx-dash-row .nx-item-main > span { min-width: 0; display: block; }31.nx-dash-link { color: inherit; text-decoration: none; border-radius: var(--radius-s); }32.nx-dash-link:hover > span:first-child { text-decoration: underline; }33.nx-dash-badge { margin-left: 8px; vertical-align: 1px; }34.nx-dash-badge-lead { margin-right: 8px; }35/* dans la ligne du nom (pas sous lui) */36.nx-dash-vip { color: var(--star); margin-left: 6px; vertical-align: -2px; display: inline-block; }37.nx-count { min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-3); }38.nx-count.on { color: var(--accent-ink); }39.nx-dash-empty { padding: 18px 12px 20px; }40.nx-dash-empty .icon { width: 24px; height: 24px; }41.nx-dash-quiet { margin-top: 10px; margin-bottom: 4px; }4243/* chiffres « display » du système de design, tabulaires */44.nx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; padding-top: 4px; align-items: start; align-content: start; }45.nx-dash-all { display: block; padding: 8px; font-size: var(--fs-s); color: var(--accent-ink); text-decoration: none; border-radius: var(--radius-s); min-height: var(--tap); line-height: calc(var(--tap) - 16px); }46.nx-dash-all:hover { text-decoration: underline; }47.nx-dash-unavailable .icon { color: var(--warn); }48.nx-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface-2); color: inherit; text-decoration: none; min-height: 84px; transition: background var(--dur-1) var(--ease); }49.nx-stat:hover { background: var(--surface-3); }50.nx-stat-n { font-size: var(--fs-display); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text-3); }51.nx-stat.on .nx-stat-n { color: var(--text); }52.nx-stat-label { font-size: var(--fs-s); color: var(--text-2); }53.nx-stat-sub { font-size: var(--fs-xs); color: var(--warn); }5455/* stockage */56.nx-dash-storage { display: flex; flex-direction: column; gap: 14px; padding: 6px 0 4px; }57.nx-dash-storage li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }58.nx-dash-storage-head { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; min-width: 0; }59.nx-dash-storage progress { height: 6px; border-radius: 3px; }6061/* synchronisation */62.nx-dash-sync { margin-top: 4px; margin-bottom: 4px; display: flex; flex-direction: column; }63.nx-dash-sync-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }64.nx-dash-sync-row:last-child { border-bottom: 0; }65.nx-dash-sync dt { color: var(--text-2); font-size: var(--fs-s); }66.nx-dash-sync dd { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-s); text-align: right; }67.nx-dash-sync .nx-dot { width: 8px; height: 8px; }68.nx-dash-dot-ok { background: var(--ok); }69.nx-dash-dot-warn { background: var(--warn); }70.nx-dash-dot-danger { background: var(--danger); }71.nx-dash-dot-muted { background: var(--border-strong); }7273/* attente */74.nx-dash-skel { display: flex; flex-direction: column; gap: 12px; padding: 10px 0 8px; }75.nx-dash-skel .skeleton { height: 14px; }76.nx-dash-skel .skeleton:nth-child(2) { width: 82%; }77.nx-dash-skel .skeleton:nth-child(3) { width: 58%; }78.nx-dash-spin .icon { animation: nx-dash-spin 0.9s linear infinite; }79@keyframes nx-dash-spin { to { transform: rotate(360deg); } }80.nx-dash-banner-text { flex: 1; min-width: 0; }81.nx-dash .banner { align-items: center; }8283/* mode « personnaliser » */84.nx-dash-editbar { display: flex; flex-direction: column; gap: 10px; }85.nx-dash-editbar p { margin: 0; }86.nx-dash-hidden { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }87.nx-dash-hidden .nx-chip { min-height: 32px; }88.nx-dash.editing .nx-widget { border-style: dashed; border-color: var(--border-strong); box-shadow: none; }89.nx-dash.editing .nx-widget-body { opacity: 0.55; max-height: 132px; overflow: hidden; }90.nx-widget-tools { display: flex; align-items: center; gap: 2px; padding: 0 10px 6px; }91.nx-widget-tools .icon-btn { width: 36px; height: 36px; }92.nx-widget-handle { cursor: grab; touch-action: none; }93.nx-widget-handle:active { cursor: grabbing; }94.nx-widget-up .icon { transform: rotate(180deg); }95.nx-widget-wide { min-width: 44px; font-variant-numeric: tabular-nums; }96.nx-widget-wide[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }97.nx-widget.dragging { outline: 2px solid var(--accent); outline-offset: 2px; background: var(--accent-soft); }9899@media (max-width: 760px) {100 .nx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }101 .nx-stat { min-height: 76px; padding: 10px 12px; }102 .nx-widget-tools .icon-btn { width: 44px; height: 44px; }103 .nx-widget-tools .btn.small { min-height: 44px; }104 .nx-dash-row .btn.small { min-height: 40px; }105 .nx-dash .nx-toolbar .btn { min-height: 44px; }106}107@media (prefers-reduced-motion: reduce) {108 .nx-stat { transition: none; }109 .nx-dash-spin .icon { animation: none; }110}111