Skip to content

Commit adcea58

Browse files
committed
Increase contrast on sidebar
* Regular font contrast went from 11.98 to 13.23 * Language (main) font contrast went from 5.13 to 7.97 We introduced a new color between --gray100 and --gray200. --gray100 is our base white and having the menu using it was too jarring.
1 parent fa5dff6 commit adcea58

14 files changed

Lines changed: 37 additions & 37 deletions

assets/css/custom-props/common.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
--baseLineHeight: 1.5em;
1414

1515
/* Colours */
16-
--gray50-lightened-2: hsl(207, 43%, 98% );
16+
--gray25: hsl(207, 43%, 98% );
1717
--gray50: hsl(207, 43%, 96% );
1818
--gray100: hsl(212, 33%, 91% );
19-
--gray200: hsl(210, 26%, 84% );
20-
--gray300: hsl(210, 21%, 64% );
19+
--gray200: hsl(210, 29%, 88% );
20+
--gray300: hsl(210, 26%, 84% );
21+
--gray400: hsl(210, 21%, 64% );
2122
--gray500: hsl(210, 21%, 34% );
2223
--gray600: hsl(210, 27%, 26% );
2324
--gray700: hsl(212, 35%, 17% );

assets/css/custom-props/theme-dark.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ body.dark {
5454
--settingsInputBorder: var(--gray700);
5555
--settingsSectionBorder: var(--gray700);
5656

57-
--quickSwitchInput: var(--gray200);
57+
--quickSwitchInput: var(--gray300);
5858
--quickSwitchContour: var(--gray500);
5959

6060
--success: var(--green-lightened-10);

assets/css/custom-props/theme-light.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
--textBody: var(--gray700);
55
--textHeaders: var(--gray800);
66
--textDetailBackground: var(--coldGrayFaint);
7-
--textFooter: var(--coldGray);
7+
--textFooter: var(--gray600);
88

99
--links: var(--black);
1010
--linksVisited: var(--black);
@@ -37,11 +37,11 @@
3737
--fnDeprecated: var(--yellowLight);
3838
--blink: var(--yellowLight);
3939

40-
--codeBackground: var(--gray50-lightened-2);
40+
--codeBackground: var(--gray25);
4141
--codeBorder: var(--gray100);
4242
--inlineCodeBackground: var(--codeBackground);
4343
--inlineCodeBorder: var(--codeBorder);
44-
--codeScrollThumb: var(--gray300);
44+
--codeScrollThumb: var(--gray400);
4545
--codeScrollBackground: var(--codeBorder);
4646

4747
--bottomActionsBtnBorder: var(--black-opacity-10);
@@ -51,14 +51,14 @@
5151

5252
--settingsInput: var(--gray500);
5353
--settingsInputBackground: var(--white);
54-
--settingsInputBorder: var(--gray200);
55-
--settingsSectionBorder: var(--gray200);
54+
--settingsInputBorder: var(--gray300);
55+
--settingsSectionBorder: var(--gray300);
5656

5757
--quickSwitchInput: var(--gray500);
5858
--quickSwitchContour: var(--coldGray);
5959

6060
--success: var(--green);
6161

62-
--sidebarButton: var(--gray100);
62+
--sidebarButton: var(--gray50);
6363
--sidebarButtonBackground: linear-gradient(180deg, var(--white) 20%, var(--white-opacity-50) 70%, var(--white-opacity-0) 100%);
6464
}

assets/css/print-cheatsheet.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/* Remove background colors and set border colors */
44
.page-cheatmd .content-inner * {
55
background-color: transparent !important;
6-
border-color: var(--gray300) !important;
6+
border-color: var(--gray400) !important;
77
}
88

99
/* Basic layout and columns */
@@ -58,7 +58,7 @@
5858

5959
.page-cheatmd .content-inner h3::after {
6060
height: 2px;
61-
background-color: var(--gray300);
61+
background-color: var(--gray400);
6262
}
6363

6464
.page-cheatmd .content-inner section.h3 {

assets/css/print.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,25 +45,25 @@
4545
}
4646

