From b0070e70a83c1485470895055ea9e88ccc6a9ac2 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Sun, 8 Oct 2023 16:09:52 +0200 Subject: [PATCH] Remove youtube special handling --- app/logical/sites/simple_definition.rb | 2 +- app/stylesheet/base/mixins.scss | 4 +++- public/icons/{youtube.png => youtube_channel.png} | Bin public/icons/youtube_legacy.png | Bin 0 -> 938 bytes public/icons/youtube_vanity.png | Bin 0 -> 938 bytes 5 files changed, 4 insertions(+), 2 deletions(-) rename public/icons/{youtube.png => youtube_channel.png} (100%) create mode 100644 public/icons/youtube_legacy.png create mode 100644 public/icons/youtube_vanity.png diff --git a/app/logical/sites/simple_definition.rb b/app/logical/sites/simple_definition.rb index 9bbbb3db..74aa4818 100644 --- a/app/logical/sites/simple_definition.rb +++ b/app/logical/sites/simple_definition.rb @@ -32,7 +32,7 @@ def handles_image_domain?(domain) end def icon_class - "site-icon-#{site_type.starts_with?('youtube') ? 'youtube' : site_type}" + "site-icon-#{site_type}" end def gallery_url(identifier) diff --git a/app/stylesheet/base/mixins.scss b/app/stylesheet/base/mixins.scss index e9013bdb..168fc8c5 100644 --- a/app/stylesheet/base/mixins.scss +++ b/app/stylesheet/base/mixins.scss @@ -47,7 +47,9 @@ $icons: ( "vkontakte" "weasyl" "ychart" - "youtube" + "youtube_channel" + "youtube_legacy" + "youtube_vanity" ); @mixin site_icon($icon_size) { diff --git a/public/icons/youtube.png b/public/icons/youtube_channel.png similarity index 100% rename from public/icons/youtube.png rename to public/icons/youtube_channel.png diff --git a/public/icons/youtube_legacy.png b/public/icons/youtube_legacy.png new file mode 100644 index 0000000000000000000000000000000000000000..5ae83c7b27de75dec557dd58ab57169c2518958f GIT binary patch literal 938 zcmeAS@N?(olHy`uVBq!ia0vp^2SAvE8Azrw%`pX1$pJngu0Z-fsYpTLzktC1hKB$5 z@Ba@7_zwi@*Z+V2{{Q*&{~a9u&!7K4A>sf2{r?RN{udPd@9&pd^7$Ol8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