toolbar[mode="none"] {
  display: none;
}

toolbarbutton {
  margin-left: 0px !important;
  margin-right: 0px !important;
}

.main-toolbar-button {
list-style-image: url("chrome://celtx/skin/toolbar.png");
-moz-box-orient: vertical;
}

.format-toolbar-button {
list-style-image: url("chrome://celtx/skin/toolbar.png");
}

#add-document-button {
  list-style-image: url("chrome://celtx/skin/page_add.png");
}
#add-folder-button {
  list-style-image: url("chrome://celtx/skin/folder_add.png");
}
#remove-document-button {
  list-style-image: url("chrome://celtx/skin/delete.png");
}

/* New */
#celtx-new-button,
#celtx-new-button:hover {
-moz-image-region: rect(0px 24px 24px 0px);
}
#celtx-new-button:hover:active {
  -moz-image-region: rect(24px 24px 48px 0px);
}
#celtx-new-button[disabled="true"] {
  -moz-image-region: rect(48px 24px 72px 0px) !important;
}

/* Open */
#celtx-open-button,
#celtx-open-button:hover {
-moz-image-region: rect(0px 48px 24px 24px);
}
#celtx-open-button:hover:active {
-moz-image-region: rect(24px 48px 48px 24px);
}
#celtx-open-button[disabled="true"] {
-moz-image-region: rect(48px 48px 72px 24px) !important;
}

/* Import */
#celtx-import-button,
#celtx-import-button:hover {
-moz-image-region: rect(0px 72px 24px 48px);
}
#celtx-import-button:hover:active {
-moz-image-region: rect(24px 72px 48px 48px);
}
#celtx-import-button[disabled="true"] {
-moz-image-region: rect(48px 72px 72px 48px) !important;
}

/* Download */
#celtx-download-button,
#celtx-download-button:hover {
-moz-image-region: rect(0px 96px 24px 72px);
}
#celtx-download-button:hover:active {
-moz-image-region: rect(24px 96px 48px 72px);
}
#celtx-download-button[disabled="true"] {
-moz-image-region: rect(48px 96px 72px 72px) !important;
}

/* Publish */
#celtx-publish-button,
#celtx-publish-button:hover {
-moz-image-region: rect(0px 120px 24px 96px);
}
#celtx-publish-button:hover:active {
-moz-image-region: rect(24px 120px 48px 96px);
}
#celtx-publish-button[disabled="true"] {
-moz-image-region: rect(48px 120px 72px 96px) !important;
}

/* Back: rect(0px 144px 24px 120px) */
.celtx-back-button, .celtx-back-button:hover {
-moz-image-region: rect(0px 144px 24px 120px);
}
.celtx-back-button:hover:active {
-moz-image-region: rect(24px 144px 48px 120px);
}
.celtx-back-button[disabled="true"] {
-moz-image-region: rect(48px 144px 72px 120px);
}

/* Forward: rect(0px 168px 24px 144px) */
.celtx-forward-button, .celtx-forward-button:hover {
-moz-image-region: rect(0px 168px 24px 144px);
}
.celtx-forward-button:hover:active {
-moz-image-region: rect(24px 168px 48px 144px);
}
.celtx-forward-button[disabled="true"] {
-moz-image-region: rect(48px 168px 72px 144px);
}

/* Stop: rect(0px 192px 24px 168px) */
.celtx-stop-button, .celtx-stop-button:hover {
-moz-image-region: rect(0px 192px 24px 168px);
}
.celtx-stop-button:hover:active {
-moz-image-region: rect(24px 192px 48px 168px);
}
.celtx-stop-button[disabled="true"] {
-moz-image-region: rect(48px 192px 72px 168px);
}

/* Refresh: rect(0px 216px 24px 192px) */
.celtx-reload-button, .celtx-reload-button:hover {
-moz-image-region: rect(0px 216px 24px 192px);
}
.celtx-reload-button:hover:active {
-moz-image-region: rect(24px 216px 48px 192px);
}
.celtx-reload-button[disabled="true"] {
-moz-image-region: rect(48px 216px 72px 192px);
}

/* Home: rect(0px 240px 24px 216px) */

/* Download: rect(0px 264px 24px 240px) */

/* History: rect(0px 288px 24px 264px) */

/* Bookmarks: rect(0px 312px 24px 288px) */

/* Print */
#celtx-print-button,
#celtx-print-button:hover {
-moz-image-region: rect(0px 336px 24px 312px);
}
#celtx-print-button:hover:active {
-moz-image-region: rect(24px 336px 48px 312px);
}
#celtx-print-button[disabled="true"] {
-moz-image-region: rect(48px 336px 72px 312px) !important;
}

