/* 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 */ #categories { display: flex; flex-direction: column; } .category { align-items: center; /* Override a `background-color` set on all buttons by common.inc.css */ background-color: transparent; display: flex; flex-direction: row; } .category.selected { /* Override a `color: inherit !important` forced on all buttons by common.inc.css */ color: var(--in-content-category-text-selected) !important; } .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; width: 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 { align-items: center; background-color: #f3b0b0; display: flex; justify-content: space-between; } .service-worker-multi-process { background-color: #ffeebb; line-height: 1.5em; } .service-worker-multi-process .update-button { margin: 5px 0; } .warning { display: inline-block; width: 12px; height: 12px; vertical-align: 0; margin-inline-end: 8px; background-image: url(chrome://devtools/skin/images/alert.svg); background-repeat: no-repeat; background-size: contain; -moz-context-properties: fill; fill: #d7b600; } .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. */ fill: #0c0c0d; } .addons-options { flex: 1; } .service-worker-disabled-label, .addons-debugging-label, .addons-web-ext-tip { display: inline-block; margin-inline-end: 1ch; } .addons-tip { display: flex; align-items: center; margin-top: 1em; margin-bottom: 1em; height: 24px; } .addons-tip-icon { width: 24px; height: 24px; background-image: url(chrome://devtools/skin/images/help.svg); background-repeat: no-repeat; flex-shrink: 0; margin-inline-end: 8px; } .error-page { display: flex; justify-content: center; align-items: center; flex-direction: column; width: 100%; height: 100%; } .error-page .error-page-details { color: gray; } #addons-panel h2 { font-size: 1.5rem; font-weight: bold; } .addon-target-container { list-style-type: none; margin: 16px 0; } .target-card-heading { margin: 0; } .target-card-heading { align-items: center; display: flex; margin: 0; padding: 0 0 16px; font-size: 15px; font-weight: 600; } .target-card-heading-icon { height: 24px; width: 24px; margin-inline-end: 16px; } .target-card-actions { border-top: 1px solid rgba(0, 0, 0, 0.2); padding-top: 16px; } .target-card-action-link { background: none; border: none; /* !important overrides the common.css button color */ color: var(--in-content-link-color) !important; font-size: 13px; /* Use some negative top margin to account for the padding and keep the * button vertically centred. */ margin: -4px 0 0 12px; min-width: auto; padding: 4px; } .target-card-action-link:first-of-type { /* Other action buttons will have 12px of margin to space between each other, * but for the first button subtract the start padding to align with the border. */ margin-inline-start: -4px; } .target-card-action-link:active, .target-card-action-link:hover, .target-card-action-link:enabled:hover:active { background: none; } .target-card-action-link:disabled { color: #999; opacity: 1; } .target-card-action-link:enabled:focus, .target-card-action-link:enabled:hover { background: none; color: var(--in-content-link-color-hover) !important; cursor: pointer; text-decoration: underline; } .target-card-action-link:enabled:hover:active { color: var(--in-content-link-color-active) !important; text-decoration: none; } .addon-target-icon.target-icon { margin-inline-end: 16px; } .addon-target-info { display: grid; 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-info-more { padding-left: 1ch; } .addon-target-messages { border-bottom: 1px solid rgba(0, 0, 0, 0.2); margin-bottom: 16px; padding: 0 0 12px 0; } .addon-target-message { list-style-type: none; padding: 4px 0; } .addon-target-message:first-of-type { padding-top: 0; } .addon-target-warning-message { color: #a47f00; } /* 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; }