mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-01 11:28:15 -05:00
146 lines
2.6 KiB
SCSS
146 lines
2.6 KiB
SCSS
$border-color: rgb(219,219,219);
|
|
$text-color: #9E9E9E;
|
|
|
|
$option-foreground: $primary;
|
|
$option-background: dark-light-diff($primary, $secondary, 90%, -65%);
|
|
$option-shadow: dark-light-diff($option-background, $primary, 10%, -10%);
|
|
|
|
div.poll {
|
|
|
|
display: table;
|
|
border: 1px solid $border-color;
|
|
width: 500px;
|
|
|
|
ul, ol {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
display: inline-block;
|
|
width: 100%;
|
|
}
|
|
|
|
li, .option {
|
|
cursor: pointer;
|
|
font-size: 1.125em;
|
|
line-height: 2;
|
|
}
|
|
|
|
li[data-poll-option-id] {
|
|
color: $option-foreground;
|
|
background: $option-background;
|
|
box-shadow: inset 0 -6px rgba(0,0,0,.25), inset 0 0 0 100px rgba(0,0,0,0);
|
|
padding: 0 12px;
|
|
margin-bottom: 10px;
|
|
border-radius: 4px;
|
|
height: 2.3em;
|
|
|
|
&:hover {
|
|
box-shadow: inset 0 -6px rgba(0,0,0,.35), inset 0 0 0 100px rgba(0,0,0,.1);
|
|
}
|
|
|
|
&:active {
|
|
-webkit-transform: translate(0,2px);
|
|
transform: translate(0,2px);
|
|
box-shadow: inset 0 -4px rgba(0,0,0,.35), inset 0 0 0 100px rgba(0,0,0,.1);
|
|
}
|
|
|
|
&[data-poll-selected="selected"] {
|
|
background: $success !important;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
width: 150px;
|
|
display: table-cell;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
border-right: 1px solid $border-color;
|
|
|
|
p {
|
|
margin: 40px 20px;
|
|
}
|
|
|
|
.info-number {
|
|
font-size: 3.5em;
|
|
}
|
|
|
|
.info-text {
|
|
display: block;
|
|
font-size: 1.7em;
|
|
}
|
|
}
|
|
|
|
.poll-container {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
padding: 10px;
|
|
width: 330px;
|
|
|
|
span {
|
|
font-size: 2em;
|
|
}
|
|
}
|
|
|
|
.poll-buttons {
|
|
border-top: 1px solid $border-color;
|
|
padding: 10px;
|
|
|
|
.toggle-status {
|
|
float: right;
|
|
}
|
|
}
|
|
|
|
.results {
|
|
|
|
width: 100%;
|
|
|
|
.option {
|
|
max-width: 90%;
|
|
padding-right: 1.6em;
|
|
}
|
|
|
|
.percentage {
|
|
width: 10%;
|
|
font-size: 1.7em;
|
|
text-align: right;
|
|
vertical-align: middle;
|
|
color: $text-color;
|
|
}
|
|
|
|
.bar-back {
|
|
background: $border-color;
|
|
}
|
|
|
|
.bar {
|
|
height: 10px;
|
|
background: $option-foreground;
|
|
}
|
|
|
|
}
|
|
|
|
&[data-poll-type="number"] {
|
|
|
|
li {
|
|
display: inline-block;
|
|
margin: 0 12px 15px 5px;
|
|
}
|
|
|
|
}
|
|
|
|
}
|