misuzu/assets/less/forum/poll.less

105 lines
1.8 KiB
Text
Raw Normal View History

2019-04-17 23:59:33 +00:00
.forum__poll {
2019-05-04 00:32:43 +00:00
&__container {
margin: 2px 0;
padding: 5px;
display: flex;
flex-direction: column;
align-items: center;
}
&__toggle,
&__toggle:checked ~ &__container--poll,
&__toggle:not(:checked) ~ &__container--results {
display: none;
}
2019-04-17 23:59:33 +00:00
&__options {
display: flex;
flex-direction: column;
max-width: 500px;
min-width: 100%;
@media (min-width: 400px) {
min-width: 300px;
}
}
2019-05-02 21:36:57 +00:00
&__results {
max-width: 800px;
width: 100%;
2019-05-04 00:32:43 +00:00
padding: 0 1px;
2019-05-02 21:36:57 +00:00
}
2019-04-17 23:59:33 +00:00
&__option {
padding: 2px;
}
&__remaining,
&__expires {
line-height: 1.5em;
&__num,
&__datetime {
font-weight: 700;
}
}
&__buttons {
display: flex;
margin-top: 2px;
}
&__button {
margin: 0 2px;
}
2019-05-02 21:36:57 +00:00
&__result {
overflow: hidden;
border-radius: 5px;
margin: 4px 0;
border: 1px solid var(--accent-colour);
width: 100%;
&__background {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: var(--accent-colour);
opacity: .2;
}
&--voted &__background {
opacity: .4;
}
2019-05-02 21:36:57 +00:00
&__container {
display: flex;
justify-content: center;
}
&__text {
flex: 1 1 auto;
padding: 5px;
}
&--voted &__text {
font-weight: 700;
}
2019-05-02 21:36:57 +00:00
&__votes {
flex: 0 0 auto;
padding: 5px;
text-align: right;
}
&__percent {
flex: 0 0 auto;
padding: 5px;
min-width: 60px;
text-align: right;
}
}
2019-04-17 23:59:33 +00:00
}