repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
shy-sidebery-daemon.cssCSS503 lines21.8 KiBraw download
/*== Sidebery — Rosé Pine ==========================================================================

Sidebery draws three pages in *content*, not chrome, so userContent.css is the
only stylesheet that can reach them:

    sidebar/sidebar.html      the sidebar itself
    page.setup/setup.html     settings, styles editor, menu editor, snapshots
    sidebery/group.html       group (tab-set) pages

Because this is a **user origin** stylesheet, every declaration needs
`!important`.  User-origin *normal* declarations lose to the extension's own
author CSS; only user-origin `!important` outranks it.  The same rule means
these declarations also outrank anything typed into Sidebery's built-in Styles
editor -- so treat this file as the source of truth for layout and leave the
Styles editor holding nothing but the palette.

Imported after ShyFox/content/shy-sidebery.css, so it wins wherever the two
overlap.  Selectors use `#root.root` to match ShyFox's specificity; at equal
specificity the later import wins.

Colours come from shy-rosepine.css (also imported into content), with literal
fallbacks so this file still renders correctly if that import is ever removed.

One knob per idea:
  --dm-row       tab row height, and every button sized off it
  --dm-gap       gutter between rows
  --dm-fs        tab title size

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


/*--- Palette + shared tokens ---------------------------------------------------------------------

Sidebery derives every colour from a handful of `--s-*` "source" variables it
normally reads off the browser theme (`--s-frame-bg`, `--s-accent`, ...).
Pinning those is a single lever that recolours all three pages consistently,
including surfaces this file never names.
*/

