Guest User

Untitled

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