browser/themes/shared/devtools/webconsole.inc.css

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 /* General output styles */
michael@0 6
michael@0 7 a {
michael@0 8 -moz-user-focus: normal;
michael@0 9 -moz-user-input: enabled;
michael@0 10 cursor: pointer;
michael@0 11 text-decoration: underline;
michael@0 12 }
michael@0 13
michael@0 14 /* Workaround for Bug 575675 - FindChildWithRules aRelevantLinkVisited
michael@0 15 * assertion when loading HTML page with links in XUL iframe */
michael@0 16 *:visited { }
michael@0 17
michael@0 18 .message {
michael@0 19 display: flex;
michael@0 20 flex: 0 0 auto;
michael@0 21 padding: 0 7px;
michael@0 22 width: 100%;
michael@0 23 box-sizing: border-box;
michael@0 24 }
michael@0 25
michael@0 26 .message > .timestamp {
michael@0 27 flex: 0 0 auto;
michael@0 28 color: GrayText;
michael@0 29 margin: 4px 6px 0 0;
michael@0 30 }
michael@0 31
michael@0 32 .message > .indent {
michael@0 33 flex: 0 0 auto;
michael@0 34 }
michael@0 35
michael@0 36 .message > .icon {
michael@0 37 background: -moz-image-rect(url(chrome://browser/skin/devtools/webconsole.png), 0, 1, 0, 0) no-repeat;
michael@0 38 background-position: center;
michael@0 39 flex: 0 0 auto;
michael@0 40 margin: 3px 6px 0 0;
michael@0 41 padding: 0 4px;
michael@0 42 width: 8px;
michael@0 43 height: 1em;
michael@0 44 align-self: flex-start;
michael@0 45 }
michael@0 46
michael@0 47 .message > .message-body-wrapper {
michael@0 48 flex: 1 1 100%;
michael@0 49 margin: 3px;
michael@0 50 }
michael@0 51
michael@0 52 /* The red bubble that shows the number of times a message is repeated */
michael@0 53 .message-repeats {
michael@0 54 -moz-user-select: none;
michael@0 55 flex: 0 0 auto;
michael@0 56 margin: 2px 6px;
michael@0 57 padding: 0 6px;
michael@0 58 height: 1.25em;
michael@0 59 color: white;
michael@0 60 background-color: red;
michael@0 61 border-radius: 40px;
michael@0 62 font: message-box;
michael@0 63 font-size: 0.9em;
michael@0 64 font-weight: 600;
michael@0 65 }
michael@0 66
michael@0 67 .message-repeats[value="1"] {
michael@0 68 display: none;
michael@0 69 }
michael@0 70
michael@0 71 .message-location {
michael@0 72 display: flex;
michael@0 73 flex: 0 0 auto;
michael@0 74 align-self: flex-start;
michael@0 75 justify-content: flex-end;
michael@0 76 width: 10em;
michael@0 77 margin-top: 3px;
michael@0 78 color: -moz-nativehyperlinktext;
michael@0 79 text-decoration: none;
michael@0 80 white-space: nowrap;
michael@0 81 }
michael@0 82
michael@0 83 .message-location:hover,
michael@0 84 .message-location:focus {
michael@0 85 text-decoration: underline;
michael@0 86 }
michael@0 87
michael@0 88 .message-location > .filename {
michael@0 89 text-overflow: ellipsis;
michael@0 90 text-align: end;
michael@0 91 overflow: hidden;
michael@0 92 }
michael@0 93
michael@0 94 .message-location > .line-number {
michael@0 95 flex: 0 0 auto;
michael@0 96 }
michael@0 97
michael@0 98 .message-flex-body {
michael@0 99 display: flex;
michael@0 100 }
michael@0 101
michael@0 102 .message-body {
michael@0 103 white-space: pre-wrap;
michael@0 104 word-wrap: break-word;
michael@0 105 }
michael@0 106
michael@0 107 .message-flex-body > .message-body {
michael@0 108 display: block;
michael@0 109 flex: 1 1 auto;
michael@0 110 vertical-align: middle;
michael@0 111 }
michael@0 112
michael@0 113 .message-flex-body > .message-location {
michael@0 114 margin-top: 0;
michael@0 115 }
michael@0 116
michael@0 117 .jsterm-input-container {
michael@0 118 border-top-width: 1px;
michael@0 119 border-top-style: solid;
michael@0 120 }
michael@0 121
michael@0 122 #output-wrapper {
michael@0 123 direction: ltr;
michael@0 124 overflow: auto;
michael@0 125 }
michael@0 126
michael@0 127 #output-container {
michael@0 128 -moz-user-select: text;
michael@0 129 -moz-box-flex: 1;
michael@0 130 display: flex;
michael@0 131 flex-direction: column;
michael@0 132 align-items: flex-start;
michael@0 133 }
michael@0 134
michael@0 135 #output-container.hideTimestamps > .message {
michael@0 136 -moz-padding-start: 0;
michael@0 137 -moz-margin-start: 7px;
michael@0 138 width: calc(100% - 7px);
michael@0 139 }
michael@0 140
michael@0 141 #output-container.hideTimestamps > .message > .timestamp {
michael@0 142 display: none;
michael@0 143 }
michael@0 144
michael@0 145 .theme-dark #output-container.hideTimestamps > .message > .indent {
michael@0 146 background-color: #14171a; /* .theme-body */
michael@0 147 }
michael@0 148
michael@0 149 .theme-light #output-container.hideTimestamps > .message > .indent {
michael@0 150 background-color: #fcfcfc; /* .theme-body */
michael@0 151 }
michael@0 152
michael@0 153 .filtered-by-type,
michael@0 154 .filtered-by-string {
michael@0 155 display: none;
michael@0 156 }
michael@0 157
michael@0 158 .hidden-message {
michael@0 159 display: block;
michael@0 160 visibility: hidden;
michael@0 161 height: 0;
michael@0 162 overflow: hidden;
michael@0 163 }
michael@0 164
michael@0 165 /* WebConsole colored drops */
michael@0 166
michael@0 167 .webconsole-filter-button {
michael@0 168 -moz-user-focus: normal;
michael@0 169 }
michael@0 170
michael@0 171 .webconsole-filter-button[checked] {
michael@0 172 color: white !important;
michael@0 173 }
michael@0 174
michael@0 175 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
michael@0 176 content: "";
michael@0 177 display: inline-block;
michael@0 178 height: 8px;
michael@0 179 width: 8px;
michael@0 180 border-radius: 50%;
michael@0 181 margin-left: 5px;
michael@0 182 border-width: 1px;
michael@0 183 border-style: solid;
michael@0 184 }
michael@0 185
michael@0 186 /* Network styles */
michael@0 187 .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
michael@0 188 background-image: linear-gradient(#444444, #000000);
michael@0 189 border-color: #777;
michael@0 190 }
michael@0 191
michael@0 192 .theme-light .message[severity=error] {
michael@0 193 background-color: rgba(255, 150, 150, 0.3);
michael@0 194 }
michael@0 195
michael@0 196 .theme-dark .message[severity=error] {
michael@0 197 background-color: rgba(235, 83, 104, 0.17);
michael@0 198 }
michael@0 199
michael@0 200 .theme-dark .console-string {
michael@0 201 color: #d99b28;
michael@0 202 }
michael@0 203
michael@0 204 .theme-light .console-string {
michael@0 205 color: hsl(24,85%,39%);
michael@0 206 }
michael@0 207
michael@0 208 .message[category=network] > .indent {
michael@0 209 -moz-border-end: solid #000 6px;
michael@0 210 }
michael@0 211
michael@0 212 .message[category=network][severity=error] > .icon {
michael@0 213 background-image: -moz-image-rect(url(chrome://browser/skin/devtools/webconsole.png), 0, 16, 8, 8);
michael@0 214 }
michael@0 215
michael@0 216 .message[category=network] > .message-body {
michael@0 217 display: flex;
michael@0 218 }
michael@0 219
michael@0 220 .message[category=network] .method {
michael@0 221 flex: 0 0 auto;
michael@0 222 }
michael@0 223
michael@0 224 .message[category=network]:not(.navigation-marker) .url {
michael@0 225 flex: 1 1 auto;
michael@0 226 /* Make sure the URL is very small initially, let flex change width as needed. */
michael@0 227 width: 100px;
michael@0 228 min-width: 5em;
michael@0 229 white-space: nowrap;
michael@0 230 overflow: hidden;
michael@0 231 text-overflow: ellipsis;
michael@0 232 }
michael@0 233
michael@0 234 .message[category=network] .status {
michael@0 235 flex: 0 0 auto;
michael@0 236 -moz-margin-start: 6px;
michael@0 237 }
michael@0 238
michael@0 239 .message[category=network].mixed-content .url {
michael@0 240 color: #FF0000;
michael@0 241 }
michael@0 242
michael@0 243 .message .learn-more-link {
michael@0 244 color: -moz-nativehyperlinktext;
michael@0 245 margin: 0 6px;
michael@0 246 }
michael@0 247
michael@0 248 /* CSS styles */
michael@0 249 .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
michael@0 250 background-image: linear-gradient(#2DC3F3, #00B6F0);
michael@0 251 border-color: #1BA2CC;
michael@0 252 }
michael@0 253
michael@0 254 .message[category=cssparser] > .indent {
michael@0 255 -moz-border-end: solid #00b6f0 6px;
michael@0 256 }
michael@0 257
michael@0 258 .message[category=cssparser][severity=error] > .icon {
michael@0 259 background-image: -moz-image-rect(url(chrome://browser/skin/devtools/webconsole.png), 8, 16, 16, 8);
michael@0 260 }
michael@0 261
michael@0 262 .message[category=cssparser][severity=warn] > .icon {
michael@0 263 background-image: -moz-image-rect(url(chrome://browser/skin/devtools/webconsole.png), 8, 24, 16, 16);
michael@0 264 }
michael@0 265
michael@0 266 /* JS styles */
michael@0 267 .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
michael@0 268 background-image: linear-gradient(#FCB142, #FB9500);
michael@0 269 border-color: #E98A00;
michael@0 270 }
michael@0 271
michael@0 272 .message[category=exception] > .indent {
michael@0 273 -moz-border-end: solid #fb9500 6px;
michael@0 274 }
michael@0 275
michael@0 276 .message[category=exception][severity=error] > .icon {
michael@0 277 background-image: -moz-image-rect(url(chrome://browser/skin/devtools/webconsole.png), 16, 16, 24, 8);
michael@0 278 }
michael@0 279
michael@0 280 .message[category=exception][severity=warn] > .icon {
michael@0 281 background-image: -moz-image-rect(url(chrome://browser/skin/devtools/webconsole.png), 16, 24, 24, 16);
michael@0 282 }
michael@0 283
michael@0 284 /* Web Developer styles */
michael@0 285 .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
michael@0 286 background-image: linear-gradient(#B9B9B9, #AAAAAA);
michael@0 287 border-color: #929292;
michael@0 288 }
michael@0 289
michael@0 290 .message[category=console] > .indent {
michael@0 291 -moz-border-end: solid #cbcbcb 6px;
michael@0 292 }
michael@0 293
michael@0 294 .message[category=console][severity=error] > .icon,
michael@0 295 .message[category=output][severity=error] > .icon {
michael@0 296 background-image: -moz-image-rect(url(chrome://browser/skin/devtools/webconsole.png), 24, 16, 32, 8);
michael@0 297 }
michael@0 298
michael@0 299 .message[category=console][severity=warn] > .icon {
michael@0 300 background-image: -moz-image-rect(url(chrome://browser/skin/devtools/webconsole.png), 24, 24, 32, 16);
michael@0 301 }
michael@0 302
michael@0 303 .message[category=console][severity=info] > .icon {
michael@0 304 background-image: -moz-image-rect(url(chrome://browser/skin/devtools/webconsole.png), 24, 32, 32, 24);
michael@0 305 }
michael@0 306
michael@0 307 /* Input and output styles */
michael@0 308 .message[category=input] > .indent,
michael@0 309 .message[category=output] > .indent {
michael@0 310 -moz-border-end: solid #808080 6px;
michael@0 311 }
michael@0 312
michael@0 313 .message[category=input] > .icon {
michael@0 314 background-image: -moz-image-rect(url(chrome://browser/skin/devtools/webconsole.png), 24, 40, 32, 32);
michael@0 315 }
michael@0 316
michael@0 317 .message[category=output] > .icon {
michael@0 318 background-image: -moz-image-rect(url(chrome://browser/skin/devtools/webconsole.png), 24, 48, 32, 40);
michael@0 319 }
michael@0 320
michael@0 321 /* JSTerm Styles */
michael@0 322 .jsterm-input-node,
michael@0 323 .jsterm-complete-node {
michael@0 324 border: none;
michael@0 325 padding: 0 0 0 16px;
michael@0 326 -moz-appearance: none;
michael@0 327 background-color: transparent;
michael@0 328 }
michael@0 329
michael@0 330 .jsterm-input-node {
michael@0 331 background: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16) no-repeat;
michael@0 332 }
michael@0 333
michael@0 334 :-moz-any(.jsterm-input-node,
michael@0 335 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
michael@0 336 overflow-x: hidden;
michael@0 337 }
michael@0 338
michael@0 339 .inlined-variables-view .message-body {
michael@0 340 display: flex;
michael@0 341 flex-direction: column;
michael@0 342 }
michael@0 343 .inlined-variables-view iframe {
michael@0 344 display: block;
michael@0 345 flex: 1;
michael@0 346 margin-top: 5px;
michael@0 347 margin-bottom: 15px;
michael@0 348 -moz-margin-end: 15px;
michael@0 349 border: 1px solid rgba(128, 128, 128, .5);
michael@0 350 border-radius: 3px;
michael@0 351 }
michael@0 352
michael@0 353 #webconsole-sidebar > tabs {
michael@0 354 height: 0;
michael@0 355 border: none;
michael@0 356 }
michael@0 357
michael@0 358 .devtools-side-splitter ~ #webconsole-sidebar[hidden] {
michael@0 359 display: none;
michael@0 360 }
michael@0 361
michael@0 362 /* Security styles */
michael@0 363
michael@0 364 .message[category=security] > .indent {
michael@0 365 -moz-border-end: solid red 6px;
michael@0 366 }
michael@0 367
michael@0 368 .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
michael@0 369 background-image: linear-gradient(#FF3030, #FF7D7D);
michael@0 370 border-color: #D12C2C;
michael@0 371 }
michael@0 372
michael@0 373 .message[category=security][severity=error] > .icon {
michael@0 374 background-image: -moz-image-rect(url(chrome://browser/skin/devtools/webconsole.png), 32, 16, 40, 8);
michael@0 375 }
michael@0 376
michael@0 377 .message[category=security][severity=warn] > .icon {
michael@0 378 background-image: -moz-image-rect(url(chrome://browser/skin/devtools/webconsole.png), 32, 24, 40, 16);
michael@0 379 }
michael@0 380
michael@0 381 .navigation-marker {
michael@0 382 color: #aaa;
michael@0 383 background: linear-gradient(#aaa, #aaa) no-repeat left 50%;
michael@0 384 background-size: 100% 2px;
michael@0 385 margin-top: 6px;
michael@0 386 margin-bottom: 6px;
michael@0 387 font-size: 0.9em;
michael@0 388 }
michael@0 389
michael@0 390 .navigation-marker .url {
michael@0 391 -moz-padding-end: 9px;
michael@0 392 text-decoration: none;
michael@0 393 }
michael@0 394
michael@0 395 .stacktrace {
michael@0 396 display: none;
michael@0 397 list-style: none;
michael@0 398 padding: 0 1em 0 1.5em;
michael@0 399 margin: 5px 0 0 0;
michael@0 400 max-height: 10em;
michael@0 401 overflow-y: auto;
michael@0 402 border: 1px solid rgb(200,200,200);
michael@0 403 border-radius: 3px;
michael@0 404 }
michael@0 405
michael@0 406 .theme-light .message[severity=error] .stacktrace {
michael@0 407 background-color: rgba(255, 255, 255, 0.5);
michael@0 408 }
michael@0 409
michael@0 410 .theme-dark .message[severity=error] .stacktrace {
michael@0 411 background-color: rgba(0, 0, 0, 0.5);
michael@0 412 }
michael@0 413
michael@0 414 .message[open] .stacktrace {
michael@0 415 display: block;
michael@0 416 }
michael@0 417
michael@0 418 .message .theme-twisty {
michael@0 419 display: inline-block;
michael@0 420 vertical-align: middle;
michael@0 421 margin: 0 3px 0 0;
michael@0 422 }
michael@0 423
michael@0 424 .stacktrace li {
michael@0 425 display: flex;
michael@0 426 margin: 0;
michael@0 427 }
michael@0 428
michael@0 429 .stacktrace .function {
michael@0 430 display: block;
michael@0 431 flex: 1 1 auto;
michael@0 432 }
michael@0 433
michael@0 434 .cm-s-mozilla a[class] {
michael@0 435 font-style: italic;
michael@0 436 text-decoration: none;
michael@0 437 }
michael@0 438
michael@0 439 .cm-s-mozilla a[class]:hover,
michael@0 440 .cm-s-mozilla a[class]:focus {
michael@0 441 text-decoration: underline;
michael@0 442 }
michael@0 443
michael@0 444 /* Open DOMNode in inspector button */
michael@0 445 .open-inspector {
michael@0 446 background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0;
michael@0 447 padding-left: 16px;
michael@0 448 margin-left: 5px;
michael@0 449 cursor: pointer;
michael@0 450 }
michael@0 451
michael@0 452 .elementNode:hover .open-inspector,
michael@0 453 .open-inspector:hover {
michael@0 454 background-position: -32px 0;
michael@0 455 }
michael@0 456
michael@0 457 .open-inspector:active {
michael@0 458 background-position: -16px 0;
michael@0 459 }
michael@0 460
michael@0 461 /* Replace these values with CSS variables as available */
michael@0 462 .theme-dark .jsterm-input-container {
michael@0 463 background-color: #252c33; /* tabToolbarBackgroundColor */
michael@0 464 border-color: #14171a; /* mainBackgroundColor */
michael@0 465 }
michael@0 466
michael@0 467 .theme-dark .jsterm-input-node {
michael@0 468 color: #a9bacb; /* textColor */
michael@0 469 }
michael@0 470
michael@0 471 .theme-dark .jsterm-complete-node {
michael@0 472 color: #5c6773; /* commentColor */
michael@0 473 }
michael@0 474
michael@0 475 .theme-dark .navigation-marker .url {
michael@0 476 background: #14171a; /* mainBackgroundColor */
michael@0 477 }
michael@0 478
michael@0 479 .theme-dark .inlined-variables-view iframe {
michael@0 480 border-color: #333;
michael@0 481 }
michael@0 482
michael@0 483 .theme-dark .stacktrace {
michael@0 484 border-color: #333;
michael@0 485 }
michael@0 486
michael@0 487 .theme-light .jsterm-input-container {
michael@0 488 background-color: #fff; /* mainBackgroundColor */
michael@0 489 border-color: ThreeDShadow;
michael@0 490 }
michael@0 491
michael@0 492 .theme-light .jsterm-input-node {
michael@0 493 color: black; /* textColor */
michael@0 494 }
michael@0 495
michael@0 496 .theme-light .jsterm-complete-node {
michael@0 497 color: hsl(90,2%,46%); /* commentColor */
michael@0 498 }
michael@0 499
michael@0 500 .theme-light .navigation-marker .url {
michael@0 501 background: #fff; /* mainBackgroundColor */
michael@0 502 }
michael@0 503
michael@0 504 .theme-light .inlined-variables-view iframe {
michael@0 505 border-color: #ccc;
michael@0 506 }
michael@0 507
michael@0 508 .theme-light .stacktrace {
michael@0 509 border-color: #ccc;
michael@0 510 }
michael@0 511
michael@0 512 @media (max-width: 500px) {
michael@0 513 .message > .timestamp {
michael@0 514 display: none;
michael@0 515 }
michael@0 516 .toolbarbutton-text {
michael@0 517 display: none;
michael@0 518 }
michael@0 519 .hud-console-filter-toolbar .webconsole-filter-button {
michael@0 520 min-width: 40px;
michael@0 521 }
michael@0 522 .hud-console-filter-toolbar .webconsole-clear-console-button {
michael@0 523 min-width: 25px;
michael@0 524 }
michael@0 525 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
michael@0 526 width: 16px;
michael@0 527 height: 16px;
michael@0 528 margin-left: 1px;
michael@0 529 }
michael@0 530 .toolbarbutton-menubutton-dropmarker {
michael@0 531 margin: 0px;
michael@0 532 }
michael@0 533 }
michael@0 534
michael@0 535 @media (max-width: 300px) {
michael@0 536 .hud-console-filter-toolbar {
michael@0 537 -moz-box-orient: vertical;
michael@0 538 }
michael@0 539 .toolbarbutton-text {
michael@0 540 display: -moz-box;
michael@0 541 }
michael@0 542 .devtools-toolbarbutton {
michael@0 543 margin-top: 3px;
michael@0 544 }
michael@0 545 .hud-console-filter-toolbar .hud-filter-box,
michael@0 546 .hud-console-filter-toolbar .devtools-toolbarbutton {
michael@0 547 margin-top: 5px;
michael@0 548 }
michael@0 549 }

mercurial