2024-05-03 20:08:52 +02:00
|
|
|
$background-color: #0f161e;
|
2024-04-30 12:16:09 +02:00
|
|
|
$text-color: #e0e0e0;
|
|
|
|
|
2024-05-03 20:08:52 +02:00
|
|
|
$primary-color: #284371;
|
|
|
|
$secondary-color: #546c99;
|
2024-05-03 22:59:29 +02:00
|
|
|
$danger-color: #6d2a20;
|
|
|
|
$warning-color: #715227;
|
2024-04-30 12:16:09 +02:00
|
|
|
$success-color: #25603e;
|
2024-05-03 22:59:29 +02:00
|
|
|
$information-color: #1c606a;
|
|
|
|
$special-color: #65206e;
|
2024-04-30 12:16:09 +02:00
|
|
|
|
|
|
|
$upvote-color: #5b9b26;
|
|
|
|
$downvote-color: #da3412;
|
|
|
|
$fave-color: #a18e27;
|
|
|
|
$comment-color: #b099dd;
|
|
|
|
$hide-color: #da3412;
|
|
|
|
|
|
|
|
$tag-default-color: #1b3c21;
|
|
|
|
$tag-error-color: #4f181d;
|
|
|
|
$tag-rating-color: #113456;
|
|
|
|
$tag-origin-color: #1d1858;
|
|
|
|
$tag-character-color: #193f47;
|
|
|
|
$tag-oc-color: #451f47;
|
|
|
|
$tag-species-color: #362118;
|
|
|
|
$tag-body-type-color: #393939;
|
|
|
|
$tag-content-fanmade-color: #622c4e;
|
|
|
|
$tag-content-official-color: #4b491c;
|
|
|
|
$tag-spoiler-color: #4f3811;
|
|
|
|
|
|
|
|
$spoiler-color: #0f0f0f;
|
|
|
|
|
|
|
|
@define-mixin tag-color $tagname, $color, $text-percentage: 35, $border-percentage: 15 {
|
|
|
|
--tag-$(tagname)-color: $(color);
|
|
|
|
--tag-$(tagname)-border-color: hsl(from $color h s calc(l + $border-percentage));
|
|
|
|
--tag-$(tagname)-text-color: hsl(from $color h s calc(l + $text-percentage));
|
|
|
|
}
|
|
|
|
|
|
|
|
@define-mixin type-color $type, $color {
|
|
|
|
--$(type)-color: $color;
|
|
|
|
--$(type)-border-color: hsl(from $color h calc(s - 20) calc(l + 10));
|
2024-05-03 20:08:52 +02:00
|
|
|
--$(type)-muted-color: hsl(from $color h calc(s - 10) calc(l - 7));
|
|
|
|
--$(type)-dark-color: hsl(from $color h calc(s - 30) calc(l - 11));
|
2024-04-30 12:16:09 +02:00
|
|
|
--$(type)-link-color: hsl(from $color h calc(s + 10) calc(l + 45));
|
|
|
|
}
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--background-color: $background-color;
|
|
|
|
--text-color: $text-color;
|
2024-05-03 20:08:52 +02:00
|
|
|
--text-light-color: $text-color;
|
2024-04-30 12:16:09 +02:00
|
|
|
|
2024-05-03 20:08:52 +02:00
|
|
|
--link-color: hsl(from $primary-color h calc(s + 10) calc(l + 40));
|
2024-04-30 12:16:09 +02:00
|
|
|
--link-hover-color: $text-color;
|
|
|
|
|
|
|
|
--primary-color: $primary-color;
|
2024-05-03 20:08:52 +02:00
|
|
|
--primary-border-color: hsl(from $primary-color h calc(s - 20) calc(l + 5));
|
2024-04-30 12:16:09 +02:00
|
|
|
--primary-muted-color: hsl(from $primary-color h calc(s - 10) calc(l - 10));
|
2024-05-03 20:08:52 +02:00
|
|
|
--primary-dark-color: hsl(from $primary-color h calc(s - 15) calc(l - 15));
|
2024-05-01 00:10:05 +02:00
|
|
|
--primary-link-color: var(--link-color); /* for consistency */
|
2024-04-30 12:16:09 +02:00
|
|
|
|
|
|
|
--secondary-color: $secondary-color;
|
2024-05-03 20:08:52 +02:00
|
|
|
--secondary-border-color: hsl(from $secondary-color h s calc(l + 5));
|
|
|
|
--secondary-muted-color: hsl(from $secondary-color h s calc(l - 17));
|
|
|
|
--secondary-dark-color: hsl(from $secondary-color h calc(s - 5) calc(l - 25));
|
2024-05-03 22:59:29 +02:00
|
|
|
--secondary-link-color: hsl(from $secondary-color h s calc(l + 40));
|
2024-04-30 12:16:09 +02:00
|
|
|
|
|
|
|
--upvote-color: $upvote-color;
|
|
|
|
--downvote-color: $downvote-color;
|
|
|
|
--fave-color: $fave-color;
|
|
|
|
--comment-color: $comment-color;
|
|
|
|
--hide-color: $hide-color;
|
|
|
|
|
|
|
|
--spoiler-color: $spoiler-color;
|
|
|
|
--spoiler-revealed-color: hsl(from $spoiler-color h s calc(l + 20));
|
|
|
|
|
|
|
|
@mixin type-color success, $success-color;
|
|
|
|
@mixin type-color warning, $warning-color;
|
|
|
|
@mixin type-color danger, $danger-color;
|
|
|
|
@mixin type-color information, $information-color;
|
|
|
|
@mixin type-color special, $special-color;
|
|
|
|
|
|
|
|
@mixin tag-color default, $tag-default-color;
|
|
|
|
@mixin tag-color error, $tag-error-color, 37;
|
|
|
|
@mixin tag-color rating, $tag-rating-color, 37;
|
|
|
|
@mixin tag-color origin, $tag-origin-color, 42;
|
|
|
|
@mixin tag-color character, $tag-character-color;
|
|
|
|
@mixin tag-color oc, $tag-oc-color, 40;
|
|
|
|
@mixin tag-color species, $tag-species-color, 37;
|
|
|
|
@mixin tag-color body-type, $tag-body-type-color, 45, 12;
|
|
|
|
@mixin tag-color content-fanmade, $tag-content-fanmade-color, 40;
|
|
|
|
@mixin tag-color content-official, $tag-content-official-color;
|
|
|
|
@mixin tag-color spoiler, $tag-spoiler-color;
|
|
|
|
}
|