bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/app/styles.scss

218 lines
3.6 KiB
SCSS
Raw Normal View History

@import "/imports/ui/stylesheets/variables/_all";
@import "/imports/ui/stylesheets/variables/general";
@import "/imports/ui/stylesheets/variables/palette";
@import "/imports/ui/stylesheets/variables/typography";
@import '/imports/ui/stylesheets/mixins/_indicators';
2016-05-03 06:42:54 +08:00
:root {
--navbar-height: 63px; // TODO: Change to NavBar real height
--actionsbar-height: 75px; // TODO: Change to ActionsBar real height
--bars-padding: calc(var(--lg-padding-x) - .45rem); // -.45 so user-list and chat title is aligned with the presentation title
--userlist-handle-width: 5px; // 5px so user-list and chat resize handle render as the same size
2018-10-26 09:40:15 +08:00
--poll-pane-min-width: 20em;
2019-01-05 02:29:41 +08:00
--panel-margin-left: 0.1em;
}
2016-05-03 06:42:54 +08:00
.main {
position: relative;
2016-05-03 06:42:54 +08:00
height: 100%;
display: flex;
flex-direction: column;
}
.navbar {
position: relative;
text-align: center;
2016-05-03 06:42:54 +08:00
font-size: 1.5rem;
padding: var(--bars-padding);
2016-05-03 06:42:54 +08:00
}
.wrapper {
2017-04-11 03:40:41 +08:00
position: relative;
display: flex;
flex: 1;
flex-direction: column;
2016-06-02 05:59:10 +08:00
overflow: hidden;
2016-05-03 06:42:54 +08:00
@include mq($medium-up) {
flex-direction: row;
}
}
%full-page {
position: absolute;
2016-05-03 06:42:54 +08:00
display: flex;
flex-direction: column;
overflow-y: auto;
overflow-x: hidden;
@include mq($small-only) {
top: 0;
right: 0;
bottom: 0;
left: 0;
}
@include mq($medium-up) {
position: relative;
}
}
.content, .noPanelContent {
@extend %full-page;
order: 3;
&:before,
&:after {
content: '';
position: absolute;
display: block;
width: 100%;
height: 50%;
opacity: 0;
pointer-events: none;
:global(.animationsEnabled) & {
transition: opacity .3s;
}
}
&:before {
top: 0;
background: linear-gradient(to bottom, rgba(0, 0, 0, .45) -20%, transparent 20%);
}
&:after {
bottom: 0;
background: linear-gradient(to top, rgba(0, 0, 0, .45) -20%, transparent 20%);
}
2016-05-03 06:42:54 +08:00
@include mq($medium-up) {
flex: 5;
order: 2;
}
}
.content{
margin-left: var(--panel-margin-left);
}
.userList {
@extend %full-page;
2017-04-11 03:32:48 +08:00
@extend %text-elipsis;
@include highContrastOutline();
outline-style: solid;
z-index: 2;
2019-01-05 02:29:41 +08:00
overflow: visible;
order: 1;
@include mq($small-only) {
top: var(--navbar-height);
}
2016-05-03 06:42:54 +08:00
@include mq($medium-up) {
2017-07-18 21:55:19 +08:00
flex: 0 15vw;
2016-05-03 06:42:54 +08:00
order: 1;
}
@include mq($xlarge-up) {
2017-07-18 21:55:19 +08:00
flex-basis: 10vw;
}
2016-05-03 06:42:54 +08:00
}
2018-04-29 01:53:20 +08:00
.userlistPad {
background-color: var(--color-off-white);
width: var(--userlist-handle-width);
2018-04-29 01:53:20 +08:00
}
.compact {
flex-basis: 4.6rem;
}
.poll,
2018-10-02 21:48:12 +08:00
.breakoutRoom,
2018-12-13 04:10:27 +08:00
.note,
.chat {
@extend %full-page;
@include highContrastOutline();
outline-style: solid;
order: 2;
height: 100%;
@include mq($small-only) {
z-index: 3;
height: auto;
top: var(--navbar-height);
overflow: visible;
}
2016-05-03 06:42:54 +08:00
@include mq($medium-up) {
2016-06-02 00:33:19 +08:00
flex: 0 25vw;
2016-05-03 06:42:54 +08:00
order: 1;
}
@include mq($xlarge-up) {
2016-06-02 00:33:19 +08:00
flex-basis: 20vw;
}
2016-05-03 06:42:54 +08:00
}
2018-09-15 01:50:18 +08:00
.poll {
background-color: var(--color-white);
2018-10-26 09:40:15 +08:00
min-width: var(--poll-pane-min-width);
padding: 1rem;
2018-09-15 01:50:18 +08:00
}
2018-10-02 21:48:12 +08:00
.breakoutRoom {
height: 100%;
width: 20vw;
2018-10-26 23:16:29 +08:00
background-color: var(--color-white);
2018-10-24 01:18:09 +08:00
@include mq($small-only) {
width: auto;
}
2018-10-02 21:48:12 +08:00
}
.sidebar {
@extend %full-page;
z-index: 4;
@include mq($medium-up) {
flex: 0 15vw;
order: 2;
}
}
2016-05-03 06:42:54 +08:00
.media {
@extend %full-page;
2017-04-11 03:32:48 +08:00
flex: 1 100%;
2017-05-19 04:03:35 +08:00
order: 2;
2017-05-13 03:17:08 +08:00
flex-direction: row;
position: relative;
2019-01-05 02:29:41 +08:00
margin-left: var(--panel-margin-right);
2017-05-13 03:17:08 +08:00
@include mq($portrait) {
flex-direction: column;
}
}
.closedCaptionBox {
2017-05-13 03:17:08 +08:00
position: relative;
2017-05-19 03:58:21 +08:00
flex-basis: 15vw;
order: 2;
2017-05-13 03:17:08 +08:00
@include mq($portrait) {
min-height: 35%;
}
2016-05-03 06:42:54 +08:00
}
.closedCaptions {
2016-12-21 07:54:39 +08:00
order: 3;
flex-basis: 20%;
max-width: 20%;
}
2016-05-03 06:42:54 +08:00
.actionsbar {
2017-04-11 03:32:48 +08:00
flex: 1;
padding: var(--bars-padding);
2016-05-03 06:42:54 +08:00
position: relative;
order: 3;
2016-05-03 06:42:54 +08:00
}