/* New Tab: rect(0px 360px 24px 336px) */

/* New Browser: rect(0px 384px 24px 360px) */

/* Cut */
.celtx-cut-button, .celtx-cut-button:hover {
-moz-image-region: rect(0px 408px 24px 384px);
}
.celtx-cut-button:hover:active {
-moz-image-region: rect(24px 408px 48px 384px);
}
.celtx-cut-button[disabled="true"] {
-moz-image-region: rect(48px 408px 72px 384px) !important;
}

/* Copy */
.celtx-copy-button, .celtx-copy-button:hover {
-moz-image-region: rect(0px 432px 24px 408px);
}
.celtx-copy-button:hover:active {
-moz-image-region: rect(24px 432px 48px 408px);
}
.celtx-copy-button[disabled="true"] {
-moz-image-region: rect(48px 432px 72px 408px) !important;
}

/* Paste */
.celtx-paste-button, .celtx-paste-button:hover {
-moz-image-region: rect(0px 456px 24px 432px);
}
.celtx-paste-button:hover:active {
-moz-image-region: rect(24px 456px 48px 432px);
}
.celtx-paste-button[disabled="true"] {
-moz-image-region: rect(48px 456px 72px 432px) !important;
}

/* Sidebar */
.celtx-sidebar-button,
.celtx-sidebar-button:hover {
-moz-image-region: rect(0px 480px 24px 456px);
}
.celtx-sidebar-button:hover:active {
-moz-image-region: rect(24px 480px 48px 456px);
}
.celtx-sidebar-button[disabled="true"] {
-moz-image-region: rect(48px 480px 72px 456px)  !important;
}

/* Sidebar Closed: rect(0px 504px 24px 480px) */

/* Undo */
.celtx-undo-button, .celtx-undo-button:hover {
-moz-image-region: rect(0px 528px 24px 504px);
}
.celtx-undo-button:hover:active {
-moz-image-region: rect(24px 528px 48px 504px);
}
.celtx-undo-button[disabled="true"] {
-moz-image-region: rect(48px 528px 72px 504px) !important;
}

/* Redo */
.celtx-redo-button, .celtx-redo-button:hover {
-moz-image-region: rect(0px 552px 24px 528px);
}
.celtx-redo-button:hover:active {
-moz-image-region: rect(24px 552px 48px 528px);
}
.celtx-redo-button[disabled="true"] {
-moz-image-region: rect(48px 552px 72px 528px) !important;
}

/* Bold */
.celtx-bold-button, .celtx-bold-button:hover {
-moz-image-region: rect(0px 576px 24px 552px);
}
.celtx-bold-button:hover:active {
-moz-image-region: rect(24px 576px 48px 552px);
}
.celtx-bold-button[disabled="true"] {
-moz-image-region: rect(48px 576px 72px 552px) !important;
}

/* Underline */
.celtx-underline-button, .celtx-underline-button:hover {
-moz-image-region: rect(0px 600px 24px 576px);
}
.celtx-underline-button:hover:active {
-moz-image-region: rect(24px 600px 48px 576px);
}
.celtx-underline-button[disabled="true"] {
-moz-image-region: rect(48px 600px 72px 576px) !important;
}

/* Italic */
.celtx-italic-button, .celtx-italic-button:hover {
-moz-image-region: rect(0px 624px 24px 600px);
}
.celtx-italic-button:hover:active {
-moz-image-region: rect(24px 624px 48px 600px);
}
.celtx-italic-button[disabled="true"] {
-moz-image-region: rect(48px 624px 72px 600px) !important;
}

/* Lowercase */
.celtx-lowercase-button {
list-style-image: url("chrome://celtx/skin/text_lowercase.png");
}

/* Uppercase */
.celtx-uppercase-button {
list-style-image: url("chrome://celtx/skin/text_uppercase.png");
}

/* Save */
#celtx-save-button,
#celtx-save-button:hover {
-moz-image-region: rect(0px 648px 24px 624px);
}
#celtx-save-button:hover:active {
-moz-image-region: rect(24px 648px 48px 624px);
}
#celtx-save-button[disabled="true"] {
-moz-image-region: rect(48px 648px 72px 624px) !important;
}

/* Find */
.celtx-find-button, .celtx-find-button:hover {
-moz-image-region: rect(0px 672px 24px 648px);
}
.celtx-find-button:hover:active {
-moz-image-region: rect(24px 672px 48px 648px);
}
.celtx-find-button[disabled="true"] {
-moz-image-region: rect(48px 672px 72px 648px) !important;
}

