diff options
Diffstat (limited to '')
-rw-r--r-- | toolkit/themes/mobile/global/aboutMemory.css | 179 | ||||
-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/jar.mn | 11 | ||||
-rw-r--r-- | toolkit/themes/mobile/moz.build | 7 |
5 files changed, 373 insertions, 0 deletions
diff --git a/toolkit/themes/mobile/global/aboutMemory.css b/toolkit/themes/mobile/global/aboutMemory.css new file mode 100644 index 0000000000..67c01b4054 --- /dev/null +++ b/toolkit/themes/mobile/global/aboutMemory.css @@ -0,0 +1,179 @@ +/* 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; + 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..903e220733 --- /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: 2em; +} + +.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/jar.mn b/toolkit/themes/mobile/global/jar.mn new file mode 100644 index 0000000000..4edec9f072 --- /dev/null +++ b/toolkit/themes/mobile/global/jar.mn @@ -0,0 +1,11 @@ +# 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/. + +#include ../../shared/minimal-toolkit.jar.inc.mn + +# These are the CSS files that must exist: +# about pages: + skin/classic/global/aboutMemory.css + skin/classic/global/aboutNetworking.css + skin/classic/global/aboutSupport.css diff --git a/toolkit/themes/mobile/moz.build b/toolkit/themes/mobile/moz.build new file mode 100644 index 0000000000..887504e1c9 --- /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 += ["global/jar.mn"] |