git: ffe12f7ed1 - main - website: Replace RSS icon asset with higher resolution ones
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Jul 2024 18:51:18 UTC
The branch main has been updated by 0mp:
URL: https://cgit.FreeBSD.org/doc/commit/?id=ffe12f7ed1cf3548519b439004b524ff0499d522
commit ffe12f7ed1cf3548519b439004b524ff0499d522
Author: Janek Szynal <mail@janek.ooo>
AuthorDate: 2024-07-15 18:38:04 +0000
Commit: Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2024-07-15 18:47:44 +0000
website: Replace RSS icon asset with higher resolution ones
The RSS icon on the website is visibly low resolution. This change adds
a high resolution version of the icon and replaces it across the
website.
The new icon is double the size. Because there are instances where the
icon's "physical" size cannot be changed (because it's used in a
`list-style-image` CSS property) an additional version of the icon is
added so that the layout of those is not affected, but the asset's
quality is still improved.
The icon is renamed from ico_rss.png to rss_icon.png since replacing an
image file without renaming it was causing preview issues, and since the
new name is a slightly better one.
Reviewed by: 0mp
Differential Revision: https://reviews.freebsd.org/D45806
Differential Revision: https://reviews.freebsd.org/D45810
---
website/content/en/layout/css/navigation.css | 2 +-
website/content/en/layout/images/ico_rss.png | Bin 366 -> 0 bytes
website/content/en/layout/images/rss_icon.png | Bin 0 -> 465 bytes
website/content/en/layout/images/rss_icon_small.png | Bin 0 -> 275 bytes
website/themes/beastie/layouts/index.html | 10 +++++-----
website/themes/beastie/static/css/navigation.css | 2 +-
website/themes/beastie/static/images/ico_rss.png | Bin 366 -> 0 bytes
website/themes/beastie/static/images/rss_icon.png | Bin 0 -> 465 bytes
website/themes/beastie/static/images/rss_icon_small.png | Bin 0 -> 275 bytes
9 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/website/content/en/layout/css/navigation.css b/website/content/en/layout/css/navigation.css
index 25402e8792..9a555326ff 100644
--- a/website/content/en/layout/css/navigation.css
+++ b/website/content/en/layout/css/navigation.css
@@ -298,7 +298,7 @@ div#menu ul ul ul li:hover ul {
}
#feedlinks ul {
- list-style-image: url(../images/ico_rss.png);
+ list-style-image: url(../images/rss_icon.png);
}
/* Right Navigation */
diff --git a/website/content/en/layout/images/ico_rss.png b/website/content/en/layout/images/ico_rss.png
deleted file mode 100644
index 4903466efe..0000000000
Binary files a/website/content/en/layout/images/ico_rss.png and /dev/null differ
diff --git a/website/content/en/layout/images/rss_icon.png b/website/content/en/layout/images/rss_icon.png
new file mode 100644
index 0000000000..49a79478cd
Binary files /dev/null and b/website/content/en/layout/images/rss_icon.png differ
diff --git a/website/content/en/layout/images/rss_icon_small.png b/website/content/en/layout/images/rss_icon_small.png
new file mode 100644
index 0000000000..d3efade13c
Binary files /dev/null and b/website/content/en/layout/images/rss_icon_small.png differ
diff --git a/website/themes/beastie/layouts/index.html b/website/themes/beastie/layouts/index.html
index 42d9c06631..ed91a74815 100755
--- a/website/themes/beastie/layouts/index.html
+++ b/website/themes/beastie/layouts/index.html
@@ -157,7 +157,7 @@
</li>
<li class="last-child">
<a href="{{ absLangURL ($.Site.BaseURL) }}news/feed.xml" title={{ i18n "rssNews" }}>
- <img class="rssimage" src="{{ absLangURL ($.Site.BaseURL) }}images/ico_rss.png" alt={{ i18n "rssNews" }} width="27" height="12" />
+ <img class="rssimage" src="{{ absLangURL ($.Site.BaseURL) }}images/rss_icon.png" alt={{ i18n "rssNews" }} width="27" height="12" />
</a>
</li>
</ul>
@@ -180,7 +180,7 @@
</li>
<li class="last-child">
<a href="{{ absLangURL ($.Site.BaseURL) }}events/feed.xml" title={{ i18n "rssEvents" }}>
- <img class="rssimage" src="{{ absLangURL ($.Site.BaseURL) }}images/ico_rss.png" alt={{ i18n "rssEvents" }} width="27" height="12" />
+ <img class="rssimage" src="{{ absLangURL ($.Site.BaseURL) }}images/rss_icon.png" alt={{ i18n "rssEvents" }} width="27" height="12" />
</a>
</li>
</ul>
@@ -203,7 +203,7 @@
</li>
<li class="last-child">
<a href="{{ absLangURL ($.Site.BaseURL) }}press/feed.xml" title={{ i18n "rssMedia" }}>
- <img class="rssimage" src="{{ absLangURL ($.Site.BaseURL) }}images/ico_rss.png" alt={{ i18n "rssMedia" }} width="27" height="12" />
+ <img class="rssimage" src="{{ absLangURL ($.Site.BaseURL) }}images/rss_icon.png" alt={{ i18n "rssMedia" }} width="27" height="12" />
</a>
</li>
</ul>
@@ -226,7 +226,7 @@
</li>
<li class="last-child">
<a href="{{ absLangURL ($.Site.BaseURL) }}security/feed.xml" title={{ i18n "rssSecurity" }}>
- <img class="rssimage" src="{{ absLangURL ($.Site.BaseURL) }}images/ico_rss.png" alt="News RSS Feed" width="27" height="12" />
+ <img class="rssimage" src="{{ absLangURL ($.Site.BaseURL) }}images/rss_icon.png" alt="News RSS Feed" width="27" height="12" />
</a>
</li>
</ul>
@@ -243,7 +243,7 @@
</li>
<li class="last-child">
<a href="{{ absLangURL ($.Site.BaseURL) }}security/feed.xml" title={{ i18n "rssSecurity" }}>
- <img class="rssimage" src="{{ absLangURL ($.Site.BaseURL) }}images/ico_rss.png" alt="News RSS Feed" width="27" height="12" />
+ <img class="rssimage" src="{{ absLangURL ($.Site.BaseURL) }}images/rss_icon.png" alt="News RSS Feed" width="27" height="12" />
</a>
</li>
</ul>
diff --git a/website/themes/beastie/static/css/navigation.css b/website/themes/beastie/static/css/navigation.css
index 09a9d85976..26c56112fc 100644
--- a/website/themes/beastie/static/css/navigation.css
+++ b/website/themes/beastie/static/css/navigation.css
@@ -302,7 +302,7 @@ nav ul ul ul li:hover ul {
}
#feedlinks ul {
- list-style-image: url(../images/ico_rss.png);
+ list-style-image: url(../images/rss_icon_small.png);
}
/* Right Navigation */
diff --git a/website/themes/beastie/static/images/ico_rss.png b/website/themes/beastie/static/images/ico_rss.png
deleted file mode 100644
index 4903466efe..0000000000
Binary files a/website/themes/beastie/static/images/ico_rss.png and /dev/null differ
diff --git a/website/themes/beastie/static/images/rss_icon.png b/website/themes/beastie/static/images/rss_icon.png
new file mode 100644
index 0000000000..49a79478cd
Binary files /dev/null and b/website/themes/beastie/static/images/rss_icon.png differ
diff --git a/website/themes/beastie/static/images/rss_icon_small.png b/website/themes/beastie/static/images/rss_icon_small.png
new file mode 100644
index 0000000000..d3efade13c
Binary files /dev/null and b/website/themes/beastie/static/images/rss_icon_small.png differ