Advertisement
Guest User

chromeless experience -userchrome.css

a guest
Dec 14th, 2024
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.71 KB | None | 0 0
  1.  
  2. @import url(chrome/autohide_main_toolbar.css);
  3. @import url(chrome/autohide_sidebar.css);
  4. @import url(chrome/drag_window_from_urlbar.css);
  5. /* Sidebar - autohide_sidebar.css References */
  6. :root,
  7. #sidebar-box {
  8. --uc-sidebar-width: 0px; /* Set initial sidebar width */
  9. --uc-sidebar-hover-width: 300px; /* Set hover width */
  10. --uc-autohide-sidebar-delay: 500ms;
  11. --uc-autohide-transition-duration: 300ms;
  12. --uc-autohide-transition-type: ease-in-out;
  13. }
  14. /* Main Toolbar - autohide_main_toolbar.css References */
  15. :root {
  16. --uc-navbar-transform: -40px;
  17. --uc-autohide-toolbar-delay: var(--uc-autohide-sidebar-delay);
  18. --uc-autohide-toolbar-duration: var(--uc-autohide-transition-duration);
  19. }
  20. /* Always show sidebar when maximized - Was commented out to hide in maximized as well *//*
  21. :root[sizemode="maximized"] {
  22. #sidebar-box {
  23. --uc-sidebar-width: var(--uc-sidebar-hover-width) !important;
  24. }
  25. #sidebar-header,
  26. #sidebar{
  27. opacity: 100% !important;
  28. }
  29. }*/
  30. /* Needs Sidebery - Hides tab bar but leaves window controls clickable */
  31. #main-window[titlepreface*="?? "] {
  32. #TabsToolbar {
  33. visibility: collapse;
  34. }
  35. #TabsToolbar.browser-toolbar.browser-titlebar {
  36. z-index: 4 !important;
  37. }
  38. /* Affects initial window control positioning */
  39. /* Hidden window controls can interfere with page content - adjust if needed */
  40. .titlebar-buttonbox-container {
  41. display: block;
  42. position: absolute;
  43. top: -20px;
  44. right: 0px;
  45. visibility: visible !important;
  46. }
  47. /* Remove revamp sidebar toolbar */
  48. #sidebar-main {
  49. visibility: collapse !important;
  50. display: none !important;
  51. }
  52. /* Add padding for window controls */
  53. #PanelUI-button {
  54. padding-right: 30px !important;
  55. }
  56. .titlebar-button {
  57. height: 40px;
  58. width: 36px !important
  59. }
  60. .titlebar-buttonbox-container:hover .titlebar-button {
  61. transition: 500ms ease-in-out;
  62. background: var(--toolbar-bgcolor) !important;
  63. }
  64. /* Make Sidebar completey hidden until hover */
  65. /* Comment this out if complete chromeless is undesired and set initial width above */
  66. #sidebar-header,
  67. #sidebar {
  68. min-width: 10px !important; /* Controls Sidebar hover area size */
  69. opacity: 0%;
  70. transition: opacity
  71. var(--uc-autohide-transition-duration)
  72. var(--uc-autohide-transition-type)
  73. var(--uc-autohide-sidebar-delay),
  74. min-width
  75. var(--uc-autohide-transition-duration)
  76. var(--uc-autohide-transition-type)
  77. var(--uc-autohide-sidebar-delay) !important;
  78. }
  79. /* Comment this out if complete chromeless is undesired and set initial width above */
  80. #sidebar-box:hover > #sidebar-header,
  81. #sidebar-box:hover > #sidebar {
  82. min-width: var(--uc-sidebar-hover-width) !important;
  83. opacity: 95% !important;
  84. transition-delay: -0ms !important;
  85. }
  86. }
  87. /* Controls hover area size - Shifts hidden navbar down for hover detection */
  88. #nav-bar {
  89. transform: translateY(-28px);
  90. }
  91. #PersonalToolbar {
  92. height: 40px !important;
  93. z-index: auto !important;
  94. }
  95. #sidebar-box {
  96. z-index: 1 !important;
  97. }
  98. /* Shorten sidebar header a bit & make it draggable */
  99. #sidebar-header {
  100. height: 38px !important;
  101. background: var(--toolbar-bgcolor) !important;
  102. -moz-window-dragging: drag;
  103. }
  104. #zoom-controls separator,
  105. /* Removes left and right spacers in toolbar & Sidebar close button */
  106. #sidebar-close,
  107. .titlebar-spacer[type="pre-tabs"],
  108. .titlebar-spacer[type="post-tabs"],
  109. /* Remove Menu Items */
  110. #context-openlink,
  111. #context-openlinkprivate,
  112. #context-savelinktopocket,
  113. #context-sendimage,
  114. #context-viewimageinfo,
  115. #context-inspect,
  116. #context-inspect-a11y {
  117. display: none !important;
  118. }
  119. #urlbar-background {
  120. backdrop-filter: blur(33px) !important;
  121. opacity: 0.85;
  122. }
  123. /* Hides & Unides Windows Controls */
  124. .titlebar-restore,
  125. .titlebar-max,
  126. .titlebar-close {
  127. visibility: collapse !important;
  128. opacity: 0 !important;
  129. }
  130. .titlebar-buttonbox-container:hover .titlebar-restore,
  131. .titlebar-buttonbox-container:hover .titlebar-max,
  132. .titlebar-buttonbox-container:hover .titlebar-close,
  133. .titlebar-buttonbox-container:hover .titlebar-button{
  134. visibility: visible !important;
  135. opacity: 1 !important;
  136. }.titlebar-buttonbox-container:hover {
  137. top: 0px !important;
  138. }
  139. @media not (-moz-bool-pref: "sidebar.verticalTabs") {
  140. /* Shorter Tab Bar*/
  141. :root {
  142. --tab-max-height: 24px !important;
  143. --tab-min-height: 0px !important;
  144. --urlbar-toolbar-height: var(--tab-max-height) !important;
  145. }
  146. .tab-background {
  147. margin: 0 !important;
  148. }
  149. .tab-secondary-label {
  150. font-size: .5em !important;
  151. margin: -.6em 0 .5em !important;
  152. }
  153. }
  154. @media (-moz-bool-pref: "sidebar.verticalTabs") {
  155. /* Remove revamp sidebar buttons */
  156. .tools-and-extensions.actions-list,
  157. .bottom-actions {
  158. display: none !important;
  159. }
  160. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement