discourse/plugins/poll/assets/stylesheets/common/poll.scss

135 lines
2.1 KiB
SCSS

$border-color: rgb(219, 219, 219);
$text-color: #9e9e9e;
$option-background: dark-light-diff($primary, $secondary, 90%, -65%);
div.poll {
margin: 10px 0;
border: 1px solid $border-color;
@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;
}
.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;
}
}
.poll-info {
color: $text-color;
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: $text-color;
}
}
.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: $text-color;
margin-left: 5px;
}
.bar-back {
background: $option-background;
}
.bar {
height: 10px;
background: dark-light-diff($primary, $secondary, 50%, -25%);
}
.chosen .bar {
background: $tertiary;
}
}
&[data-poll-type="number"] {
li[data-poll-option-id] {
display: inline-block;
width: 45px;
margin-right: 5px;
}
}
}