|
@ -3,14 +3,22 @@ |
|
|
// Note that all rules inside the mixin will be included in the compiled CSS |
|
|
// Note that all rules inside the mixin will be included in the compiled CSS |
|
|
// once for each theme, so they should be kept as minimal as possible. |
|
|
// once for each theme, so they should be kept as minimal as possible. |
|
|
|
|
|
|
|
|
@mixin commenttag($color, $is-light) { |
|
|
|
|
|
|
|
|
@mixin specialtag($color, $is-light) { |
|
|
@if $is-light { |
|
|
@if $is-light { |
|
|
background-color: $color; |
|
|
background-color: $color; |
|
|
|
|
|
|
|
|
|
|
|
a { |
|
|
|
|
|
color: white; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
@else { |
|
|
@else { |
|
|
background-color: transparent; |
|
|
background-color: transparent; |
|
|
color: $color; |
|
|
color: $color; |
|
|
border: 1px solid $color; |
|
|
border: 1px solid $color; |
|
|
|
|
|
|
|
|
|
|
|
a { |
|
|
|
|
|
color: $color; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -101,11 +109,11 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.comment-tags { |
|
|
.comment-tags { |
|
|
.label-comment-tag-joke { @include commenttag($comment-tag-joke-color, $is-light); } |
|
|
|
|
|
.label-comment-tag-noise { @include commenttag($comment-tag-noise-color, $is-light); } |
|
|
|
|
|
.label-comment-tag-offtopic { @include commenttag($comment-tag-offtopic-color, $is-light); } |
|
|
|
|
|
.label-comment-tag-troll { @include commenttag($comment-tag-troll-color, $is-light); } |
|
|
|
|
|
.label-comment-tag-flame { @include commenttag($comment-tag-flame-color, $is-light); } |
|
|
|
|
|
|
|
|
.label-comment-tag-joke { @include specialtag($comment-tag-joke-color, $is-light); } |
|
|
|
|
|
.label-comment-tag-noise { @include specialtag($comment-tag-noise-color, $is-light); } |
|
|
|
|
|
.label-comment-tag-offtopic { @include specialtag($comment-tag-offtopic-color, $is-light); } |
|
|
|
|
|
.label-comment-tag-troll { @include specialtag($comment-tag-troll-color, $is-light); } |
|
|
|
|
|
.label-comment-tag-flame { @include specialtag($comment-tag-flame-color, $is-light); } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.is-comment-collapsed { |
|
|
.is-comment-collapsed { |
|
@ -176,6 +184,14 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.label-topic-tag-nsfw { |
|
|
|
|
|
@include specialtag($topic-tag-nsfw-color, $is-light); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.label-topic-tag-spoiler { |
|
|
|
|
|
@include specialtag($topic-tag-spoiler-color, $is-light); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.post-button { |
|
|
.post-button { |
|
|
color: $text-secondary-color; |
|
|
color: $text-secondary-color; |
|
|
|
|
|
|
|
|