2017-11-08 19:36:43 +03:00
|
|
|
/* 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/. */
|
|
|
|
|
2019-10-11 15:34:54 +03:00
|
|
|
:root {
|
|
|
|
--highlight-color: var(--blue-55);
|
|
|
|
--slider-thumb-color: var(--grey-50);
|
|
|
|
--slider-track-color: var(--grey-30);
|
|
|
|
}
|
|
|
|
|
|
|
|
:root.theme-dark {
|
|
|
|
--slider-thumb-color: var(--grey-40);
|
|
|
|
--slider-track-color: var(--grey-60);
|
|
|
|
}
|
|
|
|
|
2017-11-08 19:36:43 +03:00
|
|
|
.perf {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2019-09-04 23:05:52 +03:00
|
|
|
.perf-popup {
|
|
|
|
padding: 7px 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-devtools {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
2017-11-08 19:36:43 +03:00
|
|
|
}
|
|
|
|
|
2018-04-10 21:13:49 +03:00
|
|
|
.perf-button-image {
|
|
|
|
vertical-align: text-top;
|
|
|
|
padding-inline-end: 4px;
|
2019-10-11 15:34:54 +03:00
|
|
|
-moz-context-properties: fill;
|
|
|
|
fill: var(--theme-icon-color);
|
2018-04-10 21:13:49 +03:00
|
|
|
}
|
|
|
|
|
2018-04-13 23:29:34 +03:00
|
|
|
.perf-button-container {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2019-09-04 23:05:52 +03:00
|
|
|
.perf-devtools .perf-button-container {
|
|
|
|
margin-top: 65px;
|
|
|
|
}
|
|
|
|
|
2017-11-08 19:36:43 +03:00
|
|
|
.perf-additional-message {
|
|
|
|
margin: 10px;
|
|
|
|
}
|
2018-04-10 21:13:49 +03:00
|
|
|
|
|
|
|
.perf > * {
|
|
|
|
max-width: 440px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-description {
|
|
|
|
line-height: 1.4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-external-link {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
color: var(--blue-60);
|
|
|
|
text-decoration: underline;
|
|
|
|
white-space: nowrap;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Settings */
|
|
|
|
|
|
|
|
.perf-settings {
|
|
|
|
width: 100%;
|
2019-09-04 23:05:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.perf-devtools .perf-settings {
|
2018-04-10 21:13:49 +03:00
|
|
|
margin: 50px 0 25px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-title {
|
|
|
|
padding: 5px 10px;
|
|
|
|
margin-bottom: 15px;
|
2019-10-11 15:34:54 +03:00
|
|
|
background-color: var(--toolbarbutton-background);
|
|
|
|
border: rgba(138,161,180,0.2) 1px solid;
|
2018-04-10 21:13:49 +03:00
|
|
|
font-size: 11px;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-row {
|
|
|
|
display: flex;
|
|
|
|
overflow: hidden;
|
|
|
|
line-height: 1.8;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-controls > .tree {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-row.focused {
|
|
|
|
background-color: var(--theme-selection-background);
|
|
|
|
color: var(--theme-selection-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-label {
|
|
|
|
height: 30px;
|
|
|
|
min-width: 110px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-value {
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-range-input {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-range-input-el {
|
|
|
|
width: 100%;
|
2019-10-11 15:34:54 +03:00
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-range-input-el::-moz-focus-outer {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-range-input-el::-moz-range-thumb {
|
|
|
|
background-color: var(--slider-thumb-color);
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-range-input-el:focus::-moz-range-thumb {
|
|
|
|
background-color: var(--highlight-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-range-input-el::-moz-range-track {
|
|
|
|
background-color: var(--slider-track-color);
|
|
|
|
height: 3px;
|
2018-04-10 21:13:49 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-range-value {
|
|
|
|
min-width: 70px;
|
|
|
|
text-align: end;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-notches {
|
|
|
|
height: 14px;
|
|
|
|
margin: 5px 0 10px;
|
|
|
|
margin-inline-start: 0.7em;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-notch {
|
|
|
|
margin-right: 1px;
|
|
|
|
flex: 1;
|
2019-10-11 15:34:54 +03:00
|
|
|
border: 1px solid var(--theme-toolbarbutton-active-background);
|
2018-04-10 21:13:49 +03:00
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-notch-normal.perf-settings-notch-active {
|
|
|
|
border-color: hsl(90, 90%, 40%);
|
|
|
|
background-color: hsla(90, 90%, 40%, 0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-notch-warning.perf-settings-notch-active {
|
|
|
|
border-color: hsl(45, 100%, 49%);
|
|
|
|
background-color: hsla(45, 100%, 49%, 0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-notch-critical.perf-settings-notch-active {
|
|
|
|
border-color: hsl(0, 90%, 40%);
|
|
|
|
background-color: hsla(0, 90%, 40%, 0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-text-input {
|
|
|
|
width: 100%;
|
|
|
|
padding: 4px;
|
|
|
|
box-sizing: border-box;
|
2019-10-11 15:34:54 +03:00
|
|
|
border: 1px solid var(--theme-splitter-color);
|
|
|
|
background-color: var(--theme-body-background);
|
|
|
|
color: var(--theme-body-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-text-input:focus {
|
|
|
|
border-color: var(--blue-50);
|
|
|
|
outline: none;
|
2018-04-10 21:13:49 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-text-label {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-details-contents {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-details-contents-slider {
|
|
|
|
padding: 10px;
|
|
|
|
margin: 0 0 18px;
|
|
|
|
border: var(--grey-20) 1px solid;
|
|
|
|
background-color: var(--grey-10);
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateY(-100px);
|
|
|
|
transition-duration: 250ms;
|
2019-09-04 23:05:52 +03:00
|
|
|
transition-timing-function: cubic-bezier(0.07, 0.95, 0, 1);
|
2018-04-10 21:13:49 +03:00
|
|
|
transition-property: transform, opacity;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-details[open] .perf-settings-details-contents-slider {
|
|
|
|
opacity: 1;
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
|
2019-10-11 15:34:54 +03:00
|
|
|
.theme-dark .perf-settings-details[open] .perf-settings-details-contents-slider {
|
|
|
|
background-color: var(--theme-toolbar-background);
|
|
|
|
border-color: var(--grey-70);
|
|
|
|
}
|
|
|
|
|
2018-04-10 21:13:49 +03:00
|
|
|
.perf-settings-summary {
|
2019-09-04 23:05:52 +03:00
|
|
|
/* This is a little bit odd, but in order to match the heights of the elements and
|
|
|
|
* have a fairly large hit area for the summary element, make the element position
|
|
|
|
* relative, and adjust the position up by a few pixels. This maintains positioning,
|
|
|
|
* but also provides a larger hit area for the dropdown with the padding property. */
|
|
|
|
position: relative;
|
|
|
|
top: -4px;
|
|
|
|
padding: 8px 0;
|
2018-04-10 21:13:49 +03:00
|
|
|
cursor: default;
|
2019-08-29 13:12:25 +03:00
|
|
|
user-select: none;
|
2018-04-10 21:13:49 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-thread-columns {
|
|
|
|
margin-bottom: 20px;
|
|
|
|
display: flex;
|
|
|
|
line-height: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-thread-column {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-checkbox-label {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-feature-label {
|
|
|
|
margin: 16px 0;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-feature-label {
|
|
|
|
margin: 16px 0;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-checkbox {
|
|
|
|
align-self: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-feature-title {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-feature-name {
|
|
|
|
width: 130px;
|
|
|
|
line-height: 1.6;
|
|
|
|
}
|
|
|
|
|
2019-11-12 22:07:46 +03:00
|
|
|
.perf-settings-feature-disabled-reason {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-checkbox-label-disabled {
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-features-disabled-title {
|
|
|
|
margin: 26px 0 18px;
|
|
|
|
font-size: 13px;
|
|
|
|
}
|
|
|
|
|
2018-04-10 21:13:49 +03:00
|
|
|
.perf-settings-subtext {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2019-02-07 22:43:47 +03:00
|
|
|
|
|
|
|
.perf-settings-dir-list {
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
|
|
|
height: 100px;
|
2019-10-11 15:34:54 +03:00
|
|
|
border: 1px solid var(--theme-splitter-color);
|
2019-02-07 22:43:47 +03:00
|
|
|
padding: 0;
|
|
|
|
overflow-y: auto;
|
2019-10-11 15:34:54 +03:00
|
|
|
background-color: var(--theme-body-background);
|
|
|
|
color: var(--theme-body-color);
|
2019-02-07 22:43:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.pref-settings-dir-list-item {
|
|
|
|
padding: 3px 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pref-settings-dir-list-item::before {
|
|
|
|
content: url(chrome://devtools/skin/images/folder.svg);
|
|
|
|
display: inline-block;
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
margin-inline-end: 4px;
|
|
|
|
vertical-align: -2px;
|
2019-10-11 15:34:54 +03:00
|
|
|
-moz-context-properties: fill;
|
|
|
|
fill: var(--theme-icon-color);
|
2019-02-07 22:43:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.perf-settings-dir-list-button-group {
|
|
|
|
padding: 4px 2px;
|
|
|
|
}
|
2019-09-04 23:05:52 +03:00
|
|
|
|
2019-10-11 15:34:54 +03:00
|
|
|
.perf-settings-dir-list-button-group input[type=button] {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
2019-09-04 23:05:52 +03:00
|
|
|
/* See https://design.firefox.com/photon/components/buttons.html for the spec */
|
|
|
|
.perf-photon-button {
|
|
|
|
--blue-50-a30: rgba(10, 132, 255, 0.3);
|
|
|
|
padding: 0 8px;
|
|
|
|
border: none;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
/* reset default styles */
|
|
|
|
background: none;
|
|
|
|
|
|
|
|
/* photon styles */
|
2019-10-11 15:34:54 +03:00
|
|
|
background-color: var(--toolbarbutton-background);
|
2019-09-04 23:05:52 +03:00
|
|
|
border-radius: 2px;
|
2019-10-11 15:34:54 +03:00
|
|
|
color: var(--theme-body-color);
|
2019-09-04 23:05:52 +03:00
|
|
|
font: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* This is a Firefox-specific style because Firefox adds a focusring at a bad
|
|
|
|
* position. We're adding our own below. */
|
|
|
|
.perf-photon-button::-moz-focus-inner {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-photon-button:hover:active:not([disabled]) {
|
|
|
|
background-color: var(--grey-90-a30);
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-photon-button-primary,
|
|
|
|
.perf-photon-button-default {
|
|
|
|
min-width: 132px;
|
|
|
|
height: 32px;
|
|
|
|
padding: 0 8px;
|
|
|
|
font-size: 13px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-photon-button-primary {
|
|
|
|
background-color: var(--blue-60);
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-photon-button-primary:hover:not([disabled]) {
|
|
|
|
background-color: var(--blue-70);
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-photon-button-primary:hover:active:not([disabled]) {
|
|
|
|
background-color: var(--blue-80);
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-photon-button[disabled] {
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-photon-button.perf-button {
|
|
|
|
margin: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
button.perf-photon-button:focus {
|
|
|
|
box-shadow: 0 0 0 1px var(--blue-50) inset, 0 0 0 1px var(--blue-50),
|
|
|
|
0 0 0 4px var(--blue-50-a30);
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.perf-photon-button:focus {
|
|
|
|
box-shadow: 0 0 0 2px var(--blue-50), 0 0 0 6px var(--blue-50-a30);
|
|
|
|
outline: 0;
|
|
|
|
}
|
2019-11-12 22:06:48 +03:00
|
|
|
|
|
|
|
.perf-photon-button-micro {
|
|
|
|
height: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Photon message bar - https://design.firefox.com/photon/components/message-bars.html */
|
|
|
|
|
|
|
|
.perf-photon-message-bar {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
min-height: 32px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
font-size: 13px;
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 1.4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-photon-message-bar-warning {
|
|
|
|
/* This should include an info icon, but it's left out since it's probably not worth
|
|
|
|
* adding and maintaining an extra icon here. */
|
|
|
|
padding: 4px 8px;
|
|
|
|
background: var(--yellow-50);
|
|
|
|
color: var(--yellow-90);
|
|
|
|
fill: var(--yellow-90);
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-photon-message-bar-warning-icon {
|
|
|
|
background: url("chrome://global/skin/icons/warning.svg");
|
|
|
|
-moz-context-properties: fill;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
margin: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-photon-message-bar .perf-photon-button {
|
|
|
|
margin-inline-start: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-photon-message-bar-warning .perf-photon-button {
|
|
|
|
background-color: var(--yellow-60);
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-photon-message-bar-warning .perf-photon-button:hover {
|
|
|
|
background-color: var(--yellow-70);
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-photon-message-bar-warning .perf-photon-button:hover:active {
|
|
|
|
background-color: var(--yellow-80);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Restart prompt */
|
|
|
|
|
|
|
|
.perf-env-restart {
|
|
|
|
/* Create an empty space at the top of the page. */
|
|
|
|
width: 100%;
|
|
|
|
height: 38px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.perf-env-restart-fixed {
|
|
|
|
/* This style is for the floating bar */
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
/* Create a new stacking context, so that the fixed positioning will be over the
|
|
|
|
* rest of the components */
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
border-radius: 0;
|
|
|
|
}
|