summaryrefslogtreecommitdiffstats
path: root/public/less
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-17 22:44:07 -0700
committerUnknwon <u@gogs.io>2016-08-17 22:44:07 -0700
commit7f7216be6e4a55af83a614fb2782d643af40825a (patch)
tree1429b942c9c918957dd189a947903f7a0c5bfc53 /public/less
parentec332cf903354f8ab291ea33962d244a879c330d (diff)
downloadgitea-7f7216be6e4a55af83a614fb2782d643af40825a.tar.gz
gitea-7f7216be6e4a55af83a614fb2782d643af40825a.zip
Code quality improvement on JS
Diffstat (limited to 'public/less')
-rw-r--r--public/less/_editor.less10
-rw-r--r--public/less/_repository.less5
-rw-r--r--public/less/gogs.less1
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";