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/css/gogs.css | 10 ++++++++++ public/ng/css/ui.css | 6 +----- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'public/ng/css') diff --git a/public/ng/css/gogs.css b/public/ng/css/gogs.css index db4aad22..5429d012 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 7c385c13..f3f6eded 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; } -- cgit v1.2.3