@-moz-document regexp("^moz-extension://.*?/sidebar/sidebar.html"),
               regexp("^moz-extension://.*?/page.setup/setup.html.*"),
               regexp("^moz-extension://.*?/sidebery/group.html.*")
{
  #root, #root.root {
    /* local aliases, so a variant swap in shy-rosepine.css carries through */
    --dm-base:     var(--rp-base,           #191724) !important;
    --dm-surface:  var(--rp-surface,        #1f1d2e) !important;
    --dm-overlay:  var(--rp-overlay,        #26233a) !important;
    --dm-muted:    var(--rp-muted,          #6e6a86) !important;
    --dm-subtle:   var(--rp-subtle,         #908caa) !important;
    --dm-text:     var(--rp-text,           #e0def4) !important;
    --dm-love:     var(--rp-love,           #eb6f92) !important;
    --dm-gold:     var(--rp-gold,           #f6c177) !important;
    --dm-rose:     var(--rp-rose,           #ebbcba) !important;
    --dm-pine:     var(--rp-pine,           #31748f) !important;
    --dm-foam:     var(--rp-foam,           #9ccfd8) !important;
    --dm-iris:     var(--rp-iris,           #c4a7e7) !important;
    --dm-hl-low:   var(--rp-highlight-low,  #21202e) !important;
    --dm-hl-med:   var(--rp-highlight-med,  #403d52) !important;
    --dm-hl-high:  var(--rp-highlight-high, #524f67) !important;

    /* iris at a few alphas -- CSS cannot mix a hex with an alpha inline */
    --dm-iris-10: rgba(196, 167, 231, .10) !important;
    --dm-iris-16: rgba(196, 167, 231, .16) !important;
    --dm-iris-24: rgba(196, 167, 231, .24) !important;
    --dm-iris-40: rgba(196, 167, 231, .40) !important;

    /* the source variables Sidebery derives everything else from */
    --s-frame-bg:      var(--dm-base)    !important;
    --s-frame-fg:      var(--dm-text)    !important;
    --s-toolbar-bg:    var(--dm-surface) !important;
    --s-toolbar-fg:    var(--dm-text)    !important;
    --s-toolbar-border: rgba(64, 61, 82, .55) !important;
    --s-accent:        var(--dm-iris)    !important;
    --s-act-el-bg:     var(--dm-overlay) !important;
    --s-act-el-fg:     var(--dm-text)    !important;
    --s-act-el-border: var(--dm-iris-24) !important;
    --s-popup-bg:      var(--dm-overlay) !important;
    --s-popup-fg:      var(--dm-text)    !important;
    --s-popup-border:  var(--dm-hl-med)  !important;

    /* overlays: tint with iris instead of flat white, so hover reads as accent */
    --frame-el-overlay-hover-bg:        var(--dm-iris-10) !important;
    --frame-el-overlay-clicked-bg:      var(--dm-iris-16) !important;
    --frame-el-overlay-selected-bg:     var(--dm-iris-16) !important;
    --frame-el-overlay-selected-border: var(--dm-iris)    !important;
    --toolbar-el-overlay-hover-bg:      var(--dm-iris-10) !important;
    --toolbar-el-overlay-clicked-bg:    var(--dm-iris-16) !important;
    --toolbar-el-overlay-active-bg:     var(--dm-iris-16) !important;
    --toolbar-el-overlay-active-border: var(--dm-iris-24) !important;
    --toolbar-el-overlay-selected-bg:   var(--dm-iris-16) !important;
    --toolbar-el-overlay-selected-border: var(--dm-iris)  !important;

    /* status colours: Sidebery ships a stock green/red that fights the palette */
    --status-ok:     var(--dm-foam) !important;
    --status-err:    var(--dm-love) !important;
    --status-active: var(--dm-iris) !important;
    --status-notice: var(--dm-gold) !important;
    --accent:        var(--dm-iris) !important;
    --focus-color:   var(--dm-iris) !important;
    --border:        rgba(64, 61, 82, .55) !important;

    /* badges (tab counters, unread marks) */
    --badge-bg:        var(--dm-iris)    !important;
    --badge-fg:        var(--dm-base)    !important;
    --badge-urgent-bg: var(--dm-love)    !important;
    --badge-urgent-fg: var(--dm-base)    !important;

    /* scrollbars */
    --scroll-color:            var(--dm-hl-med) !important;
    --frame-scrollbar-color:   var(--dm-hl-med) !important;
    --toolbar-scrollbar-color: var(--dm-hl-med) !important;
    --popup-scrollbar-color:   var(--dm-hl-med) !important;
    --scrollbar-color:         var(--dm-hl-med) !important;
  }

  /* Container and colourised-tab hues.  Firefox offers eight; Rosé Pine has six
     accents, so these are desaturated towards the palette rather than snapped
     onto it -- eight tellable-apart hues matter more here than purity. */
  #root [data-color="blue"]      { --color: #7fb4d9 !important; }
  #root [data-color="turquoise"],
  #root [data-color="cyan"]      { --color: var(--dm-foam) !important; }
  #root [data-color="green"]     { --color: #8fc9a4 !important; }
  #root [data-color="yellow"]    { --color: var(--dm-gold) !important; }
  #root [data-color="orange"]    { --color: #eba774 !important; }
  #root [data-color="red"]       { --color: var(--dm-love) !important; }
  #root [data-color="pink"]      { --color: var(--dm-rose) !important; }
  #root [data-color="purple"]    { --color: var(--dm-iris) !important; }
  #root [data-color="inactive"]  { --color: var(--dm-muted) !important; }
  #root [data-color="toolbar"]   { --color: var(--dm-text) !important; }
}


/*=== SIDEBAR ======================================================================================
*/

@-moz-document regexp("^moz-extension://.*?/sidebar/sidebar.html")
{

/*--- Geometry -------------------------------------------------------------------------------------

ShyFox sizes tabs and nav buttons off a single `--button-size`; overriding that
one variable resizes the whole sidebar consistently.  35px rows were built for a
300px sidebar -- at ~235px they waste vertical space and crowd the title.
*/

  #root.root {
    --dm-row:  31px !important;
    --dm-gap:   4px !important;
    --dm-fs:   13px !important;

    --button-size:      var(--dm-row) !important;
    --pin-favicon-size: 24px          !important;

    --tabs-height:    var(--dm-row) !important;
    --tabs-margin:    var(--dm-gap) !important;
    --tabs-inner-gap: 6px           !important;
    --tabs-indent:    11px          !important;
    --tabs-font: var(--dm-fs) var(--general-font-family) !important;
    --tabs-border-radius: 10px !important;
    --general-border-radius: 8px !important;
    --general-margin: 4px !important;

    --nav-btn-width:  var(--dm-row) !important;
    --nav-btn-height: var(--dm-row) !important;
    --nav-btn-border-radius: 8px    !important;
    --nav-btn-margin: 3px           !important;

    --bottom-bar-height: 26px !important;
    --search-height: 28px !important;
    --search-border-radius: 8px !important;
    --search-font-size: var(--dm-fs) !important;

    /* To run the sidebar in the system mono instead, uncomment this line.
       Mono is wider, so expect titles to truncate ~15% sooner. */
    /* --general-font-family: "DM Mono Nerd Font", monospace !important; */
  }

/*--- Tabs -----------------------------------------------------------------------------------------

The active tab is the one thing you look for in a 200-tab list, so it gets three
cues at once: an iris rail down its left edge, a lifted overlay background, and
a hairline ring.  Everything else stays quiet.
*/

  #root.root {
    --tabs-normal-bg: transparent !important;
    --tabs-normal-fg: var(--dm-subtle) !important;
    --tabs-activated-bg: var(--dm-overlay) !important;
    --tabs-activated-fg: var(--dm-text) !important;
    --frame-el-shadow: none !important;

    --tabs-activated-shadow:
      inset 2px 0 0 0 var(--dm-iris),
      inset 0 0 0 1px var(--dm-iris-24),
      0 2px 10px -6px rgba(0, 0, 0, .85) !important;

    /* colourised tabs (Settings -> Tabs -> "Colorize tabs") sit as a wash under
       the row; stock 0.2 / 0.3 is loud enough to swamp the palette */
    --tabs-color-layer-opacity: .10 !important;
    --tabs-activated-color-layer-opacity: .20 !important;

    --tabs-discarded-favicon-opacity: .45 !important;
    --tabs-discarded-title-opacity:   .55 !important;
    --tabs-lvl-opacity: .5 !important;
  }

  #root.root .Tab .t-box,
  #root.root .Tab .title {
    letter-spacing: .1px !important;
  }

  /* unloaded tabs read as "not here yet" without shouting */
  #root.root .Tab[data-discarded="true"] .title { font-style: italic !important; }

  #root.root .Tab[data-active="true"] .title {
    color: var(--dm-text) !important;
    font-weight: 600 !important;
  }

  /* a tab playing audio is worth finding fast */
  #root.root .Tab[data-audible="true"] .audio-icon { fill: var(--dm-foam) !important; }
  #root.root .Tab[data-muted="true"]   .audio-icon { fill: var(--dm-muted) !important; }

  /* close button: Sidebery already handles when it appears, this is just the
     colour cue on the icon itself */
  #root.root .Tab .close:hover { background-color: var(--dm-iris-16) !important; }
  #root.root .Tab .close:hover .close-icon {
    fill: var(--dm-love) !important;
    opacity: 1 !important;
  }

  /* loading spinner in accent */
  #root.root .Tab .progress-spinner { border-top-color: var(--dm-iris) !important; }

/*--- Tree guides ----------------------------------------------------------------------------------

Sidebery's level marks are 1px ticks in the tab's own text colour.  Recolouring
them to highlight-high turns them into a proper indent rail: visible enough to
follow, quiet enough to ignore.  Each box-shadow copy is one nesting level.
*/

  #root.root[data-tabs-tree-lvl-marks="true"] .Tab[data-pin="false"]:not([data-lvl="0"]) .body:after {
    background-color: var(--dm-hl-high) !important;
    box-shadow:
      calc(var(--tabs-indent) * -1) 0 0 0 var(--dm-hl-high),
      calc(var(--tabs-indent) * -2) 0 0 0 var(--dm-hl-high),
      calc(var(--tabs-indent) * -3) 0 0 0 var(--dm-hl-high),
      calc(var(--tabs-indent) * -4) 0 0 0 var(--dm-hl-high),
      calc(var(--tabs-indent) * -5) 0 0 0 var(--dm-hl-high),
      calc(var(--tabs-indent) * -6) 0 0 0 var(--dm-hl-high),
      calc(var(--tabs-indent) * -7) 0 0 0 var(--dm-hl-high),
      calc(var(--tabs-indent) * -8) 0 0 0 var(--dm-hl-high) !important;
  }

/*--- Pinned tabs ----------------------------------------------------------------------------------

ShyFox lays these out as a 3-per-row grid whose height is a fraction of the
sidebar width, so a narrower sidebar shrinks them automatically.  Only the
surface treatment is changed here: the grid maths is left alone.
*/

  #root.root .Tab[data-pin="true"] .body {
    border: none !important;
    background-color: var(--dm-surface) !important;
    box-shadow: inset 0 0 0 1px rgba(64, 61, 82, .5) !important;
  }
  #root.root .Tab[data-pin="true"]:hover .body {
    box-shadow: inset 0 0 0 1px var(--dm-iris-40) !important;
  }
  #root.root .Tab[data-pin="true"][data-active="true"] .body {
    border: none !important;
    background-color: var(--dm-overlay) !important;
    box-shadow:
      inset 0 0 0 1px var(--dm-iris),
      0 2px 12px -6px rgba(0, 0, 0, .9) !important;
  }

/*--- Navigation bar -------------------------------------------------------------------------------
*/

  #root.root .NavigationBar {
    box-shadow: inset 0 -1px 0 0 rgba(64, 61, 82, .45) !important;
  }
  #root.root .NavigationBar .nav-item > svg { fill: var(--dm-subtle) !important; }
  #root.root .NavigationBar .nav-item:hover > svg { fill: var(--dm-text) !important; }
  #root.root .NavigationBar .nav-item[data-active="true"] > svg,
  #root.root .NavigationBar .nav-item[data-loading="true"] > svg { fill: var(--dm-iris) !important; }

  /* active panel button: filled pill rather than a bare tint */
  #root.root .NavigationBar .nav-item[data-active="true"]:before {
    background-color: var(--dm-iris-16) !important;
    box-shadow: inset 0 0 0 1px var(--dm-iris-24) !important;
    opacity: 1 !important;
  }

  #root.root .NavigationBar .nav-item .badge { box-shadow: 0 0 0 2px var(--dm-surface) !important; }

/*--- Search bar -----------------------------------------------------------------------------------
*/

  #root.root .SearchBar:before {
    background-color: var(--dm-overlay) !important;
    box-shadow: inset 0 0 0 1px rgba(64, 61, 82, .6) !important;
  }
  #root.root .SearchBar[data-focused="true"]:before {
    background-color: var(--dm-hl-low) !important;
    box-shadow: inset 0 0 0 1px var(--dm-iris) !important;
  }
  #root.root .SearchBar .input,
  #root.root .SearchBar .placeholder { color: var(--dm-text) !important; }
  #root.root .SearchBar .search-icon > svg { fill: var(--dm-iris) !important; }

/*--- Bottom bar and new-tab buttons ---------------------------------------------------------------
*/

  #root.root .BottomBar { box-shadow: inset 0 1px 0 0 rgba(64, 61, 82, .45) !important; }
  #root.root .BottomBar .tool-btn > svg {
    fill: var(--dm-muted) !important;
    transition: fill var(--d-fast) !important;
  }
  #root.root .BottomBar .tool-btn:hover > svg { fill: var(--dm-iris) !important; }

  /* "+" row: a ghost button, not a solid one */
  #root.root .new-tab-btns .new-tab-btn:before {
    border-radius: 8px !important;
    box-shadow: inset 0 0 0 1px rgba(64, 61, 82, .55) !important;
    background-color: transparent !important;
  }
  #root.root .new-tab-btns .new-tab-btn:hover:before {
    background-color: var(--dm-iris-10) !important;
    box-shadow: inset 0 0 0 1px var(--dm-iris-40) !important;
  }

