adjust poll display bars

This commit is contained in:
Wirlaburla 2024-01-17 13:33:46 -06:00
parent 01fbebcc2e
commit 8db1ac0b7c
2 changed files with 9 additions and 9 deletions

View File

@ -95,10 +95,10 @@
--spoiler-header-text: #E8E8E8; --spoiler-header-text: #E8E8E8;
--spoiler-border: 1px inset #1c1c1c; --spoiler-border: 1px inset #1c1c1c;
--poll-default-bar: linear-gradient(0deg, #808080 0%, #FFFFFF 75%, #202020 100%); --poll-default-bar: #808080;
--poll-first-bar: linear-gradient(0deg, #00FF00 0%, #FFFFFF 75%, #40FF40 100%); --poll-first-bar: #00FF00;
--poll-second-bar: linear-gradient(0deg, #0000FF 0%, #FFFFFF 75%, #4040FF 100%); --poll-second-bar: #0000FF;
--poll-third-bar: linear-gradient(0deg, #FF0000 0%, #FFFFFF 75%, #FF4040 100%); --poll-third-bar: #FF0000;
--bar-bgcolor: #ffffff; --bar-bgcolor: #ffffff;

View File

@ -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 { padding: 2px; }
body.forum.thread table.poll-display tr td.bar { body.forum.thread table.poll-display tr td.bar {
background: var(--poll-default-bar); background: linear-gradient(0deg, var(--poll-bar-color) 0%, #FFFFFF 75%, var(--poll-bar-color) 100%);
background-size-x: var(--poll-width); background-size: var(--poll-bar-width) 100%;
background-repeat: no-repeat; 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.p1st { --poll-bar-color: 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.p2nd { --poll-bar-color: 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.p3rd { --poll-bar-color: var(--poll-third-bar); }
body.forum.thread table.poll-display tr:not(.title-row) { body.forum.thread table.poll-display tr:not(.title-row) {
background: var(--post); background: var(--post);