Advertisement
Guest User

silly firefox css

a guest
Jan 6th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.93 KB | None | 0 0
  1. @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
  2. /*
  3. Author: Twily
  4. Description: Powerline styled Firefox CSS for Australis
  5. Compitability: Firefox Nightly v31.0a1 - v32.0a1 (Australis)
  6. CSS Variables were introduced to Firefox in v29.0a1
  7. Website: http://twily.info/
  8. */
  9.  
  10. :root {
  11. /* TAB VARIABLES */
  12. --bg-light: #968CC0; --bg-dark: #1b1b1b;
  13. --fg-light: #FFFFFF; --fg-dark: #696969;
  14. --tab-height: 17px; --tab-triangle-correction: -1px; --tab-strip-margin: -12px;
  15. --tab-fonts: "HaxrCorp S8",monospace,"HaxrCorp S8"; --tab-font-size: 8pt;
  16. --tab-triangle: block; /* block | none */
  17.  
  18. /* URL VARIABLES */
  19. --url-background: var(--bg-light); --url-color: #FFFFFF;
  20. --url-height: 17px; --url-right-margin: 5px;
  21. --url-fonts: "HaxrCorp S8",monospace,"HaxrCorp S8"; --url-font-size: 7pt;
  22. --url-text-align: left; /* left | center | right */
  23. --url-position: absolute; /* absolute == top (under tabs) || fixed == bottom of browser */
  24. }
  25.  
  26.  
  27. @-moz-document url(chrome://browser/content/browser.xul) {
  28. /* URL-BAR */
  29. #PanelUI-button, #bookmarks-menu-button, #downloads-button, #home-button, #stylish-toolbar-button, #abp-toolbarbutton,
  30. #back-button, #forward-button, #identity-box, #urlbar-reload-button, #urlbar-stop-button, #urlbar-go-button, #notification-popup-box { display: none !important; }
  31.  
  32. #nav-bar {
  33. position: var(--url-position) !important; bottom: 0 !important;
  34. width: 100% !important; height: var(--url-height) !important;
  35. min-height: var(--url-height) !important; max-height: var(--url-height) !important;
  36. margin: 0 0 0 0 !important;
  37.  
  38. /* --- Uncomment the line below to attach the url-bar to the tab-bar [EXPERIMENTAL] (Require a line in "#TabsToolbar" below) --- */
  39. /*position: fixed !important; top: 0 !important; left: 0 !important; width: 300px !important; max-width: 300px !important;*/
  40. }
  41. #nav-bar-customization-target { width: 100% !important; }
  42. #urlbar-wrapper { width: 100% !important; position: absolute !important; top: 0 !important; left: 0 !important; margin-top: -1px !important; }
  43. #urlbar {
  44. border: none !important; border-radius: 0 !important;
  45. margin: 0 0 0 0 !important; padding: 0 2px 0 9px !important;
  46. height: var(--url-height) !important; min-height: var(--url-height) !important;
  47. background: var(--url-background) !important; color: var(--url-color) !important;
  48. font-family: var(--url-fonts) !important; font-size: var(--url-font-size) !important;
  49. width: calc(100% + var(--url-right-margin)) !important; text-align: var(--url-text-align) !important;
  50. }
  51.  
  52. /* --- Comment out the line below to make the url-bar visible --- */
  53. nav-bar { width: 0 !important; height: 0 !important; overflow: hidden !important; position: fixed !important; left: -1px !important; top: -1px !important; visibility: hidden !important; }
  54.  
  55.  
  56. /* TABS */
  57. .tabbrowser-tab[fadein]:not([pinned]) { min-width: 30px !important; max-width: 100% !important; }
  58. tab {
  59. font-family: var(--tab-fonts) !important;
  60. min-height: var(--tab-height) !important; height: var(--tab-height) !important;
  61. background: var(--bg-dark) !important; color: var(--fg-dark) !important;
  62. font-size: var(--tab-font-size); text-shadow: none !important; text-align: center !important;
  63. }
  64.  
  65. .tabbrowser-tab label { padding: 0 calc(var(--tab-height)/1) 0 calc(var(--tab-height)/1) !important; }
  66. .tabs-newtab-button, .tab-close-button, .tab-close, .tab-throbber, .tab-icon-image:not([pinned]), .tab-background-start, .tab-background-end { display: none !important; }
  67.  
  68. #tabbrowser-tabs .tabbrowser-tab[pinned] { width: 38px !important; }
  69. #tabbrowser-tabs .tabbrowser-tab[pinned] label { display: none !important; }
  70. #tabbrowser-tabs .tabbrowser-tab[pinned] .tab-icon-image { margin-left: 12px !important; margin-top: -2px !important; width: auto !important; height: 16px !important; }
  71.  
  72. .tabbrowser-tab *, .tabs-newtab-button * {
  73. background: none !important; list-style-image: none !important;
  74. margin: 0 0 0 0 !important; padding: 0 0 0 0 !important; -moz-appearance: none !important;
  75. }
  76.  
  77. .tabbrowser-tab[selected="true"] .tab-stack {
  78. background: var(--bg-light) !important; color: var(--fg-light) !important;
  79. border-radius: 0 !important; position: relative !important;
  80. }
  81. .tabbrowser-tab[selected="true"]:before { /* Left Triangle (of selected tab) */
  82. display: var(--tab-triangle); content: '' !important; position: absolute !important; z-index: 2 !important;
  83. top: 0 !important; left: 0 !important; width: 0 !important; height: 0 !important;
  84.  
  85. border: none !important; border-left: calc(var(--tab-height)/2) solid var(--bg-dark) !important;
  86. border-top: calc((var(--tab-height)/2) - var(--tab-triangle-correction)) solid var(--bg-light) !important;
  87. border-bottom: calc((var(--tab-height)/2) + var(--tab-triangle-correction)) solid var(--bg-light) !important;
  88. }
  89. .tabbrowser-tab[selected="true"]:after { /* Right Triangle (of selected tab) */
  90. display: var(--tab-triangle); content: '' !important; position: absolute !important; z-index: 2 !important;
  91. top: 0 !important; right: 0 !important; width: 0 !important; height: 0 !important;
  92.  
  93. border: none !important; border-right: calc(var(--tab-height)/2) solid var(--bg-dark) !important;
  94. border-top: calc((var(--tab-height)/2) - var(--tab-triangle-correction)) solid var(--bg-light) !important;
  95. border-bottom: calc((var(--tab-height)/2) + var(--tab-triangle-correction)) solid var(--bg-light) !important;
  96. }
  97.  
  98. window, browser, #navigator-toolbox {-moz-appearance: none !important; background: transparent !important; }
  99. #TabsToolbar, #tabbrowser-tabs {
  100. height: var(--tab-height) !important; min-height: var(--tab-height) !important;
  101. -moz-appearance: none !important;
  102. margin-left: var(--tab-strip-margin) !important; margin-right: var(--tab-strip-margin) !important;
  103. background: var(--bg-dark) !important;
  104.  
  105. /* --- Uncomment the line below to attach the url-bar to the tab-bar [EXPERIMENTAL] (Require a line in "#nav-bar" above) --- */
  106. /*margin-left: 140px !important;*/
  107. }
  108. #TabsToolbar::after { display: none !important; }
  109. .tabbrowser-tab::before, .tabbrowser-tab::after { background: none !important; }
  110.  
  111. /* Remove line below tabs */
  112. #navigator-toolbox::after { height: 0px !important; }
  113.  
  114.  
  115. /* MENUS */
  116. menubar, menubutton, menulist, menu, menuitem { font-family: var(--tab-fonts) !important; font-size: var(--tab-font-size); height: var(--tab-height) !important; }
  117. menuitem + menuseparator, menu + menuseparator, .menu-iconic-left { display: none !important; }
  118.  
  119. menuitem > label { margin-left: var(--tab-height) !important; }
  120.  
  121.  
  122. /* HIDE ORANGE MENU BUTTON */
  123. #appmenu-toolbar-button, #appmenu-button-container { display: none !important; }
  124.  
  125. /* HIDE STATUS BAR */
  126. #status-bar, #statusbar-display, statuspanel { display: none !important; }
  127.  
  128. /* PRIVATE BROWSING ICON HIDE */
  129. #main-window[privatebrowsingmode=temporary] #private-browsing-indicator { display: none !important; }
  130. }
  131.  
  132.  
  133. /* AGENT_SHEET */
  134. @-moz-document url-prefix(http://), url-prefix(https://) {
  135. /* SCROLLBAR */
  136. scrollbar[orient="vertical"], scrollbar thumb[orient="vertical"],
  137. scrollbar[orient="horizontal"], scrollbar thumb[orient="horizontal"] {
  138. display: none !important; /* none = hide || block = show */
  139. }
  140.  
  141. scrollbar > slider { -moz-appearance: none !important; }
  142.  
  143. scrollbar[orient="vertical"] { margin: -3px -7px -3px -3px !important; }
  144. scrollbar[orient='vertical'] > slider { background: #AAAAAA !important; max-width: 5px !important; }
  145. scrollbar[orient='vertical'] > slider > thumb {
  146. -moz-appearance: none !important;
  147. background: #49434F !important; border: 0 !important;
  148. width: 5px !important; max-width: 5px !important;
  149. }
  150.  
  151. scrollbar[orient="horizontal"] { margin: -3px -3px -7px -3px !important; }
  152. scrollbar[orient='horizontal'] > slider { background: #AAAAAA !important; max-height: 5px !important; }
  153. scrollbar[orient='horizontal'] > slider > thumb {
  154. -moz-appearance: none !important;
  155. background: #49434F !important; border: 0 !important;
  156. height: 5px !important; max-height: 5px !important;
  157. }
  158.  
  159. scrollbar > scrollbarbutton { -moz-appearance: none !important; border: none !important; background: none !important; }
  160. scrollbar[orient='vertical'] > scrollbarbutton { min-height: 0 !important; }
  161. scrollbar[orient='horizontal'] > scrollbarbutton { min-width: 0 !important; }
  162. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement