summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-23 10:32:24 -0400
committerUnknwon <u@gogs.io>2016-03-23 10:32:24 -0400
commitd3db1b25913e06bc310d906bc1d75f53506a206d (patch)
tree69b88bd90dbffd1abf3560d868ae6bafb6697c25
parent98b58fa050e778a49cf1017cc806053bb5b70da6 (diff)
parent3decc0b3d6db450d1885ea5cffef8491136d72ca (diff)
downloadgitea-d3db1b25913e06bc310d906bc1d75f53506a206d.tar.gz
gitea-d3db1b25913e06bc310d906bc1d75f53506a206d.zip
Merge pull request #2879 from dakira/develop
use monospace font for wiki and issue textareas (fix #2869)
-rw-r--r--public/css/gogs.css5
-rw-r--r--public/less/_repository.less17
2 files changed, 16 insertions, 6 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index 7f71924b15..973f831cff 100644
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -1506,6 +1506,7 @@ footer .container .links > *:first-child {
}
.repository.view.issue .comment-list .comment .ui.form textarea {
height: 200px;
+ font-family: "Consolas", monospace;
}
.repository.view.issue .comment-list .comment .edit.buttons {
margin-top: 10px;
@@ -1587,6 +1588,7 @@ footer .container .links > *:first-child {
}
.repository .comment.form .content textarea {
height: 200px;
+ font-family: "Consolas", monospace;
}
.repository .label.list {
list-style: none;
@@ -1966,6 +1968,9 @@ footer .container .links > *:first-child {
.repository.wiki.start .ui.segment .mega-octicon {
font-size: 48px;
}
+.repository.wiki.new .CodeMirror .CodeMirror-code {
+ font-family: "Consolas", monospace;
+}
.repository.wiki.new .CodeMirror .CodeMirror-code .cm-comment {
background: inherit;
}
diff --git a/public/less/_repository.less b/public/less/_repository.less
index c2b90fa93b..66c3543214 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -70,8 +70,8 @@
}
}
.header-wrapper {
- background-color: #FAFAFA;
- margin-top: -15px;
+ background-color: #FAFAFA;
+ margin-top: -15px;
padding-top: 15px;
.ui.tabs.divider {
@@ -281,7 +281,7 @@
#avatar-arrow;
&:after {
border-right-color: #fff;
- }
+ }
.markdown {
font-size: 14px;
}
@@ -456,6 +456,7 @@
}
textarea {
height: 200px;
+ font-family: "Consolas", monospace;
}
}
@@ -531,6 +532,7 @@
}
textarea {
height: 200px;
+ font-family: "Consolas", monospace;
}
}
}
@@ -992,8 +994,11 @@
&.new {
.CodeMirror {
- .CodeMirror-code .cm-comment {
- background: inherit;
+ .CodeMirror-code {
+ font-family: "Consolas", monospace;
+ .cm-comment {
+ background: inherit;
+ }
}
}
@@ -1302,7 +1307,7 @@
border-right-color: #D4D4D5;
border-width: 9px;
margin-top: -9px;
- }
+ }
&:after {
border-right-color: #f7f7f7;
border-width: 8px;