diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-09-22 11:04:46 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-09-22 11:04:46 -0400 |
commit | 196efecaaabca797832e62287732a77f02b6b594 (patch) | |
tree | 6c2bc4717c19137cd7f55e3054948ca54e85ffc6 /public/ng/css | |
parent | 01e69af2c8ff2738dca6377742c862546fad8239 (diff) | |
download | gitea-196efecaaabca797832e62287732a77f02b6b594.tar.gz gitea-196efecaaabca797832e62287732a77f02b6b594.zip |
Fix #491
Diffstat (limited to 'public/ng/css')
-rw-r--r-- | public/ng/css/gogs.css | 10 | ||||
-rw-r--r-- | public/ng/css/ui.css | 6 |
2 files changed, 11 insertions, 5 deletions
diff --git a/public/ng/css/gogs.css b/public/ng/css/gogs.css index db4aad2283..5429d01264 100644 --- a/public/ng/css/gogs.css +++ b/public/ng/css/gogs.css @@ -294,6 +294,12 @@ img.avatar-100 { .markdown li:first-child { margin-top: 0; } +.markdown code { + padding: 0.2em 0.5em; + margin: 0; + background-color: rgba(0, 0, 0, 0.04); + border-radius: 3px; +} .markdown > pre { font-size: 14px; line-height: 1.6; @@ -304,6 +310,10 @@ img.avatar-100 { padding: 10px; background-color: #f8f8f8; } +.markdown > pre code { + padding: 0; + background-color: inherit; +} .markdown img { padding: 10px 0; max-width: 100%; diff --git a/public/ng/css/ui.css b/public/ng/css/ui.css index 7c385c1349..f3f6eded79 100644 --- a/public/ng/css/ui.css +++ b/public/ng/css/ui.css @@ -151,8 +151,7 @@ code, kbd, pre, samp { - font-family: monospace, monospace; - font-size: 1em; + font: 14px Consolas, "Liberation Mono", Menlo, Courier, monospace; } .text-left { text-align: left; @@ -277,9 +276,6 @@ hr { border-bottom: 1px solid #dddddd; margin-bottom: .75em; } -p code { - color: #b63b2c; -} .radius { border-radius: .25em; } |