Skip to content

Commit 8f8ff85

Browse files
committed
Style: add a fresh coat of paint
Swap the background main background colours, so that the main background colour is brighter. The previous one was a strange design choice that goes against almost all design guidelines (for light themes). Additionally, replace the dashed lines by solid lines for important lines and dotted lines for less important ones. Dashed lines looked unique and quirky, but most people I asked considered them ugly. Looking back on it, I do so to.
1 parent 2b0a760 commit 8f8ff85

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

chumweb/www/static/style.css

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@
44

55
:root {
66
--color-bg: #ddd;
7-
--color-bg-main: #ccc;
7+
--color-bg-main: #eee;
88
--color-fg: #000;
99
--color-fg-alt: #fff;
1010
--color-fg-highlight-primary: #088;
1111
--color-fg-highlight-secondary: #044;
1212
}
1313

14+
h1 {
15+
font-size: 2em;
16+
}
17+
18+
h2 {
19+
font-size: 1.5em;
20+
}
21+
1422
a {
1523
color: var(--color-fg-highlight-primary);
1624
}
@@ -54,18 +62,24 @@ main {
5462

5563
.section-site-sidebar {
5664
grid-area: sidebar;
65+
padding-top: 1em;
66+
}
67+
68+
.section-site-sidebar > :first-child h2 {
69+
/* Try to nudge the sidebar header to the same level as the header in the main */
70+
line-height: calc(1.5 * 1.2);
5771
}
5872

5973
.section-site-footer {
60-
border-top: 2px dashed var(--color-fg);
74+
border-top: 2px dotted var(--color-fg);
6175
grid-area: site-footer;
6276
}
6377

6478
main {
6579
background-color: var(--color-bg-main);
6680
grid-area: main;
67-
border-left: 2px dashed var(--color-fg-highlight-primary);
68-
border-right: 2px dashed var(--color-fg-highlight-primary);
81+
border-left: 2px solid var(--color-fg-highlight-primary);
82+
border-right: 2px solid var(--color-fg-highlight-primary);
6983
}
7084

7185
header > h1, header > p, header > h2, .pkg-header > h2, .pkg-header p {
@@ -75,7 +89,7 @@ header > h1, header > p, header > h2, .pkg-header > h2, .pkg-header p {
7589

7690
header, header:not(.section-site-info), .section-underline{
7791
padding: 0.5em 0;
78-
border-bottom: 2px dashed var(--color-fg);
92+
border-bottom: 2px dotted var(--color-fg);
7993
margin-bottom: 0.5em;
8094
}
8195

@@ -230,7 +244,7 @@ dl dd {
230244
text-align: center;
231245
padding-bottom: 0.5em;
232246
margin-bottom: 0.5em;
233-
border-bottom: 2px dashed var(--color-fg);
247+
border-bottom: 2px dotted var(--color-fg);
234248
}
235249

236250
.pkg-letter-links > * {
@@ -294,7 +308,7 @@ input[type=submit]:active {
294308
body.architecture--aarch64 .pkg-download-aarch64,
295309
body.architecture--armv7hl .pkg-download-armv7hl,
296310
body.architecture--i486 .pkg-download-i486 {
297-
font-weight: bold;
311+
font-weight: bolder;
298312
}
299313

300314
/* Small screen view */
@@ -320,8 +334,8 @@ body.architecture--i486 .pkg-download-i486 {
320334
main {
321335
padding: 1em;
322336
border: none;
323-
border-top: 2px dashed var(--color-fg-highlight-primary);
324-
border-bottom: 2px dashed var(--color-fg-highlight-primary);
337+
border-top: 2px solid var(--color-fg-highlight-primary);
338+
border-bottom: 2px solid var(--color-fg-highlight-primary);
325339
}
326340

327341
.section-site-info, .section-site-nav, .section-site-footer {

0 commit comments

Comments
 (0)