/* :: Attribution :: */
/* Much of this code has been copied from the AiOS extension's CSS files. 
The original developer of All-in-One Sidebar is eXXile. (http://firefox.exxile.net/aios/index.php)
I have, herein, made modifications and additions to his code, which is meant to improve upon and customize the existing appearance of the AiOS elements. */

/* :: Rollover Effect :: */
.aios-tbutton image, .aios-tbutton:hover image { opacity: 1 !important;}
toolbar[iconsize="large"] toolbarbutton[checked="true"] {background: transparent !important;}

/* :: Change the buttons to match Firefox 4's style :: */

/* works with any (correct) button IDs */

toolbar[iconsize="large"] #home-button,
toolbar[iconsize="large"] #downloads-button,
toolbar[iconsize="large"] #addons-button, 
toolbar[iconsize="large"] #sidebars-button, 
toolbar[iconsize="large"] #toolbar-button,    /* AiOS Toolbar toggle */
toolbar[iconsize="large"] #pageinfo-button,   /* Page Info */
toolbar[iconsize="large"] #multipanel-button, /* MultiPanel */
toolbar[iconsize="large"] #source-button,     /* Page Source */
toolbar[iconsize="large"] #console-button,    /* Error Console */
toolbar[iconsize="large"] #abp-toolbarbutton, /* AdBlock Plus button */
/*#aios-*/toolbar[iconsize="large"] #fullscreen-button { 
  -moz-appearance: none !important; 
  border: none !important;
/* use linked image if you're using another theme besides Strata40 --
  list-style-image: url("chrome://browser/skin/toolbar.png") !important;
-- */
  list-style-image: url("http://sites.google.com/site/plastikmaniac/resources/toolbar.png") !important;
  padding: 0px 1px !important;
  margin: 1px -1px -1px;
}

/* :: Home button :: */

toolbar[iconsize="large"] #home-button {
  -moz-image-region: rect(0px 36px 30px 0px) !important;}
toolbar[iconsize="large"] #home-button:hover {
  -moz-image-region: rect(30px 36px 60px 0px) !important;}
toolbar[iconsize="large"] #home-button:hover:active {
  -moz-image-region: rect(60px 36px 90px 0px) !important;}
toolbar[iconsize="small"] #home-button > image {
  list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAK3RFWHRDcmVhdGlvbiBUaW1lAFR1ZSAyIEZlYiAyMDEwIDE2OjQzOjM2ICswMjAwgdS52QAAAAd0SU1FB9oCAg8ID/yC3qYAAAAJcEhZcwAAHsEAAB7BAcNpVFMAAAAEZ0FNQQAAsY8L/GEFAAACC0lEQVR42rVSTW8TMRCd8XrTdLubsGkJKP8lgQtwAARIlbgRCr8LSrghcUDigAqHIvoP6KXiF9DmAxJnvUnW68FjJW0qeoSRLI1m5j0/Pw/A/wgigjzPodO59ZsP51y7KvAq8Gg0gjt3783Hk2nItXotLr58PthoNBqAeBki1oF8vh8fQ7tz2ywKG25fv0F8OOca91ZzlwhWhW9HR3D/wSOqbMaifi2l6mbkD+dc4x7PrGNwHdx9/tLyjVtxQjIIQIjA96wtwZQlZFOFw/4p9t68Ep12+4KAwc+6ew58k5KkRjKUIAMJKIRnJ2vRlAZMYUCpiSP5iW97+54EDw+/Qnfvhd3eaUKS1CmsVEhKybeTCJYK3O1OBRpjoFgsUKkxDgdn0Nt/LXCn2aQoSqBWq1NSS2kriR1BSIFw9qwcdypLa8GYAjM1RTX5hZPJGLVWIH+cnCB/jdYaHj7ZtTHEXrZ1IFz6s/Kc6eYLjQefPoooiryRMk1T3xwMhjBzC2MtgXBy89kM5jPtf2mjGtlqtep7PKN1Dq1Wy+Mk385MbBK5AUtOasmKlPjw/p0neLz71MqwYrnHMzzrFTmsvFhBfqqF0hkFgVvlTAOr4OA8jutQOjN5Bta2+pyAWdmo0hll2TD+NmPOe0VRILl9KJe9vwhyZ2KeZdg/O/Xmc87v5dBKYd8B2VOu8+w/iz9C31oGSnxG3gAAAABJRU5ErkJggg==");
  margin-right: 1px !important;
}


/* :: Download Manager button :: */

toolbar[iconsize="large"] #downloads-button image {
  -moz-image-region: rect(0px 72px 30px 36px) !important;}
toolbar[iconsize="large"] #downloads-button:hover image {
  -moz-image-region: rect(30px 72px 60px 36px) !important;}
toolbar[iconsize="large"] #downloads-button[checked="true"] image {
  -moz-image-region: rect(60px 72px 90px 36px) !important;}
#aios-toolbar[iconsize="large"] #downloads-button[checked="true"] {
  background-color: transparent !important;
  margin: 0px 0px -1px 0px !important;
  padding: 0 0 1px 0 !important;}


/* :: Add-ons :: */

toolbar[iconsize="large"] #addons-button {
  -moz-image-region: rect(0 720px 30px 684px) !important;}
toolbar[iconsize="large"] #addons-button:hover { 
 -moz-image-region: rect(30px 720px 60px 684px) !important;}
toolbar[iconsize="large"] #addons-button:hover:active, 
toolbar[iconsize="large"] #addons-button[checked="true"] {
 -moz-image-region: rect(60px 720px 90px 684px) !important;}
toolbar[iconsize="large"] #addons-button[disabled="true"] {
 -moz-image-region: rect(90px 720px 120px 684px) !important;}


/* :: Sidebar Panels (menu button) :: */

