Advertisement
JohnBooty

Firefox 4 userchrome.css: Flat "Chrome-like" toolbar button

Mar 29th, 2011
1,382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.58 KB | None | 0 0
  1. /*
  2. If you want to play around with userChrome.css, I recommend:
  3. 1) https://developer.mozilla.org/En/DOM_Inspector - identify, inspect, and tweak chrome elements in realtime
  4. 2) https://addons.mozilla.org/en-us/firefox/addon/quickrestart/ - or any other "add a restart button to Firefox" extension
  5. */
  6.  
  7.  
  8. /* 
  9. "Flat" toolbar buttons, ala Chrome.
  10.  
  11. Opacity can be adjusted to taste. Changing to
  12. 0.8 from the default of 1.0 makes icons them
  13. blend in with the toolbar color a little more.
  14.  
  15. Removing the borders has the (subjectively) beneficial
  16. side effect of making the buttons take up a little
  17. less horizontal real estate, as well.
  18. */
  19.  
  20. #nav-bar .toolbarbutton-1,
  21. #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button,
  22. #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker,
  23. #nav-bar .toolbarbutton-1 {
  24.     background:none !important;
  25.     border:none !important;
  26.     box-shadow: none !important;   
  27.     opacity: 0.8 !important;   
  28. }
  29.  
  30. /*
  31. Adds some empty space between the tab
  32. browser and the windows min/max/close buttons in
  33. the upper right.  
  34.  
  35. Otherwise, there is little to no empty space
  36. on the toolbar to allow you to drag the window.
  37. */
  38.  
  39. #tabbrowser-tabs {
  40.     margin-right:50px !important;
  41. }
  42.  
  43. /*
  44. Tweak FF app button, titlebar, tabs.
  45. */
  46.  
  47. #appmenu-button {
  48.     padding: 4px 7px 5px !important;
  49.     margin-top:0px !important;
  50.     background-image: -moz-linear-gradient(rgb(139, 152, 173), rgb(22, 47, 88) 95%) !important;
  51. }
  52. #appmenu-button:hover:not(:active):not([open]) {
  53.     background-image:   -moz-radial-gradient(50% 100%, ellipse farthest-side, rgba(192, 192, 192, 0.5) 10%, transparent 70%),
  54.                         -moz-radial-gradient(50% 100%, ellipse farthest-side, rgb(128, 128, 128), transparent),
  55.                         -moz-linear-gradient(rgb(124, 139, 162), rgb(26, 51, 93) 95%) !important;
  56. }
  57. #appmenu-button, #appmenu-button:hover:not(:active):not([open]) {
  58.     -moz-border-left-colors: rgba(255, 255, 255, 0.5) rgba(6, 28, 83, 0.9) !important;
  59.     -moz-border-bottom-colors: rgba(255, 255, 255, 0.5) rgba(6, 28, 83, 0.9) !important;
  60.     -moz-border-right-colors: rgba(255, 255, 255, 0.5) rgba(6, 28, 83, 0.9) !important;
  61. }
  62.  
  63. #appmenu-button-container {
  64.     position: fixed !important;
  65. }
  66. #main-window[sizemode="normal"] #navigator-toolbox[tabsontop="true"] #TabsToolbar {
  67.     padding: 4px 108px 0 80px !important;
  68. }
  69. #main-window[sizemode="normal"] .tabbrowser-strip {
  70.     height: 22px !important;
  71.     padding-right:140px;
  72. }
  73. #main-window[sizemode="normal"] .tabbrowser-tab {
  74.     height: 22px !important;
  75.     padding-right: 1px !important;s
  76. }
  77. #main-window[sizemode="normal"] #toolbar-menubar {
  78.     margin: -22px 98px 2px 85px;
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement