/*
 _______________________________________________________________________
|                  |                                                    |
|          Title:  |  Firefox 3 Tab Resize                              |
|    Description:  |  Shrinks height of tabs to gain more space, while  |
|                  |  fixing the tab bar height on KDE3 (for multi-row  |
|                  |  tabs with TabMixPlus)                             |
|         Author:  |  Izzy                                              |
|   Date Created:  |  July 31, 2008                                     |
|   Last Updated:  |  April 30, 2010                                    |
|        Version:  |  1.0.0.8                                           |
|__________________|____________________________________________________|

*/

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

/* General tab settings */
tab {
 font-family: tahoma, verdana, helvetica !important;
 font-size: 10px !important;
 margin-top: 0px !important; /* Space over tabs and under URL-tab */
 margin-bottom: 0px !important;
 border-bottom: 1px !important;
 margin-left: 1px !important;
 height: 18px !important;
 max-height:18px !important;
 display: -moz-box !important;
 -moz-box-sizing: border-box !important;
}

tabbrowser .tabs-frame:not([style]),
tabbrowser .tabs-frame:not([style]) + .tabbrowser-arrowscrollbox + .tabs-alltabs-topbox,
tabbrowser .tabs-frame:not([style]) + .tabbrowser-arrowscrollbox ~ .tabs-alltabs-topbox .tabs-alltabs-stack {
 max-height:18px !important;
 height:18px !important;
}


/* Unselected tab gets smaller font */
#content tab:not([selected]),
#content tab[selected="false"] {
 font-size: 9px !important;
}

/* selected tab will be a bit larger with also enlarged font */
tab[selected="true"] {
 font-size: 10px !important;
 font-weight: bold !important;
 height: 19px !important;
}
 
/* Resize the close button on the tabs */
.tabs-closebutton, .tab-close-button {
  max-height: 16px !important;
  max-width: 16px !important;
  vertical-align: middle !important;
  margin-right: 5px !important;
  margin-bottom: 0px !important;
}

/* Remove dotted border around text on selected tab */
@-moz-document url(chrome://browser/content/browser.xul) {
 .tab-text {
   border	: none	!important;
 }
}

/* Fix the last row of multibar tabs with TMP */
.tabbrowser-tabs[flowing=multibar][multibar] .tabs-frame {
  margin-bottom: 1px;
}

/* Fix tabs in options of NoScript */
#noscriptOptions tab:focus > .tab-middle,
#noscriptOptions .tab-text {
  border       : none !important;
  outline-style: none !important;
  outline-width: 0px !important;
  outline-color: transparent !important;
}
#noscriptOptions tabpanel tab {
 padding-top: 1px !important;
}