/*--- Sub-panels, popups, menus, notifications -----------------------------------------------------
*/

  #root.root {
    --ctx-menu-bg: var(--dm-overlay) !important;
    --ctx-menu-fg: var(--dm-text) !important;
    --ctx-menu-border-radius: 10px !important;
    --ctx-menu-opt-border-radius: 6px !important;
    --ctx-menu-shadow: 0 0 0 1px var(--dm-hl-med), 0 8px 28px -8px rgba(0, 0, 0, .95) !important;
    --ctx-menu-separator: rgba(64, 61, 82, .8) !important;

    --popup-shadow: 0 0 0 1px var(--dm-hl-med), 0 10px 32px -10px rgba(0, 0, 0, .95) !important;

    --notification-bg: var(--dm-overlay) !important;
    --notification-fg: var(--dm-text) !important;
    --notification-border-radius: 10px !important;

    --bookmarks-border-radius: 8px !important;
    --history-item-border-radius: 8px !important;
  }

  #root.root .SubPanel,
  #root.root .BookmarksSubPanel,
  #root.root .ClosedTabsSubPanel {
    box-shadow: inset 0 1px 0 0 rgba(64, 61, 82, .55) !important;
  }
  #root.root .SubListTitle { color: var(--dm-subtle) !important; }

  /* The drag-and-drop insertion pointer already draws itself from --s-accent,
     which the palette block above pins to iris -- nothing to do here. */
}


