/* 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/. */ .translations-panel-view { font: menu; width: 31em; } :where(#full-page-translations-panel) :is(description, label, menulist) { margin: 0; } .translations-panel-header { text-align: initial; padding: var(--arrowpanel-padding); padding-bottom: 0; } h1.translations-panel-header-wrapper { flex-grow: 0; } .translations-panel-beta { flex-shrink: 0; flex-grow: 1; } .translations-panel-beta-icon { list-style-image: url(chrome://browser/skin/translations/beta.svg); width: 34px; height: 20px; -moz-context-properties: fill, stroke; fill: currentColor; stroke: currentColor; margin: 2px 8px; } @media (prefers-contrast: no-preference) and (prefers-color-scheme: light) { .translations-panel-beta-icon { opacity: 0.8; } } #full-page-translations-panel-intro { line-height: 1.6; margin-block-end: var(--arrowpanel-padding); } .translations-panel-settings-gear-icon > image { /* Override the panel-info-button with a gear icon. */ list-style-image: url(chrome://global/skin/icons/settings.svg); } .translations-panel-content { padding: var(--arrowpanel-padding); padding-block-end: 8px; } #full-page-translations-panel-lang-selection > label { margin-block: var(--arrowpanel-padding) 6px; } /* The default styling is to dim the default, but here override it so that it still uses the primary color. */ .translations-panel-footer > button[default][disabled="true"] { color: var(--button-primary-color); background-color: var(--button-primary-bgcolor); } #full-page-translations-panel-translate-hint-action { appearance: none; background-color: var(--button-bgcolor); border-radius: 4px; color: var(--button-color); padding: 8px 16px; font-size: 0.9em; } #full-page-translations-panel-translate-hint-action:hover { background-color: var(--button-hover-bgcolor); } #full-page-translations-panel-translate-hint-action:hover:active { background-color: var(--button-active-bgcolor); } #full-page-translations-panel-translate-hint-action:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-outline-offset); } #full-page-translations-panel-error-message-hint { margin-inline-start: 21px; margin-block: 8px; } #full-page-translations-panel-error-message { font-weight: 600; } .translations-panel-error-icon { -moz-context-properties: fill; fill: currentColor; list-style-image: url(chrome://global/skin/icons/error.svg); margin-inline-end: 5px; width: 16px; } .translations-panel-error-header { align-items: start; } #full-page-translations-panel-error { border: 1px solid currentColor; border-radius: 4px; padding: 12px; } .select-translations-panel-button { align-items: center; justify-content: center; margin-inline: 0; } .select-translations-panel-content { padding: var(--arrowpanel-padding); padding-block: 4px; } .select-translations-panel-copy-button { background-color: transparent; font: message-box; font-weight: var(--font-weight-bold); &::before { content: url(chrome://global/skin/icons/edit-copy.svg); fill: currentColor; margin-inline-end: 5px; -moz-context-properties: fill; } } .select-translations-panel-header { padding: var(--arrowpanel-padding); text-align: initial; } .select-translations-panel-label { margin-inline: 2px; } #select-translations-panel-lang-selection { gap: 6px; } #select-translations-panel-translation-area { height: 8em; margin-inline: 5px; resize: none; }