OOKNET                             [ /  search the index  ]  
──────────────────────────────────────────────────────────────────────────────────────
══════════════════════════════════════════════════════════════════════════════════════
OOKNET   [ /  search  ]  
────────────────────────────────────────────────
════════════════════════════════════════════════
 
 
main @ 222 LINES
 
[ HISTORY ]  [ UP ]
 

{
  ook,
  fonts,
  ...
}: let
  inherit (ook) color;
in
  #css
  ''
        :root {

          --clr-menu: #${color.layout.menu};
          --clr-fg: #${color.typography.text};
          --clr-secondary: #${color.secondary.base};


          --border: 1px solid var(--clr-fg);
          --border-active: 1px solid var(--clr-fg);
          --border-inactive: 1px solid var(--clr-secondary);

          --font-base: ${fonts.monospace.family};

        }

        * {
          border-radius: 0 !important;
          font-family: ${fonts.monospace.family};
        }
        #nav-bar {
          border: var(--border) !important;
          background-color: var(--clr-menu) !important;
          margin-top: 0px !important;
        }
        #urlbar {
          text-align: center;
        }

        .browser-toolbar {
          padding-bottom: 1px !important;
        }

        #urlbar-background {
          background-color: transparent !important;
          border: unset !important;
          box-shadow: unset !important;
        }

        #urlbar-container {
         padding: 0 !important;
        }

        .urlbarView {
          text-align: start;
          border: var(--border) !important;
          margin: 0;
          padding: 0 !important;
          background-color: var(--clr-menu);
        }

        .urlbar-input-container {
          margin: 0px !important;
        }

        #forward-button,
        #stop-button,
        #star-button-box,
        #translations-button,
        #reload-button,
        #identity-icon,
        #tracking-protection-icon-container,
        #save-to-pocket-button,
        .urlbar-page-action,
        .urlbar-go-button,
        /* firefox account button */
        #fxa-toolbar-menu-button,
        /* hamburger menu icon */
        #PanelUI-button,
        #PersonalToolbar
        {
          display: none;
        }

        .titlebar-buttonbox-container,
        .tab-close-button,
        .titlebar-spacer,
        #tabs-newtab-button,
        #alltabs-button,
        #firefox-view-button,
        #new-tab-button {
          display: none;
        }


        #tabbrowser-tabs {
          margin: 0 !important;
          padding: 0 !important;

          margin-inline: 0px !important;
          border: unset !important;
          border-bottom: var(--border-inactive) !important;
        }

        .tabbrowser-tab {
          padding: 3px !important;
          padding-left: 3px !important;
          --tab-label-mask-size: unset !important;
        }

        .tabbrowser-tab[pinned] {
          padding: 3px !important;
        }

        #tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs])[orient="horizont
