From 01fbebcc2eeed6cfbd4e462bb83e8d5d31e16582 Mon Sep 17 00:00:00 2001 From: Wirlaburla Date: Wed, 17 Jan 2024 13:30:04 -0600 Subject: [PATCH] add poll-display --- core/css/theme.css | 5 +++++ core/style.css | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/core/css/theme.css b/core/css/theme.css index e8cca33..d42a621 100755 --- a/core/css/theme.css +++ b/core/css/theme.css @@ -95,6 +95,11 @@ --spoiler-header-text: #E8E8E8; --spoiler-border: 1px inset #1c1c1c; + --poll-default-bar: linear-gradient(0deg, #808080 0%, #FFFFFF 75%, #202020 100%); + --poll-first-bar: linear-gradient(0deg, #00FF00 0%, #FFFFFF 75%, #40FF40 100%); + --poll-second-bar: linear-gradient(0deg, #0000FF 0%, #FFFFFF 75%, #4040FF 100%); + --poll-third-bar: linear-gradient(0deg, #FF0000 0%, #FFFFFF 75%, #FF4040 100%); + --bar-bgcolor: #ffffff; --input-bg: #ffffff; diff --git a/core/style.css b/core/style.css index 896dfc7..cfc77f5 100644 --- a/core/style.css +++ b/core/style.css @@ -1260,6 +1260,44 @@ body.forum.thread table.post-display tr.body-row td * { body.forum.thread table.post-display .author-cell { width: 168px; } body.forum.thread table.post-display tr td:nth-of-type(3) { width: 168px; } +body.forum.thread table.poll-display { + background: var(--forum-sub); + border: var(--forum-sub-border); + text-align: left; +} + +body.forum.thread table.poll-display tr th, +body.forum.thread table.poll-display tr td { padding: 2px; } + +body.forum.thread table.poll-display tr td.bar { + background: var(--poll-default-bar); + background-size-x: var(--poll-width); + background-repeat: no-repeat; +} +body.forum.thread table.poll-display tr td.bar.p1st { background: var(--poll-first-bar); } +body.forum.thread table.poll-display tr td.bar.p2nd { background: var(--poll-second-bar); } +body.forum.thread table.poll-display tr td.bar.p3rd { background: var(--poll-third-bar); } + +body.forum.thread table.poll-display tr:not(.title-row) { + background: var(--post); + border: var(--post-border); +} + +body.forum.thread table.poll-display tr.title-row { + font-family: var(--primary-font); +} +body.forum.thread table.poll-display tr td.ralign { text-align: right; } + +body.forum.thread table.poll-display tr.title-row th:nth-of-type(2) button { + background: none; + border: none; + text-decoration: underline; + color: #0000ff; + font-size: 16px; + vertical-align: middle; + cursor: pointer; +} + body.forum.thread table.reply-display { background: var(--forum-sub); border: var(--forum-sub-border);