From a3c2e6edbe6b42e830bdad06658bd661909a3f72 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 21 Mar 2026 18:29:44 +0200 Subject: feat(cgit.css): Only highlight archive links which lead to download and add icon --- cgit.css | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'cgit.css') diff --git a/cgit.css b/cgit.css index 51209e6..c0a6a33 100644 --- a/cgit.css +++ b/cgit.css @@ -44,10 +44,26 @@ div#cgit a:hover { text-decoration: underline; } -div#cgit a[href$=".zip"], div#cgit a[href$=".tar"], div#cgit a[href$=".tar.gz"] { +div#cgit table[summary="repository info"] a[href$=".zip"], +div#cgit table[summary="repository info"] a[href$=".tar"], +div#cgit table[summary="repository info"] a[href$=".tar.gz"], +div#cgit table[summary="commit info"] a[href$=".zip"], +div#cgit table[summary="commit info"] a[href$=".tar"], +div#cgit table[summary="commit info"] a[href$=".tar.gz"] { color: /*--yellow*/#f5e16c; } +div#cgit table[summary="repository info"] a[href$=".zip"]:before, +div#cgit table[summary="repository info"] a[href$=".tar"]:before, +div#cgit table[summary="repository info"] a[href$=".tar.gz"]:before, +div#cgit table[summary="commit info"] a[href$=".zip"]:before, +div#cgit table[summary="commit info"] a[href$=".tar"]:before, +div#cgit table[summary="commit info"] a[href$=".tar.gz"]:before { + content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAABeAAAAXgH42Q/5AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAPxJREFUOI2l07FKA0EUheEvEl9A7VNaq4WVgg9g3GlErCWdYGtjkUILRWsRO0FN4WBewNo3sLEwYCP6BEKSZgLLkt0N5MAU9865/5wZmEaWZeZRM1/EGBexh6Vc+wf9EMKwFoAb7GOQ6hW08BJjPAgh/BcBC4V6E2c4TuscX1jHc0pYCWhgiDZ2U+8XO1ibBikCJurjA99YTcBHZLjIG4tvMFEbW2ngEofJO8D2LIAHfKIZQuiiCzHGDjqzXOEWdzgt2a8FNHFVkbAWcI0N3NcBpp4QQuihVzc8LcGoItXEP6pK8I5ujPGoBNDCUxXgBG9YLgH84TXfaMz7nccXkzeEDaM8OQAAAABJRU5ErkJggg==); + margin: 0 5px 0 0; + vertical-align: -3px; +} + div#cgit table { border-collapse: collapse; } -- cgit v1.2.3