summaryrefslogtreecommitdiff
path: root/usr/share
AgeCommit message (Collapse)Author
2025-03-05cgit tab size 4 for commit and diff codeXiao Pan
cgit commit and diff code show tab size as 8, e.g., [this commit][1] and [this diff][2] and [this diff][2]. I prefer tab size 4. So I looked at /usr/share/webapps/cgit/cgit.css and changed accordingly. I also make pre element more specific. Note in CSS, `#` is id selector, see [this link][3]. `div pre` is descendant combinator, see [this link][4]. [1]:https://git.flylightning.xyz/fsh/commit/sh/news?id=b13a0c1b7b5d24a4c0790279e10c89f94253c6c6 [2]:https://git.flylightning.xyz/fsh/diff/sh/news?id=b13a0c1b7b5d24a4c0790279e10c89f94253c6c6 [3]:https://www.w3schools.com/css/css_selectors.asp [4]:https://www.w3schools.com/css/css_combinators.asp
2025-02-21updateXiao Pan
2024-09-20new versionXiao Pan
2024-08-18updateXiao Pan
2024-06-01hightlight new version update add new CSS ruleXiao Pan
https://gitlab.com/saalen/highlight/-/issues/214
2024-03-31updateXiao Pan
2024-02-25mycgit.css change tab-size from default 8 to 4Xiao Pan
https://www.w3schools.com/cssref/css3_pr_tab-size.php
2024-02-25cgit syntax highlight using mycgit.cssXiao Pan
mycgit.css import cgit.css and highlight.css. Because cgit.css is not a pacman backup file and it will be overwritten once cgit update. I can also update highlight.css automatically via pacman hook or `upd`. Also, I think `highlight` not using `--inline-css` maybe is a better way performance wise and more elegant (less messy generated html source code).