/* Spell */
.celtx-spell-button, .celtx-spell-button:hover {
-moz-image-region: rect(0px 696px 24px 672px);
}
.celtx-spell-button:hover:active {
-moz-image-region: rect(24px 696px 48px 672px);
}
.celtx-spell-button[disabled="true"] {
-moz-image-region: rect(48px 696px 72px 672px) !important;
}

/* Delete: rect(0px 720px 24px 696px) */

/* Remove */
.celtx-remove-button, .celtx-remove-button:hover {
-moz-image-region: rect(0px 744px 24px 720px);
}
.celtx-remove-button:hover:active {
-moz-image-region: rect(24px 744px 48px 720px);
}
.celtx-remove-button[disabled="true"] {
-moz-image-region: rect(48px 744px 72px 720px) !important;
}

/* Breakdown */
.celtx-breakdown-button,
.celtx-breakdown-button:hover {
-moz-image-region: rect(0px 768px 24px 744px);
}
.celtx-breakdown-button:hover:active {
-moz-image-region: rect(24px 768px 48px 744px);
}
.celtx-breakdown-button[disabled="true"] {
-moz-image-region: rect(48px 768px 72px 744px) !important;
}

/* Note */
.celtx-note-button, .celtx-note-button:hover {
-moz-image-region: rect(0px 792px 24px 768px);
}
.celtx-note-button:hover:active {
-moz-image-region: rect(24px 792px 48px 768px);
}
.celtx-note-button[disabled="true"] {
-moz-image-region: rect(48px 792px 72px 768px);
}


/**** Navigator tree buttons *****/

.nav-item-props-button,
.nav-item-new-button,
.nav-item-down-button,
.nav-item-up-button,
.nav-item-delete-button {
  list-style-image: url("chrome://celtx/skin/navigator.png");
  -moz-box-orient: vertical;
}

.nav-item-props-button {
  -moz-image-region: rect(0px 15px 15px 0px);
}
.nav-item-props-button:hover:active {
  -moz-image-region: rect(16px 15px 31px 0px);
}
.nav-item-props-button[disabled="true"] {
  -moz-image-region: rect(32px 15px 47px 0px) !important;
}


.nav-item-down-button {
  -moz-image-region: rect(0px 31px 15px 16px);
}
.nav-item-down-button:hover:active {
  -moz-image-region: rect(16px 31px 31px 16px);
}
.nav-item-down-button[disabled="true"] {
  -moz-image-region: rect(32px 31px 47px 16px) !important;
}


.nav-item-up-button {
  -moz-image-region: rect(0px 47px 15px 32px);
}
.nav-item-up-button:hover:active {
  -moz-image-region: rect(16px 47px 31px 32px);
}
.nav-item-up-button[disabled="true"] {
  -moz-image-region: rect(32px 47px 47px 32px) !important;
}


.nav-item-delete-button {
  -moz-image-region: rect(0px 63px 15px 48px);
}
.nav-item-delete-button:hover:active {
  -moz-image-region: rect(16px 63px 31px 48px);
}
.nav-item-delete-button[disabled="true"] {
  -moz-image-region: rect(32px 63px 47px 48px) !important;
}

.nav-item-new-button {
  -moz-image-region: rect(0px 79px 15px 64px);
}
.nav-item-new-button:hover:active {
  -moz-image-region: rect(16px 79px 31px 64px);
}
.nav-item-new-button[disabled="true"] {
  -moz-image-region: rect(32px 79px 47px 64px) !important;
}

.nav-recycle-scene-button {
  list-style-image: url("chrome://celtx/skin/recycle-16.png");
}

.nav-item-delete-menuitem {
  list-style-image: url("chrome://celtx/skin/navigator.png");
  -moz-image-region: rect(0px 63px 15px 48px);
}
.nav-item-delete-menuitem[disabled="true"] {
  -moz-image-region: rect(32px 63px 47px 48px) !important;
}

.nav-char-new-button {
  list-style-image: url("chrome://celtx/skin/CharacterAdd.png");
}
.nav-char-delete-button {
  list-style-image: url("chrome://celtx/skin/CharacterDelete.png");
}

.recycle-button {
  list-style-image: url("chrome://celtx/skin/recycle-doc.png");
}

.celtx-decrease-indent {
  list-style-image: url("chrome://celtx/skin/indent_decrease.png");
}
.celtx-increase-indent {
  list-style-image: url("chrome://celtx/skin/indent_increase.png");
}
