aboutsummaryrefslogtreecommitdiff
path: root/public/ng/less
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-22 11:04:46 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-22 11:04:46 -0400
commit196efecaaabca797832e62287732a77f02b6b594 (patch)
tree6c2bc4717c19137cd7f55e3054948ca54e85ffc6 /public/ng/less
parent01e69af2c8ff2738dca6377742c862546fad8239 (diff)
Fix #491
Diffstat (limited to 'public/ng/less')
2 files changed, 12 insertions, 12 deletions
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;
diff --git a/public/ng/less/ui/reset.less b/public/ng/less/ui/reset.less
index 36906ce5..8ff45d69 100644
--- a/public/ng/less/ui/reset.less
+++ b/public/ng/less/ui/reset.less
@@ -193,8 +193,7 @@ code,
kbd,
pre,
samp {
- font-family: monospace, monospace;
- font-size: 1em;
+ font: 14px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.text-left {
@@ -342,15 +341,6 @@ hr {
border-bottom: 1px solid @hrColor;
margin-bottom: .75em;
}
-
-// code element
-
-p {
- code {
- color: @inlineCodeColor;
- }
-}
-
// radius element
.radius {