add poll-display

This commit is contained in:
Wirlaburla 2024-01-17 13:30:04 -06:00
parent bb4706213d
commit 01fbebcc2e
2 changed files with 43 additions and 0 deletions

View File

@ -95,6 +95,11 @@
--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-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; --bar-bgcolor: #ffffff;
--input-bg: #ffffff; --input-bg: #ffffff;

View File

@ -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 .author-cell { width: 168px; }
body.forum.thread table.post-display tr td:nth-of-type(3) { 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 { body.forum.thread table.reply-display {
background: var(--forum-sub); background: var(--forum-sub);
border: var(--forum-sub-border); border: var(--forum-sub-border);