2018-10-10 23:49:58 +08:00
|
|
|
@import "/imports/ui/stylesheets/variables/_all";
|
|
|
|
|
2018-10-26 09:40:15 +08:00
|
|
|
:root {
|
2018-10-30 21:17:40 +08:00
|
|
|
--poll-stats-border-color: #d4d9df;
|
|
|
|
--poll-stats-option-width: 4em;
|
|
|
|
--poll-stats-element-width: 17%;
|
2018-10-26 09:40:15 +08:00
|
|
|
|
2018-10-30 21:17:40 +08:00
|
|
|
--poll-sm-margin: 0.3125rem;
|
|
|
|
--poll-user-line-height: 1.75rem;
|
2019-04-15 04:23:14 +08:00
|
|
|
--poll-result-width: 15rem;
|
2018-10-26 09:40:15 +08:00
|
|
|
}
|
2018-10-11 03:04:09 +08:00
|
|
|
|
2018-10-24 22:17:13 +08:00
|
|
|
.btn {
|
|
|
|
width: 100%;
|
2018-10-26 00:54:29 +08:00
|
|
|
margin-top: var(--sm-padding-y);
|
|
|
|
margin-bottom: var(--sm-padding-y);
|
2018-10-24 22:17:13 +08:00
|
|
|
}
|
|
|
|
|
2018-10-10 23:49:58 +08:00
|
|
|
.main {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.center {
|
|
|
|
position: relative;
|
2018-10-15 22:36:26 +08:00
|
|
|
flex: 1 1 auto;
|
2019-04-15 04:23:14 +08:00
|
|
|
border-left: 1px solid var(--color-gray-lighter);
|
2019-05-14 21:15:54 +08:00
|
|
|
border-right : none;
|
2019-04-15 04:23:14 +08:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2019-05-14 21:15:54 +08:00
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
border-left: none;
|
|
|
|
border-right: 1px solid var(--color-gray-lighter);
|
|
|
|
}
|
2018-10-10 23:49:58 +08:00
|
|
|
}
|
|
|
|
|
2019-03-28 23:58:10 +08:00
|
|
|
.left {
|
|
|
|
font-weight: bold;
|
|
|
|
max-width: var(--poll-result-width);
|
2019-04-15 04:23:14 +08:00
|
|
|
min-width: var(--poll-stats-element-width);
|
2019-03-28 23:58:10 +08:00
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
.right {
|
|
|
|
text-align: right;
|
|
|
|
max-width: var(--poll-stats-element-width);
|
|
|
|
min-width: var(--poll-stats-element-width);
|
2019-05-14 21:15:54 +08:00
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
text-align: left;
|
|
|
|
}
|
2019-03-28 23:58:10 +08:00
|
|
|
}
|
|
|
|
|
2018-10-10 23:49:58 +08:00
|
|
|
.left,
|
|
|
|
.right,
|
|
|
|
.center {
|
2018-10-26 00:54:29 +08:00
|
|
|
padding: var(--sm-padding-y);
|
2018-10-30 21:17:40 +08:00
|
|
|
margin-top: var(--poll-sm-margin);
|
|
|
|
margin-bottom: var(--poll-sm-margin);
|
2018-10-26 00:54:29 +08:00
|
|
|
color: var(--color-text);
|
2018-10-10 23:49:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.left,
|
|
|
|
.right {
|
2018-10-15 22:36:26 +08:00
|
|
|
flex: 0 0 auto;
|
2018-10-11 03:04:09 +08:00
|
|
|
position: relative;
|
2018-10-10 23:49:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.container,
|
|
|
|
.stats {
|
2018-10-26 00:54:29 +08:00
|
|
|
margin-bottom: var(--sm-padding-x);
|
2018-10-10 23:49:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.stats {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2018-10-30 21:17:40 +08:00
|
|
|
border: 1px solid var(--poll-stats-border-color);
|
2018-10-26 00:54:29 +08:00
|
|
|
border-radius: var(--border-size-large);
|
|
|
|
padding: var(--md-padding-x);
|
2018-10-10 23:49:58 +08:00
|
|
|
|
|
|
|
> div {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
> div:nth-child(even) {
|
|
|
|
position: relative;
|
2019-04-15 04:23:14 +08:00
|
|
|
height: 75%;
|
2018-10-11 03:04:09 +08:00
|
|
|
width: 50%;
|
2018-10-10 23:49:58 +08:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-16 10:03:01 +08:00
|
|
|
.barShade {
|
|
|
|
background-color: var(--color-gray-lighter);
|
|
|
|
height: 100%;
|
|
|
|
min-height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
2019-04-15 04:23:14 +08:00
|
|
|
|
2019-04-16 10:03:01 +08:00
|
|
|
.barVal {
|
|
|
|
position: inherit;
|
|
|
|
}
|
2019-04-15 04:23:14 +08:00
|
|
|
|
2019-04-16 10:03:01 +08:00
|
|
|
.theading {
|
|
|
|
text-align: left;
|
2019-05-14 21:15:54 +08:00
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
text-align: right;
|
|
|
|
}
|
2019-04-16 10:03:01 +08:00
|
|
|
}
|
2019-04-15 04:23:14 +08:00
|
|
|
|
2019-04-16 10:03:01 +08:00
|
|
|
.resultLeft {
|
2019-05-14 21:15:54 +08:00
|
|
|
padding: 0 .5rem 0 0;
|
2019-04-18 00:36:04 +08:00
|
|
|
border-bottom: 1px solid var(--color-gray-lightest);
|
2019-05-14 21:15:54 +08:00
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
padding: 0 0 0 .5rem;
|
|
|
|
}
|
2019-04-16 10:03:01 +08:00
|
|
|
}
|
2019-04-15 04:23:14 +08:00
|
|
|
|
2019-04-16 10:03:01 +08:00
|
|
|
.resultRight,
|
|
|
|
.resultLeft {
|
|
|
|
padding-bottom: .25rem;
|
2019-04-18 00:36:04 +08:00
|
|
|
word-break: break-all;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status {
|
|
|
|
margin-top: .5rem;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.connectingAnimation {
|
|
|
|
&:after {
|
|
|
|
overflow: hidden;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: bottom;
|
|
|
|
content: "\2026"; /* ascii code for the ellipsis character */
|
|
|
|
width: 0;
|
2019-05-14 21:15:54 +08:00
|
|
|
margin: 0 1.25em 0 0;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
margin: 0 0 0 1.25em;
|
|
|
|
}
|
2019-04-18 00:36:04 +08:00
|
|
|
|
|
|
|
:global(.animationsEnabled) & {
|
|
|
|
animation: ellipsis steps(4,end) 900ms infinite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes ellipsis {
|
|
|
|
to {
|
|
|
|
width: 1.25em;
|
|
|
|
margin-right: 0;
|
2019-05-14 21:15:54 +08:00
|
|
|
margin-left: 0;
|
2019-04-18 00:36:04 +08:00
|
|
|
}
|
2019-04-16 10:03:01 +08:00
|
|
|
}
|