From 45402bd44fae73a82debbfa81a241964c3c46a97 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sat, 12 Sep 2020 11:45:35 -0400 Subject: [PATCH] add body type tag category --- assets/css/themes/dark.scss | 3 +++ assets/css/themes/default.scss | 3 +++ assets/css/themes/red.scss | 3 +++ assets/css/views/_tags.scss | 8 ++++++++ lib/philomena/tags/tag.ex | 2 ++ 5 files changed, 19 insertions(+) diff --git a/assets/css/themes/dark.scss b/assets/css/themes/dark.scss index 46e16d2c..35cf7825 100644 --- a/assets/css/themes/dark.scss +++ b/assets/css/themes/dark.scss @@ -56,6 +56,7 @@ $tag_category_character_color: #4aaabf; $tag_category_content_official_color: #b9b541; $tag_category_content_fanmade_color: #cc8eb5; $tag_category_species_color: #b16b50; +$tag_category_body_type_color: #b8b8b8; $commission_category_color: #e07b27; @@ -149,6 +150,8 @@ $tag_category_content_fanmade_background: darken($tag_category_content_fanmade_c $tag_category_content_fanmade_border: desaturate(darken($tag_category_content_fanmade_color, 20%), 10%); $tag_category_species_background: darken($tag_category_species_color, 35%); $tag_category_species_border: desaturate(darken($tag_category_species_color, 20%), 10%); +$tag_category_body_type_background: darken($tag_category_body_type_color, 50%); +$tag_category_body_type_border: desaturate(darken($tag_category_body_type_color, 37%), 10%); $commission_category_background: darken($commission_category_color, 36%); $commission_category_border: darken($commission_category_color, 25%); diff --git a/assets/css/themes/default.scss b/assets/css/themes/default.scss index 210c2d92..0b8453f1 100644 --- a/assets/css/themes/default.scss +++ b/assets/css/themes/default.scss @@ -39,6 +39,7 @@ $tag_category_character_color: #2d8677; $tag_category_content_official_color: #998e1a; $tag_category_content_fanmade_color: #bb5496; $tag_category_species_color: #8b552f; +$tag_category_body_type_color: #4e4e4e; $commission_category_color: #986f3d; @@ -138,6 +139,8 @@ $tag_category_content_fanmade_background: lighten($tag_category_content_fanmade_ $tag_category_content_fanmade_border: lighten($tag_category_content_fanmade_color, 18%); $tag_category_species_background: lighten($tag_category_species_color, 44%); $tag_category_species_border: lighten($tag_category_species_color, 25%); +$tag_category_body_type_background: lighten($tag_category_body_type_color, 45%); +$tag_category_body_type_border: lighten($tag_category_body_type_color, 35%); $commission_category_background: saturate(lighten($commission_category_color, 40%), 12%); $commission_category_border: lighten($commission_category_color, 20%); diff --git a/assets/css/themes/red.scss b/assets/css/themes/red.scss index 4ebe9f63..ece22f14 100644 --- a/assets/css/themes/red.scss +++ b/assets/css/themes/red.scss @@ -59,6 +59,7 @@ $tag_category_character_color: #82d0e2; $tag_category_content_official_color: #d1cf84; $tag_category_content_fanmade_color: #ebb1d6; $tag_category_species_color: #d2b48c; +$tag_category_body_type_color: #b8b8b8; $commission_category_color: #e02727; @@ -152,6 +153,8 @@ $tag_category_content_fanmade_background: darken($tag_category_content_fanmade_c $tag_category_content_fanmade_border: desaturate(darken($tag_category_content_fanmade_color, 20%), 10%); $tag_category_species_background: darken($tag_category_species_color, 40%); $tag_category_species_border: desaturate(darken($tag_category_species_color, 20%), 10%); +$tag_category_body_type_background: darken($tag_category_body_type_color, 50%); +$tag_category_body_type_border: desaturate(darken($tag_category_body_type_color, 37%), 10%); $commission_category_background: darken($commission_category_color, 36%); $commission_category_border: darken($commission_category_color, 25%); diff --git a/assets/css/views/_tags.scss b/assets/css/views/_tags.scss index c6d7b84b..85150789 100644 --- a/assets/css/views/_tags.scss +++ b/assets/css/views/_tags.scss @@ -167,6 +167,14 @@ background: $tag_category_species_border; } } + &[data-tag-category="body-type"] { + background: $tag_category_body_type_background; + border-color: $tag_category_body_type_border; + color: $tag_category_body_type_color; + .tag__count { + background: $tag_category_body_type_border; + } + } } // Quick Tag Table diff --git a/lib/philomena/tags/tag.ex b/lib/philomena/tags/tag.ex index e6144339..5168037f 100644 --- a/lib/philomena/tags/tag.ex +++ b/lib/philomena/tags/tag.ex @@ -153,6 +153,7 @@ defmodule Philomena.Tags.Tag do &1.category != "character", &1.category != "oc", &1.category != "species", + &1.category != "body-type", &1.category != "content-fanmade", &1.category != "content-official", &1.category != "spoiler", @@ -169,6 +170,7 @@ defmodule Philomena.Tags.Tag do "character", "oc", "species", + "body-type", "content-fanmade", "content-official", "spoiler"