/* See license.txt for terms of usage */

/*************************************************************************************************/
/* overrides to revert personas. see http://code.google.com/p/fbug/issues/detail?id=2704 */
/* TODO is this still needed ? /
#fbContentBox:-moz-lwtheme {
  background-color: -moz-dialog;
  color: -moz-dialogtext;
}

#fbContentBox:-moz-lwtheme toolbox {
  -moz-appearance: toolbox;
}

#fbContentBox:-moz-lwtheme toolbar {
  -moz-appearance: toolbar;
}

/* end overrides */

/*************************************************************************************************/

#fbInspectButton {
    margin-bottom: 1px;
    padding: 0px;
    opacity: 0.8;

    /* The default styling does not always keep button size content or image
       position constant, e.g. when [checked="true"].  These numbers were
       chosen to keep them constant against the default winstripe styling. */
    padding-top: 4px;
    padding-bottom: 2px;
    -moz-padding-start: 4px;
    -moz-padding-end: 2px;
}

#fbBreakOnNextButton {
    margin-bottom: 1px;
    opacity: 0.8;
    padding-right: 2px;
    padding-left: 2px;
        /* The default styling does not always keep button size contant or image
       position constant, e.g. when [checked="true"].  These numbers were
       chosen to keep them constant against the default winstripe styling. */
    padding-top: 4px;
    padding-bottom: 2px;
    -moz-padding-start: 4px;
    -moz-padding-end: 2px;
}

/*************************************************************************************************/
/* Command Line */

#fbCommandArrow {
    margin: 2px 0 2px 7px;
    font-family: monospace;
    color: #0000FF;
}

.fbCommandLine {
    -moz-appearance: none;
    margin: 2px 0 0 0;
    padding: 0 4px;
    border: none;
    font-family: monospace;
    font-size: 12px;
    direction: ltr;
    width: 100%;
    background: none repeat scroll 0% 0% transparent;
    position: relative;
    z-index: 3;
}

#fbCommandLineMeasurer {
    margin: 0;
    padding: 0;
    border: none;
    position: absolute;
    z-index: -1;
    visibility: hidden;
    width: auto;
}

#fbCommandEditor {
    margin: 0;
    font-family: monospace;
    direction: ltr;
}

#fbCommandLine > .textbox-input-box > .textbox-textarea {
    overflow: hidden;
}

.fbCommandHtmlBox {
    position: relative;
    margin-right: 7px;
}

.fbCommandHtmlBox .background {
    position: relative;
    background: none repeat scroll 0% 0% transparent;
}

#fbCommandLineCompletion {
    position: absolute;
    z-index: 1;
    color: #A0A0A0;
    bottom: 0;
    pointer-events: none;
}

.fbCommandHtmlBox .offScreen {
    position: absolute;
    top: -900px;
    left: -9000px;
    max-width: 3000px;
    overflow: hidden;
    width: auto;
}

/*************************************************************************************************/
/* Toolbar */

#fbToolbar {
    padding-left: 4px;
}

#fbToolbarInner {
    overflow: hidden;
}

/*************************************************************************************************/
/* Search Box */

#fbSearchBox {
    margin-left: 0;
    margin-right: 6px;
    min-width: 100px;
}

.fbsearch-textbox[status="notfound"] {
    background-color: #FF6666 !important;
    color: #FFFFFF;
}

.fbsearch-textbox[status="wraparound"] {
    background-image: url(chrome://global/skin/icons/wrap.png);
    background-position: calc(100% - 5px) center;
    background-repeat: no-repeat;
}

.fbsearch-textbox {
    -moz-appearance: none;
    margin: 0 0px 1px 2px;
    border: 1px solid;
    border-radius: 5px;  /* Matched to the a11y outline impl */
    -moz-border-top-colors: #96969D;
    -moz-border-right-colors: #96969D;
    -moz-border-bottom-colors: #96969D;
    -moz-border-left-colors: #96969D;
    font: message-box;
    font-size: 11px;
    font-size-adjust: inherit;
    direction: ltr;
}

.fbsearch-icon {
    cursor: default!important;
    background: url(chrome://firebug/skin/search.svg) no-repeat 0 50%;
    width: 16px;
    height: 16px;
}

/* Need to use images instead of filters due to https://bugzil.la/891777 */ 
.fbsearch-icon:hover {
    background: url(chrome://firebug/skin/searchHovered.svg) no-repeat 0 50%;
}

.fbsearch-icon:active {
    background: url(chrome://firebug/skin/searchPressed.svg) no-repeat 0 50%;
}

.fbsearch-textbox[active-search="true"] > .fbsearch-icon {
    background-image: url(chrome://firebug/skin/searchClose.svg);
}

.fbsearch-textbox[active-search="true"] > .fbsearch-icon:hover {
    background-image: url(chrome://firebug/skin/searchCloseHovered.svg);
}

.fbsearch-textbox[active-search="true"] > .fbsearch-icon:active {
    background-image: url(chrome://firebug/skin/searchClosePressed.svg);
}

#fbSearchOptionsPanel {

}

.fbsearch-options-label {

}

.fbsearch-options-buttons {

}

textbox[type="fbSearchBox"] > panel {
    /* This prevents the drop shadow from appearing See nsLayoutUtils::GetFrameTransparency*/
    border-radius: 1px;
}

.fbSearchBox-attention textbox {
    color: red;
    font-weight: bold;
}

.fbsearch-splitter {
    min-width: 6px;
    -moz-margin-start: -3px;
    border: medium none;
    background: none repeat scroll 0% 0% transparent;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* Case sensitive/insensitive search */

#fbSearchBoxIsSensitive {
    display: none;
}

.fbSearchBox-autoSensitive #fbSearchBoxIsSensitive {
    display: block;
}

.fbSearchBox-autoSensitive #fbSearchBoxIsNotSensitive {
    display: none;
}

/*************************************************************************************************/

#fbCommandBox {
    border-top: 1px solid #CCCCCC;
    background-color: -moz-field;
    color: -moz-fieldtext;
}

/*************************************************************************************************/

.toolbar-image-button {
}

.toolbar-image-button > .toolbarbutton-icon {
}

.toolbar-image-button > .toolbarbutton-text {
}

.fbURLMenuItem { /* let file names be as long as need be */
    max-width: none;
}

.fbNoDomain,
.fbInlineItem {
    font-style: italic;
}

/************************************************************************************************/
/* Firebug toolbar buttons */

#fbInspectButton {
    list-style-image: url(chrome://firebug/skin/inspect.svg);
}

#fbInspectButton:hover {
    filter: url(resource://firebugui/filters.svg#darken);
}

#fbInspectButton:active {
    filter: url(resource://firebugui/filters.svg#deepDarken);
}

/*************************************************************************************************/
/* Debugger buttons */

#fbDebuggerButtons {
    margin-right: 2px;
}

#fbRerunButton {
    list-style-image: url(chrome://firebug/skin/rerun.svg);
}

/* Need to use images instead of filters due to https://bugzil.la/886883 */ 
#fbRerunButton:hover {
    list-style-image: url(chrome://firebug/skin/rerunHovered.svg);
}

#fbRerunButton:active {
    list-style-image: url(chrome://firebug/skin/rerunPressed.svg);
}

#fbRerunButton[disabled=true] {
    list-style-image: url(chrome://firebug/skin/rerunDisabled.svg);
}

#fbContinueButton {
    list-style-image: url(chrome://firebug/skin/continue.svg);
}

#fbContinueButton:hover {
    list-style-image: url(chrome://firebug/skin/continueHovered.svg);
}

#fbContinueButton:active {
    list-style-image: url(chrome://firebug/skin/continuePressed.svg);
}

#fbContinueButton[disabled=true] {
    list-style-image: url(chrome://firebug/skin/continueDisabled.svg);
}

#fbStepOverButton {
    list-style-image: url(chrome://firebug/skin/stepOver.svg);
}

#fbStepOverButton:hover {
    list-style-image: url(chrome://firebug/skin/stepOverHovered.svg);
}

#fbStepOverButton:active {
    list-style-image: url(chrome://firebug/skin/stepOverPressed.svg);
}

#fbStepOverButton[disabled=true] {
    list-style-image: url(chrome://firebug/skin/stepOverDisabled.svg);
}

#fbStepIntoButton {
    list-style-image: url(chrome://firebug/skin/stepInto.svg);
}

#fbStepIntoButton:hover {
    list-style-image: url(chrome://firebug/skin/stepIntoHovered.svg);
}

#fbStepIntoButton:active {
    list-style-image: url(chrome://firebug/skin/stepIntoPressed.svg);
}

#fbStepIntoButton[disabled=true] {
    list-style-image: url(chrome://firebug/skin/stepIntoDisabled.svg);
}

#fbStepOutButton {
    list-style-image: url(chrome://firebug/skin/stepOut.svg);
}

#fbStepOutButton:hover {
    list-style-image: url(chrome://firebug/skin/stepOutHovered.svg);
}

#fbStepOutButton:active {
    list-style-image: url(chrome://firebug/skin/stepOutPressed.svg);
}

#fbStepOutButton[disabled=true] {
    list-style-image: url(chrome://firebug/skin/stepOutDisabled.svg);
}

/*************************************************************************************************/
/* Script history buttons */

#fbNavigateBackButton,
#fbNavigateForwardButton,
.navigationHistoryMenuItemForward,
.navigationHistoryMenuItemBack {
    -moz-image-region: rect(0, 16px, 16px, 0);
}

#fbNavigateBackButton:hover,
#fbNavigateForwardButton:hover,
.navigationHistoryMenuItemBack:hover,
.navigationHistoryMenuItemForward:hover {
    filter: url(resource://firebugui/filters.svg#darken);
}

#fbNavigateBackButton:active,
#fbNavigateForwardButton:active,
.navigationHistoryMenuItemBack:active,
.navigationHistoryMenuItemForward:active {
    filter: url(resource://firebugui/filters.svg#deepDarken);
}

#fbNavigateBackButton[disabled="true"],
#fbNavigateForwardButton[disabled="true"] {
    filter: url(resource://firebugui/filters.svg#brightenedGrayscale);
}

#fbNavigateBackButton:-moz-locale-dir(ltr),
#fbNavigateForwardButton:-moz-locale-dir(rtl),
.navigationHistoryMenuItemBack:-moz-locale-dir(ltr),
.navigationHistoryMenuItemForward:-moz-locale-dir(rtl) {
    list-style-image: url(chrome://firebug/skin/navigationBack.svg);
}

#fbNavigateForwardButton:-moz-locale-dir(ltr),
#fbNavigateBackButton:-moz-locale-dir(rtl),
.navigationHistoryMenuItemForward:-moz-locale-dir(ltr),
.navigationHistoryMenuItemBack:-moz-locale-dir(rtl) {
    list-style-image: url(chrome://firebug/skin/navigationForward.svg);
}

.navigationHistoryMenuItemCurrent {
    font-weight: bold;
}

/*************************************************************************************************/

#fbCommandPopupButton {
    list-style-image: url(chrome://firebug/skin/commandLinePopup.svg);
}

#fbCommandPopupButton[disabled="true"] {
    filter: url(resource://firebugui/filters.svg#brightenedGrayscale);
}

/************************************************************************************************/
/* Command History panel */

#fbCommandHistory {
    min-width: 200px;
    max-height: 400px;
    cursor: default;
    font-family: monospace;
    white-space: pre;
    -moz-appearance: none;
    background-color: -moz-dialog;
}

.commandHistoryItem.selected {
    background-color: highlight;
    color: highlighttext;
}

/*************************************************************************************************/

#fbBreakOnErrors {
    list-style-image: url(chrome://firebug/skin/breakErrors.png);
}

#fbBreakOnErrors[checked="true"] {
    list-style-image: url(chrome://firebug/skin/breakErrorsOn.png);
}

/*************************************************************************************************/

/* default is disabled */
.fbBreakOnImage {
    visibility: hidden;
    padding-right: 2px;
}

/* images */
#fbBreakOnNextButton #fbBreakOnImage {
    list-style-image: url("chrome://firebug/skin/breakOn.svg");
    visibility: visible;
}

#fbBreakOnNextButton[breakable="true"]:hover #fbBreakOnImage {
    filter: url(resource://firebugui/filters.svg#darken);
}

#fbBreakOnNextButton[breakable="true"]:active #fbBreakOnImage {
    filter: url(resource://firebugui/filters.svg#deepDarken);
}

#fbBreakOnNextButton #fbBreakOnImageArmed {
    list-style-image: url("chrome://firebug/skin/breakOnArmed.svg");
}

/* disabled */
#fbBreakOnNextButton[breakable="disabled"] {
    filter: url(resource://firebugui/filters.svg#grayscale);
}

/* enabled */
#fbBreakOnNextButton[breakable="true"] #fbBreakOnImage {
    visibility: visible;
}

/* enabled, armed */
#fbBreakOnNextButton[breakable="false"] #fbBreakOnImageArmed {
    visibility: visible;
}

/* panel badges */
#fbBreakOnNextButton[panelName="script"] #fbBreakOnImageNext {
    visibility: visible;
    list-style-image: url(chrome://firebug/skin/breakOn/breakOnNext.svg);
}

#fbBreakOnNextButton[panelName="net"] #fbBreakOnImageXHR {
    visibility: visible;
    list-style-image: url(chrome://firebug/skin/breakOn/breakOnXHR.svg);
}

#fbBreakOnNextButton[panelName="console"] #fbBreakOnImageError {
    visibility: visible;
    list-style-image: url(chrome://firebug/skin/breakOn/breakOnError.svg);
}

#fbBreakOnNextButton[panelName="html"] #fbBreakOnImageMutate {
    visibility: visible;
    list-style-image: url(chrome://firebug/skin/breakOn/breakOnMutate.svg);
}

/*************************************************************************************************/

#fbMigrator {
    border: 2px solid  #FF9933;
    -moz-border-top-colors: #FF9933;
    -moz-border-bottom-colors: #FF9933;
    -moz-border-left-colors: #FF9933;
    -moz-border-right-colors: #FF9933;
    background-color: transparent;
    opacity: 1.0;
    padding-bottom: 5px;
}

#fbMigrationOk {
    font-family: monospace;
    font-size: 14px;
    color: #FF9933;
    font-weight: bold;
}

/*************************************************************************************************/
/* Scrollable TabBar + TabList */

/* Collision with CuteButtons - Crystal SVG 0.2.5, see 3374 */
#fbNetPersist {
    -moz-image-region: rect(0, 1px, 1px, 0);
}

/*************************************************************************************************/
/* Toggle Side Panels */

#fbToggleSidePanels {
    list-style-image: url(chrome://firebug/skin/collapseSidePanels.svg);
}

#fbToggleSidePanels:hover {
    list-style-image: url(chrome://firebug/skin/collapseSidePanelsHovered.svg);
}

#fbToggleSidePanels:active {
    list-style-image: url(chrome://firebug/skin/collapseSidePanelsPressed.svg);
}

#fbToggleSidePanels.closed {
    list-style-image: url(chrome://firebug/skin/expandSidePanels.svg);
}

#fbToggleSidePanels.closed:hover {
    list-style-image: url(chrome://firebug/skin/expandSidePanelsHovered.svg);
}

#fbToggleSidePanels.closed:active {
    list-style-image: url(chrome://firebug/skin/expandSidePanelsPressed.svg);
}

#fbPanelPane:not([orient="vertical"]) #fbToggleSidePanels {
    margin-right: 2px;
}

#fbPanelPane[orient="vertical"] #fbToggleSidePanels {
    list-style-image: url(chrome://firebug/skin/collapseSidePanelsVertical.svg);
}

#fbPanelPane[orient="vertical"] #fbToggleSidePanels:hover {
    list-style-image: url(chrome://firebug/skin/collapseSidePanelsVerticalHovered.svg);
}

#fbPanelPane[orient="vertical"] #fbToggleSidePanels:active {
    list-style-image: url(chrome://firebug/skin/collapseSidePanelsVerticalPressed.svg);
}

#fbPanelPane[orient="vertical"] #fbToggleSidePanels.closed {
    list-style-image: url(chrome://firebug/skin/expandSidePanelsVertical.svg);
}

#fbPanelPane[orient="vertical"] #fbToggleSidePanels.closed:hover {
    list-style-image: url(chrome://firebug/skin/expandSidePanelsVerticalHovered.svg);
}

#fbPanelPane[orient="vertical"] #fbToggleSidePanels.closed:active {
    list-style-image: url(chrome://firebug/skin/expandSidePanelsVerticalPressed.svg);
}
