sector-f-linux

Sector F Linux
git clone https://git.sectorflabs.com/sector-f-linux.git
Log | Files | Refs | README | LICENSE

patina-default.css (2029B)


      1 /* Copied from patina-browser-themes/firefox/patina-default.css (commit 10de23c); that repository is the
      2    source, so change it there and copy it here. See docs/adr/0018. */
      3 
      4 /* Patina Default for Firefox: the colours of Patina's Default skin, egui's
      5  * stock look following the desktop's light or dark setting, as the Zen mod
      6  * has them: the panel colour for the chrome, the shown tab in the surface
      7  * colour as Patina's tabs are, and the thin, lighter border round the window
      8  * and between the toolbars and the page (`panel_fill`, `extreme_bg_color`
      9  * and `window_stroke` in egui 0.35's `Visuals::light()` and `dark()`). */
     10 
     11 :root {
     12   --patina-background: light-dark(#f8f8f8, #1b1b1b);
     13   --patina-surface: light-dark(#ffffff, #0a0a0a);
     14   --patina-border: light-dark(#bebebe, #3c3c3c);
     15 
     16   --toolbox-background-color: var(--patina-background) !important;
     17   --toolbox-background-color-inactive: var(--patina-background) !important;
     18   --toolbar-background-color: var(--patina-background) !important;
     19   --tab-background-color-selected: var(--patina-surface) !important;
     20   --chrome-content-separator-color: var(--patina-border) !important;
     21   --tabs-navbar-separator-color: var(--patina-border) !important;
     22 }
     23 
     24 /* The window's edge, over everything and not in the pointer's way; none
     25  * when it fills the screen. */
     26 :root:not([sizemode="maximized"], [sizemode="fullscreen"]) body::after {
     27   content: "";
     28   position: fixed;
     29   inset: 0;
     30   border: 1px solid var(--patina-border);
     31   border-radius: var(--patina-window-radius, 0);
     32   pointer-events: none;
     33   z-index: 2147483647;
     34 }
     35 
     36 /* Corners rounded like a Patina window's (frame.rs' WINDOW_RADIUS), where
     37  * Firefox rounds them by the GTK theme's: a floating window, on a desktop
     38  * that composites (browser.css's titlebar rules). */
     39 @media (-moz-gtk-csd-transparency-available) {
     40   :root[customtitlebar][sizemode="normal"]:not([tiled]) {
     41     --patina-window-radius: 15px;
     42 
     43     & body,
     44     & dialog::backdrop {
     45       border-radius: var(--patina-window-radius) !important;
     46     }
     47   }
     48 }