/*=== SETTINGS PAGE ================================================================================

The settings page ships as a flat wall of rows.  Giving the left nav a surface
of its own, the active entry an iris pill, and section headers a leading accent
rule turns it into something you can scan.
*/

@-moz-document regexp("^moz-extension://.*?/page.setup/setup.html.*")
{
  #root.root {
    --setup-bg: var(--dm-base) !important;
    --border-color: rgba(64, 61, 82, .5) !important;
    --toolbar-fg-active: var(--dm-iris) !important;
    --general-border-radius: 8px !important;
  }

  #root.root, #root.root .Settings { background-color: var(--dm-base) !important; }

  /* left navigation column */
  #root.root > .nav {
    background-color: var(--dm-surface) !important;
    box-shadow: inset -1px 0 0 0 rgba(64, 61, 82, .5) !important;
  }
  #root.root > .nav .option .body,
  #root.root > .nav .sub-option .body,
  #root.root > .nav .sub-sub-option .body { border-radius: 7px !important; }

  #root.root > .nav .option[data-active="true"] .body,
  #root.root > .nav .sub-option[data-active="true"] .body,
  #root.root > .nav .sub-sub-option[data-active="true"] .body {
    color: var(--dm-iris) !important;
    font-weight: 600 !important;
  }
  #root.root > .nav .option[data-active="true"] .body:before,
  #root.root > .nav .sub-option[data-active="true"] .body:before,
  #root.root > .nav .sub-sub-option[data-active="true"] .body:before {
    background-color: var(--dm-iris) !important;
    opacity: .16 !important;
  }

  /* section headings: accent rule on the left, so sections are findable */
  #root.root .Settings .sub-title .text {
    color: var(--dm-text) !important;
    padding-left: 10px !important;
    box-shadow: inset 3px 0 0 -1px var(--dm-iris) !important;
  }
  #root.root .Settings .sub-title:before,
  #root.root .Settings .sub-title:after { background-color: var(--dm-base) !important; }
  #root.root .Settings .sub-title:after {
    background-image: linear-gradient(0deg, transparent, var(--dm-base)) !important;
  }

  /* row labels and their explanatory notes */
  #root.root .ToggleField .label,
  #root.root .SelectField .label,
  #root.root .TextField .label,
  #root.root .NumField .label { color: var(--dm-text) !important; }
  #root.root .note { color: var(--dm-subtle) !important; }

  /* on / off pills: stock ships a saturated green and red */
  #root.root .ToggleInput .opt.-true  { --color: var(--dm-foam) !important; }
  #root.root .ToggleInput .opt.-false { --color: var(--dm-muted) !important; }
  #root.root .ToggleInput .opt[data-active="true"]:before,
  #root.root .SelectInput .opt[data-active="true"]:before { opacity: .22 !important; }

  /* buttons */
  #root.root .btn { border-radius: 8px !important; color: var(--dm-text) !important; }
  #root.root .btn:before { background-color: var(--dm-iris) !important; }

  /* Styles editor.  The raw-CSS column ships at 11px in the browser's default
     monospace; it is the one place on this page you actually read character by
     character, so it gets the system mono at a legible size. */
  #root.root .StylesEditor .editor,
  #root.root .StylesEditor .editor-box > .placeholder,
  #root.root .StylesEditor .editor-box > .placeholder-note {
    font-family: "DM Mono Nerd Font", ui-monospace, monospace !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
  }
  #root.root .StylesEditor .editor,
  #root.root .StylesEditor .editor-box > .placeholder { color: var(--dm-foam) !important; }
  #root.root .StylesEditor .editor-box { background-color: var(--dm-base) !important; }
  #root.root .StylesEditor .css { box-shadow: inset 1px 0 0 0 rgba(64, 61, 82, .5) !important; }

  #root.root .StylesEditor .vars,
  #root.root .StylesEditor .section-header { background-color: var(--dm-surface) !important; }
  #root.root .StylesEditor .css-var .var-name { color: var(--dm-text) !important; }
  #root.root .StylesEditor .css-var .var-value,
  #root.root .StylesEditor .color-sample .value {
    color: var(--dm-subtle) !important;
    font-family: "DM Mono Nerd Font", ui-monospace, monospace !important;
  }
  #root.root .StylesEditor .color-sample .example {
    border-radius: 4px !important;
    box-shadow: inset 0 0 0 1px rgba(64, 61, 82, .8) !important;
  }
  #root.root .StylesEditor .StyleField { border-radius: 8px !important; }
  #root.root .StylesEditor nav { box-shadow: inset 0 -1px 0 0 rgba(64, 61, 82, .5) !important; }
  #root.root .StylesEditor .bottom-bar { background-color: var(--dm-surface) !important; }

  #root.root .Snapshots .titlebar,
  #root.root .Snapshots .active-snapshot-section .header,
  #root.root .MenuEditor { background-color: var(--dm-surface) !important; }
}


