repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
shy-tokens.cssCSS158 lines6.5 KiBraw download
/*== ShyFox Polish Tokens ===========================================================================

Design tokens for the visual-polish layer (shy-surfaces, shy-interactive, shy-menus, shy-urlbar and
content/shy-polish-content). Everything here is derived from the four colours ShyFox already picks up
from the active theme -- --bg-col, --tb-col, --bt-col, --pp-col -- plus the accent, --shy-color.
A personal palette therefore keeps full control: change the palette, the whole polish layer follows.

The layer as a whole can be switched off with `shyfox.disable.polish`, and the (more expensive)
backdrop blur alone with `shyfox.disable.blur`.

===================================================================================================*/

@media not -moz-pref("shyfox.disable.polish") {

:root {

  /*-- material -------------------------------------------------------------------------------*/

  /* how opaque floating panels are; lower it for more of the page showing through */
  --shy-surface-opct: 84%;

  --shy-glass-blur: 18px;
  --shy-glass-saturate: 1.3;

  /* panel fills */
  --shy-surface:        color-mix(in srgb, var(--tb-col) var(--shy-surface-opct), transparent);
  --shy-surface-deep:   color-mix(in srgb, var(--bg-col) var(--shy-surface-opct), transparent);
  --shy-surface-popup:  color-mix(in srgb, var(--pp-col) var(--shy-surface-opct), transparent);
  --shy-surface-raised: color-mix(in srgb, var(--tb-col) 92%, var(--bt-col));

  /* hairline borders; --pp-col is often too close to the fill to read as an edge */
  --shy-hairline:        color-mix(in srgb, var(--bt-col) 13%, transparent);
  --shy-hairline-strong: color-mix(in srgb, var(--bt-col) 22%, transparent);

  /*-- elevation ------------------------------------------------------------------------------*/

  /* tint the shadow itself to warm or cool the whole layer */
  --shy-shadow-tint: #000000;

  --shy-shadow-weak:   color-mix(in srgb, var(--shy-shadow-tint) 10%, transparent);
  --shy-shadow-medium: color-mix(in srgb, var(--shy-shadow-tint) 18%, transparent);
  --shy-shadow-strong: color-mix(in srgb, var(--shy-shadow-tint) 30%, transparent);

  --shy-elev-1: 0 1px 2px var(--shy-shadow-weak),
                0 2px 6px var(--shy-shadow-weak);
  --shy-elev-2: 0 2px 4px var(--shy-shadow-weak),
                0 8px 20px var(--shy-shadow-medium);
  --shy-elev-3: 0 4px 10px var(--shy-shadow-medium),
                0 18px 48px var(--shy-shadow-strong);

  /*-- accent ---------------------------------------------------------------------------------*/

  --shy-accent-weak:   color-mix(in srgb, var(--shy-color) 12%, transparent);
  --shy-accent-tint:   color-mix(in srgb, var(--shy-color) 20%, transparent);
  --shy-accent-strong: color-mix(in srgb, var(--shy-color) 34%, transparent);
  --shy-accent-line:   color-mix(in srgb, var(--shy-color) 70%, transparent);

  --shy-focus-ring:  0 0 0 2px color-mix(in srgb, var(--shy-color) 55%, transparent);
  --shy-accent-glow: 0 0 0 1px var(--shy-accent-line),
                     0 0 18px color-mix(in srgb, var(--shy-color) 22%, transparent);

  /*-- neutral interaction states -------------------------------------------------------------*/

  --shy-hover-tint:    color-mix(in srgb, var(--bt-col) 10%, transparent);
  --shy-active-tint:   color-mix(in srgb, var(--bt-col) 16%, transparent);
  --shy-selected-tint: color-mix(in srgb, var(--bt-col) 22%, transparent);

  /* text that is deliberately quieter than --bt-col */
  --shy-text-dim:   color-mix(in srgb, var(--bt-col) 65%, transparent);
  --shy-text-faint: color-mix(in srgb, var(--bt-col) 42%, transparent);

  /*-- motion ---------------------------------------------------------------------------------*/

  --shy-ease:        cubic-bezier(0.22, 1, 0.36, 1);   /* reveals: fast out, gentle settle */
  --shy-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shy-dur-fast: 110ms;
  --shy-dur:      190ms;
  --shy-dur-slow: 260ms;

  /* ShyFox's shared transition, re-timed. Same properties and duration as shy-variables.css so
     panel geometry and the reveal timing do not change. backdrop-filter is deliberately absent:
     transitioning it re-rasterizes the blurred backdrop on every frame of every panel reveal. */
  --transition:
    top var(--trans-dur) var(--shy-ease), left var(--trans-dur) var(--shy-ease),
    right var(--trans-dur) var(--shy-ease), bottom var(--trans-dur) var(--shy-ease),
    margin var(--trans-dur) var(--shy-ease), opacity var(--trans-dur) var(--shy-ease),
    background-color var(--trans-dur) var(--shy-ease),
    box-shadow var(--trans-dur) var(--shy-ease),
    border-color var(--trans-dur) var(--shy-ease);

  /*-- scrollbars (browser chrome only) -------------------------------------------------------*/

  --shy-scrollbar: color-mix(in srgb, var(--bt-col) 28%, transparent) transparent;
}

/* Blur is the one effect worth turning off on slow hardware. */
@media -moz-pref("shyfox.disable.blur") {
  :root {--shy-glass-blur: 0px; --shy-surface-opct: 100%;}
}

/*-- shared keyframes -------------------------------------------------------------------------*/

@keyframes shy-fade-in {from {opacity: 0} to {opacity: 1}}

@keyframes shy-pop-in {
  from {opacity: 0; scale: 0.97;}
  to   {opacity: 1; scale: 1;}
}

@keyframes shy-drop-in {
  from {opacity: 0; translate: 0 -6px;}
  to   {opacity: 1; translate: 0 0;}
}

@keyframes shy-shimmer {
  from {background-position: -140% 0;}
  to   {background-position: 240% 0;}
}

/*-- graceful degradation ---------------------------------------------------------------------

These come last on purpose: the polish layer is imported after shy-compat.css, so it has to
restate the reduced-motion and forced-colours contracts rather than inherit them.

---------------------------------------------------------------------------------------------*/

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition: none;
    --shy-dur-fast: 0s;
    --shy-dur: 0s;
    --shy-dur-slow: 0s;
  }
}

@media (forced-colors: active) {
  :root {
    --shy-glass-blur: 0px;
    --shy-surface:        Canvas;
    --shy-surface-deep:   Canvas;
    --shy-surface-popup:  Canvas;
    --shy-surface-raised: Canvas;
    --shy-hairline:        CanvasText;
    --shy-hairline-strong: CanvasText;
    --shy-elev-1: none;
    --shy-elev-2: none;
    --shy-elev-3: none;
    --shy-accent-glow: none;
    --shy-focus-ring: 0 0 0 2px Highlight;
    --shy-hover-tint:    Highlight;
    --shy-active-tint:   Highlight;
    --shy-selected-tint: Highlight;
    --shy-text-dim:   CanvasText;
    --shy-text-faint: CanvasText;
  }
}

} /* shyfox.disable.polish */