Skip to content

Commit 1dfcfcd

Browse files
fix(favicon): use a more robust icon (#371)
* fix(favicon): use a more robust icon - rocket/gas: proper linecap/linejoin - drop CSS vars, which aren't supported by all mobile browsers - drop SVG <defs>, which aren't supported by all SVG editors/tools - OIF ring: use direct RGB colors rather than HSL colors - add an *.iso file (generated by svg2ico) for other uses, just in case The initial SVG favicon, with dark/light color support and CSS variables, is kept in a separate file. * fix(website): keep a light/dark banner icon
1 parent 1654baf commit 1dfcfcd

File tree

4 files changed

+99
-63
lines changed

4 files changed

+99
-63
lines changed

www/assets/css/theme.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ blockquote + hr {
266266
#banner {
267267
min-height: 50px;
268268
box-sizing: border-box;
269-
background: left var(--main-padding) center no-repeat url(../favicon.svg);
269+
background: left var(--main-padding) center no-repeat url(../favicon_light_dark.svg);
270270
background-size: 50px;
271271
background-color: var(--bg-banner);
272272
padding: .5em 0 0.5em calc(var(--main-padding) + 64px);
@@ -483,4 +483,4 @@ code { /* character, digrams, trigrams */
483483
header + nav li:has(.active) a.active {
484484
color: var(--fg-banner);
485485
}
486-
}
486+
}

www/static/favicon.ico

187 KB
Binary file not shown.

www/static/favicon.svg

Lines changed: 20 additions & 61 deletions
Loading

www/static/favicon_light_dark.svg

Lines changed: 77 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)