Advertisement
Guest User

Untitled

a guest
Jan 5th, 2022
1,950
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.34 KB | None | 0 0
  1. /* Sidebery */
  2. #main-window[titlepreface*="[S] "] .tabbrowser-tab {
  3. visibility: collapse;
  4. }
  5.  
  6. #main-window[titlepreface*="[S] "] .titlebar-button {
  7. height: 40px;
  8. }
  9.  
  10. #main-window[titlepreface*="[S] "] #nav-bar {
  11. margin-top: -40px;
  12. }
  13. #main-window[titlepreface*="[S] "][tabsintitlebar="true"] #nav-bar {
  14. margin-right: 137px;
  15. }
  16. #main-window[titlepreface*="[S] "] #titlebar-spacer {
  17. background-color: var(--chrome-secondary-background-color);
  18. }
  19.  
  20. #main-window[titlepreface*="[S] "] #titlebar-buttonbox-container {
  21. background-color: var(--chrome-secondary-background-color);
  22. }
  23.  
  24. #main-window[titlepreface*="[S] "] .titlebar-color {
  25. background-color: var(--toolbar-bgcolor);
  26. }
  27.  
  28. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"] #sidebar-header {
  29. visibility: collapse;
  30. }
  31.  
  32. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_sidebar.css made available under Mozilla Public License v. 2.0
  33. See the above repository for updates as well as full license text. */
  34.  
  35. /* Show sidebar only when the cursor is over it */
  36. /* The border controlling sidebar width will be removed so you'll need to modify these values to change width */
  37.  
  38. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"] {
  39. --uc-sidebar-width: 47px;
  40. --uc-sidebar-hover-width: 232px;
  41. --uc-autohide-sidebar-delay: 500ms; /* Wait 0.6s before hiding sidebar */
  42. position: relative;
  43. min-width: var(--uc-sidebar-width) !important;
  44. width: var(--uc-sidebar-width) !important;
  45. max-width: var(--uc-sidebar-width) !important;
  46. z-index:1;
  47. margin-top: -1px;
  48. }
  49.  
  50. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"][positionend] {
  51. direction: rtl;
  52. }
  53. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"][positionend] > *{
  54. direction: ltr;
  55. }
  56.  
  57. #sidebar-box[positionend]:-moz-locale-dir(rtl){
  58. direction: ltr;
  59. }
  60. #sidebar-box[positionend]:-moz-locale-dir(rtl) > *{
  61. direction: rtl;
  62. }
  63.  
  64. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"] > #sidebar {
  65. transition: min-width 115ms linear !important;
  66. min-width: var(--uc-sidebar-width) !important;
  67. will-change: min-width;
  68. }
  69.  
  70. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"]:hover > #sidebar {
  71. min-width: var(--uc-sidebar-hover-width) !important;
  72. transition: min-width 100ms linear var(--uc-autohide-sidebar-delay), box-shadow 500ms linear !important;
  73. box-shadow: 0 0 4px rgba(10,10,10, .5);
  74. clip-path: inset(0px -15px 0px -15px);
  75. }
  76.  
  77. /* Add sidebar divider and give it background */
  78.  
  79. #sidebar,
  80. #sidebar-header {
  81. background-color: var(--toolbar-bgcolor) !important;
  82. border-inline: 1px solid var(--chrome-content-separator-color);
  83. border-inline-width: 0px 1px;
  84. }
  85.  
  86. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"]:not([positionend]) > :-moz-locale-dir(rtl),
  87. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"][positionend] > * {
  88. border-inline-width: 1px 0px;
  89. }
  90.  
  91. /* Move statuspanel to the other side when sidebar is hovered so it doesn't get covered by sidebar */
  92.  
  93. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"]:not([positionend]):hover ~ #appcontent #statuspanel {
  94. inset-inline: auto 0px !important;
  95. }
  96. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"]:not([positionend]):hover ~ #appcontent #statuspanel-label {
  97. margin-inline: 0px !important;
  98. border-left-style: solid !important;
  99. }
  100.  
  101. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_bookmarks_toolbar.css made available under Mozilla Public License v. 2.0
  102. See the above repository for updates as well as full license text. */
  103.  
  104. #PersonalToolbar{
  105. --uc-bm-height: 20px; /* Might need to adjust if the toolbar has other buttons */
  106. --uc-bm-padding: 7px; /* Vertical padding to be applied to bookmarks */
  107. --uc-autohide-toolbar-delay: 600ms; /* The toolbar is hidden after 0.6s */
  108.  
  109. /* 0deg = "show" ; 90deg = "hide" ; Set the following to control when bookmarks are shown */
  110. --uc-autohide-toolbar-focus-rotation: 0deg; /* urlbar is focused */
  111. --uc-autohide-toolbar-hover-rotation: 0deg; /* cursor is over the toolbar area */
  112. }
  113.  
  114. :root[uidensity="compact"] #PersonalToolbar{ --uc-bm-padding: 1px; }
  115. :root[uidensity="touch"] #PersonalToolbar{ --uc-bm-padding: 7px }
  116.  
  117. #PersonalToolbar:not([customizing]){
  118. position: relative;
  119. margin-bottom: calc(0px - var(--uc-bm-height) - 2 * var(--uc-bm-padding));
  120. transform: rotateX(90deg);
  121. transform-origin: top;
  122. transition: transform 135ms linear var(--uc-autohide-toolbar-delay) !important;
  123. z-index: 1;
  124. /* The following properties should allow the themes with trasparent toolbars to work */
  125. background-color: transparent !important;
  126. background-repeat: no-repeat,no-repeat,var(--lwt-background-tiling);
  127. --uc-bg-y: calc(-2 * (var(--tab-block-margin) + var(--toolbarbutton-inner-padding) + var(--toolbarbutton-outer-padding)) - var(--tab-min-height) - 16px - var(--bookmark-block-padding));
  128. background-position: top left,top left,var(--lwt-background-alignment,top left);
  129. background-position-y:top,top,var(--uc-bg-y),var(--uc-bg-y),var(--uc-bg-y);
  130. background-image: var(--toolbar-bgimage), linear-gradient(var(--toolbar-bgcolor),var(--toolbar-bgcolor)),var(--lwt-header-image,var(--lwt-additional-images)) !important;
  131. }
  132.  
  133. #PlacesToolbarItems > .bookmark-item,
  134. #OtherBookmarks,
  135. #PersonalToolbar > #import-button{
  136. padding-block: var(--uc-bm-padding) !important;
  137. }
  138.  
  139. #nav-bar:focus-within + #PersonalToolbar{
  140. transition-delay: 100ms !important;
  141. transform: rotateX(var(--uc-autohide-toolbar-focus-rotation,0));
  142. }
  143.  
  144. #navigator-toolbox:hover > #PersonalToolbar{
  145. transition-delay: 100ms !important;
  146. transform: rotateX(var(--uc-autohide-toolbar-hover-rotation,0));
  147. }
  148.  
  149. #navigator-toolbox:hover > #nav-bar:focus-within + #PersonalToolbar {
  150. transform: rotateX(0);
  151. }
  152.  
  153. /* Uncomment to enable compatibility for multi-row_bookmarks.css */
  154. /* This would break buttons placed in the toolbar but that is likely not happening if you are using multi-row setup */
  155. /*
  156. #PersonalToolbar:not([customizing]){
  157. position: fixed;
  158. display: block;
  159. margin-bottom: 0px !important;
  160. }
  161. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement