summaryrefslogtreecommitdiffstats
path: root/toolkit/themes/shared/error-pages.css
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 /toolkit/themes/shared/error-pages.css
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/themes/shared/error-pages.css')
-rw-r--r--toolkit/themes/shared/error-pages.css86
1 files changed, 86 insertions, 0 deletions
diff --git a/toolkit/themes/shared/error-pages.css b/toolkit/themes/shared/error-pages.css
new file mode 100644
index 0000000000..6fb65d5829
--- /dev/null
+++ b/toolkit/themes/shared/error-pages.css
@@ -0,0 +1,86 @@
+/* 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/info-pages.css");
+
+body {
+ background-size: 64px 32px;
+ background-repeat: repeat-x;
+ padding: 0;
+ /* info-pages.css sets a minimum width of 13em to the content
+ * container. If we don't set a min-width here, the content
+ * gets clipped in iframes with small width. We don't accomodate
+ * any padding to prioritize real estate in the small viewport. */
+ min-width: 13em;
+}
+
+.button-container {
+ display: flex;
+ flex-flow: row wrap;
+ justify-content: end;
+}
+
+.button-spacer {
+ flex: 1;
+}
+
+@media only screen and (max-width: 959px) {
+ body {
+ padding: 0 75px;
+ }
+
+ .title {
+ background-image: none !important;
+ padding-inline-start: 0;
+ margin-inline-start: 0;
+ }
+
+ .title-text {
+ padding-top: 0;
+ }
+}
+
+@media only screen and (max-width: 640px) {
+ .title-text {
+ padding-bottom: 0;
+ border-bottom: none;
+ }
+}
+
+@media only screen and (max-width: 480px) {
+ body {
+ padding: 0 38px;
+ }
+
+ .container {
+ min-width: 0;
+ }
+
+ .button-container button {
+ width: 100%;
+ margin: 0.66em 0 0;
+ }
+
+ .title-text {
+ font-size: 26px;
+ }
+}
+
+@media only screen and (max-width: 320px) {
+ body {
+ padding: 0 12px;
+ }
+}
+
+@media only screen and (max-height: 480px) {
+ body {
+ /* Note: if you change the top padding, also update the image positioning
+ * media query in aboutNetError.css for the certificate error case. */
+ padding-top: 38px;
+ /* We get rid of bottom padding for width < 640px, but
+ * for height < 480px a bit of space between the content
+ * and the viewport edge is nice. */
+ padding-bottom: 38px;
+ }
+}