/*=== GROUP PAGES ==================================================================================
*/

@-moz-document regexp("^moz-extension://.*?/sidebery/group.html.*")
{
  #root.root, #root.root .bg { background-color: var(--dm-base) !important; }

  #root.root .title-box .title { color: var(--dm-text) !important; }
  #root.root .title-highlight { background-color: var(--dm-iris-16) !important; }

  #root.root .tab, #root.root .pinned-tab {
    border-radius: 10px !important;
    background-color: var(--dm-surface) !important;
    box-shadow: inset 0 0 0 1px rgba(64, 61, 82, .5) !important;
    transition: box-shadow var(--d-fast), background-color var(--d-fast) !important;
  }
  #root.root .tab:hover, #root.root .pinned-tab:hover {
    background-color: var(--dm-overlay) !important;
    box-shadow: inset 0 0 0 1px var(--dm-iris-40) !important;
  }
  #root.root .tab-title, #root.root .pinned-tab-title { color: var(--dm-text) !important; }
  #root.root .tab-url,   #root.root .pinned-tab-url   { color: var(--dm-muted) !important; }

  #root.root .new-tab {
    border-radius: 10px !important;
    box-shadow: inset 0 0 0 1px rgba(64, 61, 82, .5) !important;
  }
  #root.root .new-tab:hover { box-shadow: inset 0 0 0 1px var(--dm-iris-40) !important; }
  #root.root .new-tab-plus { fill: var(--dm-iris) !important; }
}