summaryrefslogtreecommitdiffstats
path: root/browser/themes/shared/migration
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /browser/themes/shared/migration
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/themes/shared/migration')
-rw-r--r--browser/themes/shared/migration/migration-dialog-window.css9
-rw-r--r--browser/themes/shared/migration/migration-wizard.css334
-rw-r--r--browser/themes/shared/migration/progress-mask.svg7
-rw-r--r--browser/themes/shared/migration/safari-icon-3dots.svg7
-rw-r--r--browser/themes/shared/migration/success.svg6
5 files changed, 363 insertions, 0 deletions
diff --git a/browser/themes/shared/migration/migration-dialog-window.css b/browser/themes/shared/migration/migration-dialog-window.css
new file mode 100644
index 0000000000..686f6cfe9c
--- /dev/null
+++ b/browser/themes/shared/migration/migration-dialog-window.css
@@ -0,0 +1,9 @@
+/* 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/. */
+
+@import url("chrome://global/skin/in-content/common.css");
+
+body {
+ padding: 24px;
+}
diff --git a/browser/themes/shared/migration/migration-wizard.css b/browser/themes/shared/migration/migration-wizard.css
new file mode 100644
index 0000000000..31879b0977
--- /dev/null
+++ b/browser/themes/shared/migration/migration-wizard.css
@@ -0,0 +1,334 @@
+/* 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/. */
+
+@import url("chrome://global/skin/in-content/common.css");
+
+:host {
+ display: flex;
+ flex-direction: column;
+ text-align: start;
+ width: 22.34em;
+}
+
+h1 {
+ font-size: 1.30em;
+ font-weight: normal;
+ margin-block: 0 16px;
+ min-height: 1em;
+}
+
+ol {
+ padding-inline-start: 24px;
+ margin-block: 16px 0;
+}
+
+li:not(:last-child) {
+ margin-block-end: 16px;
+}
+
+input[type="checkbox"] {
+ margin-block: 0;
+}
+
+div[name="page-loading"] > .buttons > button {
+ color: transparent;
+}
+
+.loading-block {
+ background-color: var(--in-content-button-background);
+ border-radius: 4px;
+ opacity: 0.4;
+ margin-block-start: 16px;
+}
+
+.loading-block.large {
+ height: 36px;
+}
+
+.loading-block.small {
+ height: 16px;
+}
+
+.buttons {
+ margin-block-start: 16px;
+}
+
+.deemphasized-text {
+ font-size: 0.84em;
+}
+
+@media not (prefers-contrast) {
+ .deemphasized-text {
+ color: var(--text-color-deemphasized);
+ }
+}
+
+fieldset {
+ border: 0;
+}
+
+label:not([hidden]) {
+ display: flex;
+ align-items: center;
+ width: fit-content;
+}
+
+#wizard-deck > div {
+ display: flex;
+ flex-direction: column;
+}
+
+#browser-profile-selector {
+ display: flex;
+ align-items: center;
+ padding: 8px;
+ margin: 0;
+ font-weight: unset;
+}
+
+.migrator-icon {
+ content: url(chrome://global/skin/icons/defaultFavicon.svg);
+ height: 32px;
+ width: 32px;
+ -moz-context-properties: fill;
+ fill: currentColor;
+}
+
+.migrator-icon,
+.migrator-description,
+.dropdown-icon {
+ pointer-events: none;
+}
+
+.dropdown-icon {
+ content: url("chrome://global/skin/icons/arrow-down.svg");
+ -moz-context-properties: fill;
+ fill: currentColor;
+ height: 16px;
+ width: 16px;
+}
+
+.migrator-description {
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ justify-content: center;
+ align-items: start;
+ margin-inline-start: 11px;
+}
+
+#profile-name:empty {
+ display: none;
+}
+
+#profile-name {
+ font-size: 0.73em;
+ text-transform: uppercase;
+}
+
+/**
+ * Until we address bug 1823489, it's not that easy to apply styles on
+ * the panel-list. We work around this by setting the CSS variable for
+ * the border instead.
+ */
+slot::slotted(panel-list),
+slot::slotted(panel) {
+ --in-content-box-border-color: transparent;
+}
+
+div[name="page-selection"]:not([show-import-all]) #select-all,
+div[name="page-selection"][show-import-all][single-item] #select-all,
+div[name="page-selection"]:not([show-import-all]) summary {
+ display: none;
+}
+
+div[name="page-selection"][show-import-all]:not([single-item]) label:not(#select-all) {
+ margin-inline-start: 24px;
+}
+
+div[name="page-selection"][show-import-all] #select-all {
+ display: flex;
+}
+
+div[name="page-selection"][migrator-type="browser"] > .buttons > #import-from-file,
+div[name="page-selection"][migrator-type="file"] > .buttons > #import,
+div[name="page-selection"][migrator-type="file"] > .resource-selection-details,
+div[name="page-selection"][migrator-type="file"] > .resource-selection-preamble,
+div[name="page-selection"][show-import-all] .resource-selection-preamble {
+ display: none;
+}
+
+.resource-selection-preamble {
+ margin-block-start: 16px;
+}
+
+details[open] .expand-collapse-icon {
+ content: url("chrome://browser/skin/zoom-out.svg");
+}
+
+.expand-collapse-icon {
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+ content: url("chrome://global/skin/icons/plus.svg");
+ grid-area: b;
+ -moz-context-properties: fill;
+ fill: currentColor;
+ justify-self: end;
+ margin-inline-end: 8px;
+}
+
+details:not([open]) summary {
+ margin-block-end: 16px;
+}
+
+summary {
+ cursor: pointer;
+}
+
+#resource-type-list {
+ padding: 0;
+}
+
+#resource-type-list > label {
+ margin-block-start: 16px;
+}
+
+:host(:not([dialog-mode])) .cancel-close,
+:host(:not([dialog-mode])) .done-button,
+:host([dialog-mode]) .continue-button {
+ display: none;
+}
+
+.resource-progress {
+ display: grid;
+ gap: 16px;
+}
+
+.resource-progress-group {
+ display: grid;
+ grid-template-columns: min-content auto;
+ grid-template-areas: "icon type"
+ "icon status";
+ align-items: center;
+ justify-items: start;
+}
+
+.resource-progress-group[hidden] {
+ display: none;
+}
+
+.success-text {
+ grid-area: status;
+}
+
+.progress-icon {
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+ content: url("chrome://browser/skin/migration/success.svg");
+ -moz-context-properties: fill;
+ fill: var(--in-content-success-icon-color);
+ margin-inline-end: 8px;
+}
+
+.error-icon {
+ content: url("chrome://global/skin/icons/error.svg");
+ -moz-context-properties: fill;
+ fill: var(--in-content-danger-button-background);
+ margin-inline-end: 8px;
+}
+
+.page-portrait-icon {
+ width: 16px;
+ height: 16px;
+ content: url("chrome://global/skin/icons/page-portrait.svg");
+ -moz-context-properties: fill;
+ fill: currentColor;
+ vertical-align: middle;
+}
+
+.safari-icon-3dots {
+ width: 16px;
+ height: 16px;
+ vertical-align: middle;
+ content: url("chrome://browser/skin/migration/safari-icon-3dots.svg");
+ -moz-context-properties: fill, stroke;
+ fill: currentColor;
+ stroke: color-mix(in srgb, currentColor 10%, transparent 90%);
+}
+
+.no-browsers-found-message {
+ display: flex;
+}
+
+.error-message {
+ display: flex;
+ align-items: start;
+}
+
+.no-resources-found {
+ font-size: 0.84em;
+ margin-block-start: 16px;
+}
+
+div[name="page-selection"]:not([no-resources]) .no-resources-found,
+div[name="page-selection"][no-resources] .hide-on-error {
+ display: none;
+}
+
+/**
+ * Workaround for bug 1671784, which shows a slight outline around the
+ * rotating masked element.
+ */
+.progress-icon-parent {
+ border-radius: 0.01px;
+ overflow: hidden;
+ display: flex;
+ align-items: center;
+}
+
+div[name="page-selection"][show-import-all] .resource-selection-details {
+ padding-inline-start: 8px;
+}
+
+.resource-selection-details > summary {
+ list-style: none;
+ display: grid;
+ grid-template-areas: "a b"
+ "c b";
+ margin-block: 16px 0;
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .progress-icon:not(.completed) {
+ content: url("chrome://browser/skin/tabbrowser/hourglass.svg");
+ fill: var(--text-color-deemphasized);
+ }
+}
+
+@media (prefers-reduced-motion: no-preference) {
+ .progress-icon:not(.completed) {
+ content: "";
+ background-image: conic-gradient(rgba(255, 255, 255, 0.31) 0%, rgba(255, 189, 79, 0.57) 38%, rgba(255, 74, 162, 0.79) 70%, rgb(144, 89, 255) 100%);
+ mask: url("chrome://browser/skin/migration/progress-mask.svg");
+ mask-composite: exclude;
+ }
+
+ .progress-icon:not(.completed) {
+ animation-name: rotate;
+ animation-duration: 1s;
+ animation-iteration-count: infinite;
+ animation-timing-function: linear;
+ }
+}
+
+@keyframes rotate {
+ from {
+ transform: rotate(0deg);
+ }
+ to {
+ transform: rotate(360deg);
+ }
+}
diff --git a/browser/themes/shared/migration/progress-mask.svg b/browser/themes/shared/migration/progress-mask.svg
new file mode 100644
index 0000000000..41cf8f3805
--- /dev/null
+++ b/browser/themes/shared/migration/progress-mask.svg
@@ -0,0 +1,7 @@
+<!-- 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 xmlns="http://www.w3.org/2000/svg"
+ width="16" height="16" viewBox="0 0 16 16" >
+ <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0ZM2.4 8a5.6 5.6 0 1 0 11.2 0A5.6 5.6 0 0 0 2.4 8Z"/>
+</svg>
diff --git a/browser/themes/shared/migration/safari-icon-3dots.svg b/browser/themes/shared/migration/safari-icon-3dots.svg
new file mode 100644
index 0000000000..df255b184f
--- /dev/null
+++ b/browser/themes/shared/migration/safari-icon-3dots.svg
@@ -0,0 +1,7 @@
+<!-- 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 fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
+ <circle cx="8" cy="8" r="8" fill="context-stroke"/>
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.143 7h-.857L4 7.286v.857l.286.285h.857l.286-.285v-.857L5.143 7Zm3.286 0H7.57l-.285.286v.857l.285.285h.858l.285-.285v-.857L8.43 7Zm2.428 0h.857l.286.286v.857l-.286.285h-.857l-.285-.285v-.857L10.857 7Z" fill="context-fill"/>
+</svg>
diff --git a/browser/themes/shared/migration/success.svg b/browser/themes/shared/migration/success.svg
new file mode 100644
index 0000000000..09f624dd65
--- /dev/null
+++ b/browser/themes/shared/migration/success.svg
@@ -0,0 +1,6 @@
+<!-- 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 fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
+ <path d="M7.625.5a7.5 7.5 0 1 0 0 15 7.5 7.5 0 0 0 0-15ZM6.45 11 3.808 8.357a.625.625 0 0 1 .885-.883l2.071 2.072 3.794-3.795a.626.626 0 0 1 .885.885L7.078 11H6.45Z" fill="context-fill"/>
+</svg>