From 196efecaaabca797832e62287732a77f02b6b594 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 22 Sep 2014 11:04:46 -0400 Subject: Fix #491 --- public/ng/less/gogs/markdown.less | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'public/ng/less/gogs') diff --git a/public/ng/less/gogs/markdown.less b/public/ng/less/gogs/markdown.less index ee69fab8..72cd610a 100644 --- a/public/ng/less/gogs/markdown.less +++ b/public/ng/less/gogs/markdown.less @@ -26,7 +26,13 @@ margin-top: 0; } } - > pre { + code { + padding: 0.2em 0.5em; + margin: 0; + background-color: rgba(0,0,0,0.04); + border-radius: 3px; + } + >pre { font-size: 14px; line-height: 1.6; overflow: auto; @@ -35,6 +41,10 @@ margin: 5px 0; padding: 10px; background-color: #f8f8f8; + code { + padding: 0; + background-color: inherit; + } } img { padding: 10px 0; -- cgit v1.2.3