diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /toolkit/themes/mobile | |
parent | Initial commit. (diff) | |
download | firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/themes/mobile')
-rw-r--r-- | toolkit/themes/mobile/global/about.css | 38 | ||||
-rw-r--r-- | toolkit/themes/mobile/global/aboutMemory.css | 180 | ||||
-rw-r--r-- | toolkit/themes/mobile/global/aboutNetworking.css | 83 | ||||
-rw-r--r-- | toolkit/themes/mobile/global/aboutSupport.css | 93 | ||||
-rw-r--r-- | toolkit/themes/mobile/global/media/TopLevelImageDocument.css | 17 | ||||
-rw-r--r-- | toolkit/themes/mobile/global/media/TopLevelVideoDocument.css | 12 | ||||
-rw-r--r-- | toolkit/themes/mobile/global/media/error.png | bin | 0 -> 395 bytes | |||
-rw-r--r-- | toolkit/themes/mobile/global/media/imagedoc-darknoise.png | bin | 0 -> 3050 bytes | |||
-rw-r--r-- | toolkit/themes/mobile/global/media/imagedoc-lightnoise.png | bin | 0 -> 3987 bytes | |||
-rw-r--r-- | toolkit/themes/mobile/global/media/throbber.png | bin | 0 -> 30718 bytes | |||
-rw-r--r-- | toolkit/themes/mobile/global/scrollbars.css | 79 | ||||
-rw-r--r-- | toolkit/themes/mobile/jar.mn | 33 | ||||
-rw-r--r-- | toolkit/themes/mobile/moz.build | 7 |
13 files changed, 542 insertions, 0 deletions
diff --git a/toolkit/themes/mobile/global/about.css b/toolkit/themes/mobile/global/about.css new file mode 100644 index 0000000000..4afa53cbca --- /dev/null +++ b/toolkit/themes/mobile/global/about.css @@ -0,0 +1,38 @@ +/* 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 { + background: #f0f0f0; + padding: 0 1em; + font-family: sans-serif !important; + font-size: 100% !important; +} + +body { + color: black; + position: relative; + min-width: 330px; + max-width: 50em; + margin: 1em auto; + border: 1px solid gray; + border-radius: 10px; + padding: 3em; + padding-inline-start: 30px; + background: white; +} + +.aboutPageWideContainer { + max-width: 80%; +} + +img { + border: 0; +} + +ul { + margin: 0; + margin-inline-start: 1.5em; + padding: 0; + list-style: square; +} diff --git a/toolkit/themes/mobile/global/aboutMemory.css b/toolkit/themes/mobile/global/aboutMemory.css new file mode 100644 index 0000000000..cf8a8bac27 --- /dev/null +++ b/toolkit/themes/mobile/global/aboutMemory.css @@ -0,0 +1,180 @@ +/* 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/. */ + +/* + * The version used for desktop is located at + * toolkit/components/aboutmemory/content/aboutMemory.css. + * Mobile-specific stuff is at the bottom of this file. + */ + +html { + background: -moz-Dialog; + color: -moz-DialogText; + font: message-box; +} + +body { + padding: 0 2em; + margin: 0; + min-width: 45em; + margin: auto; +} + +/* The comment at the top of aboutMemory.xhtml explains this font choice. */ +pre { + font-family: Fira Mono, DejaVu Sans Mono, Liberation Mono, monospace; +} + +div.ancillary { + margin: 0.5em 0; + user-select: none; +} + +div.section { + padding: 2em; + margin: 1em 0em; + border: 1px solid ThreeDShadow; + border-radius: 10px; + background: Field; + color: FieldText; +} + +div.outputContainer { + display: flex; +} + +div.sections { + flex: 1; + min-width: 0; +} + +div.sidebar { + flex: 0 0 max-content; + margin-left: 1em; +} + +div.sidebarContents { + position: sticky; + top: 0.5em; +} + +div.sidebarItem { + padding: 0.5em; + margin: 1em 0em; + border: 1px solid ThreeDShadow; + border-radius: 10px; + background: Field; + color: FieldText; + user-select: none; /* no need to include this when cutting+pasting */ +} + +input.filterInput { + width: calc(100% - 1em); +} + +ul.index { + list-style-position: inside; + margin: 0; + padding: 0; +} + +ul.index > li { + padding-left: 0.5em; +} + +div.opsRow { + padding: 0.5em; + margin-right: 0.5em; + margin-top: 0.5em; + border: 1px solid ThreeDShadow; + border-radius: 10px; + background: Field; + color: FieldText; + display: inline-block; +} + +div.opsRowLabel, div.sidebarLabel { + display: block; + margin-bottom: 0.2em; + font-weight: bold; +} + +.opsRowLabel label { + margin-left: 1em; + font-weight: normal; +} + +div.non-verbose pre.entries { + overflow-x: auto; + text-overflow: ellipsis; +} + +h1 { + padding: 0; + margin: 0; +} + +h2 { + padding-left: .1em; +} + +.accuracyWarning, .badInputWarning, .invalid { + /* + * Technically this should be used with the default background colour, + * instead we're using the default field background colour, + * I hope this will be okay. + */ + color: -moz-activehyperlinktext; +} + +.treeline { + color: FieldText; + opacity: 0.5; +} + +.mrValue { + font-weight: bold; +} + +.hasKids { + cursor: pointer; +} + +.hasKids:hover { + text-decoration: underline; +} + +.noselect { + user-select: none; /* no need to include this when cutting+pasting */ +} + +.option { + font-size: 80%; + user-select: none; /* no need to include this when cutting+pasting */ +} + +.legend { + font-size: 80%; + user-select: none; /* no need to include this when cutting+pasting */ +} + +.debug { + font-size: 80%; +} + +.hidden { + display: none; +} + +/* Mobile-specific parts go here. */ + +/* buttons are different sizes and overlapping without this */ +button { + margin: 1%; + padding: 2%; +} + +.hiddenOnMobile { + display: none; +} diff --git a/toolkit/themes/mobile/global/aboutNetworking.css b/toolkit/themes/mobile/global/aboutNetworking.css new file mode 100644 index 0000000000..f1d499da48 --- /dev/null +++ b/toolkit/themes/mobile/global/aboutNetworking.css @@ -0,0 +1,83 @@ +/* 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/. */ + +#sectionTitle { + float: inline-start; + display: none; +} + +#refreshDiv { + justify-content: flex-end; + margin-bottom: 0.5em; +} + +#refreshDiv > * { + font-size: 2em; + vertical-align: middle; +} + +#refreshDiv > input { + height: 1em; + width: 1em; +} + +#refreshButton { + margin-top: 0; +} + +/** Categories **/ + +#categories { + display: inline-flex; +} + +.category { + font-size: 2em; + padding: 0.2em; + text-align: center; + cursor: pointer; + /* Center category names */ + display: flex; + align-items: center; +} + +.category .category-name { + pointer-events: none; +} + +.category[selected] { + font-weight: bold; +} + +/** Content area **/ + +.main-content { + flex: 1; +} + +.tab { + padding: 0.5em 0; + overflow-x: auto; +} + +.tab table { + width: 100%; +} + +th, td, table { + border-collapse: collapse; + border: none; + text-align: start; +} + +th { + padding-bottom: 0.5em; + padding-inline: 1em; + font-size: larger; + white-space: nowrap; +} + +td { + padding-bottom: 0.25em; +} diff --git a/toolkit/themes/mobile/global/aboutSupport.css b/toolkit/themes/mobile/global/aboutSupport.css new file mode 100644 index 0000000000..3d057e6c74 --- /dev/null +++ b/toolkit/themes/mobile/global/aboutSupport.css @@ -0,0 +1,93 @@ +/* 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 { + background-color: Field; + color: FieldText; + font: message-box; +} + +body { + width: 90%; + margin-inline: 5%; +} + +.page-subtitle { + margin-bottom: 3em; +} + +.major-section { + margin-block: 2em 1em; + font-size: large; + text-align: start; + font-weight: bold; +} + +#copy-raw-data-to-clipboard, +#copy-to-clipboard { + padding-block: 2%; + margin: 1%; + width: 100%; +} + +table { + background-color: -moz-Dialog; + color: -moz-DialogText; + font: message-box; + font-size: xx-large; + text-align: start; + width: 100%; + border: 1px solid ThreeDShadow; + border-spacing: 0; +} + +th, td { + border: 1px dotted ThreeDShadow; + padding: 3px; +} + +thead th { + text-align: center; +} + +th { + text-align: start; + background-color: Highlight; + color: HighlightText; +} + +th.column { + white-space: nowrap; + width: 0; +} + +td { + text-align: start; + border-top: 1px dotted ThreeDShadow; +} + +.prefs-table { + width: 100%; + table-layout: fixed; +} + +.pref-name { + width: 70%; + white-space: nowrap; + overflow: hidden; +} + +.pref-value { + width: 30%; + white-space: nowrap; + overflow: hidden; +} + +#profile-row { + display: none; +} + +#reset-box { + display: none; +} diff --git a/toolkit/themes/mobile/global/media/TopLevelImageDocument.css b/toolkit/themes/mobile/global/media/TopLevelImageDocument.css new file mode 100644 index 0000000000..5242175161 --- /dev/null +++ b/toolkit/themes/mobile/global/media/TopLevelImageDocument.css @@ -0,0 +1,17 @@ +/* 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/. */ + +@media not print { + /* N.B.: Remember to update ImageDocument.css in the tree or reftests may fail! */ + + body { + color: #eee; + background-image: url("chrome://global/skin/media/imagedoc-darknoise.png"); + } + + img.transparent { + background: hsl(0,0%,90%) url("chrome://global/skin/media/imagedoc-lightnoise.png"); + color: #222; + } +} diff --git a/toolkit/themes/mobile/global/media/TopLevelVideoDocument.css b/toolkit/themes/mobile/global/media/TopLevelVideoDocument.css new file mode 100644 index 0000000000..760cdcd538 --- /dev/null +++ b/toolkit/themes/mobile/global/media/TopLevelVideoDocument.css @@ -0,0 +1,12 @@ +/* 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/. */ + +body { + background-image: url("chrome://global/skin/media/imagedoc-darknoise.png"); + background-color: rgb(33,33,33); /* Average color of that ^ image. */ +} + +video { + box-shadow: 0 0 15px #000; +} diff --git a/toolkit/themes/mobile/global/media/error.png b/toolkit/themes/mobile/global/media/error.png Binary files differnew file mode 100644 index 0000000000..fc13f5bf98 --- /dev/null +++ b/toolkit/themes/mobile/global/media/error.png diff --git a/toolkit/themes/mobile/global/media/imagedoc-darknoise.png b/toolkit/themes/mobile/global/media/imagedoc-darknoise.png Binary files differnew file mode 100644 index 0000000000..5c33e24d4c --- /dev/null +++ b/toolkit/themes/mobile/global/media/imagedoc-darknoise.png diff --git a/toolkit/themes/mobile/global/media/imagedoc-lightnoise.png b/toolkit/themes/mobile/global/media/imagedoc-lightnoise.png Binary files differnew file mode 100644 index 0000000000..1fe5b3a586 --- /dev/null +++ b/toolkit/themes/mobile/global/media/imagedoc-lightnoise.png diff --git a/toolkit/themes/mobile/global/media/throbber.png b/toolkit/themes/mobile/global/media/throbber.png Binary files differnew file mode 100644 index 0000000000..8e49fe5b2a --- /dev/null +++ b/toolkit/themes/mobile/global/media/throbber.png diff --git a/toolkit/themes/mobile/global/scrollbars.css b/toolkit/themes/mobile/global/scrollbars.css new file mode 100644 index 0000000000..7ae8bced9d --- /dev/null +++ b/toolkit/themes/mobile/global/scrollbars.css @@ -0,0 +1,79 @@ +/* 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/. */ + +@namespace url("http://www.w3.org/1999/xhtml"); +@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); + +/* Style the scrollbars */ +xul|scrollbar[root="true"] { + position: relative; + z-index: 2147483647; +} + +xul|scrollbar { + appearance: none; + pointer-events: none; + display: block; +} + +/* We don't show resizers on android, so they may as well have + * pointer-events: none to simplify scrollbar caching */ +xul|resizer, +xul|scrollcorner { + pointer-events: none; +} + +xul|scrollbar[orient="vertical"] { + min-width: 6px; + max-width: 6px; +} + +xul|scrollbar[orient="vertical"] xul|thumb { + appearance: none; + max-width: 2px; + min-width: 2px; +} + +xul|scrollbar[orient="horizontal"] { + min-height: 6px; + max-height: 6px; +} + +xul|scrollbar[orient="horizontal"] xul|thumb { + appearance: none; + max-height: 2px; + min-height: 2px; +} + +xul|scrollbar:not([active="true"]), +xul|scrollbar[disabled] { + /* Mac and Windows with overlay scrollbars use visibility: hidden here, but + * that breaks the scrollbar style caching, see bug 1620866. */ + opacity: 0; +} + +xul|scrollbarbutton { + appearance: none; + min-height: 6px; + min-width: 6px; + visibility: hidden; +} + +xul|scrollbarbutton[sbattr="scrollbar-up-top"] { + display: none; +} + +xul|scrollbar xul|thumb { + background-color: rgba(119, 119, 119, 0.4); + border-radius: 4px; +} + +select:not([size], [multiple]) > xul|scrollbar, +select[size="1"] > xul|scrollbar, +select:not([size], [multiple]) > xul|scrollbar > xul|scrollbarbutton, +select[size="1"] > xul|scrollbar > xul|scrollbarbutton { + display: block; + margin-left: 0; + min-width: 16px; +} diff --git a/toolkit/themes/mobile/jar.mn b/toolkit/themes/mobile/jar.mn new file mode 100644 index 0000000000..ac244443ba --- /dev/null +++ b/toolkit/themes/mobile/jar.mn @@ -0,0 +1,33 @@ +# 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/. + +toolkit.jar: +% skin global classic/1.0 %skin/classic/global/ +# These are the CSS files that must exist + skin/classic/global/about.css (global/about.css) + skin/classic/global/aboutMemory.css (global/aboutMemory.css) + skin/classic/global/aboutNetworking.css (global/aboutNetworking.css) + skin/classic/global/aboutSupport.css (global/aboutSupport.css) + skin/classic/global/scrollbars.css (global/scrollbars.css) + + skin/classic/global/media/TopLevelImageDocument.css (global/media/TopLevelImageDocument.css) + skin/classic/global/media/TopLevelVideoDocument.css (global/media/TopLevelVideoDocument.css) + skin/classic/global/media/imagedoc-lightnoise.png (global/media/imagedoc-lightnoise.png) + skin/classic/global/media/imagedoc-darknoise.png (global/media/imagedoc-darknoise.png) + +* skin/classic/global/media/videocontrols.css (../shared/media/videocontrols.css) + skin/classic/global/media/pauseButton.svg (../shared/media/pauseButton.svg) + skin/classic/global/media/playButton.svg (../shared/media/playButton.svg) + skin/classic/global/media/error.png (../shared/media/error.png) + skin/classic/global/media/throbber.png (../shared/media/throbber.png) + skin/classic/global/media/stalled.png (../shared/media/stalled.png) + skin/classic/global/media/audioMutedButton.svg (../shared/media/audioMutedButton.svg) + skin/classic/global/media/audioNoAudioButton.svg (../shared/media/audioNoAudioButton.svg) + skin/classic/global/media/audioUnmutedButton.svg (../shared/media/audioUnmutedButton.svg) + skin/classic/global/media/castingButton-ready.svg (../shared/media/castingButton-ready.svg) + skin/classic/global/media/castingButton-active.svg (../shared/media/castingButton-active.svg) + skin/classic/global/media/closedCaptionButton-cc-off.svg (../shared/media/closedCaptionButton-cc-off.svg) + skin/classic/global/media/closedCaptionButton-cc-on.svg (../shared/media/closedCaptionButton-cc-on.svg) + skin/classic/global/media/fullscreenEnterButton.svg (../shared/media/fullscreenEnterButton.svg) + skin/classic/global/media/fullscreenExitButton.svg (../shared/media/fullscreenExitButton.svg) diff --git a/toolkit/themes/mobile/moz.build b/toolkit/themes/mobile/moz.build new file mode 100644 index 0000000000..d988c0ff9b --- /dev/null +++ b/toolkit/themes/mobile/moz.build @@ -0,0 +1,7 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +JAR_MANIFESTS += ["jar.mn"] |