diff options
author | Unknwon <u@gogs.io> | 2016-08-17 22:44:07 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-17 22:44:07 -0700 |
commit | 7f7216be6e4a55af83a614fb2782d643af40825a (patch) | |
tree | 1429b942c9c918957dd189a947903f7a0c5bfc53 /public/less | |
parent | ec332cf903354f8ab291ea33962d244a879c330d (diff) | |
download | gitea-7f7216be6e4a55af83a614fb2782d643af40825a.tar.gz gitea-7f7216be6e4a55af83a614fb2782d643af40825a.zip |
Code quality improvement on JS
Diffstat (limited to 'public/less')
-rw-r--r-- | public/less/_editor.less | 10 | ||||
-rw-r--r-- | public/less/_repository.less | 5 | ||||
-rw-r--r-- | public/less/gogs.less | 1 |
3 files changed, 11 insertions, 5 deletions
diff --git a/public/less/_editor.less b/public/less/_editor.less new file mode 100644 index 0000000000..25347bdc8d --- /dev/null +++ b/public/less/_editor.less @@ -0,0 +1,10 @@ +.CodeMirror { + font: 14px Consolas, "Liberation Mono", Menlo, Courier, monospace; + &.cm-s-default { + border-radius: 3px; + padding: 0 !important; + } + .cm-comment { + background: inherit !important; + } +}
\ No newline at end of file diff --git a/public/less/_repository.less b/public/less/_repository.less index dceaa67ca3..931b57e0ec 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -326,11 +326,6 @@ } } - .CodeMirror.cm-s-default { - border-radius: 3px; - padding: 0 !important; - } - .commit-form-wrapper { padding-left: 64px; .commit-avatar { diff --git a/public/less/gogs.less b/public/less/gogs.less index ea17b326b0..d885195f5f 100644 --- a/public/less/gogs.less +++ b/public/less/gogs.less @@ -5,6 +5,7 @@ @import "_install"; @import "_form"; @import "_repository"; +@import "_editor"; @import "_organization"; @import "_user"; @import "_dashboard"; |