Skip to content

Commit f9afaf7

Browse files
committed
fix colors in dark theme - simpleMDE rendered preview
Signed-off-by: Michael Gnehr <[email protected]>
1 parent 6a0b3a1 commit f9afaf7

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

public/css/theme-arc-green.css

+3
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ footer{background:#2e323e;border-top:1px solid #313131}
9696
.markdown:not(code) table tr:nth-child(2n-1){background-color:#383b44}
9797
.markdown:not(code) table thead tr:nth-child(2n-1){background-color:#464c5d!important}
9898
.markdown:not(code) table td,.markdown:not(code) table th{border-color:#4c505c!important}
99+
.repository.file.editor.edit,.repository.wiki.new .CodeMirror{border-right:1px solid rgba(187,187,187,.6);border-left:1px solid rgba(187,187,187,.6);border-bottom:1px solid rgba(187,187,187,.6)}
100+
.repository.file.editor.edit .editor-preview,.repository.wiki.new .CodeMirror .editor-preview{background:#353945;scrollbar-color:#2a2a2a #fff}
101+
.repository.file.editor.edit .editor-preview .markdown:not(code).ui.segment,.repository.wiki.new .CodeMirror .editor-preview .markdown:not(code).ui.segment{border-width:0}
99102
.ui.dropdown .menu{background:#2c303a}
100103
.ui.dropdown .menu>.message:not(.ui){color:#636363}
101104
.ui.input{color:#dbdbdb}

public/js/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ function initWikiForm() {
11441144
"text": plainText
11451145
},
11461146
function (data) {
1147-
preview.innerHTML = '<div class="markdown">' + data + '</div>';
1147+
preview.innerHTML = '<div class="markdown ui segment">' + data + '</div>';
11481148
emojify.run($('.editor-preview')[0]);
11491149
}
11501150
);
@@ -1224,7 +1224,7 @@ function setSimpleMDE($editArea) {
12241224
"text": plainText
12251225
},
12261226
function (data) {
1227-
preview.innerHTML = '<div class="markdown">' + data + '</div>';
1227+
preview.innerHTML = '<div class="markdown ui segment">' + data + '</div>';
12281228
emojify.run($('.editor-preview')[0]);
12291229
}
12301230
);

public/less/themes/arc-green.less

+16
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,22 @@ a.ui.basic.green.label:hover {
517517
border-color: #4c505c !important;
518518
}
519519

520+
.repository.file.editor.edit,
521+
.repository.wiki.new .CodeMirror {
522+
border-right: 1px solid rgba(187,187,187, 0.6);
523+
border-left: 1px solid rgba(187,187,187, 0.6);
524+
border-bottom: 1px solid rgba(187,187,187, 0.6);
525+
526+
.editor-preview {
527+
background: #353945;
528+
scrollbar-color: #2a2a2a white;
529+
530+
.markdown:not(code).ui.segment {
531+
border-width: 0;
532+
}
533+
}
534+
}
535+
520536
.ui.dropdown .menu {
521537
background: #2c303a;
522538
}

0 commit comments

Comments
 (0)