From 8db1ac0b7cfcaf8c55f9ea96966db290cd38780b Mon Sep 17 00:00:00 2001 From: Wirlaburla Date: Wed, 17 Jan 2024 13:33:46 -0600 Subject: [PATCH] adjust poll display bars --- core/css/theme.css | 8 ++++---- core/style.css | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/core/css/theme.css b/core/css/theme.css index d42a621..3d6dbb9 100755 --- a/core/css/theme.css +++ b/core/css/theme.css @@ -95,10 +95,10 @@ --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%); + --poll-default-bar: #808080; + --poll-first-bar: #00FF00; + --poll-second-bar: #0000FF; + --poll-third-bar: #FF0000; --bar-bgcolor: #ffffff; diff --git a/core/style.css b/core/style.css index cfc77f5..ff854fe 100644 --- a/core/style.css +++ b/core/style.css @@ -1270,13 +1270,13 @@ 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: linear-gradient(0deg, var(--poll-bar-color) 0%, #FFFFFF 75%, var(--poll-bar-color) 100%); + background-size: var(--poll-bar-width) 100%; 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 td.bar.p1st { --poll-bar-color: var(--poll-first-bar); } +body.forum.thread table.poll-display tr td.bar.p2nd { --poll-bar-color: var(--poll-second-bar); } +body.forum.thread table.poll-display tr td.bar.p3rd { --poll-bar-color: var(--poll-third-bar); } body.forum.thread table.poll-display tr:not(.title-row) { background: var(--post);