@import url("chrome://global/skin/");

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

.body
{
    font-family: "Courier New", Courier, mono;
    font-size: 120%;
}

/* ::::: primary toolbar buttons ::::: */
 
.toolbarbutton-1 {
  -moz-box-orient: vertical;
  min-width: 0px;
  list-style-image: url("messengercompose/compose-toolbar.png");
}

.toolbarbutton-1[type="menu-button"]
{
  min-width: 57px;
}

toolbar[mode="icons"] .toolbarbutton-text {
  display: none;
}

toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker,
toolbar[mode="text"] .toolbarbutton-icon {
  display: none;
}

toolbar[mode="text"] .toolbarbutton-text {
  padding: 0 !important;
  margin: 3px 5px !important;
}

#main-toolbar toolbarbutton {
margin: 4px;
min-width:50px;
}


#button-send {
  list-style-image: url("messengercompose/compose-toolbar.png");
  -moz-image-region: rect(0px 30px 30px 0px);
}

#button-send:hover {
  -moz-image-region: rect(30px 30px 60px 0px);
} 

#button-send[disabled="true"] {
  -moz-image-region: rect(60px 30px 90px 0px) !important;
} 

#button-address {
  list-style-image: url("messengercompose/compose-toolbar.png");
  -moz-image-region: rect(0px 60px 30px 30px);
}

#button-address:hover {
  -moz-image-region: rect(30px 60px 60px 30px);
} 

#button-address[disabled="true"] {
  -moz-image-region: rect(60px 60px 90px 30px) !important;
} 

#spellingButton {
  list-style-image: url("messengercompose/compose-toolbar.png");
  -moz-image-region: rect(0px 90px 30px 60px);
}

#spellingButton:hover {
  -moz-image-region: rect(30px 90px 60px 60px);
}

#spellingButton[disabled="true"] {
  -moz-image-region: rect(60px 90px 90px 60px) !important;
}

#button-attach {
  list-style-image: url("messengercompose/compose-toolbar.png");
  -moz-image-region: rect(0px 120px 30px 90px);
}

#button-attach[buttonover="true"] {
  -moz-image-region: rect(30px 120px 60px 90px);
} 

#button-attach[buttondown="true"] {
  -moz-image-region: rect(30px 120px 60px 90px);
} 

#button-attach[disabled="true"] {
  -moz-image-region: rect(60px 120px 90px 90px) !important;
} 

#button-save {
  list-style-image: url("messengercompose/compose-toolbar.png");
  -moz-image-region: rect(0px 180px 30px 150px);
}

#button-save[buttonover="true"] {
  -moz-image-region: rect(30px 180px 60px 150px);
} 

#button-save[buttondown="true"] {
  -moz-image-region: rect(30px 180px 60px 150px);
} 

#button-save[disabled="true"] {
  -moz-image-region: rect(60px 180px 90px 150px) !important;
} 

#quoteButton {
  list-style-image: url("messengercompose/compose-toolbar.png");
  -moz-image-region: rect(0px 210px 30px 180px);
}

#quoteButton:hover {
  -moz-image-region: rect(30px 210px 60px 180px);
}

#quoteButton[disabled="true"] {
  -moz-image-region: rect(60px 210px 90px 180px) !important;
}

#cut-button {
  list-style-image: url("messengercompose/compose-toolbar.png");
  -moz-image-region: rect(0px 240px 30px 210px);
}

#cut-button:hover {
  -moz-image-region: rect(30px 240px 60px 210px);
}

#cut-button[disabled="true"] {
  -moz-image-region: rect(60px 240px 90px 210px) !important;
}

#copy-button {
  list-style-image: url("messengercompose/compose-toolbar.png");
  -moz-image-region: rect(0px 270px 30px 240px);
}

#copy-button:hover {
  -moz-image-region: rect(30px 270px 60px 240px);
}

#copy-button[disabled="true"] {
  -moz-image-region: rect(60px 270px 90px 240px) !important;
}

#paste-button {
  list-style-image: url("messengercompose/compose-toolbar.png");
  -moz-image-region: rect(0px 300px 30px 270px);
}

#paste-button:hover {
  -moz-image-region: rect(30px 300px 60px 270px);
}

#paste-button[disabled="true"] {
  -moz-image-region: rect(60px 300px 90px 270px) !important;
}


/* ::::: small primary toolbar buttons ::::: */

toolbar[iconsize="small"] .toolbarbutton-1 {
  list-style-image: url("messengercompose/compose-toolbar-small.png");
}

toolbar[iconsize="small"] #button-send {
  list-style-image: url("messengercompose/compose-toolbar-small.png");
  -moz-image-region: rect(0px 20px 20px 0px);
}

toolbar[iconsize="small"] #button-send:hover {
  -moz-image-region: rect(20px 20px 40px 0px);
} 

toolbar[iconsize="small"] #button-send[disabled] {
  -moz-image-region: rect(40px 20px 60px 0px) !important;
} 

toolbar[iconsize="small"] #button-address {
  list-style-image: url("messengercompose/compose-toolbar-small.png");
  -moz-image-region: rect(0px 40px 20px 20px);
}

