1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-10 04:27:22 +00:00

Clean up "file-view" related styles (#34558)

Move "file-view" and "code-view" related styles to their own file,
remove unnecessary `!important`
This commit is contained in:
wxiaoguang
2025-05-28 21:43:59 +08:00
committed by GitHub
parent 4cb0c641ce
commit c6e2093f42
6 changed files with 73 additions and 77 deletions

View File

@ -309,10 +309,18 @@
box-sizing: initial;
}
.file-view.markup {
padding: 1em 2em;
}
.file-view.markup:has(.file-not-rendered-prompt) {
padding: 0; /* let the file-not-rendered-prompt layout itself */
}
/* this background ensures images can break <hr>. We can only do this on
cases where the background is known and not transparent. */
.markup.file-view img,
.markup.file-view video,
.file-view.markup img,
.file-view.markup video,
.comment-body .markup img, /* regular comment */
.comment-body .markup video,
.comment-content .markup img, /* code comment */