From dc1cd727563b8c0712368dc12988db6bb8512a75 Mon Sep 17 00:00:00 2001 From: TigerShark Date: Thu, 4 Jan 2018 22:10:46 -0300 Subject: Add info icons for each release in vn page. --- data/global.pl | 5 +++++ data/style.css | 8 ++++++++ 2 files changed, 13 insertions(+) mode change 100644 => 100755 data/global.pl mode change 100644 => 100755 data/style.css (limited to 'data') diff --git a/data/global.pl b/data/global.pl old mode 100644 new mode 100755 index 187d5720..0c1ba6d6 --- a/data/global.pl +++ b/data/global.pl @@ -248,6 +248,11 @@ our %S; staff => 'Staff', ), poll_options => 20, # max number of options in discussion board polls + + # Maps from db codes to icon names + icons_voiced => [ "unknown", "not_voiced", "ero_voiced", "partially_voiced", "fully_voiced" ], + icons_story_animated => [ "unknown", "story_not_animated", "story_simple_animated", "story_some_fully_animated", "story_all_fully_animated" ], + icons_ero_animated => [ "unknown", "ero_not_animated", "ero_simple_animated", "ero_some_fully_animated", "ero_all_fully_animated" ], ); diff --git a/data/style.css b/data/style.css old mode 100644 new mode 100755 index b3495853..1c956ba7 --- a/data/style.css +++ b/data/style.css @@ -913,6 +913,14 @@ a .icons { cursor: pointer } $iconcss$ +.release_icons_container { width: 18px; height: 18px; float: right; margin-left: 4px; } +.release_icons { width: 18px; height: 18px; } +.release_icons.not_voiced, .story_not_animated, .ero_not_animated { } +.release_icons.ero_voiced, .story_simple_animated, .ero_simple_animated { filter: hue-rotate(30deg); } +.release_icons.partially_voiced, .story_some_fully_animated, .ero_some_fully_animated { filter: invert(100%) hue-rotate(240deg) } +.release_icons.fully_voiced, .story_all_fully_animated, .ero_all_fully_animated { filter: hue-rotate(80deg) } +.release_icons.notes, .unknown, .freeware, .nonfree, .commercial, .doujin, .res16-9, .res4-3, .disk, .cartridge, .download { } + /* Relation graph colors */ svg .border { fill: none; stroke: $border$ } svg .edge polygon.border { fill: $border$ } -- cgit v1.2.3