SPB Git

Repository Public

attachments.css 5.7 KB 79 lines css

1/* SP Mail Next — pièces jointes : galerie (filtres, grille de tuiles, sélection) et dialogue d'aperçu (image, texte, PDF). */2.nx-ga-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }3.nx-ga-search { position: relative; display: flex; align-items: center; flex: 1 1 240px; max-width: 360px; }4.nx-ga-search > .icon { position: absolute; left: 12px; color: var(--text-3); pointer-events: none; }5.nx-ga-search .input { width: 100%; padding-left: 36px; }6.nx-ga-from { flex: 0 1 200px; min-width: 140px; }7.nx-ga-filters .select { width: auto; max-width: 240px; }8.nx-ga-kinds { display: flex; gap: 8px; flex-wrap: wrap; }9.nx-ga-selection .nx-sub { color: var(--text-2); font-size: var(--fs-s); font-variant-numeric: tabular-nums; }10.nx-ga-selection .spinner { width: 16px; height: 16px; }1112.nx-ga-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }13.nx-ga-tile { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); box-shadow: var(--shadow-1); overflow: hidden; }14.nx-ga-tile.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }15.nx-ga-thumb { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--text-3); cursor: zoom-in; overflow: hidden; }16.nx-ga-thumb:focus-visible { outline-offset: -3px; }17.nx-ga-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }18.nx-ga-glyph { display: flex; flex-direction: column; align-items: center; gap: 6px; }19.nx-ga-glyph .icon { width: 34px; height: 34px; }20.nx-ga-ext { font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.04em; color: var(--text-2); }21.nx-ga-check { position: absolute; top: 6px; left: 6px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-s); background: var(--glass-strong); cursor: pointer; opacity: 0; transition: opacity var(--dur-1) var(--ease); }22.nx-ga-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }23.nx-ga-tile:hover .nx-ga-check, .nx-ga-tile.selected .nx-ga-check, .nx-ga-check:focus-within, .nx-ga:has(.nx-ga-tile.selected) .nx-ga-check { opacity: 1; }24.nx-ga-info { display: flex; flex-direction: column; gap: 1px; padding: 8px 6px 4px 12px; min-width: 0; }25.nx-ga-name { font-weight: 550; font-size: var(--fs-callout); }26.nx-ga-meta { color: var(--text-3); font-size: var(--fs-s); }27.nx-ga-foot { display: flex; align-items: center; gap: 2px; min-height: 36px; }28.nx-ga-foot .spacer { flex: 1; }29.nx-ga-foot .icon-btn { width: 34px; height: 34px; color: var(--text-3); }30.nx-ga-foot .badge { padding: 1px 6px; margin-left: 6px; }31.nx-ga-more { display: flex; justify-content: center; padding: 8px 0; }32.nx-ga-skel { display: block; height: 13px; margin: 4px 0; }33.nx-ga-skel.thin { height: 10px; margin-bottom: 14px; }34.skeleton.nx-ga-thumb { cursor: default; border-radius: 0; }3536/* aperçu */37.nx-pv-overlay { padding: 24px; }38.nx-pv { width: min(1080px, 100%); height: min(88dvh, 860px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-3); overflow: hidden; outline: none; }39.nx-pv-head { display: flex; align-items: center; gap: 4px; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--border); }40.nx-pv-head .nx-item-main { margin-right: 8px; }41.nx-pv-head h2 { margin: 0; font-size: var(--fs-l); font-weight: 650; }42.nx-pv-head .small { color: var(--text-3); }43.nx-pv-head .nx-meta { margin-right: 4px; }44.nx-pv-prev .icon { transform: scaleX(-1); }45.nx-pv-body { flex: 1; min-height: 0; display: grid; place-items: center; overflow: auto; background: var(--surface-2); }46.nx-pv-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }47.nx-pv-textwrap { align-self: stretch; justify-self: stretch; display: flex; flex-direction: column; min-height: 0; background: var(--surface); }48.nx-pv-text { flex: 1; min-height: 0; margin: 0; padding: 16px 20px; overflow: auto; font-family: var(--mono); font-size: var(--fs-s); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); tab-size: 4; user-select: text; }49.nx-pv-textwrap .nx-note { margin: 0; padding: 8px 20px; border-top: 1px solid var(--border); }50.nx-pv-fallback .btn { margin-top: 8px; }51.nx-pv-fallback .btn .icon { width: 20px; height: 20px; opacity: 1; }5253@media (hover: none) {54  .nx-ga-check { opacity: 1; }55}56@media (max-width: 760px) {57  .nx-ga-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }58  .nx-ga-search { flex: 1 1 100%; max-width: none; }59  .nx-ga-from { flex: 1 1 100%; }60  .nx-ga-filters .select { flex: 1 1 40%; max-width: none; min-height: 44px; }61  .nx-ga-filters .input, .nx-ga-filters .btn { min-height: 44px; }62  .nx-ga-kinds { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 2px 12px; scrollbar-width: none; }63  .nx-ga-kinds .nx-chip { flex: none; min-height: 36px; }64  .nx-ga-check { width: 44px; height: 44px; top: 2px; left: 2px; }65  .nx-ga-foot { min-height: 44px; }66  .nx-ga-foot .icon-btn { width: 44px; height: 44px; }67  .nx-ga-info { padding: 8px 2px 2px 10px; }68  .nx-ga-selection { width: 100%; }69  .nx-ga-selection .btn { min-height: 44px; }70  .nx-pv-overlay { padding: 0; }71  .nx-pv { width: 100%; height: 100dvh; border: 0; border-radius: 0; }72  .nx-pv-head { padding: 8px 4px 8px 14px; flex-wrap: wrap; }73  .nx-pv-head .nx-item-main { flex: 1 1 100%; margin-right: 0; }74  .nx-pv-head .icon-btn { width: 44px; height: 44px; }75}76@media (prefers-reduced-motion: reduce) {77  .nx-ga-check { transition: none; }78}79
Files main
Menu

Theme