Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
e4fd521c
Commit
e4fd521c
authored
Feb 25, 2018
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: cm editor theme
parent
a30b749b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
4 deletions
+81
-4
editor-code.vue
client/components/editor-code.vue
+1
-4
app.scss
client/scss/app.scss
+1
-0
editor-code.scss
client/scss/components/editor-code.scss
+79
-0
No files found.
client/components/editor-code.vue
View file @
e4fd521c
...
...
@@ -93,9 +93,6 @@ import _ from 'lodash'
import
{
codemirror
}
from
'vue-codemirror'
import
'codemirror/lib/codemirror.css'
// Theme
import
'codemirror/theme/base16-dark.css'
// Language
import
'codemirror/mode/markdown/markdown.js'
...
...
@@ -168,7 +165,7 @@ export default {
cmOptions
:
{
tabSize
:
2
,
mode
:
'text/markdown'
,
theme
:
'
base16
-dark'
,
theme
:
'
wikijs
-dark'
,
lineNumbers
:
true
,
lineWrapping
:
true
,
line
:
true
,
...
...
client/scss/app.scss
View file @
e4fd521c
...
...
@@ -5,6 +5,7 @@
@import
"../libs/animate/animate"
;
@import
'components/button'
;
@import
'components/editor-code'
;
@import
'components/markdown-content'
;
@import
'components/navigator'
;
@import
'components/panel'
;
...
...
client/scss/components/editor-code.scss
0 → 100644
View file @
e4fd521c
.cm-s-wikijs-dark.CodeMirror
{
background
:
darken
(
mc
(
'grey'
,
'900'
)
,
3%
);
color
:
#e0e0e0
;
}
.cm-s-wikijs-dark
div
.CodeMirror-selected
{
background
:
mc
(
'blue'
,
'800'
);
}
.cm-s-wikijs-dark
.cm-matchhighlight
{
background
:
mc
(
'blue'
,
'800'
);
}
.
cm-s-wikijs-dark
.
CodeMirror-line
:
:
selection
,
.
cm-s-wikijs-dark
.
CodeMirror-line
>
span
::
selection
,
.
cm-s-wikijs-dark
.
CodeMirror-line
>
span
>
span
::
selection
{
background
:
mc
(
'red'
,
'500'
);
}
.
cm-s-wikijs-dark
.
CodeMirror-line
:
:-
moz-selection
,
.
cm-s-wikijs-dark
.
CodeMirror-line
>
span
::-
moz-selection
,
.
cm-s-wikijs-dark
.
CodeMirror-line
>
span
>
span
::-
moz-selection
{
background
:
mc
(
'red'
,
'500'
);
}
.cm-s-wikijs-dark
.CodeMirror-gutters
{
background
:
darken
(
mc
(
'grey'
,
'900'
)
,
6%
);
border-right
:
1px
solid
mc
(
'grey'
,
'900'
);
}
.cm-s-wikijs-dark
.CodeMirror-guttermarker
{
color
:
#ac4142
;
}
.cm-s-wikijs-dark
.CodeMirror-guttermarker-subtle
{
color
:
#505050
;
}
.cm-s-wikijs-dark
.CodeMirror-linenumber
{
color
:
mc
(
'grey'
,
'800'
);
}
.cm-s-wikijs-dark
.CodeMirror-cursor
{
border-left
:
1px
solid
#b0b0b0
;
}
.cm-s-wikijs-dark
span
.cm-comment
{
color
:
mc
(
'orange'
,
'800'
);
}
.cm-s-wikijs-dark
span
.cm-atom
{
color
:
#aa759f
;
}
.cm-s-wikijs-dark
span
.cm-number
{
color
:
#aa759f
;
}
.cm-s-wikijs-dark
span
.cm-property
,
.cm-s-wikijs-dark
span
.cm-attribute
{
color
:
#90a959
;
}
.cm-s-wikijs-dark
span
.cm-keyword
{
color
:
#ac4142
;
}
.cm-s-wikijs-dark
span
.cm-string
{
color
:
#f4bf75
;
}
.cm-s-wikijs-dark
span
.cm-variable
{
color
:
#90a959
;
}
.cm-s-wikijs-dark
span
.cm-variable-2
{
color
:
#6a9fb5
;
}
.cm-s-wikijs-dark
span
.cm-def
{
color
:
#d28445
;
}
.cm-s-wikijs-dark
span
.cm-bracket
{
color
:
#e0e0e0
;
}
.cm-s-wikijs-dark
span
.cm-tag
{
color
:
#ac4142
;
}
.cm-s-wikijs-dark
span
.cm-link
{
color
:
#aa759f
;
}
.cm-s-wikijs-dark
span
.cm-error
{
background
:
#ac4142
;
color
:
#b0b0b0
;
}
.cm-s-wikijs-dark
.CodeMirror-activeline-background
{
background
:
mc
(
'grey'
,
'900'
);
}
.cm-s-wikijs-dark
.CodeMirror-matchingbracket
{
text-decoration
:
underline
;
color
:
white
!
important
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment