Skip to content

Commit

Permalink
Add in hashtag icons based off https://umbracocommunity.social/custom…
Browse files Browse the repository at this point in the history
….css (#52)

* Add in hastag icons based off https://umbracocommunity.social/custom.css

* Updated #umbraco styling so it should match things like #UmbracoSpark and #UmbracpUkFest, which the main mastodon server does

* Couple more wildcard ones missed, mainly for conferences where it looks expected they'll cbange the hashtag to include the year
  • Loading branch information
CodeBunTes authored Mar 11, 2024
1 parent 55346dd commit 1364fb2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
21 changes: 21 additions & 0 deletions frontend/css/modules/hashtag-icons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Based off https://umbracocommunity.social/custom.css and updated to handle URLs not being relative here.
a[href*="/tags/" i]{white-space: nowrap}
a[href$="/tags/H5YR" i]::after{content: ""}
a[href*="/tags/Umbraco" i]::after{content: "🦄"}
a[href$="/tags/UmbracoTees" i]::after{content: "👕"}
a[href$="/tags/umbraCoffee" i]::after{content: ""}
a[href$="/tags/notacult" i]::after{content: "🙅"}
a[href$="/tags/codegarden" i]::after,a[href*="/tags/cg2" i]::after{content: "🦄"}
a[href$="/tags/dotnet" i]::after{content: "🤖"}
a[href$="/tags/csharp" i]::after{content: "🤖"}
a[href$="/tags/Hacktoberfest" i]::after{content: "🎃"}
a[href$="/tags/UmbracoCommunity" i]::after{content: "💙"}
a[href$="/tags/Friendly" i]::after{content: "💙"}
a[href$="/tags/codecabin" i]::after,a[href*="/tags/cc2" i]::after{content: "🛖"}
a[href$="/tags/24days" i]::after{content: "📅"}
a[href$="/tags/meetup" i]::after{content: "🍕"}
a[href$="/tags/codernails" i]::after{content: "💅🏻"}
a[href*="/tags/df2" i]::after, a[href*="/tags/duug" i]::after{content: "🦁"}
a[href$="/tags/umbukfest" i]::after{content: "✖️"}
a[href$="/tags/" i][href*="SecretSanta" i]::after{content: "🧑‍🎄"}

3 changes: 2 additions & 1 deletion frontend/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
@import "modules/tweets"; // Example icon styling
@import "modules/friends"; // Example icon styling
@import "modules/title"; // Example icon styling
@import "modules/share-to-mastodon";
@import "modules/share-to-mastodon";
@import "modules/hashtag-icons.scss";

0 comments on commit 1364fb2

Please sign in to comment.