toolbar[iconsize="large"] #sidebars-button {
  -moz-image-region: rect(0 756px 30px 720px) !important;}
toolbar[iconsize="large"] #sidebars-button:hover { 
  -moz-image-region: rect(30px 756px 60px 720px) !important;}
toolbar[iconsize="large"] #sidebars-button:active, 
toolbar[iconsize="large"] #sidebars-button[open="true"] {
  -moz-image-region: rect(60px 756px 90px 720px) !important;}
toolbar[iconsize="large"] #sidebars-button[disabled="true"] {
  -moz-image-region: rect(90px 756px 120px 720px) !important;}


/* :: AiOS Toolbar toggle button :: */ /* "glyph" glyph */

toolbar[iconsize="large"] #toolbar-button {
  -moz-image-region: rect(0 792px 30px 756px) !important;}
toolbar[iconsize="large"] #toolbar-button:hover { 
  -moz-image-region: rect(30px 792px 60px 756px) !important;}
toolbar[iconsize="large"] #toolbar-button:active, 
toolbar[iconsize="large"] #toolbar-button[checked="true"] {
  -moz-image-region: rect(60px 792px 90px 756px) !important;}
toolbar[iconsize="large"] #toolbar-button[disabled="true"] {
  -moz-image-region: rect(90px 792px 120px 756px) !important;}


/* :: Page Info button :: */ /* ABP glyph (for lack of an "i" icon) */

toolbar[iconsize="large"] #pageinfo-button {
  -moz-image-region: rect(0 432px 30px 396px) !important;}
toolbar[iconsize="large"] #pageinfo-button:hover {
  -moz-image-region: rect(30px 432px 60px 396px) !important;}
toolbar[iconsize="large"] #pageinfo-button:hover:active,
toolbar[iconsize="large"] #pageinfo-button[checked] {
  -moz-image-region: rect(60px 432px 90px 396px) !important;}
toolbar[iconsize="large"] #pageinfo-button[disabled="true"] {
  -moz-image-region: rect(90px 432px 120px 396px) !important;}

/* :: Adblock Plus button :: */ 

toolbar[iconsize="large"] #abp-toolbarbutton,
toolbar[iconsize="large"] #abp-toolbarbutton .toolbarbutton-icon,
toolbar[iconsize="large"] #abp-toolbarbutton toolbarbutton,
toolbar[iconsize="large"] #abp-toolbarbutton dropmarker {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  -moz-appearance: none !important;
}
toolbar[iconsize="large"] #abp-toolbarbutton {
  margin-top: -1px !important;
  -moz-image-region: rect(0 432px 30px 396px) !important;}
toolbar[iconsize="large"] #abp-toolbarbutton:hover {
  -moz-image-region: rect(30px 432px 60px 396px) !important;}
toolbar[iconsize="large"] #abp-toolbarbutton:hover:active {
  -moz-image-region: rect(60px 432px 90px 396px) !important;}
toolbar[iconsize="large"] #abp-toolbarbutton[disabled="true"] {
  -moz-image-region: rect(90px 432px 120px 396px) !important;}


/* :: MultiPanel button :: */ /* XP glyph */

toolbar[iconsize="large"] #multipanel-button {
  -moz-image-region: rect(0 684px 30px 648px) !important;}
toolbar[iconsize="large"] #multipanel-button:hover { 
 -moz-image-region: rect(30px 684px 60px 648px) !important;}
toolbar[iconsize="large"] #multipanel-button:hover:active, 
toolbar[iconsize="large"] #multipanel-button[checked="true"] {
 -moz-image-region: rect(60px 684px 90px 648px) !important;}
toolbar[iconsize="large"] #multipanel-button[disabled="true"] {
 -moz-image-region: rect(90px 684px 120px 648px) !important;}


/* :: Page Source button :: */ /* HTML glyph */

toolbar[iconsize="large"] #source-button {
  -moz-image-region: rect(0 612px 30px 576px) !important;}
toolbar[iconsize="large"] #source-button:hover { 
  -moz-image-region: rect(30px 612px 60px 576px) !important;}
toolbar[iconsize="large"] #source-button:hover:active,
toolbar[iconsize="large"] #source-button[checked="true"] { 
  -moz-image-region: rect(60px 612px 90px 576px) !important;}
toolbar[iconsize="large"] #source-button[disabled="true"],
toolbar[iconsize="large"] #source-button[disabled="true"]:active { 
  -moz-image-region: rect(90px 612px 120px 576px) !important;}


/* :: Error Console button :: */ /* octagon "!" glyph */

toolbar[iconsize="large"] #console-button {
 -moz-image-region: rect(0 468px 30px 432px) !important;}
toolbar[iconsize="large"] #console-button:hover {
  -moz-image-region: rect(30px 468px 60px 432px) !important;}
toolbar[iconsize="large"] #console-button[checked="true"],
toolbar[iconsize="large"] #console-button[checked="true"]:hover:active {
  -moz-image-region: rect(60px 468px 90px 432px) !important;}
toolbar[iconsize="large"] #console-button[disabled="true"] {
  -moz-image-region: rect(90px 468px 120px 432px) !important;}


/* :: Fullscreen button :: */

toolbar[iconsize="large"] #fullscreen-button {
  -moz-image-region: rect(0 396px 30px 360px) !important;}
toolbar[iconsize="large"] #fullscreen-button:hover {
  -moz-image-region: rect(30px 396px 60px 360px) !important;}
toolbar[iconsize="large"] #fullscreen-button:active {
  -moz-image-region: rect(60px 396px 90px 360px) !important;}
toolbar[iconsize="large"] #fullscreen-button[disabled="true"] {
  -moz-image-region: rect(90px 396px 120px 360px) !important;}


/* more to come later */
