repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
shy-compat.cssCSS98 lines3.9 KiBraw download
/* Firefox 140+ and Floorp 12 use both legacy and newer theme tokens. Keep
   personal palettes effective across either spelling. */
:root {
  background-color: var(--bg-col) !important;
  --toolbar-field-text-color: var(--toolbar-field-color, var(--bt-col)) !important;
  --toolbar-field-text-color-focus: var(--toolbar-field-focus-color, var(--bt-col)) !important;
  --toolbar-field-border-color-focus: var(--toolbar-field-focus-border-color, var(--shy-color)) !important;
  --urlbar-background-color: var(--toolbar-field-background-color, var(--tb-col)) !important;
  --urlbar-background-color-focus: var(--toolbar-field-focus-background-color, var(--tb-col)) !important;
  --urlbar-box-background-color: var(--urlbar-box-bgcolor, var(--pp-col)) !important;
}

/* userChrome.css is a user-origin sheet, so a normal declaration loses to the browser's own
   author-origin rule for the same element. shy-global.css paints #browser with --bg-col but
   without !important, which Floorp 12 and Firefox 155 both outrank -- the window's own white
   backdrop then shows through wherever no panel covers it, most visibly in the corner above the
   sidebar. The chrome document's body is white for the same reason. */
#browser,
#appcontent .browserStack,
.browserContainer,
body {
  background-color: var(--bg-col) !important;
}

/* currentColor is now the default icon-fill token; it is not a usable source
   for text color when the toolbar and window have different color schemes. */
#main-window #navigator-toolbox {
  color: var(--bt-col) !important;
}

/* Firefox 155 replaced the background ID with a class. */
#urlbar :is(#urlbar-background, .urlbar-background) {
  border-radius: var(--rounding);
}

/* An empty bookmarks toolbar is not a useful floating panel. */
#personal-toolbar-empty {
  display: none !important;
}

/* Keep the field usable when toolbar buttons overflow in narrow windows. */
#urlbar-container {
  min-width: min(180px, 35vw) !important;
}

/* Gecko 157 replaced the identity box's icon with #trust-icon-container, which carries a text
   label ("Not Secure") and tracker counts beside the icon. ShyFox never budgeted for that text:
   in a narrow window it took ~80px of a ~200px field and left the input a few pixels wide. Below
   ShyFox's own narrow-window breakpoint the indicator keeps its icon -- the security state still
   reads from the icon, its colour and its tooltip -- and the text goes. */
@media (max-width: 1000px) {
  #urlbar #trust-icon-container :is(#trust-label,
                                    #trust-icon-tracker-count-longform-wrapper,
                                    #trust-icon-tracker-count-shortform-wrapper) {
    display: none !important;
  }

  /* Page actions (bookmark star, Floorp's QR code, reader view …) describe the page you are
     leaving once the field has focus, and in a narrow window they cost the input half its width.
     They step aside while you type and come back on blur. */
  #urlbar:is([focused], :focus-within) #page-action-buttons,
  /* The go arrow appears once you type and does exactly what Enter does. */
  #urlbar :is(#urlbar-go-button, .urlbar-go-button) {
    display: none !important;
  }
}

/* Native vertical tabs use a separate container in the revamped sidebar. */
@media -moz-pref("sidebar.verticalTabs") {
  #main-window {
    --left-margin: var(--margin) !important;
  }
  #vertical-tabs #tabbrowser-tabs {
    display: flex !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --trans-dur: 0s;
    --transition: none;
  }
  #urlbar, #urlbar *, #navigator-toolbox, #sidebar-box, #tabbrowser-tabbox {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  :root {
    --bg-col: Canvas !important;
    --tb-col: Canvas !important;
    --bt-col: CanvasText !important;
    --pp-col: Canvas !important;
    --shy-color: Highlight !important;
    --shy-accent-color: Highlight !important;
  }
}