|
6 | 6 | * defined by the Mozilla Public License, v. 2.0. |
7 | 7 | */ |
8 | 8 |
|
9 | | -#welcome-admin a { |
10 | | - font-weight: bold; |
| 9 | +#bugzilla-body:has(#home) { |
| 10 | + display: flex; |
| 11 | + flex-direction: column; |
| 12 | + justify-content: center; |
| 13 | + align-items: center; |
| 14 | + min-height: calc(100dvh - var(--global-header-height)); |
11 | 15 | } |
12 | 16 |
|
13 | | -#welcome, |
14 | | -.options { |
15 | | - margin: 64px 0 0; |
| 17 | +#home { |
| 18 | + --content-margin: 48px; |
| 19 | + --box-padding: 32px; |
| 20 | + --title-font-size: 48px; |
| 21 | + --description-font-size: 20px; |
| 22 | + --heading-font-size: 24px; |
| 23 | +} |
| 24 | + |
| 25 | +#welcome-admin a { |
| 26 | + font-weight: bold; |
16 | 27 | } |
17 | 28 |
|
18 | 29 | #welcome { |
| 30 | + margin: var(--content-margin); |
19 | 31 | text-align: center; |
20 | 32 | } |
21 | 33 |
|
22 | 34 | #welcome h1 { |
23 | 35 | margin: 0; |
| 36 | + font-size: var(--title-font-size); |
24 | 37 | } |
25 | 38 |
|
26 | 39 | #welcome p { |
27 | 40 | margin: 8px 0 0; |
| 41 | + color: var(--secondary-label-color); |
| 42 | + font-size: var(--description-font-size); |
28 | 43 | } |
29 | 44 |
|
30 | 45 | #content { |
31 | 46 | display: flex; |
32 | 47 | flex-direction: column; |
33 | 48 | align-items: center; |
| 49 | + gap: var(--content-margin); |
| 50 | + margin-block: var(--content-margin); |
| 51 | + margin-inline: auto; |
| 52 | + max-width: 1024px; |
34 | 53 | } |
35 | 54 |
|
36 | 55 | .options { |
37 | 56 | display: flex; |
38 | 57 | flex-direction: column; |
39 | | - gap: 32px; |
40 | | - border-top: 1px solid var(--secondary-region-border-color); |
41 | | - border-bottom: 1px solid var(--secondary-region-border-color); |
| 58 | + gap: var(--box-padding); |
| 59 | + box-sizing: border-box; |
42 | 60 | max-width: 600px; |
43 | 61 | } |
44 | 62 |
|
45 | | -.option { |
46 | | - display: flex; |
47 | | - gap: 20px; |
| 63 | +.options section { |
| 64 | + display: flow-root; |
| 65 | + padding-left: 64px; |
| 66 | +} |
| 67 | + |
| 68 | +.options h2 { |
| 69 | + margin: 0; |
| 70 | + font-size: var(--heading-font-size); |
| 71 | + font-weight: 500; |
48 | 72 | } |
49 | 73 |
|
50 | | -.option .icon img, |
51 | | -.option .icon svg { |
| 74 | +.options h2 :is(img, svg) { |
| 75 | + float: left; |
| 76 | + margin-left: -64px; |
52 | 77 | width: 48px; |
53 | 78 | height: 48px; |
54 | 79 | } |
55 | 80 |
|
56 | | -.option .icon svg path { |
57 | | - fill: var(--application-foreground-color); |
| 81 | +.options h2 svg path { |
| 82 | + fill: currentColor; |
58 | 83 | } |
59 | 84 |
|
60 | | -.option .title { |
61 | | - font-size: 24px; |
62 | | - font-weight: bold; |
63 | | - margin-bottom: 4px; |
| 85 | +.options h2 :is(a:link, a:visited) { |
| 86 | + color: var(--application-foreground-color); |
64 | 87 | } |
65 | 88 |
|
66 | | -.option .title a, |
67 | | -.option .title a:visited { |
68 | | - color: var(--application-foreground-color); |
| 89 | +.options h2 :is(a:hover, a:focus) { |
| 90 | + color: var(--hovered-link-text-color); |
| 91 | +} |
| 92 | + |
| 93 | +.options p { |
| 94 | + margin: 4px 0; |
| 95 | + color: var(--secondary-label-color); |
| 96 | + font-size: 14px; |
| 97 | + line-height: 1.5; |
| 98 | +} |
| 99 | + |
| 100 | +.downloads { |
| 101 | + border-radius: 16px; |
| 102 | + padding: var(--box-padding); |
| 103 | + background-color: var(--primary-region-background-color); |
| 104 | +} |
| 105 | + |
| 106 | +.downloads h2 { |
| 107 | + font-style: italic; |
| 108 | + font-weight: 500; |
69 | 109 | } |
70 | 110 |
|
71 | | -.option .desc-container { |
72 | | - flex-grow: 1; |
| 111 | +.downloads h2 strong { |
| 112 | + font-weight: inherit; |
| 113 | +} |
| 114 | + |
| 115 | +.cookies { |
| 116 | + text-align: center; |
73 | 117 | } |
74 | 118 |
|
75 | 119 | @media screen and (width < 768px) { |
76 | | - #welcome, |
77 | | - .options { |
78 | | - margin: 48px 0 0; |
| 120 | + #home { |
| 121 | + --content-margin: 24px; |
| 122 | + --box-padding: 24px; |
| 123 | + --title-font-size: 36px; |
| 124 | + --description-font-size: 16px; |
| 125 | + --heading-font-size: 20px; |
| 126 | + } |
| 127 | +} |
| 128 | + |
| 129 | +@media screen and (768px <= width < 1024px) { |
| 130 | + .community { |
| 131 | + padding-inline: var(--box-padding); |
| 132 | + } |
| 133 | +} |
| 134 | + |
| 135 | +@media screen and (1024px <= width) { |
| 136 | + #content { |
| 137 | + flex-direction: row; |
| 138 | + padding-inline: 32px; |
| 139 | + } |
| 140 | + |
| 141 | + .downloads { |
| 142 | + flex: none; |
| 143 | + width: 360px; |
| 144 | + } |
| 145 | + |
| 146 | + .downloads h2 span { |
| 147 | + display: block; |
| 148 | + font-size: 16px; |
| 149 | + font-weight: 400; |
79 | 150 | } |
80 | 151 | } |
0 commit comments