Repository Public
1/* SP Mail Next — libellés : feuille modale des sélecteurs, menu contextuel des lignes, pastilles du lecteur, sélecteur, palette de teintes, gestion. */23/* ---- feuille modale (dialogue centré ; feuille du bas au téléphone) */4.nx-sheet { width: min(420px, 100%); }5.nx-sheet .dialog-head { align-items: flex-start; }6.nx-sheet-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }7.nx-sheet-title .nx-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }8.nx-sheet .dialog-foot { align-items: center; }9.nx-sheet .dialog-foot .spacer { flex: 1; }1011/* ---- menu contextuel d'une ligne */12.nx-rowmenu { position: fixed; z-index: 58; min-width: 232px; max-width: min(320px, calc(100vw - 16px)); }13.nx-rowmenu button.danger { color: var(--danger); }1415/* ---- pastilles sous l'objet du lecteur */16.nx-label-chips { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }17.nx-label-chip { --lc: var(--label-10); display: inline-flex; align-items: center; max-width: 100%; min-height: 26px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--lc) var(--label-soft-mix), var(--surface)); color: var(--lc); font-size: var(--fs-s); font-weight: 550; line-height: 1.3; }18.nx-label-chip a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 3px 4px 3px 10px; border-radius: var(--radius-pill) 0 0 var(--radius-pill); color: inherit; text-decoration: none; }19.nx-label-chip a:hover { text-decoration: underline; }20.nx-label-chip button { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 2px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background var(--dur-1) var(--ease); }21.nx-label-chip button:hover:not([disabled]) { background: color-mix(in srgb, var(--lc) 22%, transparent); }22.nx-label-chip button[disabled] { opacity: 0.5; cursor: not-allowed; }23.nx-label-chip .icon.s { width: 13px; height: 13px; }2425/* ---- sélecteur */26.nx-label-picker { gap: 10px; padding-top: 2px; }27.nx-label-list { list-style: none; margin: 0 -8px; padding: 0; max-height: min(44dvh, 320px); overflow: auto; }28.nx-label-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--tap); padding: 4px 8px; border-radius: var(--radius-s); cursor: pointer; }29.nx-label-opt:hover, .nx-label-opt:focus-within { background: var(--surface-2); }30.nx-label-opt .label-dot { width: 10px; height: 10px; }31.nx-label-none { padding: 10px 0; }32.nx-label-create { justify-content: flex-start; max-width: 100%; }33.nx-label-error { margin: 0; color: var(--danger); font-size: var(--fs-s); }3435/* ---- création / modification */36.nx-label-form { gap: 16px; padding-top: 2px; }37.nx-swatches { margin: 0; padding: 0; border: 0; min-width: 0; }38.nx-swatches legend { padding: 0; margin-bottom: 8px; font-size: var(--fs-s); font-weight: 550; color: var(--text-2); }39.nx-swatch-row { display: flex; flex-wrap: wrap; gap: 6px; }40.nx-swatch { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }41.nx-swatch-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lc); color: var(--surface); transition: transform var(--dur-1) var(--ease); }42.nx-swatch:hover .nx-swatch-dot { transform: scale(1.1); }43.nx-swatch input:checked + .nx-swatch-dot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--lc); }44.nx-swatch input:focus-visible + .nx-swatch-dot { outline: 2px solid var(--focus); outline-offset: 5px; }45.nx-swatch-dot .icon.s { width: 14px; height: 14px; stroke-width: 2.5; }46.nx-label-form-foot { gap: 8px; }4748/* ---- gestion */49.nx-label-manage { list-style: none; margin: 10px -8px 0; padding: 0; }50.nx-label-manage li { display: flex; align-items: center; gap: 2px; min-height: var(--tap); padding: 0 0 0 8px; border-radius: var(--radius-s); }51.nx-label-manage li:hover, .nx-label-manage li:focus-within { background: var(--surface-2); }52.nx-label-manage .label-dot { width: 10px; height: 10px; margin-right: 8px; }53.nx-label-manage-name { flex: 1; min-width: 0; }54.nx-label-manage .icon-btn { width: 34px; height: 34px; }55.nx-label-manage .icon-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }5657@media (max-width: 760px) {58 .nx-sheet-overlay { place-items: end center; padding: 0; }59 .nx-sheet { width: 100%; max-height: 88dvh; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }60 .nx-sheet .dialog-foot .btn { min-height: 44px; }61 .nx-label-manage .icon-btn, .nx-swatch { width: 44px; height: 44px; }62 .nx-swatch-row { gap: 2px; justify-content: space-between; }63 .nx-swatch-dot { width: 28px; height: 28px; }64 .nx-label-chip { min-height: 32px; }65 .nx-label-chip button { width: 32px; height: 32px; }66 .nx-rowmenu button { min-height: 44px; }67}68@media (prefers-reduced-motion: reduce) {69 .nx-swatch-dot, .nx-label-chip button { transition: none; }70 .nx-swatch:hover .nx-swatch-dot { transform: none; }71}72