From 12acb9ac4e36d1cf98c6a0a2b669ee02e81fa995 Mon Sep 17 00:00:00 2001 From: fatchan Date: Wed, 2 Oct 2019 00:44:31 +0000 Subject: [PATCH] different SFW icon for board list --- gulp/res/css/style.css | 6 +++++- views/pages/boardlist.pug | 6 ++++-- views/pages/home.pug | 3 ++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gulp/res/css/style.css b/gulp/res/css/style.css index 3a77658f..4838db30 100644 --- a/gulp/res/css/style.css +++ b/gulp/res/css/style.css @@ -211,7 +211,7 @@ p { color: black; } -.spoiler:hover { +.spoiler:hover, .spoiler:hover a { color: white; } @@ -398,6 +398,10 @@ td, th { cursor: pointer; } +.sfw { + background-color: gray; +} + .help { cursor: help; } diff --git a/views/pages/boardlist.pug b/views/pages/boardlist.pug index 37a550cc..e239c587 100644 --- a/views/pages/boardlist.pug +++ b/views/pages/boardlist.pug @@ -13,7 +13,8 @@ block content tr td if board.settings.sfw - span.help(title='Safe for work') 💼 + span.user-id.sfw SFW + | a(href=`/${board._id}/index.html`) /#{board._id}/ - #{board.settings.name} td #{board.settings.description} td #{board.pph} @@ -26,7 +27,8 @@ block content tr td if !board.nsfw - span.help(title='Safe for work') 💼 + span.user-id.sfw SFW + | a(href=board.path) #{board.siteName} /#{board.uri}/ - #{board.title} td #{board.subtitle || '-'} td #{board.postsPerHour || '-'} diff --git a/views/pages/home.pug b/views/pages/home.pug index 63aebecf..6d3f3254 100644 --- a/views/pages/home.pug +++ b/views/pages/home.pug @@ -27,7 +27,8 @@ block content tr td if board.settings.sfw - span.help(title='Safe for work') 💼 + span.user-id.sfw SFW + | a(href=`/${board._id}/index.html`) /#{board._id}/ - #{board.settings.name} td #{board.settings.description} td #{board.pph}