Advertisement
Guest User

Untitled

a guest
Jan 30th, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.06 KB | None | 0 0
  1. @import url(userChrome_Fx56_bookmark_icons.css);
  2.  
  3. /* Hide Items on Bookmark Menu Button drop-down */
  4. #BMB_viewBookmarksSidebar,
  5. #BMB_bookmarksShowAllTop,
  6. #BMB_bookmarksShowAllTop + menuseparator,
  7. #BMB_recentBookmarks,
  8. #BMB_recentBookmarks + menuseparator,
  9. #BMB_bookmarksToolbar,
  10. #BMB_unsortedBookmarks,
  11. #BMB_mobileBookmarks,
  12. #BMB_mobileBookmarks + menuseparator {
  13. display: none !important;
  14. }
  15.  
  16. tabbrowser tabpanels {
  17. background-color: #336666 !important;
  18. }
  19.  
  20. /* Tab bar below Navigation & Bookmarks Toolbars */
  21. #nav-bar { /* main toolbar */
  22. -moz-box-ordinal-group: 1 !important;
  23. box-shadow: none !important;
  24. }
  25. #PersonalToolbar { /* bookmarks toolbar */
  26. -moz-box-ordinal-group: 2 !important;
  27. }
  28. #TabsToolbar { /* tab bar */
  29. -moz-box-ordinal-group: 3 !important;
  30. padding-top: 0 !important;
  31. }
  32. /* Clean up spacing */
  33. .titlebar-placeholder {
  34. display: none !important;
  35. }
  36. toolbarbutton.bookmark-item {
  37. padding-top: 2px !important;
  38. padding-bottom: 2px !important;
  39. }
  40.  
  41. /* If you display either:
  42. (1) The title bar, or
  43. (2) On Windows, the menu bar
  44. You might not want the following extra space above the main toolbar.
  45. In that case, delete the following rule:
  46. */
  47.  
  48. /* Background for Light and Dark themes */
  49. #main-window[lwthemetextcolor="bright"] #TabsToolbar,
  50. #main-window[lwthemetextcolor="dark"] #TabsToolbar {
  51. background-color: var(--chrome-secondary-background-color) !important;
  52. background-image: none !important;
  53. }
  54. #main-window[lwthemetextcolor="dark"] .scrollbutton-up,
  55. #main-window[lwthemetextcolor="dark"] .scrollbutton-down,
  56. #main-window[lwthemetextcolor="dark"] .tabs-newtab-button,
  57. #main-window[lwthemetextcolor="dark"] #new-tab-button,
  58. #main-window[lwthemetextcolor="dark"] #alltabs-button {
  59. fill: var(--lwt-text-color) !important;
  60. }
  61. /* Left and right borders on Win 7 & 8, but not on 10 and later: */
  62. @media (-moz-os-version: windows-win7), (-moz-os-version: windows-win8) {
  63. /* Vertical toolbar border */
  64. #main-window[sizemode=normal] #navigator-toolbox > toolbar#TabsToolbar {
  65. border-left: 1px solid hsla(240,5%,5%,0.3) !important;;
  66. border-right: 1px solid hsla(240,5%,5%,0.3) !important;;
  67. background-clip: padding-box;
  68. }
  69. }
  70.  
  71. /* Override vertical shifts when moving a tab (9 Jan 2018) */
  72. #TabsToolbar[movingtab] {
  73. padding-bottom: 0 !important;
  74. }
  75. #TabsToolbar[movingtab] > .tabbrowser-tabs {
  76. padding-bottom: 0 !important;
  77. margin-bottom: 0 !important;
  78. }
  79. #TabsToolbar[movingtab] + #nav-bar {
  80. margin-top: 0 !important;
  81. }
  82.  
  83. :root {
  84. --tab-curve-width: 30px;
  85. --tabs-border: transparent !important;
  86. }
  87.  
  88. .arrowscrollbox-scrollbox {
  89. padding-inline-start: 10px !important;
  90. }
  91.  
  92. /* To be able to see the top border of the tab */
  93. .tab-stack {
  94. margin-top: 2px !important;
  95. }
  96.  
  97. /* When the window is maximized, the first pinned tab is properly displayed. */
  98. #TabsToolbar {
  99. padding-inline-start: 15px !important;
  100. }
  101.  
  102. .titlebar-placeholder {
  103. border: none !important;
  104. }
  105.  
  106. /* Remove unneeded styles from Photon */
  107. .tabbrowser-tab::before,
  108. .tabbrowser-tab::after {
  109. border: none !important;
  110. }
  111.  
  112. .tabbrowser-tab > .tab-stack > .tab-background {
  113. background-image: none !important;
  114. -moz-box-orient: horizontal !important;
  115. background-color: transparent !important;
  116. margin-top: 1px !important;
  117. }
  118.  
  119. .tab-background[selected="true"] {
  120. border: none !important;
  121. }
  122.  
  123. .tab-line {
  124. display: none !important;
  125. }
  126.  
  127. .tab-bottom-line {
  128. display: none !important;
  129. }
  130.  
  131. /* Match height of new tab button (right svg) on hover */
  132. .tabs-newtab-button {
  133. margin: 0 !important;
  134. }
  135.  
  136. /* overlap the tab curves */
  137. .tab-background {
  138. -moz-margin-end: -15px !important;
  139. -moz-margin-start: -15px !important;
  140. }
  141.  
  142. /* Begin tab background customizations */
  143. .tab-background[selected="true"]::before {
  144. border: none !important;
  145. content: "" !important;
  146. width: 30px !important;
  147. min-height: 30px !important;
  148. display: -moz-box !important;
  149. background-repeat: no-repeat !important;
  150. }
  151.  
  152. .tab-background[selected="true"]::after {
  153. border: none !important;
  154. content: "" !important;
  155. width: 30px !important;
  156. min-height: 30px !important;
  157. display: -moz-box !important;
  158. background-repeat: no-repeat !important;
  159. }
  160.  
  161. .tab-background[selected="true"] > spacer {
  162. margin-top: 0px !important;
  163. }
  164.  
  165. #new-tab-button,
  166. .tabs-newtab-button {
  167. width: calc(36px + 30px) !important;
  168. margin-inline-start: -15px !important;
  169. margin-top: 1px !important;
  170. }
  171.  
  172. /* Tab hover customizations */
  173.  
  174. /* Regular tabs */
  175. .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::before {
  176. display: -moz-box !important;
  177. background-repeat: no-repeat !important;
  178. content: "" !important;
  179. width: 30px !important;
  180. max-height: 30px !important;
  181. background-color: transparent !important;
  182. }
  183.  
  184. .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::after {
  185. display: -moz-box !important;
  186. background-repeat: no-repeat !important;
  187. content: "" !important;
  188. width: 30px !important;
  189. max-height: 30px !important;
  190. background-color: transparent !important;
  191. }
  192.  
  193. .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]) > spacer {
  194. margin-top: 0px !important;
  195. }
  196.  
  197. #TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected="true"]),
  198. .tabs-newtab-button:hover,
  199. .tabs-newtab-button:hover::before,
  200. .tabs-newtab-button:hover::after {
  201. background-color: transparent !important;
  202. }
  203.  
  204. /* New tab hover customizations */
  205. .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected="true"]), .tabs-newtab-button:hover {
  206. background-position: 0px 2px, 30px 4px , 36px 2px !important;
  207. background-repeat: no-repeat !important;
  208. background-size: 30px 30px, calc(100% - (2 * 30px)) 30px, 30px !important;
  209. }
  210.  
  211. .tabs-newtab-button:hover > .toolbarbutton-icon {
  212. background: none !important;
  213. background-color: transparent !important;
  214. }
  215.  
  216. /* Color specific customizations */
  217. :root {
  218. --svg-selected-before: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg' width='30px' height='31px' preserveAspectRatio='none'><defs><svg:clipPath id='tab-curve-clip-path-start' clipPathUnits='objectBoundingBox'><svg:path d='m 1,0.0625 0.05,0 0,0.938 -1,0 0,-0.028 C 0.32082458,0.95840561 0.4353096,0.81970962 0.48499998,0.5625 0.51819998,0.3905 0.535,0.0659 1,0.0625 z'/></svg:clipPath><svg:clipPath id='tab-curve-clip-path-end' clipPathUnits='objectBoundingBox'><svg:path d='m 0,0.0625 -0.05,0 0,0.938 1,0 0,-0.028 C 0.67917542,0.95840561 0.56569036,0.81970962 0.51599998,0.5625 0.48279998,0.3905 0.465,0.0659 0,0.0625 z'/></svg:clipPath><svg:clipPath id='tab-hover-clip-path' clipPathUnits='objectBoundingBox'><svg:path d='M 0,0.2 0,1 1,1, 1,0.2 z'/></svg:clipPath></defs><foreignObject width='30' height='31' clip-path='url(%23tab-curve-clip-path-start)'><div id='tab-background-fill' style='background-color:rgb(50, 50, 52);background-repeat:no-repeat;height:100%;width:100%;' xmlns='http://www.w3.org/1999/xhtml'></div></foreignObject></svg>");
  219.  
  220. --svg-selected-after: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg' width='30px' height='31px' preserveAspectRatio='none'><defs><svg:clipPath id='tab-curve-clip-path-start' clipPathUnits='objectBoundingBox'><svg:path d='m 1,0.0625 0.05,0 0,0.938 -1,0 0,-0.028 C 0.32082458,0.95840561 0.4353096,0.81970962 0.48499998,0.5625 0.51819998,0.3905 0.535,0.0659 1,0.0625 z'/></svg:clipPath><svg:clipPath id='tab-curve-clip-path-end' clipPathUnits='objectBoundingBox'><svg:path d='m 0,0.0625 -0.05,0 0,0.938 1,0 0,-0.028 C 0.67917542,0.95840561 0.56569036,0.81970962 0.51599998,0.5625 0.48279998,0.3905 0.465,0.0659 0,0.0625 z'/></svg:clipPath><svg:clipPath id='tab-hover-clip-path' clipPathUnits='objectBoundingBox'><svg:path d='M 0,0.2 0,1 1,1, 1,0.2 z'/></svg:clipPath></defs><foreignObject width='30' height='31' clip-path='url(%23tab-curve-clip-path-end)'><div id='tab-background-fill' style='background-color:rgb(50, 50, 52);background-repeat:no-repeat;height:100%;width:100%;' xmlns='http://www.w3.org/1999/xhtml'></div></foreignObject></svg>");
  221.  
  222. --background-selected-middle:
  223. linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)),
  224. linear-gradient(
  225. transparent
  226. 2px,
  227. rgb(50, 50, 52) 2px,
  228. rgb(50, 50, 52)
  229. ),
  230. none !important;
  231.  
  232. --svg-hover-before: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg' width='30px' height='31px' preserveAspectRatio='none'><defs><svg:clipPath id='tab-curve-clip-path-start' clipPathUnits='objectBoundingBox'><svg:path d='m 1,0.0625 0.05,0 0,0.938 -1,0 0,-0.028 C 0.32082458,0.95840561 0.4353096,0.81970962 0.48499998,0.5625 0.51819998,0.3905 0.535,0.0659 1,0.0625 z'/></svg:clipPath><svg:clipPath id='tab-curve-clip-path-end' clipPathUnits='objectBoundingBox'><svg:path d='m 0,0.0625 -0.05,0 0,0.938 1,0 0,-0.028 C 0.67917542,0.95840561 0.56569036,0.81970962 0.51599998,0.5625 0.48279998,0.3905 0.465,0.0659 0,0.0625 z'/></svg:clipPath><svg:clipPath id='tab-hover-clip-path' clipPathUnits='objectBoundingBox'><svg:path d='M 0,0.2 0,1 1,1, 1,0.2 z'/></svg:clipPath></defs><foreignObject width='30' height='31' clip-path='url(%23tab-curve-clip-path-start)'><div id='tab-background-fill' style='background-color:rgba(255, 255, 255, .1);background-repeat:no-repeat;height:100%;width:100%;' xmlns='http://www.w3.org/1999/xhtml'></div></foreignObject></svg>");
  233.  
  234. --svg-hover-after: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg' width='30px' height='31px' preserveAspectRatio='none'><defs><svg:clipPath id='tab-curve-clip-path-start' clipPathUnits='objectBoundingBox'><svg:path d='m 1,0.0625 0.05,0 0,0.938 -1,0 0,-0.028 C 0.32082458,0.95840561 0.4353096,0.81970962 0.48499998,0.5625 0.51819998,0.3905 0.535,0.0659 1,0.0625 z'/></svg:clipPath><svg:clipPath id='tab-curve-clip-path-end' clipPathUnits='objectBoundingBox'><svg:path d='m 0,0.0625 -0.05,0 0,0.938 1,0 0,-0.028 C 0.67917542,0.95840561 0.56569036,0.81970962 0.51599998,0.5625 0.48279998,0.3905 0.465,0.0659 0,0.0625 z'/></svg:clipPath><svg:clipPath id='tab-hover-clip-path' clipPathUnits='objectBoundingBox'><svg:path d='M 0,0.2 0,1 1,1, 1,0.2 z'/></svg:clipPath></defs><foreignObject width='30' height='31' clip-path='url(%23tab-curve-clip-path-end)'><div id='tab-background-fill' style='background-color:rgba(255, 255, 255,.1);background-repeat:no-repeat;height:100%;width:100%;' xmlns='http://www.w3.org/1999/xhtml'></div></foreignObject></svg>");
  235.  
  236. --background-hover-middle:
  237. linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)),
  238. linear-gradient(
  239. transparent
  240. 2px,
  241. rgba(255,255,255,.1) 2px,
  242. rgba(255,255,255,.1)
  243. ),
  244. none;
  245.  
  246. --newtab-hover: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg' width='30px' height='30px' preserveAspectRatio='none'><defs><svg:clipPath id='tab-curve-clip-path-start' clipPathUnits='objectBoundingBox'><svg:path d='m 1,0.0625 0.05,0 0,0.938 -1,0 0,-0.028 C 0.32082458,0.95840561 0.4353096,0.81970962 0.48499998,0.5625 0.51819998,0.3905 0.535,0.0659 1,0.0625 z'/></svg:clipPath><svg:clipPath id='tab-curve-clip-path-end' clipPathUnits='objectBoundingBox'><svg:path d='m 0,0.0625 -0.05,0 0,0.938 1,0 0,-0.028 C 0.67917542,0.95840561 0.56569036,0.81970962 0.51599998,0.5625 0.48279998,0.3905 0.465,0.0659 0,0.0625 z'/></svg:clipPath><svg:clipPath id='tab-hover-clip-path' clipPathUnits='objectBoundingBox'><svg:path d='M 0,0.2 0,1 1,1, 1,0.2 z'/></svg:clipPath></defs><foreignObject width='30' height='31' clip-path='url(%23tab-curve-clip-path-start)'><div id='tab-background-fill' style='background-color:rgba(255,255,255,.1);background-repeat:no-repeat;height:100%;width:100%;' xmlns='http://www.w3.org/1999/xhtml'></div></foreignObject></svg>"),
  247. linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.1)),
  248. url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg' width='30px' height='31px' preserveAspectRatio='none'><defs><svg:clipPath id='tab-curve-clip-path-start' clipPathUnits='objectBoundingBox'><svg:path d='m 1,0.0625 0.05,0 0,0.938 -1,0 0,-0.028 C 0.32082458,0.95840561 0.4353096,0.81970962 0.48499998,0.5625 0.51819998,0.3905 0.535,0.0659 1,0.0625 z'/></svg:clipPath><svg:clipPath id='tab-curve-clip-path-end' clipPathUnits='objectBoundingBox'><svg:path d='m 0,0.0625 -0.05,0 0,0.938 1,0 0,-0.028 C 0.67917542,0.95840561 0.56569036,0.81970962 0.51599998,0.5625 0.48279998,0.3905 0.465,0.0659 0,0.0625 z'/></svg:clipPath><svg:clipPath id='tab-hover-clip-path' clipPathUnits='objectBoundingBox'><svg:path d='M 0,0.2 0,1 1,1, 1,0.2 z'/></svg:clipPath></defs><foreignObject width='30' height='31' clip-path='url(%23tab-curve-clip-path-end)'><div id='tab-background-fill' style='background-color:rgba(255,255,255,.1);background-repeat:no-repeat;height:100%;width:100%;' xmlns='http://www.w3.org/1999/xhtml'></div></foreignObject></svg>");
  249. }
  250.  
  251.  
  252. /* OS-specific color variables */
  253. @media screen and (-moz-windows-theme) {
  254. :root {
  255.  
  256. }
  257. }
  258.  
  259. @media not screen and (-moz-windows-theme) {
  260. :root {
  261.  
  262. }
  263. }
  264.  
  265. .tab-background[selected="true"]::before {
  266. background-image: var(--svg-selected-before) !important;
  267. }
  268. .tab-background[selected="true"]::after {
  269. background-image: var(--svg-selected-after) !important;
  270. }
  271.  
  272. .tab-background[selected="true"] > spacer {
  273. background-image: var(--background-selected-middle) !important;
  274. }
  275.  
  276. .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::before {
  277. background-image: var(--svg-hover-before) !important;
  278. }
  279.  
  280. .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true])::after {
  281. background-image: var(--svg-hover-after) !important;
  282. }
  283.  
  284. .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]) > spacer {
  285. background-image: var(--background-hover-middle) !important;
  286. }
  287.  
  288. .tabs-newtab-button:hover {
  289. background-image: var(--newtab-hover) !important;
  290. }
  291.  
  292. :root:-moz-lwtheme {
  293. --toolbox-border-bottom-color: rgba(0,0,0,.0) !important;
  294. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement