Skip to content

Commit fdca186

Browse files
silverwindYohann Delafollye
authored and
Yohann Delafollye
committed
tweak code tags in markdown (go-gitea#11000)
- remove whitespace before and after - increase horizontal padding - make blocks more apparant on arc-green
1 parent ed4837a commit fdca186

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

web_src/less/_markdown.less

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -371,21 +371,13 @@
371371

372372
code,
373373
tt {
374-
padding: .2em 0;
374+
padding: .2em .3em;
375375
margin: 0;
376376
font-size: 85%;
377377
background-color: rgba(0, 0, 0, .04);
378378
border-radius: 3px;
379379
}
380380

381-
code:before,
382-
code:after,
383-
tt:before,
384-
tt:after {
385-
letter-spacing: -.2em;
386-
content: "\00a0";
387-
}
388-
389381
code br,
390382
tt br {
391383
display: none;

web_src/less/themes/theme-arc-green.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,6 +1584,11 @@ body .xdsoft_datetimepicker {
15841584
border-left-color: #888;
15851585
}
15861586

1587+
.markdown:not(code) code,
1588+
.markdown:not(code) tt {
1589+
background-color: rgba(0, 0, 0, .12);
1590+
}
1591+
15871592
footer .container .links > * {
15881593
border-left-color: #888;
15891594
}

0 commit comments

Comments
 (0)