4747
.content-inner blockquote:is(.warning, .error, .info, .neutral, .tip) {
48-
border: 2px solid var(--gray300);
48+
border: 2px solid var(--gray400);
4949
}
5050

5151
.content-inner blockquote :is(h3, h4):is(.warning, .error, .info, .neutral, .tip) {
5252
color: var(--textHeaders);
53-
border-bottom: 2px solid var(--gray300);
53+
border-bottom: 2px solid var(--gray400);
5454
}
5555

5656
.content-inner pre code.makeup {
57-
border-color: var(--gray300);
57+
border-color: var(--gray400);
5858
white-space: break-spaces;
5959
break-inside: avoid;
6060
}
6161

6262
.content-inner blockquote code.inline {
63-
border-color: var(--gray300);
63+
border-color: var(--gray400);
6464
}
6565

6666
.content-inner code.inline {
67-
border-color: var(--gray300);
67+
border-color: var(--gray400);
6868
}
6969
}

assets/css/settings.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
border-color: var(--main);
2323
}
2424
#settings-modal-content .input::placeholder {
25-
color: var(--gray300);
25+
color: var(--gray400);
2626
}
2727

2828
#settings-modal-content .switch-button-container {

assets/css/sidebar.css

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
font-weight: bold;
286286
font-size: .9em;
287287
line-height: 1.8em;
288-
color: var(--gray300);
288+
color: var(--gray400);
289289
padding-left: 15px;
290290
}
291291

@@ -295,7 +295,7 @@
295295
font-size: .8em;
296296
margin: 2em 0 0;
297297
line-height: 1.8em;
298-
color: var(--gray300);
298+
color: var(--gray400);
299299
padding-left: 15px;
300300
}
301301

@@ -318,23 +318,23 @@
318318
}
319319

320320
.sidebar #full-list li .current-section > a {
321-
color: var(--main);
321+
color: var(--main-lightened-10);
322322
}
323323

324324
.sidebar #full-list > li > a:hover {
325-
border-left: 3px solid var(--main-lightened-10);
325+
border-left: 3px solid var(--main);
326326
padding-left: 12px;
327327
}
328328

329329
.sidebar #full-list > li.current-page > a {
330-
color: var(--main);
330+
color: var(--main-lightened-10);
331331
border-left: 3px solid var(--main);
332332
padding-left: 12px;
333333
}
334334

335335
.sidebar #full-list > li.current-page > a:after,
336336
.sidebar #full-list > li.current-page {
337-
color: var(--main);
337+
color: var(--main-lightened-10);
338338
}
339339

340340
.sidebar #full-list > li:last-child {
@@ -361,19 +361,19 @@
361361
}
362362

363363
.sidebar #full-list ul li.current-hash {
364-
color: var(--main);
364+
color: var(--main-lightened-10);
365365
}
366366

367367
.sidebar #full-list ul li.current-hash > a {
368-
color: var(--main);
368+
color: var(--main-lightened-10);
369369
}
370370

371371
.sidebar #full-list ul li.current-hash > a:before,
372372
.sidebar #full-list > li > ul > li > a:hover:before {
373373
content: "\2022";
374374
position: absolute;
375375
margin-left: -15px;
376-
color: var(--main);
376+
color: var(--main-lightened-10);
377377
}
378378

379379
.sidebar #full-list ul li a {
@@ -410,12 +410,12 @@
410410
}
411411

412412
.sidebar #full-list ul li ul li.current-hash > a {
413-
color: var(--main);
413+
color: var(--main-lightened-10);
414414
border-color: var(--main);
415415
}
416416

417417
.sidebar #full-list ul li ul li.current-hash > a {
418-
color: var(--main);
418+
color: var(--main-lightened-10);
419419
margin-left: 0;
420420
}
421421

@@ -434,11 +434,10 @@
434434
}
435435

436436
.sidebar-button {
437-
--sidebar-button-x-padding: 11px;
438437
cursor: pointer;
439438
background-color: transparent;
440439
border: none;
441-
padding: 15px var(--sidebar-button-x-padding);
440+
padding: 15px 11px;
442441
font-size: 16px;
443442
}
444443

formatters/epub/dist/epub-elixir-SP6DQZL6.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)