Skip to content

Commit cf53ce1

Browse files
authored
feat: improve contrast on certain elements (#1899)
2 parents 5c436bd + c8cb4b1 commit cf53ce1

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.cm-s-one-dark .CodeMirror-linenumber {
2+
color: #676767;
3+
}
4+
5+
.cm-s-one-dark.CodeMirror-focused
6+
.CodeMirror-activeline
7+
.CodeMirror-gutter-elt {
8+
color: #b0b0b0;
9+
}
10+
11+
.cm-s-one-dark .cm-comment {
12+
color: #818895;
13+
}

public/css/extra.css

+5-1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@
106106
margin-bottom: -25px;
107107
color: #777;
108108
}
109+
.night .ui-infobar {
110+
color: #ededed;
111+
}
109112

110113
.toc .invisable-node {
111114
list-style-type: none;
@@ -454,7 +457,8 @@ small .dropdown a:focus, small .dropdown a:hover {
454457
color: #eee;
455458
}
456459

457-
.night .navbar a{
460+
.night .navbar-default .navbar-nav > li > a,
461+
.night .navbar a {
458462
color: #eee;
459463
}
460464

public/css/index.css

+9
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,11 @@ body.night{
329329
background: #000;
330330

331331
}
332+
333+
.night .navbar-default .btn-link {
334+
color: #bbb;
335+
}
336+
332337
.dropdown-menu > li > a {
333338
cursor: pointer;
334339
text-overflow: ellipsis;
@@ -345,6 +350,10 @@ body.night{
345350
color: #262626
346351
}
347352

353+
.night .status-bar .dropdown-menu > li > a:focus, .status-bar .dropdown-menu > li > a:hover {
354+
color: #ccc;
355+
}
356+
348357
.night .dropdown-menu {
349358
background: #222;
350359
}

webpack.common.js

+1
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ module.exports = {
275275
path.join(__dirname, 'public/css/codemirror-extend/ayu-mirage.css'),
276276
path.join(__dirname, 'public/css/codemirror-extend/tomorrow-night-bright.css'),
277277
path.join(__dirname, 'public/css/codemirror-extend/tomorrow-night-eighties.css'),
278+
path.join(__dirname, 'public/css/codemirror-extend/one-dark.css'),
278279
path.join(__dirname, 'node_modules/@hackmd/codemirror/mode/tiddlywiki/tiddlywiki.css'),
279280
path.join(__dirname, 'node_modules/@hackmd/codemirror/mode/mediawiki/mediawiki.css'),
280281
path.join(__dirname, 'public/css/github-extract.css'),

0 commit comments

Comments
 (0)