Skip to content

Commit d880c95

Browse files
authored
Bug 1991543 - Improve Bugzilla homepage layout
1 parent da70522 commit d880c95

File tree

2 files changed

+202
-156
lines changed

2 files changed

+202
-156
lines changed

skins/standard/index.css

Lines changed: 98 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,75 +6,146 @@
66
* defined by the Mozilla Public License, v. 2.0.
77
*/
88

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));
1115
}
1216

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;
1627
}
1728

1829
#welcome {
30+
margin: var(--content-margin);
1931
text-align: center;
2032
}
2133

2234
#welcome h1 {
2335
margin: 0;
36+
font-size: var(--title-font-size);
2437
}
2538

2639
#welcome p {
2740
margin: 8px 0 0;
41+
color: var(--secondary-label-color);
42+
font-size: var(--description-font-size);
2843
}
2944

3045
#content {
3146
display: flex;
3247
flex-direction: column;
3348
align-items: center;
49+
gap: var(--content-margin);
50+
margin-block: var(--content-margin);
51+
margin-inline: auto;
52+
max-width: 1024px;
3453
}
3554

3655
.options {
3756
display: flex;
3857
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;
4260
max-width: 600px;
4361
}
4462

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;
4872
}
4973

50-
.option .icon img,
51-
.option .icon svg {
74+
.options h2 :is(img, svg) {
75+
float: left;
76+
margin-left: -64px;
5277
width: 48px;
5378
height: 48px;
5479
}
5580

56-
.option .icon svg path {
57-
fill: var(--application-foreground-color);
81+
.options h2 svg path {
82+
fill: currentColor;
5883
}
5984

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);
6487
}
6588

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;
69109
}
70110

71-
.option .desc-container {
72-
flex-grow: 1;
111+
.downloads h2 strong {
112+
font-weight: inherit;
113+
}
114+
115+
.cookies {
116+
text-align: center;
73117
}
74118

75119
@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;
79150
}
80151
}

0 commit comments

Comments
 (0)