Render code tags in commit messages (#30146)
Extend https://github.com/go-gitea/gitea/pull/21432 to commit messages. Color is changed because the markup code block bg does not offer enough contrast on varying backgrounds. <img width="568" alt="Screenshot 2024-03-27 at 19 52 55" src="ddc9307e
-f32f-4e97-8b88-91f88ced2a36"> <img width="573" alt="Screenshot 2024-03-27 at 19 53 33" src="14b30fd2
-bf28-46b8-9e82-eb60a28f6bf2"> <img width="422" alt="Screenshot 2024-03-27 at 19 53 01" src="a12136b5
-c02b-460c-9830-f830542987ae"> <img width="397" alt="Screenshot 2024-03-27 at 19 53 27" src="c9f05d81
-c73e-468e-98e9-e5929bc0da3e"> <img width="333" alt="Screenshot 2024-03-27 at 19 53 07" src="06b5a9f9
-f95d-46b6-8c57-df0b02555652"> <img width="279" alt="Screenshot 2024-03-27 at 19 53 21" src="b06a0afc
-ddd8-48ae-b557-a6dc47802e68"> (cherry picked from commit e40fc75bac65933f2ed3de8fbc5fb336195b59f5)
This commit is contained in:
parent
ca1c90dc83
commit
3ccb0c2512
2 changed files with 4 additions and 4 deletions
|
@ -311,8 +311,8 @@ a.label,
|
|||
|
||||
.inline-code-block {
|
||||
padding: 2px 4px;
|
||||
border-radius: var(--border-radius-medium);
|
||||
background-color: var(--color-markup-code-block);
|
||||
border-radius: .24em;
|
||||
background-color: var(--color-label-bg);
|
||||
}
|
||||
|
||||
/* fix Fomantic's line-height cutting off "g" on Windows Chrome with Segoe UI */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue