Skip to content

Commit 5a5b3e9

Browse files
authored
Merge pull request #790 from SISheogorath/fix/nightModeCSS
Fix modal and panel colors in night mode
2 parents 96af23f + b90b215 commit 5a5b3e9

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

public/css/index.css

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ body.night{
156156
left: 50%;
157157
transform: translate(-50%, -50%);
158158
}
159+
.night .ui-edit-area .ui-sync-toggle {
160+
box-shadow: 2px 0px 2px #353535;
161+
}
162+
159163
.ui-edit-area .ui-sync-toggle:active {
160164
box-shadow: inset 0 3px 5px rgba(0,0,0,.125), 2px 0px 2px #e7e7e7;
161165
}
@@ -292,6 +296,13 @@ body.night{
292296
background: #222;
293297
}
294298

299+
.night .modal-content,
300+
.night .panel,
301+
.night .panel-heading {
302+
color: #eee;
303+
background-color: #333;
304+
}
305+
295306
.dropdown-menu.CodeMirror-other-cursor {
296307
transition: none;
297308
}
@@ -340,7 +351,8 @@ div[contenteditable]:empty:not(:focus):before{
340351
background: inherit;
341352
}
342353

343-
.night .navbar .btn-default{
354+
.night .navbar .btn-default,
355+
.night .close {
344356
background-color: #333;
345357
border-color: #565656;
346358
color: #eee;
@@ -372,8 +384,10 @@ div[contenteditable]:empty:not(:focus):before{
372384

373385
.night .btn.focus,
374386
.night .btn:focus,
375-
.night .btn:hover{
387+
.night .btn:hover,
388+
.night .close {
376389
color: #fff;
390+
background-color: #333;
377391
}
378392

379393
.info-label {

public/css/markdown.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
border: inherit !important;
1414
}
1515

16+
.night .markdown-body pre {
17+
filter: invert(100%);
18+
}
19+
1620
.markdown-body code {
1721
color: inherit !important;
1822
}
@@ -78,6 +82,7 @@
7882
.markdown-body code[data-gist-id] {
7983
background: none;
8084
padding: 0;
85+
filter: invert(100%);
8186
}
8287

8388
.markdown-body code[data-gist-id]:before {

0 commit comments

Comments
 (0)