diff -r 000000000000 -r 6474c204b198 browser/themes/shared/devtools/canvasdebugger.inc.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/browser/themes/shared/devtools/canvasdebugger.inc.css Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,501 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +%filter substitution +%define darkCheckerboardBackground #000 +%define lightCheckerboardBackground #fff +%define checkerboardCell rgba(128,128,128,0.2) +%define checkerboardPattern linear-gradient(45deg, @checkerboardCell@ 25%, transparent 25%, transparent 75%, @checkerboardCell@ 75%, @checkerboardCell@), linear-gradient(45deg, @checkerboardCell@ 25%, transparent 25%, transparent 75%, @checkerboardCell@ 75%, @checkerboardCell@) +%define gutterWidth 3em +%define gutterPaddingStart 22px + +/* Reload and waiting notices */ + +.notice-container { + margin-top: -50vh; + font-size: 120%; +} + +.theme-dark .notice-container { + background: url(background-noise-toolbar.png), #343c45; /* Toolbars */ + color: #f5f7fa; /* Light foreground text */ +} + +.theme-light .notice-container { + background: url(background-noise-toolbar.png), #f0f1f2; /* Toolbars */ + color: #585959; /* Grey foreground text */ +} + +#reload-notice > button { + min-height: 2em; +} + +#empty-notice > button { + min-width: 30px; + min-height: 28px; + margin: 0; + list-style-image: url(profiler-stopwatch.png); + -moz-image-region: rect(0px,16px,16px,0px); +} + +#empty-notice > button .button-text { + display: none; +} + +.theme-dark #import-notice { + font-size: 250%; + color: rgba(255,255,255,0.2); +} + +.theme-light #import-notice { + font-size: 250%; + color: rgba(0,0,0,0.2); +} + +/* Snapshots pane */ + +#snapshots-pane > tabs { + -moz-border-end: 1px solid; +} + +#snapshots-pane .devtools-toolbar { + -moz-border-end: 1px solid; +} + +.theme-dark #snapshots-pane > tabs, +.theme-dark #snapshots-pane .devtools-toolbar { + -moz-border-end-color: black; /* Match the splitter color. */ +} + +.theme-light #snapshots-pane > tabs, +.theme-light #snapshots-pane .devtools-toolbar { + -moz-border-end-color: #aaa; /* Match the splitter color. */ +} + +#record-snapshot { + list-style-image: url("chrome://browser/skin/devtools/profiler-stopwatch.png"); + -moz-image-region: rect(0px,16px,16px,0px); +} + +#record-snapshot[checked] { + -moz-image-region: rect(0px,32px,16px,16px); +} + +/* Snapshots items */ + +.snapshot-item-thumbnail { + image-rendering: -moz-crisp-edges; + background-image: @checkerboardPattern@; + background-size: 12px 12px, 12px 12px; + background-position: 0px 0px, 6px 6px; + background-repeat: repeat, repeat; +} + +.snapshot-item-thumbnail[flipped=true] { + transform: scaleY(-1); +} + +.theme-dark .snapshot-item-thumbnail { + background-color: @darkCheckerboardBackground@; +} + +.theme-light .snapshot-item-thumbnail { + background-color: @lightCheckerboardBackground@; +} + +.snapshot-item-details { + -moz-padding-start: 6px; +} + +.snapshot-item-calls { + padding-top: 4px; + font-size: 80%; +} + +.snapshot-item-save { + padding-bottom: 2px; + font-size: 90%; +} + +.theme-dark .snapshot-item-calls, +.theme-dark .snapshot-item-save { + color: #b6babf; /* Foreground (Text) - Grey */ +} + +.theme-light .snapshot-item-calls, +.theme-light .snapshot-item-save { + color: #585959; /* Foreground (Text) - Grey */ +} + +.snapshot-item-save { + text-decoration: underline; + cursor: pointer; +} + +.snapshot-item-save[disabled=true] { + text-decoration: none; + pointer-events: none; +} + +.snapshot-item-footer[saving]::before { + display: inline-block; + content: ""; + background: url("chrome://global/skin/icons/loading_16.png") center no-repeat; + width: 16px; + height: 16px; + margin-top: -2px; + -moz-margin-end: 4px; +} + +#snapshots-list .selected label { + /* Text inside a selected item should not be custom colored. */ + color: inherit !important; +} + +/* Debugging pane controls */ + +#resume { + list-style-image: url(debugger-play.png); + -moz-image-region: rect(0px,32px,16px,16px); +} + +#step-over { + list-style-image: url(debugger-step-over.png); +} + +#step-in { + list-style-image: url(debugger-step-in.png); +} + +#step-out { + list-style-image: url(debugger-step-out.png); +} + +#debugging-controls > toolbarbutton { + transition: opacity 0.15s ease-in-out; +} + +#debugging-controls > toolbarbutton[disabled=true] { + opacity: 0.5; +} + +#calls-slider { + -moz-padding-end: 24px; +} + +#calls-slider .scale-slider { + margin: 0; +} + +#debugging-toolbar-sizer-button { + /* This button's only purpose in life is to make the + container .devtools-toolbar have the right height. */ + visibility: hidden; + min-width: 1px; +} + +/* Calls list pane */ + +#calls-list .side-menu-widget-container { + background: transparent; +} + +#calls-list .side-menu-widget-item { + padding: 0; +} + +/* Calls list items */ + +.theme-dark #calls-list .side-menu-widget-item { + border-color: #111; + border-bottom-color: transparent; +} + +.theme-light #calls-list .side-menu-widget-item { + border-color: #eee; + border-bottom-color: transparent; +} + +.theme-dark .call-item-view:hover { + background-color: rgba(255,255,255,.025); +} + +.theme-light .call-item-view:hover { + background-color: rgba(0,0,0,.025); +} + +.theme-dark .call-item-view[draw-call] { + background-color: rgba(112,191,83,0.15); +} + +.theme-light .call-item-view[draw-call] { + background-color: rgba(44,187,15,0.1); +} + +.theme-dark .call-item-view[interesting-call] { + background-color: rgba(223,128,255,0.15); +} + +.theme-light .call-item-view[interesting-call] { + background-color: rgba(184,46,229,0.1); +} + +.call-item-gutter { + width: calc(@gutterWidth@ + @gutterPaddingStart@); + -moz-padding-start: @gutterPaddingStart@; + -moz-padding-end: 4px; + padding-top: 2px; + padding-bottom: 2px; + -moz-border-end: 1px solid; + -moz-margin-end: 6px; +} + +.selected .call-item-gutter { + background-image: url("editor-debug-location.png"); + background-repeat: no-repeat; + background-position: 6px center; + background-size: 12px; +} + +.theme-dark .call-item-gutter { + background-color: #181d20; + color: #5f7387; + border-color: #000; +} + +.theme-light .call-item-gutter { + background-color: #f7f7f7; + color: #667380; + border-color: #aaa; +} + +.call-item-index { + text-align: end; +} + +.theme-dark .call-item-context { + color: #eb5368; /* Highlight Orange */ +} + +.theme-light .call-item-context { + color: #f13c00; /* Highlight Orange */ +} + +.theme-dark .call-item-name { + color: #46afe3; /* Highlight Blue */ +} + +.theme-light .call-item-name { + color: #0088cc; /* Highlight Blue */ +} + +.call-item-location { + -moz-padding-start: 2px; + -moz-padding-end: 6px; + text-align: end; + cursor: pointer; +} + +.theme-dark .call-item-location:hover { + color: #0088cc; /* Highlight Blue */ +} + +.theme-light .call-item-location:hover { + color: #46afe3; /* Highlight Blue */ +} + +.call-item-view:hover .call-item-location, +.call-item-view[expanded] .call-item-location { + text-decoration: underline; +} + +.theme-dark .call-item-location { + border-color: #111; + color: #5e88b0; /* Highlight Blue-Grey */ +} + +.theme-light .call-item-location { + border-color: #eee; + color: #5f88b0; /* Highlight Blue-Grey */ +} + +.call-item-stack { + -moz-padding-start: calc(@gutterWidth@ + @gutterPaddingStart@); + padding-bottom: 10px; +} + +.theme-dark .call-item-stack { + background: rgba(0,0,0,0.9); +} + +.theme-light .call-item-stack { + background: rgba(255,255,255,0.9); +} + +.call-item-stack-fn { + padding-top: 2px; + padding-bottom: 2px; +} + +.call-item-stack-fn-location { + -moz-padding-start: 2px; + -moz-padding-end: 6px; + text-align: end; + cursor: pointer; + text-decoration: underline; +} + +.theme-dark .call-item-stack-fn-name { + color: #a9bacb; /* Content (Text) - Light */ +} + +.theme-light .call-item-stack-fn-name { + color: #667380; /* Content (Text) - Dark Grey */ +} + +.theme-dark .call-item-stack-fn-location { + color: #5e88b0; /* Highlight Blue-Grey */ +} + +.theme-light .call-item-stack-fn-location { + color: #5e88b0; /* Highlight Blue-Grey */ +} + +.theme-dark .call-item-stack-fn-location:hover { + color: #0088cc; /* Highlight Blue */ +} + +.theme-light .call-item-stack-fn-location:hover { + color: #46afe3; /* Highlight Blue */ +} + +#calls-list .selected .call-item-contents > label:not(.call-item-gutter) { + /* Text inside a selected item should not be custom colored. */ + color: inherit !important; +} + +/* Rendering preview */ + +#screenshot-container { + background-image: @checkerboardPattern@; + background-size: 30px 30px, 30px 30px; + background-position: 0px 0px, 15px 15px; + background-repeat: repeat, repeat; +} + +.theme-dark #screenshot-container { + background-color: @darkCheckerboardBackground@; +} + +.theme-light #screenshot-container { + background-color: @lightCheckerboardBackground@; +} + +@media (min-width: 701px) { + #screenshot-container { + width: 30vw; + max-width: 50vw; + min-width: 100px; + } +} + +@media (max-width: 700px) { + #screenshot-container { + height: 40vh; + max-height: 70vh; + min-height: 100px; + } +} + +#screenshot-image { + background-image: -moz-element(#screenshot-rendering); + background-size: contain; + background-position: center, center; + background-repeat: no-repeat; +} + +#screenshot-image[flipped=true] { + transform: scaleY(-1); +} + +#screenshot-dimensions { + padding-top: 4px; + padding-bottom: 4px; + text-align: center; +} + +.theme-dark #screenshot-dimensions { + background-color: rgba(0,0,0,0.4); +} + +.theme-light #screenshot-dimensions { + background-color: rgba(255,255,255,0.8); +} + +/* Snapshot filmstrip */ + +#snapshot-filmstrip { + overflow: hidden; +} + +.theme-dark #snapshot-filmstrip { + border-top: 1px solid #000; + background-image: url(background-noise-toolbar.png); + color: #f5f7fa; /* Light foreground text */ +} + +.theme-light #snapshot-filmstrip { + border-top: 1px solid #aaa; + background-image: url(background-noise-toolbar.png); + color: #585959; /* Grey foreground text */ +} + +.filmstrip-thumbnail { + image-rendering: -moz-crisp-edges; + background-image: @checkerboardPattern@; + background-size: 12px 12px, 12px 12px; + background-position: 0px -1px, 6px 5px; + background-repeat: repeat, repeat; + background-origin: content-box; + cursor: pointer; + padding-top: 1px; + padding-bottom: 1px; + transition: opacity 0.1s ease-in-out; +} + +.filmstrip-thumbnail[flipped=true] { + transform: scaleY(-1); +} + +.theme-dark .filmstrip-thumbnail { + background-color: @darkCheckerboardBackground@; +} + +.theme-light .filmstrip-thumbnail { + background-color: @lightCheckerboardBackground@; +} + +.theme-dark .filmstrip-thumbnail { + -moz-border-end: 1px solid #000; +} + +.theme-light .filmstrip-thumbnail { + -moz-border-end: 1px solid #aaa; +} + +.theme-dark #snapshot-filmstrip > .filmstrip-thumbnail:hover, +.theme-dark #snapshot-filmstrip:not(:hover) > .filmstrip-thumbnail[highlighted] { + border: 1px solid #46afe3; /* Highlight Blue */ + margin: 0 0 0 -1px; + padding: 0; + opacity: 0.66; +} + +.theme-light #snapshot-filmstrip > .filmstrip-thumbnail:hover, +.theme-light #snapshot-filmstrip:not(:hover) > .filmstrip-thumbnail[highlighted] { + border: 1px solid #0088cc; /* Highlight Blue */ + margin: 0 0 0 -1px; + padding: 0; + opacity: 0.66; +}