aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-04-07 13:03:49 +0200
committerGitHub <noreply@github.com>2020-04-07 12:03:49 +0100
commitd6741de934c625bd90763253ccf0ca7c2045e3a0 (patch)
treef8ba92ad91ec00a8f2cf5b4d1db1a69a47fc770f /web_src/less
parent514e269b1d7f2ef74b3086e43fc7194a4a640f85 (diff)
downloadgitea-d6741de934c625bd90763253ccf0ca7c2045e3a0.tar.gz
gitea-d6741de934c625bd90763253ccf0ca7c2045e3a0.zip
tweak code tags in markdown (#11000)
- remove whitespace before and after - increase horizontal padding - make blocks more apparant on arc-green
Diffstat (limited to 'web_src/less')
-rw-r--r--web_src/less/_markdown.less10
-rw-r--r--web_src/less/themes/theme-arc-green.less5
2 files changed, 6 insertions, 9 deletions
diff --git a/web_src/less/_markdown.less b/web_src/less/_markdown.less
index 78a0d3a158..da542432d7 100644
--- a/web_src/less/_markdown.less
+++ b/web_src/less/_markdown.less
@@ -371,21 +371,13 @@
code,
tt {
- padding: .2em 0;
+ padding: .2em .3em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, .04);
border-radius: 3px;
}
- code:before,
- code:after,
- tt:before,
- tt:after {
- letter-spacing: -.2em;
- content: "\00a0";
- }
-
code br,
tt br {
display: none;
diff --git a/web_src/less/themes/theme-arc-green.less b/web_src/less/themes/theme-arc-green.less
index a979149c55..9aa077ab72 100644
--- a/web_src/less/themes/theme-arc-green.less
+++ b/web_src/less/themes/theme-arc-green.less
@@ -1584,6 +1584,11 @@ body .xdsoft_datetimepicker {
border-left-color: #888;
}
+.markdown:not(code) code,
+.markdown:not(code) tt {
+ background-color: rgba(0, 0, 0, .12);
+}
+
footer .container .links > * {
border-left-color: #888;
}