al"] > #tabbrowser-arrowscrollbox > .tabbrowser-tab:nth-child(1 of :not([pinned], 
[hidden])) {
          margin-inline-start: 0px !important;
        }

        .tab-stack {
          margin-inline: 0 !important;
        }
        .tab-background {
          border-radius: 0px;
          border: var(--border-inactive);
        }
        .tab-background[selected] {
         border: var(--border-active);
        }

        #TabsToolbar {
          padding-left: 0px !important;
          margin: 0;
          padding: 0;
        }

        /* https://github.com/MrOtherGuy/firefox-csshacks/blob/8957a709e3abb7242fa
89339c684f8027e66774c/chrome/autohide_main_toolbar.css#L46 */
    :root{
      --uc-navbar-transform: -40px;
      --uc-autohide-toolbar-delay: 1s;
      --uc-autohide-toolbar-duration: 100ms;
    }
    :root[uidensity="compact"]{ --uc-navbar-transform: -34px }

    #navigator-toolbox > div{ display: contents; }
    :root[sessionrestored] :where(#nav-bar,#PersonalToolbar,#tab-notification-deck
,.global-notificationbox){
      transform: translateY(var(--uc-navbar-transform))
    }
    :root:is([customizing],[chromehidden*="toolbar"]) :where(#nav-bar,#PersonalToo
lbar,#tab-notification-deck,.global-notificationbox){
      transform: none !important;
      opacity: 1 !important;
    }

    #nav-bar:not([customizing]){
      opacity: 0;
      transition:  transform var(--uc-autohide-toolbar-duration) ease var(--uc-aut
ohide-toolbar-delay), opacity var(--uc-autohide-toolbar-duration) ease var(--uc-au
tohide-toolbar-delay) !important;
      position: relative;
      z-index: 1;
    }
    #titlebar{ position: relative; z-index: 3 }

    #navigator-toolbox,
    #sidebar-box,
    #sidebar-main,
    #sidebar-splitter,
    #tabbrowser-tabbox{
      z-index: auto !important;
    }
    /* Show when toolbox is focused, like when urlbar has received focus */
    #navigator-toolbox:focus-within > .browser-toolbar{
      transform: translateY(0);
      opacity: 1;
      transition-duration: var(--uc-autohide-toolbar-duration), var(--uc-autohide-
toolbar-duration) !important;
      transition-delay: 0s !important;
    }
    /* Show when toolbox is hovered */
    #titlebar:hover ~ .browser-toolbar,
    .browser-titlebar:hover ~ :is(#nav-bar,#PersonalToolbar),
    #nav-bar:hover,
    #nav-bar:hover + #PersonalToolbar{
      transform: translateY(0);
      opacity: 1;
      transition-duration: var(--uc-autohide-toolbar-duration), var(--uc-autohide-
toolbar-duration) !important;
      transition-delay: 0s !important;
    }
    :root[sessionrestored] #urlbar[popover]{
      opacity: 0;
      pointer-events: none;
      transition: transform var(--uc-autohide-toolbar-duration) ease var(--uc-auto
hide-toolbar-delay), opacity var(--uc-autohide-toolbar-duration) ease var(--uc-aut
ohide-toolbar-delay);
      transform: translateY(var(--uc-navbar-transform));
    }
    #mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts,#tab-preview-panel)) ~
 toolbox #urlbar[popover],
    .browser-titlebar:is(:hover,:focus-within) ~ #nav-bar #urlbar[popover],
    #nav-bar:is(:hover,:focus-within) #urlbar[popover],
    #urlbar-container > #urlbar[popover]:is([focused],[open]){
      opacity: 1;
      pointer-events: auto;
      transition-delay: 0ms;
      transform: translateY(0);
    }
    #urlbar-container > #urlbar[popover]:is([focused],[open]){
     transition-duration: 100ms; /* Faster when focused */
    }
    /* This ruleset is separate, because not having :has support breaks other sele
ctors as well */
    #mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts,#tab-preview-panel)) ~
 #navigator-toolbox > .browser-toolbar{
      transition-delay: 33ms !important;
      transform: translateY(0);
      opacity: 1;
    }
    /* If tabs are in sidebar then nav-bar doesn't normally have its own backgroun
d - so we nee to add it back */
    #nav-bar.browser-titlebar{
      background: inherit;
    }
    #toolbar-menubar:not([autohide="true"]) ~ #nav-bar.browser-titlebar{
      background-position-y: -28px; /* best guess, could vary */
      border-top: none !important;
    }

    /* Bookmarks toolbar needs so extra rules */
    #PersonalToolbar{ transition: transform var(--uc-autohide-toolbar-duration) ea
se var(--uc-autohide-toolbar-delay) !important; position: relative; z-index: 1 }

    /* Move up the content view */
    :root[sessionrestored]:not([inFullscreen],[chromehidden~="toolbar"]) > body > 
#browser{ margin-top: var(--uc-navbar-transform); }
  ''

{
  ook,
  fonts,
  ...
}: let
  inherit (ook) color;
