diff options
| author | Syndamia <kamen@syndamia.com> | 2026-03-21 18:29:44 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2026-03-21 18:29:44 +0200 |
| commit | a3c2e6edbe6b42e830bdad06658bd661909a3f72 (patch) | |
| tree | 0b6616b02a6c2aeaf55623508e8e4d5a37e596cd /cgit.css | |
| parent | 7bc09a56f1febffd7ea3945d6a98dc1d0feb5581 (diff) | |
| download | cgit_theme-a3c2e6edbe6b42e830bdad06658bd661909a3f72.tar cgit_theme-a3c2e6edbe6b42e830bdad06658bd661909a3f72.tar.gz cgit_theme-a3c2e6edbe6b42e830bdad06658bd661909a3f72.zip | |
feat(cgit.css): Only highlight archive links which lead to download and add icon
Diffstat (limited to 'cgit.css')
| -rw-r--r-- | cgit.css | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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; } |
