emoji: white image backgrounds in dark style
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 4 Dec 2023 01:22:10 +0000 (02:22 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 7 Aug 2024 20:42:20 +0000 (22:42 +0200)
emoji.plp
style/_base.scss

index 63572c727c2a97dad467d5d0b528a4d41ac09273..9595798f60ca4243ca02c19936a8f1f900d48281 100644 (file)
--- a/emoji.plp
+++ b/emoji.plp
@@ -2,7 +2,7 @@
 
 Html({
        title => 'emoji cheat sheet',
 
 Html({
        title => 'emoji cheat sheet',
-       version => '1.1',
+       version => '1.2',
        description => [
                "Emoticons overview and Unicode equivalents"
                . " of MSN, Y!M, and Gmail icons.",
        description => [
                "Emoticons overview and Unicode equivalents"
                . " of MSN, Y!M, and Gmail icons.",
@@ -11,7 +11,6 @@ Html({
                sheet cheat emoticon smiley emoji unicode
                chat im messenger msn yahoo ym gmail google
        '],
                sheet cheat emoticon smiley emoji unicode
                chat im messenger msn yahoo ym gmail google
        '],
-       stylesheet => [qw'light'],
        data => ['emoji-gmail.inc.pl'],
 });
 
        data => ['emoji-gmail.inc.pl'],
 });
 
@@ -36,7 +35,7 @@ for my $system (qw'gmail msn yahoo') {
                        next;
                }
                my ($name, $input, $flags, $char, $desc) = @{$row};
                        next;
                }
                my ($name, $input, $flags, $char, $desc) = @{$row};
-               say sprintf('<tr><th><img src="%s" alt="%s"><td><kbd>%s</kbd><td>%s%s',
+               say sprintf('<tr><th class="s-light"><img src="%s" alt="%s"><td><kbd>%s</kbd><td>%s%s',
                        sprintf($meta->{ $flags =~ /\bext\b/ ? 'iconext' : 'icon' } // '%s', $name),
                        EscapeHTML($name),
                        EscapeHTML($input),
                        sprintf($meta->{ $flags =~ /\bext\b/ ? 'iconext' : 'icon' } // '%s', $name),
                        EscapeHTML($name),
                        EscapeHTML($input),
index 9555a2849f47938f9037accea289bf52d8be03a4..b68e08c17e70ffe45dd2e7c5f47d92e89e461dff 100644 (file)
@@ -1,6 +1,6 @@
 /* general */
 
 /* general */
 
-body {
+body, .s-dark .s-light {
        background: #FFF;
        color: #000;
        font-size: 90%;
        background: #FFF;
        color: #000;
        font-size: 90%;