in
  #css
  ''
        :root {

          --clr-menu: #${color.layout.menu};
          --clr-fg: #${color.typography.text
};
          --clr-secondary: #${color.secondar
y.base};


          --border: 1px solid var(--clr-fg);
          --border-active: 1px solid var(--c
lr-fg);
          --border-inactive: 1px solid var(-
-clr-secondary);

          --font-base: ${fonts.monospace.fam
ily};

        }

        * {
          border-radius: 0 !important;
          font-family: ${fonts.monospace.fam
ily};
        }
        #nav-bar {
          border: var(--border) !important;
          background-color: var(--clr-menu) 
!important;
          margin-top: 0px !important;
        }
        #urlbar {
          text-align: center;
        }

        .browser-toolbar {
          padding-bottom: 1px !important;
        }

        #urlbar-background {
          background-color: transparent !imp
ortant;
          border: unset !important;
          box-shadow: unset !important;
        }

        #urlbar-container {
         padding: 0 !important;
        }

        .urlbarView {
          text-align: start;
          border: var(--border) !important;
          margin: 0;
          padding: 0 !important;
          background-color: var(--clr-menu);
        }

        .urlbar-input-container {
          margin: 0px !important;
        }

        #forward-button,
        #stop-button,
        #star-button-box,
        #translations-button,
        #reload-button,
        #identity-icon,
        #tracking-protection-icon-container,
        #save-to-pocket-button,
        .urlbar-page-action,
        .urlbar-go-button,
        /* firefox account button */
        #fxa-toolbar-menu-button,
        /* hamburger menu icon */
        #PanelUI-button,
        #PersonalToolbar
        {
          display: none;
        }

        .titlebar-buttonbox-container,
        .tab-close-button,
        .titlebar-spacer,
        #tabs-newtab-button,
        #alltabs-button,
        #firefox-view-button,
        #new-tab-button {
          display: none;
        }


        #tabbrowser-tabs {
          margin: 0 !important;
          padding: 0 !important;

          margin-inline: 0px !important;
          border: unset !important;
          border-bottom: var(--border-inacti
ve) !important;
        }

        .tabbrowser-tab {
          padding: 3px !important;
          padding-left: 3px !important;
          --tab-label-mask-size: unset !impo
rtant;
        }

        .tabbrowser-tab[pinned] {
          padding: 3px !important;
        }

        #tabbrowser-tabs[haspinnedtabs]:not(
[positionpinnedtabs])[orient="horizontal"] >
 #tabbrowser-arrowscrollbox > .tabbrowser-ta
b:nth-child(1 of :not([pinned], [hidden])) {
          margin-inline-start: 0px !importan
t;
        }

        .tab-stack {
          margin-inline: 0 !important;
        }
        .tab-background {
          border-radius: 0px;
          border: var(--border-inactive);
        }
        .tab-background[selected] {
         border: var(--border-active);
        }

        #TabsToolbar {
          padding-left: 0px !important;
          margin: 0;
          padding: 0;
        }

        /* https://github.com/MrOtherGuy/fir
efox-csshacks/blob/8957a709e3abb7242fa89339c
684f8027e66774c/chrome/autohide_main_toolbar
.css#L46 */
    :root{
      --uc-navbar-transform: -40px;
      --uc-autohide-toolbar-delay: 1s;
      --uc-autohide-toolbar-duration: 100ms;
    }
    :root[uidensity="compact"]{ --uc-navbar-
transform: -34px }

    #navigator-toolbox > div{ display: conte
