diff options
author | silverwind <me@silverwind.io> | 2020-11-04 08:14:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 09:14:07 +0200 |
commit | 62719cdd2d7e62cd21f4bfcf8eb9ded37128159a (patch) | |
tree | 402d8c20f9e3f40eb2c6c695a45a3dd3497a2376 /web_src/less/helpers.less | |
parent | 951a3337336d96e363776d874e5a844e0c768f3b (diff) | |
download | gitea-62719cdd2d7e62cd21f4bfcf8eb9ded37128159a.tar.gz gitea-62719cdd2d7e62cd21f4bfcf8eb9ded37128159a.zip |
Fix whitespace rendering in diff (#13415)
- Introduce new .code-inner class that sets the CSS attributes on
rendered code lines like view,blame and diff.
- Rename .wrap class to .word-break to reflect what it actually does
- Remove .raw which was only used on webhook page
- Set white-space: pre-wrap except on blame where it can break the
layout
Fixes: https://github.com/go-gitea/gitea/issues/13406
Diffstat (limited to 'web_src/less/helpers.less')
-rw-r--r-- | web_src/less/helpers.less | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web_src/less/helpers.less b/web_src/less/helpers.less index fff866c66c..b62ce3494b 100644 --- a/web_src/less/helpers.less +++ b/web_src/less/helpers.less @@ -4,6 +4,9 @@ .js { justify-content: flex-start; } .je { justify-content: flex-end; } .sb { justify-content: space-between; } +.mono { font-family: var(--fonts-monospace); } +.rounded { border-radius: var(--border-radius) !important; } +.word-break { word-wrap: break-word; word-break: break-all; } .m-0 { margin: 0 !important; } .m-1 { margin: .125rem !important; } |