X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fdevtools%2Fwebconsole.css;h=056424c1e61bd041ee92a018d6386218bb6ab2b9;hp=4c4c3c33d654c4e5b752cbb93e8c7a140383ff97;hb=9168a62c02f1b9fe7953f2fba5f32305980ac1a3;hpb=b27cc46e639c7b6f88a224a7492701957379c32c diff --git a/LCARStrek/browser/devtools/webconsole.css b/LCARStrek/browser/devtools/webconsole.css index 4c4c3c33..056424c1 100644 --- a/LCARStrek/browser/devtools/webconsole.css +++ b/LCARStrek/browser/devtools/webconsole.css @@ -6,13 +6,6 @@ window { padding: 0; } -.webconsole-timestamp, -.webconsole-msg-body, -.jsterm-input-node, -.jsterm-complete-node { - font-family: "Liberation Mono", Consolas, "Courier New", monospace; -} - /* * This hardcoded width likely due to a toolkit Windows specific bug. * See http://hg.mozilla.org/mozilla-central/annotate/f38d6df93cad/toolkit/themes/winstripe/global/textbox-aero.css#l7 @@ -22,54 +15,76 @@ window { width: 200px; } -/* === webconsole.inc.css === */ +/* === BEGIN webconsole.inc.css === */ /* General output styles */ -.webconsole-timestamp { - color: #8050B0; - margin-top: 0; - margin-bottom: 0; +a { + -moz-user-focus: normal; + -moz-user-input: enabled; + cursor: pointer; + text-decoration: underline; } -.hud-msg-node { - list-style-image: url("chrome://browser/skin/devtools/webconsole.png"); - -moz-image-region: rect(0, 1px, 0, 0); +/* Workaround for Bug 575675 - FindChildWithRules aRelevantLinkVisited + * assertion when loading HTML page with links in XUL iframe */ +*:visited { } + +.message { + display: flex; + flex: 0 0 auto; + padding: 0 7px; + width: 100%; + box-sizing: border-box; } -.webconsole-msg-icon { - margin: 3px 4px; - width: 8px; - height: 8px; +.message > .timestamp { + flex: 0 0 auto; + color: #8050B0; + margin: 4px 6px 0 0; } -.hud-clickable { - cursor: pointer; - text-decoration: underline; +.message > .indent { + flex: 0 0 auto; } -.webconsole-msg-body { - margin-top: 0; - margin-bottom: 3px; - -moz-margin-start: 3px; - -moz-margin-end: 6px; - white-space: pre-wrap; - font-family: "Liberation Mono", Consolas, "Courier New", monospace; +.message > .icon { + flex: 0 0 auto; + margin: 3px 6px 0 0; + padding: 0 4px; + height: 1em; + align-self: flex-start; } -.webconsole-msg-body-piece { - margin: 0; +.message > .icon::before { + content: ""; + background-image: url("chrome://browser/skin/devtools/webconsole.png"); + background-position: 8px 8px; + background-repeat: no-repeat; + background-size: 48px 40px; + width: 8px; + height: 8px; + display: inline-block; } -.webconsole-msg-url { - margin: 0 6px; +@media (min-resolution: 2dppx) { + .message > .icon::before { + background-image: url("chrome://browser/skin/devtools/webconsole@2x.png"); + } +} + +.message > .message-body-wrapper { + flex: 1 1 100%; + margin: 3px; } -/* Repeated messages */ -.webconsole-msg-repeat { - margin: 2px 0; - padding-left: 4px; - padding-right: 4px; +/* The red bubble that shows the number of times a message is repeated */ +.message-repeats { + -moz-user-select: none; + flex: 0 0 auto; + margin: 2px 6px; + padding: 0 6px; + height: 1.25em; color: #000000; background-color: #FF0000; border-radius: 40px; @@ -78,27 +93,36 @@ window { font-weight: 600; } -/* TODO move this and other functional rules to content - bug 635359 */ -.webconsole-msg-repeat[value="1"] { +.message-repeats[value="1"] { display: none; } -.webconsole-location { - margin-top: 0; - margin-bottom: 0; - -moz-margin-start: 0; - -moz-margin-end: 6px; +.message-location { + display: flex; + flex: 0 0 auto; + align-self: flex-start; + justify-content: flex-end; width: 10em; - text-align: end; + margin-top: 3px; + color: #3333FF; + text-decoration: none; + white-space: nowrap; } -.webconsole-mixed-content { - color: #FF0000; +.message-location:hover, +.message-location:focus { + text-decoration: underline; } -.webconsole-mixed-content-link { - color: #3333FF; - margin: 0; +.message-location > .filename { + text-overflow: ellipsis; + text-align: end; + overflow: hidden; + white-space: nowrap; +} + +.message-location > .line-number { + flex: 0 0 auto; } .hud-msg-node[selected="true"] > .webconsole-timestamp, @@ -106,14 +130,59 @@ window { color: inherit; } -.hud-output-node { - -moz-appearance: none; - border-bottom: 1px solid #9C9CFF; - margin: 0; +.message-flex-body { + display: flex; +} + +.message-body { + white-space: pre-wrap; + word-wrap: break-word; +} + +.message-flex-body > .message-body { + display: block; + flex: 1 1 auto; + vertical-align: middle; +} + +.message-flex-body > .message-location { + margin-top: 0; +} + +.jsterm-input-container { + border-top-width: 1px; + border-top-style: solid; +} + +#output-wrapper { + direction: ltr; + overflow: auto; +} + +#output-container { + -moz-user-select: text; + -moz-box-flex: 1; + display: flex; + flex-direction: column; + align-items: flex-start; +} + +#output-container.hideTimestamps > .message { + -moz-padding-start: 0; + -moz-margin-start: 7px; + width: calc(100% - 7px); } -.hud-filtered-by-type, -.hud-filtered-by-string { +#output-container.hideTimestamps > .message > .timestamp { + display: none; +} + +#output-container.hideTimestamps > .message > .indent { + background-color: #000000; /* .theme-body */ +} + +.filtered-by-type, +.filtered-by-string { display: none; } @@ -130,10 +199,6 @@ window { -moz-user-focus: normal; } -.webconsole-filter-button[checked] { - /* color: white !important; */ -} - .webconsole-filter-button > .toolbarbutton-menubutton-button:before { content: ""; display: inline-block; @@ -160,12 +225,56 @@ window { border-color: #FFCF00; } -.webconsole-msg-network > .webconsole-msg-icon-container { - -moz-border-start: solid #FFCF00 6px; +.message:hover { + background-color: #404000; +} + +.message[severity=error] { + background-color: #FF0000; } -.webconsole-msg-network.webconsole-msg-error { - -moz-image-region: rect(0, 16px, 8px, 8px); +.console-string { + color: #FF0000; +} + +.message[category=network] > .indent { + -moz-border-end: solid #FF0000 6px; +} + +.message[category=network][severity=error] > .icon::before { + background-position: -8px 0; +} + +.message[category=network] > .message-body { + display: flex; +} + +.message[category=network] .method { + flex: 0 0 auto; +} + +.message[category=network]:not(.navigation-marker) .url { + flex: 1 1 auto; + /* Make sure the URL is very small initially, let flex change width as needed. */ + width: 100px; + min-width: 5em; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.message[category=network] .status { + flex: 0 0 auto; + -moz-margin-start: 6px; +} + +.message[category=network].mixed-content .url { + color: #FF0000; +} + +.message .learn-more-link { + color: #3333FF; + margin: 0 6px; } /* CSS styles */ @@ -174,16 +283,16 @@ window { border-color: #9C9CFF; } -.webconsole-msg-cssparser > .webconsole-msg-icon-container { - -moz-border-start: solid #9C9CFF 6px; +.message[category=cssparser] > .indent { + -moz-border-end: solid #9C9CFF 6px; } -.webconsole-msg-cssparser.webconsole-msg-error { - -moz-image-region: rect(8px, 16px, 16px, 8px); +.message[category=cssparser][severity=error] > .icon::before { + background-position: -8px -8px; } -.webconsole-msg-cssparser.webconsole-msg-warn { - -moz-image-region: rect(8px, 24px, 16px, 16px); +.message[category=cssparser][severity=warn] > .icon::before { + background-position: -16px -8px; } /* JS styles */ @@ -192,16 +301,16 @@ window { border-color: #FF9F00; } -.webconsole-msg-exception > .webconsole-msg-icon-container { - -moz-border-start: solid #FF9F00 6px; +.message[category=exception] > .indent { + -moz-border-end: solid #FF9F00 6px; } -.webconsole-msg-exception.webconsole-msg-error { - -moz-image-region: rect(16px, 16px, 24px, 8px); +.message[category=exception][severity=error] > .icon::before { + background-position: -8px -16px; } -.webconsole-msg-exception.webconsole-msg-warn { - -moz-image-region: rect(16px, 24px, 24px, 16px); +.message[category=exception][severity=warn] > .icon::before { + background-position: -16px -16px; } /* Web Developer styles */ @@ -210,35 +319,35 @@ window { border-color: #8050B0; } -.webconsole-msg-console > .webconsole-msg-icon-container { - -moz-border-start: solid #8050B0 6px; +.message[category=console] > .indent { + -moz-border-end: solid #8050B0 6px; } -.webconsole-msg-console.webconsole-msg-error, -.webconsole-msg-output.webconsole-msg-error { - -moz-image-region: rect(24px, 16px, 32px, 8px); +.message[category=console][severity=error] > .icon::before, +.message[category=output][severity=error] > .icon::before { + background-position: -8px -24px; } -.webconsole-msg-console.webconsole-msg-warn { - -moz-image-region: rect(24px, 24px, 32px, 16px); +.message[category=console][severity=warn] > .icon::before { + background-position: -16px -24px; } -.webconsole-msg-console.webconsole-msg-info { - -moz-image-region: rect(24px, 32px, 32px, 24px); +.message[category=console][severity=info] > .icon::before { + background-position: -24px -24px; } /* Input and output styles */ -.webconsole-msg-input > .webconsole-msg-icon-container, -.webconsole-msg-output > .webconsole-msg-icon-container { - border-left: solid #808080 6px; +.message[category=input] > .indent, +.message[category=output] > .indent { + -moz-border-end: solid #A09090 6px; } -.webconsole-msg-input { - -moz-image-region: rect(24px, 40px, 32px, 32px); +.message[category=input] > .icon::before { + background-position: -32px -24px; } -.webconsole-msg-output { - -moz-image-region: rect(24px, 48px, 32px, 40px); +.message[category=output] > .icon::before { + background-position: -40px -24px; } /* JSTerm Styles */ @@ -247,10 +356,19 @@ window { .jsterm-complete-node { -moz-padding-start: 16px; margin: 3px 0 0 0; + background-color: transparent; } .jsterm-input-node { - background: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16) no-repeat; + background-image: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16); + background-repeat: no-repeat; + background-size: 16px 16px; +} + +@media (min-resolution: 2dppx) { + .jsterm-input-node { + background-image: -moz-image-rect(url('chrome://browser/skin/devtools/commandline-icon@2x.png'), 0, 64, 32, 32); + } } :-moz-any(.jsterm-input-node, @@ -258,14 +376,18 @@ window { overflow-x: hidden; } -.jsterm-complete-node > .textbox-input-box > .textbox-textarea { - color: #8050B0; +.inlined-variables-view .message-body { + display: flex; + flex-direction: column; } -.webconsole-msg-inspector iframe { - height: 7em; +.inlined-variables-view iframe { + display: block; + flex: 1; + margin-top: 5px; margin-bottom: 15px; -moz-margin-end: 15px; + border: 1px solid #9C9CFF; border-radius: 4px; } @@ -274,10 +396,14 @@ window { border: none; } +.devtools-side-splitter ~ #webconsole-sidebar[hidden] { + display: none; +} + /* Security styles */ -.webconsole-msg-security > .webconsole-msg-icon-container { - -moz-border-start: solid #FF0000 6px; +.message[category=security] > .indent { + -moz-border-end: solid #FF0000 6px; } .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before { @@ -285,10 +411,152 @@ window { border-color: #FFCF00; } -.webconsole-msg-security.webconsole-msg-error { - -moz-image-region: rect(32px, 16px, 40px, 8px); +.message[category=security][severity=error] > .icon::before { + background-position: -8px -32px; } -.webconsole-msg-security.webconsole-msg-warn { - -moz-image-region: rect(32px, 24px, 40px, 16px); +.message[category=security][severity=warn] > .icon::before { + background-position: -16px -32px; +} + +.navigation-marker { + color: #000000; + background-color: #A09090; + margin-top: 6px; + margin-bottom: 6px; + font-size: 0.9em; +} + +.navigation-marker .url { + -moz-padding-end: 9px; + text-decoration: none; +} + +.stacktrace { + display: none; + list-style: none; + padding: 0 1em 0 1.5em; + margin: 5px 0 0 0; + max-height: 10em; + overflow-y: auto; + border: 1px solid #A09090; + border-radius: 3px; } + +.message[severity=error] .stacktrace { + background-color: #000000; +} + +.message[open] .stacktrace { + display: block; +} + +.message .theme-twisty { + display: inline-block; + vertical-align: middle; + margin: 0 3px 0 0; +} + +.stacktrace li { + display: flex; + margin: 0; +} + +.stacktrace .function { + display: block; + flex: 1 1 auto; +} + +.cm-s-mozilla a[class] { + font-style: italic; + text-decoration: none; +} + +.cm-s-mozilla a[class]:hover, +.cm-s-mozilla a[class]:focus { + text-decoration: underline; +} + +/* Open DOMNode in inspector button */ +.open-inspector { + background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0; + padding-left: 16px; + margin-left: 5px; + cursor: pointer; +} + +.elementNode:hover .open-inspector, +.open-inspector:hover { + background-position: -32px 0; +} + +.open-inspector:active { + background-position: -16px 0; +} + +/* Replace these values with CSS variables as available */ +.jsterm-input-container { + background-color: #000000; /* tabToolbarBackgroundColor */ + border-color: #9C9CFF; /* mainBackgroundColor */ +} + +.jsterm-input-node { + color: #E7ADE7; /* textColor */ +} + +.jsterm-complete-node { + color: #A09090; /* commentColor */ +} + +.navigation-marker .url { + background: #000000; /* mainBackgroundColor */ +} + +.inlined-variables-view iframe { + border-color: #A09090; +} + +.stacktrace { + border-color: #A09090; +} + +@media (max-width: 500px) { + .message > .timestamp { + display: none; + } + .hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text { + display: none; + } + .hud-console-filter-toolbar .webconsole-filter-button { + min-width: 40px; + } + .hud-console-filter-toolbar .webconsole-clear-console-button { + min-width: 25px; + } + .webconsole-filter-button > .toolbarbutton-menubutton-button:before { + width: 12px; + height: 12x; + margin-left: 1px; + } + .toolbarbutton-menubutton-dropmarker { + margin: 0px; + } +} + +@media (max-width: 300px) { + .hud-console-filter-toolbar { + -moz-box-orient: vertical; + } + .toolbarbutton-text { + display: -moz-box; + } + .devtools-toolbarbutton { + margin-top: 3px; + } + .hud-console-filter-toolbar .hud-filter-box, + .hud-console-filter-toolbar .devtools-toolbarbutton { + margin-top: 5px; + } +} + +/* === END webconsole.inc.css === */