nts; }
    :root[sessionrestored] :where(#nav-bar,#
PersonalToolbar,#tab-notification-deck,.glob
al-notificationbox){
      transform: translateY(var(--uc-navbar-
transform))
    }
    :root:is([customizing],[chromehidden*="t
oolbar"]) :where(#nav-bar,#PersonalToolbar,#
tab-notification-deck,.global-notificationbo
x){
      transform: none !important;
      opacity: 1 !important;
    }

    #nav-bar:not([customizing]){
      opacity: 0;
      transition:  transform var(--uc-autohi
de-toolbar-duration) ease var(--uc-autohide-
toolbar-delay), opacity var(--uc-autohide-to
olbar-duration) ease var(--uc-autohide-toolb
ar-delay) !important;
      position: relative;
      z-index: 1;
    }
    #titlebar{ position: relative; z-index: 
3 }

    #navigator-toolbox,
    #sidebar-box,
    #sidebar-main,
    #sidebar-splitter,
    #tabbrowser-tabbox{
      z-index: auto !important;
    }
    /* Show when toolbox is focused, like wh
en urlbar has received focus */
    #navigator-toolbox:focus-within > .brows
er-toolbar{
      transform: translateY(0);
      opacity: 1;
      transition-duration: var(--uc-autohide
-toolbar-duration), var(--uc-autohide-toolba
r-duration) !important;
      transition-delay: 0s !important;
    }
    /* Show when toolbox is hovered */
    #titlebar:hover ~ .browser-toolbar,
    .browser-titlebar:hover ~ :is(#nav-bar,#
PersonalToolbar),
    #nav-bar:hover,
    #nav-bar:hover + #PersonalToolbar{
      transform: translateY(0);
      opacity: 1;
      transition-duration: var(--uc-autohide
-toolbar-duration), var(--uc-autohide-toolba
r-duration) !important;
      transition-delay: 0s !important;
    }
    :root[sessionrestored] #urlbar[popover]{
      opacity: 0;
      pointer-events: none;
      transition: transform var(--uc-autohid
e-toolbar-duration) ease var(--uc-autohide-t
oolbar-delay), opacity var(--uc-autohide-too
lbar-duration) ease var(--uc-autohide-toolba
r-delay);
      transform: translateY(var(--uc-navbar-
transform));
    }
    #mainPopupSet:has(> [panelopen]:not(#ask
-chat-shortcuts,#tab-preview-panel)) ~ toolb
ox #urlbar[popover],
    .browser-titlebar:is(:hover,:focus-withi
n) ~ #nav-bar #urlbar[popover],
    #nav-bar:is(:hover,:focus-within) #urlba
r[popover],
    #urlbar-container > #urlbar[popover]:is(
[focused],[open]){
      opacity: 1;
      pointer-events: auto;
      transition-delay: 0ms;
      transform: translateY(0);
    }
    #urlbar-container > #urlbar[popover]:is(
[focused],[open]){
     transition-duration: 100ms; /* Faster w
hen focused */
    }
    /* This ruleset is separate, because not
 having :has support breaks other selectors 
as well */
    #mainPopupSet:has(> [panelopen]:not(#ask
-chat-shortcuts,#tab-preview-panel)) ~ #navi
gator-toolbox > .browser-toolbar{
      transition-delay: 33ms !important;
      transform: translateY(0);
      opacity: 1;
    }
    /* If tabs are in sidebar then nav-bar d
oesn't normally have its own background - so
 we nee to add it back */
    #nav-bar.browser-titlebar{
      background: inherit;
    }
    #toolbar-menubar:not([autohide="true"]) 
~ #nav-bar.browser-titlebar{
      background-position-y: -28px; /* best 
guess, could vary */
      border-top: none !important;
    }

    /* Bookmarks toolbar needs so extra rule
s */
    #PersonalToolbar{ transition: transform 
var(--uc-autohide-toolbar-duration) ease var
(--uc-autohide-toolbar-delay) !important; po
sition: relative; z-index: 1 }

    /* Move up the content view */
    :root[sessionrestored]:not([inFullscreen
],[chromehidden~="toolbar"]) > body > #brows
er{ margin-top: var(--uc-navbar-transform); 
}
  ''
 
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET