| 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
| 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 4 | |
| 5 | window { |
| 6 | padding: 0; |
| 7 | } |
| 8 | |
| 9 | .webconsole-timestamp, |
| 10 | .webconsole-msg-body, |
| 11 | .jsterm-input-node, |
| 12 | .jsterm-complete-node { |
| 13 | font-family: "Liberation Mono", Consolas, "Courier New", monospace; |
| 14 | } |
| 15 | |
| 16 | /* |
| 17 | * This hardcoded width likely due to a toolkit Windows specific bug. |
| 18 | * See http://hg.mozilla.org/mozilla-central/annotate/f38d6df93cad/toolkit/themes/winstripe/global/textbox-aero.css#l7 |
| 19 | */ |
| 20 | |
| 21 | .hud-filter-box { |
| 22 | width: 200px; |
| 23 | } |
| 24 | |
| 25 | /* === webconsole.inc.css === */ |
| 26 | |
| 27 | /* General output styles */ |
| 28 | |
| 29 | .webconsole-timestamp { |
| 30 | color: #8050B0; |
| 31 | margin-top: 0; |
| 32 | margin-bottom: 0; |
| 33 | } |
| 34 | |
| 35 | .hud-msg-node { |
| 36 | list-style-image: url("chrome://browser/skin/devtools/webconsole.png"); |
| 37 | -moz-image-region: rect(0, 1px, 0, 0); |
| 38 | } |
| 39 | |
| 40 | .webconsole-msg-icon { |
| 41 | margin: 3px 4px; |
| 42 | width: 8px; |
| 43 | height: 8px; |
| 44 | } |
| 45 | |
| 46 | .hud-clickable { |
| 47 | cursor: pointer; |
| 48 | text-decoration: underline; |
| 49 | } |
| 50 | |
| 51 | .webconsole-msg-body { |
| 52 | margin-top: 0; |
| 53 | margin-bottom: 3px; |
| 54 | -moz-margin-start: 3px; |
| 55 | -moz-margin-end: 6px; |
| 56 | white-space: pre-wrap; |
| 57 | font-family: "Liberation Mono", Consolas, "Courier New", monospace; |
| 58 | } |
| 59 | |
| 60 | .webconsole-msg-body-piece { |
| 61 | margin: 0; |
| 62 | } |
| 63 | |
| 64 | .webconsole-msg-url { |
| 65 | margin: 0 6px; |
| 66 | } |
| 67 | |
| 68 | /* Repeated messages */ |
| 69 | .webconsole-msg-repeat { |
| 70 | margin: 2px 0; |
| 71 | padding-left: 4px; |
| 72 | padding-right: 4px; |
| 73 | color: #000000; |
| 74 | background-color: #FF0000; |
| 75 | border-radius: 40px; |
| 76 | /* font: message-box; */ |
| 77 | font-size: 0.9em; |
| 78 | font-weight: 600; |
| 79 | } |
| 80 | |
| 81 | /* TODO move this and other functional rules to content - bug 635359 */ |
| 82 | .webconsole-msg-repeat[value="1"] { |
| 83 | display: none; |
| 84 | } |
| 85 | |
| 86 | .webconsole-location { |
| 87 | margin-top: 0; |
| 88 | margin-bottom: 0; |
| 89 | -moz-margin-start: 0; |
| 90 | -moz-margin-end: 6px; |
| 91 | width: 10em; |
| 92 | text-align: end; |
| 93 | } |
| 94 | |
| 95 | .webconsole-mixed-content { |
| 96 | color: #FF0000; |
| 97 | } |
| 98 | |
| 99 | .webconsole-mixed-content-link { |
| 100 | color: #3333FF; |
| 101 | margin: 0; |
| 102 | } |
| 103 | |
| 104 | .hud-msg-node[selected="true"] > .webconsole-timestamp, |
| 105 | .hud-msg-node[selected="true"] > .webconsole-location { |
| 106 | color: inherit; |
| 107 | } |
| 108 | |
| 109 | .hud-output-node { |
| 110 | -moz-appearance: none; |
| 111 | border-bottom: 1px solid #9C9CFF; |
| 112 | margin: 0; |
| 113 | } |
| 114 | |
| 115 | .hud-filtered-by-type, |
| 116 | .hud-filtered-by-string { |
| 117 | display: none; |
| 118 | } |
| 119 | |
| 120 | .hidden-message { |
| 121 | display: block; |
| 122 | visibility: hidden; |
| 123 | height: 0; |
| 124 | overflow: hidden; |
| 125 | } |
| 126 | |
| 127 | /* WebConsole colored drops */ |
| 128 | |
| 129 | .webconsole-filter-button { |
| 130 | -moz-user-focus: normal; |
| 131 | } |
| 132 | |
| 133 | .webconsole-filter-button[checked] { |
| 134 | /* color: white !important; */ |
| 135 | } |
| 136 | |
| 137 | .webconsole-filter-button > .toolbarbutton-menubutton-button:before { |
| 138 | content: ""; |
| 139 | display: inline-block; |
| 140 | height: 8px; |
| 141 | width: 8px; |
| 142 | border-radius: 50%; |
| 143 | margin-left: 5px; |
| 144 | border-width: 1px; |
| 145 | border-style: solid; |
| 146 | } |
| 147 | |
| 148 | .webconsole-filter-button menuitem { |
| 149 | -moz-image-region: auto; |
| 150 | } |
| 151 | |
| 152 | .hud-filter-box { |
| 153 | margin-top: 0; |
| 154 | margin-bottom: 0; |
| 155 | } |
| 156 | |
| 157 | /* Network styles */ |
| 158 | .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before { |
| 159 | background-image: linear-gradient(#BF9B00, #7F6700); |
| 160 | border-color: #FFCF00; |
| 161 | } |
| 162 | |
| 163 | .webconsole-msg-network > .webconsole-msg-icon-container { |
| 164 | -moz-border-start: solid #FFCF00 6px; |
| 165 | } |
| 166 | |
| 167 | .webconsole-msg-network.webconsole-msg-error { |
| 168 | -moz-image-region: rect(0, 16px, 8px, 8px); |
| 169 | } |
| 170 | |
| 171 | /* CSS styles */ |
| 172 | .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before { |
| 173 | background-image: linear-gradient(#7575BF, #4E4E7F); |
| 174 | border-color: #9C9CFF; |
| 175 | } |
| 176 | |
| 177 | .webconsole-msg-cssparser > .webconsole-msg-icon-container { |
| 178 | -moz-border-start: solid #9C9CFF 6px; |
| 179 | } |
| 180 | |
| 181 | .webconsole-msg-cssparser.webconsole-msg-error { |
| 182 | -moz-image-region: rect(8px, 16px, 16px, 8px); |
| 183 | } |
| 184 | |
| 185 | .webconsole-msg-cssparser.webconsole-msg-warn { |
| 186 | -moz-image-region: rect(8px, 24px, 16px, 16px); |
| 187 | } |
| 188 | |
| 189 | /* JS styles */ |
| 190 | .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before { |
| 191 | background-image: linear-gradient(#BF7700, #7F4F00); |
| 192 | border-color: #FF9F00; |
| 193 | } |
| 194 | |
| 195 | .webconsole-msg-exception > .webconsole-msg-icon-container { |
| 196 | -moz-border-start: solid #FF9F00 6px; |
| 197 | } |
| 198 | |
| 199 | .webconsole-msg-exception.webconsole-msg-error { |
| 200 | -moz-image-region: rect(16px, 16px, 24px, 8px); |
| 201 | } |
| 202 | |
| 203 | .webconsole-msg-exception.webconsole-msg-warn { |
| 204 | -moz-image-region: rect(16px, 24px, 24px, 16px); |
| 205 | } |
| 206 | |
| 207 | /* Web Developer styles */ |
| 208 | .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before { |
| 209 | background-image: linear-gradient(#5F3B83, #3F2756); |
| 210 | border-color: #8050B0; |
| 211 | } |
| 212 | |
| 213 | .webconsole-msg-console > .webconsole-msg-icon-container { |
| 214 | -moz-border-start: solid #8050B0 6px; |
| 215 | } |
| 216 | |
| 217 | .webconsole-msg-console.webconsole-msg-error, |
| 218 | .webconsole-msg-output.webconsole-msg-error { |
| 219 | -moz-image-region: rect(24px, 16px, 32px, 8px); |
| 220 | } |
| 221 | |
| 222 | .webconsole-msg-console.webconsole-msg-warn { |
| 223 | -moz-image-region: rect(24px, 24px, 32px, 16px); |
| 224 | } |
| 225 | |
| 226 | .webconsole-msg-console.webconsole-msg-info { |
| 227 | -moz-image-region: rect(24px, 32px, 32px, 24px); |
| 228 | } |
| 229 | |
| 230 | /* Input and output styles */ |
| 231 | .webconsole-msg-input > .webconsole-msg-icon-container, |
| 232 | .webconsole-msg-output > .webconsole-msg-icon-container { |
| 233 | border-left: solid #808080 6px; |
| 234 | } |
| 235 | |
| 236 | .webconsole-msg-input { |
| 237 | -moz-image-region: rect(24px, 40px, 32px, 32px); |
| 238 | } |
| 239 | |
| 240 | .webconsole-msg-output { |
| 241 | -moz-image-region: rect(24px, 48px, 32px, 40px); |
| 242 | } |
| 243 | |
| 244 | /* JSTerm Styles */ |
| 245 | |
| 246 | .jsterm-input-node, |
| 247 | .jsterm-complete-node { |
| 248 | -moz-padding-start: 16px; |
| 249 | margin: 3px 0 0 0; |
| 250 | } |
| 251 | |
| 252 | .jsterm-input-node { |
| 253 | background: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16) no-repeat; |
| 254 | background-position: 0%; |
| 255 | } |
| 256 | |
| 257 | :-moz-any(.jsterm-input-node, |
| 258 | .jsterm-complete-node) > .textbox-input-box > .textbox-textarea { |
| 259 | overflow-x: hidden; |
| 260 | } |
| 261 | |
| 262 | .jsterm-complete-node > .textbox-input-box > .textbox-textarea { |
| 263 | color: #8050B0; |
| 264 | } |
| 265 | |
| 266 | .webconsole-msg-inspector iframe { |
| 267 | height: 7em; |
| 268 | margin-bottom: 15px; |
| 269 | -moz-margin-end: 15px; |
| 270 | border-radius: 4px; |
| 271 | } |
| 272 | |
| 273 | #webconsole-sidebar > tabs { |
| 274 | height: 0; |
| 275 | border: none; |
| 276 | } |
| 277 | |
| 278 | /* Security styles */ |
| 279 | |
| 280 | .webconsole-msg-security > .webconsole-msg-icon-container { |
| 281 | -moz-border-start: solid #FF0000 6px; |
| 282 | } |
| 283 | |
| 284 | .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before { |
| 285 | background-color: #FF0000; |
| 286 | border-color: #FFCF00; |
| 287 | } |
| 288 | |
| 289 | .webconsole-msg-security.webconsole-msg-error { |
| 290 | -moz-image-region: rect(32px, 16px, 40px, 8px); |
| 291 | } |
| 292 | |
| 293 | .webconsole-msg-security.webconsole-msg-warn { |
| 294 | -moz-image-region: rect(32px, 24px, 40px, 16px); |
| 295 | } |
| 296 | |
| 297 | .navigation-marker { |
| 298 | color: #000000; |
| 299 | background-color: #A09090; |
| 300 | -moz-margin-start: 3px; |
| 301 | -moz-margin-end: 6px; |
| 302 | font-size: 0.9em; |
| 303 | } |
| 304 | |
| 305 | .navigation-marker .url { |
| 306 | background-color: #000000; |
| 307 | -moz-padding-end: 6px; |
| 308 | } |