Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1.  
  2. Skip to content
  3. Timvde / UserChrome-Tweaks
  4. Sign up
  5. Code Issues 21 Pull requests 16 Projects 0 Security Pulse
  6. Join GitHub today
  7.  
  8. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
  9. UserChrome-Tweaks/toolbars/auto-hide.css
  10. @different55 different55 Move transition property from :hover to normal. (#129) 784a64c on Jan 31
  11. @AlexVallat
  12. @different55
  13. 127 lines (106 sloc) 3.82 KB
  14. /*
  15. * Auto-hide the URL-bar and bookmarks bar, show on hover or focus
  16. *
  17. * Contributor(s): Alex Vallat
  18. */
  19.  
  20. :root[uidensity=compact] #navigator-toolbox {
  21. --nav-bar-height: 33px;
  22. --tab-min-height: 29px;
  23. }
  24.  
  25. :root[uidensity=compact][extradragspace]:not([sizemode="normal"]) #navigator-toolbox {
  26. --nav-bar-height: 33px;
  27. --tab-min-height: 21px;
  28. }
  29.  
  30. :root:not([uidensity]) #navigator-toolbox {
  31. --nav-bar-height: 39px;
  32. --tab-min-height: 33px;
  33. }
  34.  
  35. :root:not([uidensity])[extradragspace]:not([sizemode="normal"]) #navigator-toolbox {
  36. --nav-bar-height: 39px;
  37. --tab-min-height: 25px;
  38. }
  39.  
  40. :root[uidensity=touch] #navigator-toolbox {
  41. --nav-bar-height: 41px;
  42. --tab-min-height: 41px;
  43. }
  44.  
  45. :root[uidensity=touch][extradragspace]:not([sizemode="normal"]) #navigator-toolbox {
  46. --nav-bar-height: 41px;
  47. --tab-min-height: 33px;
  48. }
  49.  
  50. #navigator-toolbox {
  51. --tabbar-height: calc(var(--tab-min-height) + var(--space-above-tabbar));
  52. --trigger-area-height: 1px;
  53. margin-top:-2px!important;
  54. border-top:1px!important;
  55. border-bottom-color:#9E9FA1!important;
  56. }
  57.  
  58. :root[chromehidden~="toolbar"] #navigator-toolbox {
  59. --tabbar-height: 0.1px;
  60. }
  61.  
  62. #toolbar-menubar {
  63. margin-top: 0px !important; /* This is usually 0, but under Win7 can be given an extra 1px when not maximized */
  64. }
  65.  
  66. #nav-bar, #PersonalToolbar {
  67. /* Otherwise spacers will not count as hover-able areas */
  68. -moz-window-dragging: default;
  69. }
  70.  
  71. :root:not([customizing]) #nav-bar
  72. {
  73. overflow-y: hidden;
  74. max-height:0;
  75. min-height:0 !important;
  76. padding-top:0 !important;
  77. padding-bottom:0 !important;
  78. opacity: 0;
  79. }
  80.  
  81. :root:not([customizing]) :hover > #nav-bar,
  82. :root:not([customizing]) #nav-bar:focus-within {
  83. max-height: var(--nav-bar-height);
  84. opacity: 1;
  85. }
  86.  
  87. :root:not([customizing]) #navigator-toolbox {
  88. max-height: calc(var(--tabbar-height) + var(--trigger-area-height));
  89. min-height: var(--tabbar-height);
  90. margin-bottom: calc(-1 * var(--trigger-area-height));
  91. transition: opacity 0.15s ease-in, max-height 0.15s linear;
  92. }
  93.  
  94. :root:not([customizing]) #navigator-toolbox:hover,
  95. :root:not([customizing]) #navigator-toolbox:focus-within {
  96. max-height: calc(var(--tabbar-height) + var(--nav-bar-height));
  97. margin-bottom: calc(0px - var(--nav-bar-height));
  98. }
  99.  
  100. /* If the bookmarks bar is turned on, auto-hide that too */
  101. :root:not([customizing]) #PersonalToolbar {
  102. max-height: 0 !important;
  103. min-height: 0.1px !important;
  104. opacity: 0;
  105. }
  106.  
  107. :root:not([customizing]) :hover > #PersonalToolbar,
  108. :root:not([customizing]) #navigator-toolbox:focus-within #PersonalToolbar {
  109. max-height: 4em !important;
  110. opacity: 1;
  111. transition: opacity 0.15s ease-in !important;
  112. }
  113.  
  114.  
  115. #content browser, .browserStack>browser {
  116. margin-right:-17px!important;
  117. margin-bottom:-15px!important;
  118. overflow-y:hidden!important;
  119. overflow-x:hidden!important;
  120. border-top:1px!important;
  121.  
  122. }
  123.  
  124. #tabbrowser-tabs {
  125. font-family:"lemon"!important;
  126. font-size:10px!important;
  127. margin-right:-30px!important;
  128. border-bottom:1px!important;
  129. border-color:#9E9FA1!important;
  130. }
  131.  
  132. #TabsToolbar {
  133. margin-left:-40px!important;
  134. margin-top:0px!important;
  135. margin-right:-149px!important;
  136. border-bottom:1px!important;
  137. border-color:#9E9FA1!important;
  138. }
  139.  
  140. .tab-icon-image {
  141. display: none!important;
  142. }
  143.  
  144. .tabbrowser-tab .tab-close-button {
  145. display: none!important;
  146. }
  147.  
  148. .tabbrowser-tab[pinned] {
  149. width: 28px!important;
  150. font-size:0!important;
  151. }
  152.  
  153. #tabbrowser-tab {
  154. border-bottom:1px!important;
  155. border-color:#9E9FA1!important;
  156. }
  157.  
  158. #urlbar {
  159. font-family:"lemon"!important;
  160. font-size:10px!important;
  161. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement