kerlser

userChromeTest2

Oct 23rd, 2023 (edited)
918
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.84 KB | None | 0 0
  1. :root {
  2.     /* delay before expanding tabs, set to '0' for no delay */
  3.     --delay: 0.2s;
  4.     --transition-time: 0s;
  5.     --positionX1: 48px; /* '48px' for left, '0px' for right sidebar */
  6.     --positionX2: absolute; /* 'absolute' for left, 'none' for right sidebar */
  7.     /* width of the collapsed sidebar in fullscreen mode ('1px' or '48px') */
  8.     --fullscreen-sidebar-width: 1px;
  9. }
  10.  
  11.  
  12.  
  13. /* Windows specific styles */
  14.  
  15. @media (-moz-platform: windows),
  16.        (-moz-platform: windows-win10) {
  17.     /* Hide main tabs toolbar */
  18.     :root[tabsintitlebar]{
  19.         --uc-window-control-width: 137px; /* Space at the right of nav-bar for window controls */
  20.         /* --uc-window-drag-space-width: 24px; */ /* To add extra window drag space in nav-bar */
  21.     }
  22.  
  23.  
  24.     #nav-bar {
  25.         background-image: linear-gradient(to right, #49577e, #f16971 calc(100% - var(--uc-window-control-width,0px))) !important;
  26.     }
  27.  
  28.  
  29.     #PersonalToolbar {
  30.         background-image: linear-gradient(to right, #49577e, #f16971 calc(100% - var(--uc-window-control-width,0px))) !important;
  31.     }
  32.  
  33.     :root:not([inFullscreen]) #nav-bar {
  34.       padding-inline: var(--uc-window-drag-space-width,80px) calc(var(--uc-window-control-width,0px) + var(--uc-window-drag-space-width,0px)) !important;
  35.     }
  36.  
  37.  
  38. .titlebar-buttonbox-container {
  39.     height: calc(var(--uc-toolbar-height) + 2px) !important;
  40. }
  41.  
  42.     :root {
  43.         --uc-toolbar-height: 32px;
  44.         --chrome-content-separator-color: none !important;
  45.     }
  46.  
  47.     :root:not([uidensity="compact"]) {
  48.         --uc-toolbar-height: 38px;
  49.     }
  50.  
  51.     #TabsToolbar {
  52.         visibility: collapse !important;
  53.     }
  54.  
  55.     /* Hide the Windows controls on the left side. */
  56.     #TabsToolbar .titlebar-buttonbox-container {
  57.         visibility: hidden !important;
  58.     }
  59.  
  60.     :root:not([inFullscreen]) #nav-bar {
  61.     margin-top: calc(0px - var(--uc-toolbar-height));
  62.     z-index: 2;
  63.     }
  64.  
  65.     #toolbar-menubar {
  66.         min-height: unset !important;
  67.         height: var(--uc-toolbar-height) !important;
  68.         position: relative;
  69.     }
  70.  
  71.     /* For a rounded button design, uncomment both lines in .titlebar-buttonbox. */
  72.     .titlebar-buttonbox {
  73.         z-index: 3 !important;
  74.         padding-right: 3px;
  75.     }
  76.  
  77.     .titlebar-buttonbox * {
  78.         border-radius: 5px;
  79.         /* width:35px;
  80.         height:38px; */
  81.     }
  82.  
  83.     #main-menubar {
  84.         -moz-box-flex: 1;
  85.         /* background-color: var(--toolbar-bgcolor,--toolbar-non-lwt-bgcolor);*/
  86.         /*background-clip: padding-box;*/
  87.         /*border-right: 30px solid transparent;*/
  88.         /*border-image: linear-gradient(to left, transparent, var(--toolbar-bgcolor,--toolbar-non-lwt-bgcolor) 30px) 20 / 30px;*/
  89.     }
  90.  
  91.     #toolbar-menubar:not([inactive]) {
  92.         z-index: 2;
  93.     }
  94.  
  95.     #toolbar-menubar[inactive] > #menubar-items {
  96.         opacity: 0;
  97.         pointer-events: none;
  98.         margin-left: var(--uc-window-drag-space-width,0px);
  99.     }
  100.  
  101. }
  102.  
  103.  
  104. /* General styles */
  105. #browser {
  106.     position: relative;
  107. }
  108.  
  109. #nav-bar, #urlbar {
  110.     z-index: 100;
  111. }
  112.  
  113. #sidebar-box:not([lwt-sidebar]){
  114.     appearance: unset !important;
  115. }
  116.  
  117. #sidebar-box[sidebarcommand*="tabcenter"] {
  118.     z-index: 1;
  119. }
  120.  
  121. #sidebar-box[sidebarcommand*="tabcenter"] #sidebar-header {
  122.     visibility: collapse;
  123.     display: none;
  124. }
  125.  
  126. [sidebarcommand*="tabcenter"] #sidebar,
  127. #sidebar-box[sidebarcommand*="tabcenter"] {
  128.     display: block !important;
  129.     min-width: 48px !important;
  130.     max-width: 48px !important;
  131.     width: 48px;
  132. }
  133.  
  134. #sidebar-box[sidebarcommand*="tabcenter"]:not([hidden]) {
  135.     display: block;
  136.     position: var(--positionX2);
  137.     min-width: 48px;
  138.     max-width: 48px;
  139.     overflow: hidden;
  140.     border-right: 1px solid var(--sidebar-border-color);
  141.     z-index: 1;
  142.     top: 0;
  143.     bottom: 0;
  144. }
  145.  
  146. /* use :where() selector to lower specificity */
  147. :where(#main-window[inFullscreen]) #sidebar-box[sidebarcommand*="tabcenter"]:not([hidden]) {
  148.     min-width: var(--fullscreen-sidebar-width) !important;
  149.     max-width: var(--fullscreen-sidebar-width) !important;
  150. }
  151.  
  152. #sidebar-box[sidebarcommand*="tabcenter"]:hover #sidebar,
  153. #sidebar-box[sidebarcommand*="tabcenter"]:hover {
  154.     min-width: 10vw !important;
  155.     width: 30vw !important;
  156.     max-width: 200px !important;
  157.     z-index: 1 !important;
  158.     transition: all var(--transition-time) ease var(--delay);
  159. }
  160.  
  161. /* used for delay function */
  162. #sidebar-box[sidebarcommand*="tabcenter"]:not(:hover) #sidebar,
  163. #sidebar-box[sidebarcommand*="tabcenter"]:not(:hover) {
  164.     transition: all var(--transition-time) ease 0s;
  165. }
  166.  
  167. @media (width >= 1200px) {
  168.     #sidebar-box[sidebarcommand*="tabcenter"]:hover #sidebar,
  169.     #sidebar-box[sidebarcommand*="tabcenter"]:hover {
  170.         max-width: 250px !important;
  171.     }
  172. }
  173.  
  174. [sidebarcommand*="tabcenter"] ~ #sidebar-splitter {
  175.     display: none;
  176. }
  177.  
  178. [sidebarcommand*="tabcenter"] #sidebar {
  179.     max-height: 100%;
  180.     height: 100%;
  181. }
  182.  
  183. #main-window:not([inFullscreen]) #sidebar-box[sidebarcommand*="tabcenter"]:not([hidden]) ~ #appcontent {
  184.     margin-left: var(--positionX1);
  185. }
  186.  
  187. #main-window[inFullscreen]:not([inDOMFullscreen]) #sidebar-box[sidebarcommand*="tabcenter"]:not([hidden]) ~ #appcontent {
  188.     margin-left: var(--fullscreen-sidebar-width);
  189. }
  190.  
  191. #main-window[inFullscreen] #sidebar {
  192.     height: 100vh;
  193. }
  194.  
  195. [sidebarcommand*="tabcenter"] #sidebar-header {
  196.     background: #0C0C0D;
  197.     border-bottom: none !important;
  198. }
  199.  
  200. [sidebarcommand*="tabcenter"] ~ #sidebar-splitter {
  201.     border-right-color: #0C0C0D !important;
  202.     border-left-color: #0C0C0D !important;
  203. }
  204.  
  205. [sidebarcommand*="tabcenter"] #sidebar-switcher-target,
  206. [sidebarcommand*="tabcenter"] #sidebar-close {
  207.     filter: invert(100%);
  208. }
  209.  
  210. @media (max-width: 630px) {
  211.     #urlbar-container {
  212.         min-width: 100% !important;
  213.     }
  214.  
  215.     #menubar-items {
  216.         display: none !important;
  217.     }
  218. }
  219.  
Advertisement
Add Comment
Please, Sign In to add comment