toolbar[iconsize="small"] #button-address:hover {
  -moz-image-region: rect(20px 40px 40px 20px);
} 

toolbar[iconsize="small"] #button-address[disabled] {
   -moz-image-region: rect(40px 40px 60px 20px) !important;
} 

toolbar[iconsize="small"] #spellingButton {
  list-style-image: url("messengercompose/compose-toolbar-small.png");
  -moz-image-region: rect(0px 60px 20px 40px);
}

toolbar[iconsize="small"] #spellingButton:hover {
  -moz-image-region: rect(20px 60px 40px 40px);
} 

toolbar[iconsize="small"] #spellingButton[disabled="true"] {
  -moz-image-region: rect(40px 60px 60px 40px) !important;
} 

toolbar[iconsize="small"] #button-attach {
  list-style-image: url("messengercompose/compose-toolbar-small.png");
  -moz-image-region: rect(0px 80px 20px 60px);
}

toolbar[iconsize="small"] #button-attach:hover {
  -moz-image-region: rect(20px 80px 40px 60px);
} 

toolbar[iconsize="small"] #button-attach[disabled] {
  -moz-image-region: rect(40px 80px 60px 60px) !important;
} 

toolbar[iconsize="small"] #button-save {
  list-style-image: url("messengercompose/compose-toolbar-small.png");
  -moz-image-region: rect(0px 120px 20px 100px);
}

toolbar[iconsize="small"] #button-save:hover {
  -moz-image-region: rect(20px 120px 40px 100px);
} 

toolbar[iconsize="small"] #button-save[disabled] {
  -moz-image-region: rect(40px 120px 60px 100px) !important;
} 

toolbar[iconsize="small"] #quoteButton {
  list-style-image: url("messengercompose/compose-toolbar-small.png");
  -moz-image-region: rect(0px 140px 20px 120px);
}

toolbar[iconsize="small"] #quoteButton:hover {
  -moz-image-region: rect(20px 140px 40px 120px);
} 

toolbar[iconsize="small"] #quoteButton[disabled="true"] {
  -moz-image-region: rect(40px 140px 60px 120px) !important;
}

toolbar[iconsize="small"] #cut-button {
  list-style-image: url("messengercompose/compose-toolbar-small.png");
  -moz-image-region: rect(0px 160px 20px 140px);
}

toolbar[iconsize="small"] #cut-button:hover {
  -moz-image-region: rect(20px 160px 40px 140px);
} 

toolbar[iconsize="small"] #cut-button[disabled="true"] {
  -moz-image-region: rect(40px 160px 60px 140px) !important;
}

toolbar[iconsize="small"] #copy-button {
  list-style-image: url("messengercompose/compose-toolbar-small.png");
  -moz-image-region: rect(0px 180px 20px 160px);
}

toolbar[iconsize="small"] #copy-button:hover {
  -moz-image-region: rect(20px 180px 40px 160px);
} 

toolbar[iconsize="small"] #copy-button[disabled="true"] {
  -moz-image-region: rect(40px 180px 60px 160px) !important;
}
toolbar[iconsize="small"] #paste-button {
  list-style-image: url("messengercompose/compose-toolbar-small.png");
  -moz-image-region: rect(0px 200px 20px 180px);
}

toolbar[iconsize="small"] #paste-button:hover {
  -moz-image-region: rect(20px 200px 40px 180px);
} 

toolbar[iconsize="small"] #paste-button[disabled="true"] {
  -moz-image-region: rect(40px 200px 60px 180px) !important;
}

toolbar[iconsize="small"] .toolbarbutton-1 {
  padding: 2px;
}

toolbar[iconsize="small"] .toolbarbutton-1:hover:active,
toolbar[iconsize="small"] .toolbarbutton-1[open="true"] {
  padding: 3px 1px 1px 3px;
}

toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"],
toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"]:hover,
toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"]:hover:active,
toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"][open="true"] {
  padding: 2px;
}

toolbar[iconsize="small"] .toolbarbutton-1[checked="true"] {
  padding: 3px 1px 1px 3px !important;
}

toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"],
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"]:hover,
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"]:hover:active,
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][open="true"],
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"],
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"]:hover,
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"]:hover:active {
  padding: 0;
}

/* ::::: special toolbar colors ::::: */

#content-frame {
  border-left: 1px solid ThreeDDarkShadow;
  border-right: 1px solid ThreeDLightShadow;
}

#appcontent {
  border-left: 1px solid ThreeDShadow;
  border-right: 1px solid ThreeDHighlight;
}

#attachmentbucket-sizer {
  border-top: none;
  border-bottom: none;
}

/* XXX I should really have a selector rule here to select just .listcell-icon objects underneath the attachmentList listbox */

.listcell-icon
{
  margin-left: 2px;
  margin-top: 2px;
}

#compose-toolbar-sizer {
  border-top-width: 1px;
  border-left: none;
  border-right: none;
  -moz-border-top-colors: ThreeDHighlight;
}

#msgSubject {
  margin-top: 0px;
  margin-bottom: 4px;
}


