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