Advertisement
Guest User

Untitled

a guest
Mar 29th, 2016
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.38 KB | None | 0 0
  1. /* Set the default namespace to XUL */
  2. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  3.  
  4. @-moz-document url(chrome://browser/content/browser.xul) {
  5.     /* Allow custom window colors */
  6.     #main-window {
  7.         background-color: transparent !important;
  8.     }
  9.  
  10.     /* Make the menu bar background color transparent so it remains the same color as the title bar */
  11.     #main-menubar {
  12.         background-color: transparent !important;
  13.     }
  14.  
  15.     /* Make the minimize, maximize and close buttons background colors transparent so they are the same color as the title bar */
  16.     #main-window #titlebar-buttonbox .titlebar-button {
  17.         background-color: transparent !important;
  18.         list-style-image: none !important;
  19.         padding: 9px 17px 9px 16px !important;
  20.         transition: background-color linear 100ms !important;
  21.     }
  22.    
  23.     /* Darken the minimize and maximize buttons when hovering over them */
  24.     #titlebar-buttonbox #titlebar-min:-moz-any(:hover,[open]), #titlebar-buttonbox #titlebar-max:-moz-any(:hover,[open]) {
  25.         background-color: hsla(0, 0%, 0%, 0.1) !important;
  26.     }
  27.  
  28.     /* Make the close button red with a white X icon when hovering over it */
  29.     #titlebar-buttonbox #titlebar-close:-moz-any(:hover,[open]) {
  30.         background-color: hsla(355, 86%, 49%, 1) !important;
  31.         list-style-image: url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg"><style>g%23close{stroke:%23fff;}</style><g id="close"><path d="M1,1 l 10,10 M1,11 l 10,-10"/></g></svg>') !important;
  32.     }
  33.  
  34.     /* Set the minimize button margin when the window is maximized */
  35.     #main-window[sizemode="maximized"] #titlebar-buttonbox #titlebar-min.titlebar-button {
  36.         margin-right: 1px !important;
  37.     }
  38.    
  39.     /* Set the minimize button margin when the window is not maximized */
  40.     #main-window #titlebar-buttonbox #titlebar-min.titlebar-button {
  41.         margin-right: 2px !important;
  42.     }
  43.    
  44.     /* Set the maximize button margin*/
  45.     #main-window #titlebar-buttonbox #titlebar-max.titlebar-button {
  46.         margin-right: 1px !important;
  47.     }
  48.    
  49.     /* Set the close button margin when the window is maximized */
  50.     #main-window[sizemode="maximized"] #titlebar-buttonbox #titlebar-close.titlebar-button {
  51.         margin-right: 2px !important;
  52.     }
  53.    
  54.     /* Set the close button hover margin when the window is maximized */
  55.     #main-window[sizemode="maximized"] #titlebar-close:hover .toolbarbutton-icon {
  56.         margin-top: -3px !important;
  57.     }
  58.    
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement