2015-04-23 13:33:29 -04:00
|
|
|
div.poll {
|
2018-08-27 16:53:35 -04:00
|
|
|
margin: 1em 0;
|
2020-08-04 11:14:33 -04:00
|
|
|
border: 1px solid var(--primary-low);
|
2015-05-08 05:13:32 -04:00
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
ul,
|
|
|
|
ol {
|
2015-04-23 13:33:29 -04:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
display: inline-block;
|
2015-05-04 16:29:45 -04:00
|
|
|
width: 100%;
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
|
2015-06-03 10:49:20 -04:00
|
|
|
li {
|
2015-04-23 13:33:29 -04:00
|
|
|
cursor: pointer;
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-up-1);
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
li[data-poll-option-id] {
|
2020-08-04 11:14:33 -04:00
|
|
|
color: var(--primary);
|
2019-02-05 04:47:22 -05:00
|
|
|
padding: 0.5em 0;
|
2019-08-13 09:49:40 -04:00
|
|
|
word-break: break-word;
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
|
2018-07-01 01:20:00 -04:00
|
|
|
img {
|
2021-06-03 22:09:59 -04:00
|
|
|
// Hacky way to stop images without width/height
|
|
|
|
// from causing abrupt unintended scrolling
|
2021-06-04 18:27:25 -04:00
|
|
|
&:not([width]):not(.emoji),
|
|
|
|
&:not([height]):not(.emoji) {
|
2021-06-03 22:09:59 -04:00
|
|
|
width: 200px !important;
|
|
|
|
height: 200px !important;
|
|
|
|
object-fit: contain;
|
|
|
|
}
|
2018-07-01 01:20:00 -04:00
|
|
|
}
|
|
|
|
|
2015-05-04 16:29:45 -04:00
|
|
|
.poll-info {
|
2020-08-04 11:14:33 -04:00
|
|
|
color: var(--primary-medium);
|
2015-05-04 16:29:45 -04:00
|
|
|
vertical-align: middle;
|
2018-08-27 16:53:35 -04:00
|
|
|
padding: 1em 0;
|
2015-05-04 16:29:45 -04:00
|
|
|
|
2018-05-02 20:12:19 -04:00
|
|
|
.info-label {
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-up-4);
|
2022-10-12 10:05:42 -04:00
|
|
|
line-height: var(--line-height-medium);
|
2015-05-04 16:29:45 -04:00
|
|
|
}
|
2018-05-02 20:12:19 -04:00
|
|
|
|
|
|
|
.info-text {
|
2019-02-05 04:47:22 -05:00
|
|
|
margin: 0.25em 0;
|
2018-05-02 20:12:19 -04:00
|
|
|
display: block;
|
|
|
|
}
|
2015-05-04 16:29:45 -04:00
|
|
|
}
|
|
|
|
|
2015-04-23 13:33:29 -04:00
|
|
|
.poll-container {
|
2015-05-04 16:29:45 -04:00
|
|
|
vertical-align: middle;
|
2019-02-05 04:47:22 -05:00
|
|
|
padding: 0.5em 1em;
|
2015-05-04 16:29:45 -04:00
|
|
|
|
2016-06-09 09:33:17 -04:00
|
|
|
.poll-results-number-rating {
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-up-5);
|
2015-05-04 16:29:45 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.poll-buttons {
|
2018-05-11 20:14:58 -04:00
|
|
|
.info-text {
|
2019-02-05 04:47:22 -05:00
|
|
|
margin: 0.25em 0;
|
2020-08-04 11:14:33 -04:00
|
|
|
color: var(--primary-medium);
|
2018-05-11 20:14:58 -04:00
|
|
|
}
|
2019-03-06 20:27:40 -05:00
|
|
|
.info-text + .info-text,
|
|
|
|
button + .info-text {
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
|
2019-02-05 04:47:22 -05:00
|
|
|
.poll-voters:not(:empty) {
|
2020-02-27 05:09:54 -05:00
|
|
|
min-height: 30px;
|
2019-02-05 04:47:22 -05:00
|
|
|
margin-bottom: 0.25em;
|
2020-02-27 05:09:54 -05:00
|
|
|
|
2016-06-07 06:55:01 -04:00
|
|
|
li {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.poll-voters-toggle-expand {
|
2016-06-09 09:33:17 -04:00
|
|
|
width: 100%;
|
2016-06-07 06:55:01 -04:00
|
|
|
text-align: center;
|
2020-02-27 05:09:54 -05:00
|
|
|
|
|
|
|
.spinner {
|
|
|
|
margin-top: 0.25em;
|
|
|
|
}
|
2016-06-07 06:55:01 -04:00
|
|
|
}
|
|
|
|
|
2015-04-23 13:33:29 -04:00
|
|
|
.results {
|
2018-08-29 09:11:03 -04:00
|
|
|
> li {
|
2018-11-19 08:50:00 -05:00
|
|
|
cursor: default;
|
2019-02-05 04:47:22 -05:00
|
|
|
padding: 0.25em 0;
|
|
|
|
&:last-child {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
2018-08-27 16:53:35 -04:00
|
|
|
}
|
2015-04-23 13:33:29 -04:00
|
|
|
.option {
|
2015-06-03 10:49:20 -04:00
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.percentage {
|
2015-06-03 10:49:20 -04:00
|
|
|
float: right;
|
2020-08-04 11:14:33 -04:00
|
|
|
color: var(--primary-medium);
|
2018-08-27 16:53:35 -04:00
|
|
|
margin-left: 0.25em;
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.bar-back {
|
2020-08-04 11:14:33 -04:00
|
|
|
background: var(--primary-low);
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.bar {
|
2018-08-27 16:53:35 -04:00
|
|
|
height: 0.75em;
|
2020-08-04 11:14:33 -04:00
|
|
|
background: var(--primary-medium);
|
2017-01-24 22:56:39 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.chosen .bar {
|
2020-08-04 11:14:33 -04:00
|
|
|
background: var(--tertiary);
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-poll-type="number"] {
|
2016-06-07 06:55:01 -04:00
|
|
|
li[data-poll-option-id] {
|
2015-04-23 13:33:29 -04:00
|
|
|
display: inline-block;
|
2018-08-27 16:53:35 -04:00
|
|
|
width: 3.25em;
|
|
|
|
margin-right: 0.25em;
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
}
|
2019-11-25 12:51:01 -05:00
|
|
|
|
2020-02-11 11:02:54 -05:00
|
|
|
.pie-chart-legends {
|
2021-08-23 07:49:49 -04:00
|
|
|
justify-content: center;
|
2020-02-11 11:02:54 -05:00
|
|
|
text-align: center;
|
2020-10-27 08:48:54 -04:00
|
|
|
margin-top: 0.5em;
|
2020-02-11 11:02:54 -05:00
|
|
|
|
|
|
|
.legend {
|
2021-08-23 07:49:49 -04:00
|
|
|
align-items: center;
|
|
|
|
cursor: pointer;
|
2022-04-20 03:43:10 -04:00
|
|
|
display: inline-flex;
|
2021-08-23 07:49:49 -04:00
|
|
|
flex-direction: row;
|
|
|
|
margin-left: 1em;
|
|
|
|
font-size: var(--font-down-0);
|
2020-02-11 11:02:54 -05:00
|
|
|
|
|
|
|
.swatch {
|
2021-08-23 07:49:49 -04:00
|
|
|
margin-right: 0.5em;
|
2020-02-11 11:02:54 -05:00
|
|
|
display: inline-block;
|
2021-08-23 07:49:49 -04:00
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2020-02-11 11:02:54 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-25 12:51:01 -05:00
|
|
|
.poll-grouped-pies-controls {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
.poll-results-chart {
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
|
2020-08-06 11:57:06 -04:00
|
|
|
.poll-show-breakdown {
|
2020-10-02 03:21:24 -04:00
|
|
|
margin-bottom: 0.25em;
|
2019-11-25 12:51:01 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
div.poll.pie {
|
|
|
|
.poll-container {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.poll-info {
|
|
|
|
display: inline-block;
|
|
|
|
width: 150px;
|
|
|
|
}
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
2018-11-15 04:40:01 -05:00
|
|
|
|
|
|
|
// hides 0 vote count in crawler and print view
|
|
|
|
body.crawler {
|
|
|
|
.poll {
|
|
|
|
.poll-info,
|
|
|
|
.poll-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|