bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/poll/live-result/styles.scss

166 lines
2.7 KiB
SCSS
Raw Normal View History

2018-10-10 23:49:58 +08:00
@import "/imports/ui/stylesheets/variables/_all";
2018-10-26 09:40:15 +08:00
:root {
--poll-stats-border-color: #d4d9df;
--poll-stats-option-width: 4em;
--poll-stats-element-width: 17%;
2018-10-26 09:40:15 +08:00
--poll-sm-margin: 0.3125rem;
--poll-user-line-height: 1.75rem;
--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;
border-left: 1px solid var(--color-gray-lighter);
border-right : none;
width: 100%;
height: 100%;
[dir="rtl"] & {
border-left: none;
border-right: 1px solid var(--color-gray-lighter);
}
2018-10-10 23:49:58 +08:00
}
.left {
font-weight: bold;
max-width: var(--poll-result-width);
min-width: var(--poll-stats-element-width);
word-wrap: break-word;
}
.right {
text-align: right;
max-width: var(--poll-stats-element-width);
min-width: var(--poll-stats-element-width);
[dir="rtl"] & {
text-align: left;
}
}
2018-10-10 23:49:58 +08:00
.left,
.right,
.center {
2018-10-26 00:54:29 +08:00
padding: var(--sm-padding-y);
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;
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;
height: 75%;
2018-10-11 03:04:09 +08:00
width: 50%;
2018-10-10 23:49:58 +08:00
text-align: center;
}
}
}
.barShade {
background-color: var(--color-gray-lighter);
height: 100%;
min-height: 100%;
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
}
.barVal {
position: inherit;
}
.theading {
text-align: left;
[dir="rtl"] & {
text-align: right;
}
}
.resultLeft {
padding: 0 .5rem 0 0;
2019-04-18 00:36:04 +08:00
border-bottom: 1px solid var(--color-gray-lightest);
[dir="rtl"] & {
padding: 0 0 0 .5rem;
}
}
.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;
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;
margin-left: 0;
2019-04-18 00:36:04 +08:00
}
}