2015-05-05 04:29:45 +08:00
|
|
|
$border-color: rgb(219,219,219);
|
|
|
|
$text-color: #9E9E9E;
|
|
|
|
|
|
|
|
$option-foreground: $primary;
|
|
|
|
$option-background: dark-light-diff($primary, $secondary, 90%, -65%);
|
2015-06-03 18:28:03 +08:00
|
|
|
$option-background-selected: #dbffdb;
|
2015-05-05 04:29:45 +08:00
|
|
|
$option-shadow: dark-light-diff($option-background, $primary, 10%, -10%);
|
|
|
|
|
2015-04-24 01:33:29 +08:00
|
|
|
div.poll {
|
|
|
|
|
2015-05-08 17:13:32 +08:00
|
|
|
border: 1px solid $border-color;
|
|
|
|
|
2015-04-24 01:33:29 +08:00
|
|
|
ul, ol {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
display: inline-block;
|
2015-05-05 04:29:45 +08:00
|
|
|
width: 100%;
|
2015-04-24 01:33:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
li, .option {
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 1.125em;
|
|
|
|
}
|
|
|
|
|
|
|
|
li[data-poll-option-id] {
|
2015-05-05 04:29:45 +08:00
|
|
|
color: $option-foreground;
|
|
|
|
background: $option-background;
|
2015-05-06 02:00:42 +08:00
|
|
|
box-shadow: inset 0 -6px rgba(0,0,0,.25), inset 0 0 0 100px rgba(0,0,0,0);
|
2015-06-03 18:35:49 +08:00
|
|
|
padding: .5em .7em .7em .5em;
|
2015-05-06 02:00:42 +08:00
|
|
|
margin-bottom: 10px;
|
2015-05-05 04:29:45 +08:00
|
|
|
border-radius: 4px;
|
2015-04-24 01:33:29 +08:00
|
|
|
|
|
|
|
&:hover {
|
2015-05-06 02:00:42 +08:00
|
|
|
box-shadow: inset 0 -6px rgba(0,0,0,.35), inset 0 0 0 100px rgba(0,0,0,.1);
|
2015-04-24 01:33:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2015-05-06 02:00:42 +08:00
|
|
|
-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);
|
2015-04-24 01:33:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-poll-selected="selected"] {
|
2015-06-03 18:28:03 +08:00
|
|
|
background: $option-background-selected !important;
|
2015-04-24 01:33:29 +08: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-05 04:29:45 +08:00
|
|
|
.poll-info {
|
|
|
|
color: $text-color;
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
.info-number {
|
|
|
|
font-size: 3.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.info-text {
|
|
|
|
font-size: 1.7em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-24 01:33:29 +08:00
|
|
|
.poll-container {
|
2015-05-05 04:29:45 +08:00
|
|
|
vertical-align: middle;
|
|
|
|
padding: 10px;
|
|
|
|
|
2015-05-20 21:55:27 +08:00
|
|
|
& > span {
|
2015-05-05 04:29:45 +08:00
|
|
|
font-size: 2em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.poll-buttons {
|
2015-05-06 02:14:38 +08:00
|
|
|
button {
|
|
|
|
float: none;
|
|
|
|
}
|
2015-04-24 01:33:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.results {
|
|
|
|
|
2015-04-24 23:24:13 +08:00
|
|
|
width: 100%;
|
|
|
|
|
2015-04-24 01:33:29 +08:00
|
|
|
.option {
|
|
|
|
max-width: 90%;
|
|
|
|
padding-right: 1.6em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.percentage {
|
|
|
|
width: 10%;
|
|
|
|
font-size: 1.7em;
|
|
|
|
text-align: right;
|
|
|
|
vertical-align: middle;
|
2015-05-05 04:29:45 +08:00
|
|
|
color: $text-color;
|
2015-04-24 01:33:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.bar-back {
|
2015-05-05 04:29:45 +08:00
|
|
|
background: $border-color;
|
2015-04-24 01:33:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.bar {
|
|
|
|
height: 10px;
|
2015-05-05 04:29:45 +08:00
|
|
|
background: $option-foreground;
|
2015-04-24 01:33:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-poll-type="number"] {
|
|
|
|
|
|
|
|
li {
|
|
|
|
display: inline-block;
|
2015-05-05 04:29:45 +08:00
|
|
|
margin: 0 12px 15px 5px;
|
2015-04-24 01:33:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|