summaryrefslogtreecommitdiffstats
path: root/browser/themes/shared/translations
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /browser/themes/shared/translations
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/themes/shared/translations')
-rw-r--r--browser/themes/shared/translations/beta.svg10
-rw-r--r--browser/themes/shared/translations/panel.css118
2 files changed, 128 insertions, 0 deletions
diff --git a/browser/themes/shared/translations/beta.svg b/browser/themes/shared/translations/beta.svg
new file mode 100644
index 0000000000..ec5eb666ba
--- /dev/null
+++ b/browser/themes/shared/translations/beta.svg
@@ -0,0 +1,10 @@
+<!-- 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/. -->
+<svg width="34" height="20" xmlns="http://www.w3.org/2000/svg">
+ <g fill="none" fill-rule="evenodd">
+ <path d="M4.48 13.88v-.86h2.4c.58 0 1.03-.11 1.33-.35.3-.23.45-.57.45-1.01v-.01c0-.3-.07-.55-.21-.75-.14-.2-.35-.35-.63-.45-.28-.1-.62-.15-1.03-.15h-2.3v-.83H6.5c.6 0 1.03-.1 1.33-.32.3-.2.44-.51.44-.92v-.01c0-.4-.13-.7-.4-.91a1.7 1.7 0 0 0-1.12-.33H4.48v-.86h2.48c.48 0 .89.08 1.23.24a1.78 1.78 0 0 1 1.07 1.7 1.78 1.78 0 0 1-.66 1.35c-.2.17-.43.27-.68.32v.08c.36.05.66.15.92.32s.46.39.6.66c.14.26.21.56.21.9v.02c0 .45-.1.84-.32 1.16-.2.32-.5.57-.9.75-.38.17-.85.26-1.4.26H4.47Zm-.48 0V6.12h.97v7.76H4ZM11.23 13.88V6.13h4.8V7H12.2v2.48h3.63v.86H12.2v2.67h3.83v.87zM19.8 13.88V7h-2.5v-.87h5.96V7h-2.5v6.88zM23.22 13.88l2.86-7.76h.74v1.26h-.3l-2.28 6.5h-1.02Zm1.3-2.22.3-.82h3.5l.3.82h-4.1Zm4.36 2.22-2.28-6.5V6.13h.44l2.85 7.75h-1.01Z"
+ fill="context-fill" fill-rule="nonzero"/>
+ <rect stroke="context-stroke" x=".5" y=".5" width="32.89" height="19" rx="3.5"/>
+ </g>
+</svg>
diff --git a/browser/themes/shared/translations/panel.css b/browser/themes/shared/translations/panel.css
new file mode 100644
index 0000000000..b7e961846d
--- /dev/null
+++ b/browser/themes/shared/translations/panel.css
@@ -0,0 +1,118 @@
+/* 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(#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;
+ }
+}
+
+#translations-panel-intro {
+ line-height: 1.6;
+}
+
+#translations-panel-settings > 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;
+ gap: var(--arrowpanel-padding);
+}
+
+#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);
+}
+
+#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;
+}
+
+#translations-panel-translate-hint-action:hover {
+ background-color: var(--button-hover-bgcolor);
+}
+
+#translations-panel-translate-hint-action:hover:active {
+ background-color: var(--button-active-bgcolor);
+}
+
+#translations-panel-translate-hint-action:focus-visible {
+ outline: var(--focus-outline);
+ outline-offset: var(--focus-outline-offset);
+}
+
+#translations-panel-error-message-hint {
+ margin-inline-start: 21px;
+ margin-block: 8px;
+}
+
+#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;
+}
+
+#translations-panel-error {
+ border: 1px solid currentColor;
+ border-radius: 4px;
+ padding: 12px;
+}