discourse/plugins/poll/assets/stylesheets/common/poll.scss
2018-08-03 17:44:22 -04:00

120 lines
1.7 KiB
SCSS

div.poll {
margin: 10px 0;
border: 1px solid $primary-low;
@include unselectable;
ul,
ol {
margin: 0;
padding: 0;
list-style: none;
display: inline-block;
width: 100%;
}
li {
cursor: pointer;
font-size: 15px;
margin-bottom: 10px;
}
li[data-poll-option-id] {
color: $primary;
padding: 0.5em 0.7em 0.7em 0.5em;
}
img {
max-width: 100% !important; /* needed to override internal styles */
height: auto;
}
.poll-info {
color: $primary-medium;
text-align: center;
vertical-align: middle;
.info-number {
font-size: 3.5em;
}
.info-label {
font-size: 1.7em;
}
.info-text {
margin: 5px 0;
display: block;
}
}
.poll-container {
vertical-align: middle;
padding: 10px;
.poll-results-number-rating {
font-size: 2em;
}
}
.poll-buttons {
button {
float: none;
}
.info-text {
margin: 0 5px;
color: $primary-medium;
}
}
.poll-voters-list {
li {
display: inline;
}
margin-top: 4px;
}
.poll-voters-toggle-expand {
width: 100%;
text-align: center;
}
.results {
.option {
padding-bottom: 5px;
p {
margin: 0;
}
}
.percentage {
font-size: 20px;
float: right;
color: $primary-medium;
margin-left: 5px;
}
.bar-back {
background: $primary-low;
}
.bar {
height: 10px;
background: $primary-medium;
}
.chosen .bar {
background: $tertiary;
}
}
&[data-poll-type="number"] {
li[data-poll-option-id] {
display: inline-block;
width: 45px;
margin-right: 5px;
}
}
}