Files

49 lines
5.1 KiB
CSS

/* ExampleConsole (page-local, /authz and /base): see ExampleConsole.jsx. Outlined paper window, deck greys only. */
.exc { border: 1px solid var(--x-e10); border-radius: 16px; background: var(--x-raised); color: light-dark(#0a0a0a, var(--foreground)); overflow: hidden; }
.exc-bar { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--x-e10); }
.exc-bar > i { width: 10px; height: 10px; border-radius: 50%; background: light-dark(#e4e4e7, var(--secondary)); }
.exc-title { margin-left: 10px; display: inline-flex; align-items: center; min-height: 44px; font: 497 14px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); text-decoration: none; transition: color .15s cubic-bezier(0, 0, .2, 1); }
.exc-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 300px; }
.exc-side { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; border-right: 1px solid var(--x-e10); }
.exc-nav { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 8px; font: 400 14px/1.2 var(--sans); color: light-dark(#525252, var(--muted-foreground)); text-decoration: none; transition: background-color .15s cubic-bezier(0, 0, .2, 1), color .15s cubic-bezier(0, 0, .2, 1), transform .15s cubic-bezier(0, 0, .2, 1); }
.exc-nav svg { flex: none; }
.exc-nav[aria-current] { color: light-dark(#0a0a0a, var(--foreground)); font-weight: 606; }
.exc-nav[aria-current]::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 999px; background: light-dark(#0a0a0a, var(--primary)); }
.exc-main { display: flex; flex-direction: column; padding: 12px 16px 16px; }
.exc-rows { list-style: none; margin: 0; padding: 0; }
.exc-rows li { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 14px; border-radius: 8px; cursor: pointer; font: 400 14px/1 var(--mono); transition: background-color .15s cubic-bezier(0, 0, .2, 1), transform .15s cubic-bezier(0, 0, .2, 1); }
.exc-rows li[aria-selected='true'] { background: light-dark(#f5f5f5, var(--secondary)); }
.exc-name { flex: 1; color: light-dark(#0a0a0a, var(--foreground)); }
.exc-st { font: 400 14px/1 var(--sans); color: light-dark(#525252, var(--muted-foreground)); }
/* status is a shape: filled ink is Ready, a hollow ring that turns is Building */
.exc-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: light-dark(#0a0a0a, var(--primary)); }
.exc-dot.b { background: transparent; border: 2px solid light-dark(#0a0a0a, var(--foreground)); border-right-color: transparent; }
.js .exc-dot.b { animation: exc-turn 1s linear infinite; }
@keyframes exc-turn { to { transform: rotate(360deg); } }
.exc-cap { margin-top: auto; padding-top: 14px; min-height: 3em; }
.exc-cap p { margin: 0; padding: 12px 14px; border-top: 1px solid var(--x-e10); font-size: 14px; line-height: 1.5; color: light-dark(#525252, var(--muted-foreground)); }
.exc-none { font-family: var(--mono); }
.exc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 8px 12px 8px 16px; border-top: 1px solid var(--x-e10); font: 497 14px/1.3 var(--mono); color: light-dark(#737373, var(--text-tertiary)); }
.exc-foot b { font-weight: 497; color: light-dark(#0a0a0a, var(--foreground)); }
.exc-open { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--x-e10); font: 497 14px/1 var(--sans); color: light-dark(#0a0a0a, var(--foreground)); text-decoration: none; transition: background-color .15s cubic-bezier(0, 0, .2, 1), color .15s cubic-bezier(0, 0, .2, 1), transform .15s cubic-bezier(0, 0, .2, 1); }
@media (hover: hover) {
.exc-title:hover { color: light-dark(#0a0a0a, var(--foreground)); }
.exc-nav:hover { background: light-dark(#f5f5f5, var(--secondary)); color: light-dark(#0a0a0a, var(--foreground)); }
.exc-rows li:hover { background: light-dark(#fafafa, var(--glass)); }
.exc-rows li[aria-selected='true']:hover { background: light-dark(#f5f5f5, var(--secondary)); }
.exc-open:hover { background: light-dark(#0a0a0a, var(--primary)); color: var(--x-on-ink); }
}
.exc-nav:active, .exc-rows li:active, .exc-open:active { transform: scale(.97); transition-duration: 90ms; }
.exc-title:focus-visible, .exc-nav:focus-visible, .exc-rows li:focus-visible, .exc-open:focus-visible { outline: 2px solid var(--focus, light-dark(#0a0a0a, var(--foreground))); outline-offset: 2px; }
[data-off] .exc-dot.b { animation-play-state: paused; }
@media (max-width: 899px) {
.exc-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.exc-side { flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--x-e10); }
.exc-nav { padding: 0 12px; }
.exc-nav[aria-current]::before { left: 12px; right: 12px; top: auto; bottom: 6px; width: auto; height: 2px; }
.exc-main { padding: 10px 10px 12px; }
.exc-rows li { padding: 0 10px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .js .exc-dot.b { animation: none; } }