summaryrefslogtreecommitdiffstats
path: root/browser/themes/shared/error-pages.css
blob: 77f97def9f819b4f7aab821f7d63d588e099db93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/* 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;
}

.illustrated #errorPageContainer {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 38%;
}

.illustrated #errorPageContainer:dir(rtl) {
  background-position-x: right;
}

.illustrated .title {
  background: none;
  padding-inline-start: 0;
  margin-inline-start: 0;
}

.illustrated #text-container {
  margin: auto;
  padding-inline-start: 38%;
}

@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;
  }

  /* At some point the screen gets so small that the cute
   * critter image takes up too much valuable screen real
   * estate to keep it showing. */
  #errorPageContainer {
    background-image: none !important;
  }

  /* When the critter is hidden, also use the full screen
   * size for the error text */
  .illustrated #text-container {
    margin: unset;
    padding-inline-start: 0;
  }
}

/* For small window height, shift the stripes up by 10px.
 * We could just change the background size, but that changes
 * the angle of the stripes so just shifting up is easier. */
@media only screen and (max-height: 480px) {
  body {
    background-position: 10px -10px;
    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;
  }
}