1
0
Fork 0
codeberg-forgejo/web_src
tastytea 2fa9c96347 CB/ui: add styling for asciidoc classes (!44)
This adds a few asciidoctor classes to the sanitizer and adds styling for them.

- support for making elements `float`
- support for [tables without borders](https://codeberg.org/tastytea/asciidoctor-rendering-test/src/branch/main/README.adoc#_with_gridnone)
- make [TOC-title](https://codeberg.org/tastytea/asciidoctor-rendering-test/src/branch/main/README.adoc) bold
- make [admonition blocks](https://codeberg.org/tastytea/asciidoctor-rendering-test/src/branch/main/README.adoc#_admonitions) look nice

I tried adding more border-styles for tables, but clashed with existing rules and couldn't figure out how to solve it. I don't think it's that important for this use-case so i didn't try too hard. 😊

Co-authored-by: tastytea <tastytea@tastytea.de>
Reviewed-on: https://codeberg.org/Codeberg/gitea/pulls/44
Co-authored-by: tastytea <tastytea@noreply.codeberg.org>
Co-committed-by: tastytea <tastytea@noreply.codeberg.org>
2022-12-09 12:23:34 +00:00
..
fomantic Remove customized (unmaintained) dropdown, improve aria a11y for dropdown (#19861) 2022-06-03 17:38:26 -04:00
js Merge remote-tracking branch 'upstream/release/v1.17' into codeberg-1.17 2022-11-12 19:28:13 +01:00
less CB/ui: add styling for asciidoc classes (!44) 2022-12-09 12:23:34 +00:00
svg Change review buttons to icons to make space for text (#20934) (#20978) 2022-08-27 23:52:00 +03:00