2015-05-04 16:29:45 -04:00
|
|
|
$border-color: rgb(219,219,219);
|
|
|
|
$text-color: #9E9E9E;
|
|
|
|
|
|
|
|
$option-background: dark-light-diff($primary, $secondary, 90%, -65%);
|
|
|
|
|
2015-04-23 13:33:29 -04:00
|
|
|
div.poll {
|
2018-01-25 09:53:36 -05:00
|
|
|
margin: 10px 0;
|
2015-05-08 05:13:32 -04:00
|
|
|
border: 1px solid $border-color;
|
|
|
|
|
2015-07-31 06:42:19 -04:00
|
|
|
@include unselectable;
|
|
|
|
|
2015-04-23 13:33:29 -04:00
|
|
|
ul, ol {
|
|
|
|
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;
|
2015-06-03 10:49:20 -04:00
|
|
|
font-size: 15px;
|
|
|
|
margin-bottom: 10px;
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
li[data-poll-option-id] {
|
2016-08-01 10:07:57 -04:00
|
|
|
color: $primary;
|
2015-06-03 06:35:49 -04:00
|
|
|
padding: .5em .7em .7em .5em;
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.button {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 6px 12px;
|
|
|
|
margin-right: 5px;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
color: $primary;
|
|
|
|
background: dark-light-diff($primary, $secondary, 90%, -65%);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: dark-light-diff($primary, $secondary, 65%, -75%);
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-04 16:29:45 -04:00
|
|
|
.poll-info {
|
|
|
|
color: $text-color;
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
.info-number {
|
|
|
|
font-size: 3.5em;
|
|
|
|
}
|
|
|
|
|
2018-05-02 20:12:19 -04:00
|
|
|
.info-label {
|
2015-05-04 16:29:45 -04:00
|
|
|
font-size: 1.7em;
|
|
|
|
}
|
2018-05-02 20:12:19 -04:00
|
|
|
|
|
|
|
.info-text {
|
|
|
|
margin: 5px 0;
|
|
|
|
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;
|
|
|
|
padding: 10px;
|
|
|
|
|
2016-06-09 09:33:17 -04:00
|
|
|
.poll-results-number-rating {
|
2015-05-04 16:29:45 -04:00
|
|
|
font-size: 2em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.poll-buttons {
|
2015-05-05 14:14:38 -04:00
|
|
|
button {
|
|
|
|
float: none;
|
|
|
|
}
|
2018-05-11 20:14:58 -04:00
|
|
|
.info-text {
|
|
|
|
margin: 0 5px;
|
|
|
|
color: $text-color;
|
|
|
|
}
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
|
2016-06-07 06:55:01 -04:00
|
|
|
.poll-voters-list {
|
|
|
|
li {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
2017-01-12 17:16:39 -05:00
|
|
|
margin-top: 4px;
|
2016-06-07 06:55:01 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
2015-04-23 13:33:29 -04:00
|
|
|
.results {
|
|
|
|
|
|
|
|
.option {
|
2015-06-03 10:49:20 -04:00
|
|
|
padding-bottom: 5px;
|
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.percentage {
|
2016-06-21 20:01:23 -04:00
|
|
|
font-size: 20px;
|
2015-06-03 10:49:20 -04:00
|
|
|
float: right;
|
2015-05-04 16:29:45 -04:00
|
|
|
color: $text-color;
|
2016-06-21 20:01:23 -04:00
|
|
|
margin-left: 5px;
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.bar-back {
|
2016-08-01 21:48:06 -04:00
|
|
|
background: $option-background;
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.bar {
|
|
|
|
height: 10px;
|
2017-01-24 22:56:39 -05:00
|
|
|
background: dark-light-diff($primary, $secondary, 50%, -25%);;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chosen .bar {
|
|
|
|
background: $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;
|
2016-07-28 22:30:38 -04:00
|
|
|
width: 45px;
|
2016-06-07 06:55:01 -04:00
|
|
|
margin-right: 5px;
|
2015-04-23 13:33:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|