bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/poll/live-result/styles.scss
2019-04-17 16:36:04 +00:00

143 lines
2.3 KiB
SCSS

@import "/imports/ui/stylesheets/variables/_all";
:root {
--poll-stats-border-color: #d4d9df;
--poll-stats-option-width: 4em;
--poll-stats-element-width: 17%;
--poll-sm-margin: 0.3125rem;
--poll-user-line-height: 1.75rem;
--poll-result-width: 15rem;
}
.btn {
width: 100%;
margin-top: var(--sm-padding-y);
margin-bottom: var(--sm-padding-y);
}
.main {
display: flex;
justify-content: space-between;
align-items: center;
}
.center {
position: relative;
flex: 1 1 auto;
border-left: 1px solid var(--color-gray-lighter);
width: 100%;
height: 100%;
}
.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);
}
.left,
.right,
.center {
padding: var(--sm-padding-y);
margin-top: var(--poll-sm-margin);
margin-bottom: var(--poll-sm-margin);
color: var(--color-text);
}
.left,
.right {
flex: 0 0 auto;
position: relative;
}
.container,
.stats {
margin-bottom: var(--sm-padding-x);
}
.stats {
display: flex;
flex-direction: column;
border: 1px solid var(--poll-stats-border-color);
border-radius: var(--border-size-large);
padding: var(--md-padding-x);
> div {
display: flex;
flex-direction: row;
> div:nth-child(even) {
position: relative;
height: 75%;
width: 50%;
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;
}
.resultLeft {
padding-right: .5rem;
border-bottom: 1px solid var(--color-gray-lightest);
}
.resultRight,
.resultLeft {
padding-bottom: .25rem;
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-right: 1.25em;
:global(.animationsEnabled) & {
animation: ellipsis steps(4,end) 900ms infinite;
}
}
}
@keyframes ellipsis {
to {
width: 1.25em;
margin-right: 0;
}
}