mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-04 12:51:41 -05:00
125 lines
1.8 KiB
SCSS
125 lines
1.8 KiB
SCSS
$border-color: rgb(219,219,219);
|
|
$text-color: #9E9E9E;
|
|
|
|
$option-background: dark-light-diff($primary, $secondary, 90%, -65%);
|
|
|
|
div.poll {
|
|
margin: 10px 0px;
|
|
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: .5em .7em .7em .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-text {
|
|
font-size: 1.7em;
|
|
}
|
|
}
|
|
|
|
.poll-container {
|
|
vertical-align: middle;
|
|
padding: 10px;
|
|
|
|
.poll-results-number-rating {
|
|
font-size: 2em;
|
|
}
|
|
}
|
|
|
|
.poll-buttons {
|
|
button {
|
|
float: none;
|
|
}
|
|
}
|
|
|
|
.poll-voters-list {
|
|
li {
|
|
display: inline;
|
|
}
|
|
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.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: $primary;
|
|
}
|
|
|
|
}
|
|
|
|
&[data-poll-type="number"] {
|
|
|
|
li[data-poll-option-id] {
|
|
display: inline-block;
|
|
width: 45px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
}
|
|
|
|
}
|