/* 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/. */ html, body { height: 100%; width: 100%; } h2, h3, h4 { margin-bottom: 10px; } button { padding-left: 20px; padding-right: 20px; min-width: 100px; margin: 0 4px; } /* Category panels */ .category { display: flex; flex-direction: row; align-items: center; } .category-name { cursor: default; } .app { height: 100%; width: 100%; display: flex; flex-direction: row; } .main-content { flex: 1; } .panel { max-width: 800px; margin-bottom: 35px; } /* Targets */ .target-list { margin: 0; padding: 0; } .target-container { margin-top: 5px; min-height: 34px; display: flex; flex-direction: row; align-items: start; } .target-icon { height: 24px; margin-inline-end: 5px; } .target-icon:not([src]) { display: none; } .inverted-icons .target-icon { filter: invert(30%); } .target { flex: 1; margin-top: 2px; /* This is silly: https://bugzilla.mozilla.org/show_bug.cgi?id=1086218#c4. */ min-width: 0; } .target-details { margin: 0; padding: 0; list-style-type: none } .target-detail { display: flex; font-size: 12px; margin-top: 7px; margin-bottom: 7px; } .target-detail a { cursor: pointer; white-space: nowrap; } .target-detail strong { white-space: nowrap; } .target-detail span { /* Truncate items that are too long (e.g. URLs that would break the UI). */ overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .target-detail > :not(:first-child) { margin-inline-start: 8px; } .target-status { box-sizing: border-box; display: inline-block; min-width: 50px; margin-top: 4px; margin-inline-end: 5px; padding: 2px; border-width: 1px; border-style: solid; font-size: 0.6em; text-align: center; } .target-status-stopped { border-color: grey; background-color: lightgrey; } .target-status-running { border-color: limegreen; background-color: palegreen; } .target-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .addons-controls { display: flex; flex-direction: row; } .addons-install-error, .service-worker-multi-process { padding: 5px 10px; margin-top: 5px; margin-inline-end: 4px; } .addons-install-error { background-color: #f3b0b0; } .service-worker-multi-process { background-color: #ffeebb; line-height: 1.5em; } .service-worker-multi-process .update-button { margin: 5px 0; } .warning { background-image: url(chrome://devtools/skin/images/alerticon-warning.png); background-size: 13px 12px; display: inline-block; width: 13px; height: 12px; margin-inline-end: 10px; } @media (min-resolution: 1.1dppx) { .warning { background-image: url(chrome://devtools/skin/images/alerticon-warning@2x.png); } } .addons-install-error .warning, .service-worker-multi-process .warning { /* The warning icon can be hard to see on red / yellow backgrounds, this turns the icon to a black icon. */ filter: brightness(0%); } .addons-options { flex: 1; } .addons-debugging-label { display: inline-block; margin-inline-end: 1ch; } .error-page { display: flex; justify-content: center; align-items: center; flex-direction: column; width: 100%; height: 100%; } .error-page .error-page-details { color: gray; } .addon-target-container { background: #fff; box-shadow: 0 0 1px rgba(0, 0, 0, 0.12); list-style-type: none; margin: 0 0 8px; padding: 4px 16px; transition: box-shadow 150ms; } .addon-target-container:hover { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24); } .addon-target-container .target { align-items: center; display: flex; margin: 0; padding: 16px 0; } .addon-target-actions { border-top: 1px solid rgba(0, 0, 0, 0.2); } .addon-target-container .target-icon { margin-inline-end: 16px; } .addon-target-container .name { align-self: center; font-size: 16px; font-weight: 600; } .addon-target-info { display: grid; font-size: 14px; grid-template-columns: 128px 1fr; } .addon-target-info-label { padding-inline-end: 8px; padding-bottom: 8px; } .addon-target-info-label:last-of-type { padding-bottom: 16px; } .addon-target-info-content { margin: 0; } .addon-target-button { background: none; border: none; color: #0087ff; font-size: 14px; margin: 12px; min-width: auto; padding: 4px; transition: color 150ms; } .addon-target-button:active, .addon-target-button:hover, .addon-target-button:enabled:hover:active { background: none; } .addon-target-button:disabled { color: #999; opacity: 1; } .addon-target-button:enabled:focus, .addon-target-button:enabled:hover { background: none; color: #0052cc; cursor: pointer; text-decoration: underline; } .addon-target-button:enabled:hover:active { color: #003399; text-decoration: none; } .addon-target-button:first-of-type { /* Subtract the start padding so the button is still a bigger click target but * lines up with the icon. */ margin-inline-start: -4px; } /* We want the ellipsis on the left-hand-side, so make the parent RTL * with an ellipsis and the child can be LTR. */ .file-path { direction: rtl; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-path-inner { direction: ltr; unicode-bidi: plaintext; }