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