bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/user-list/styles.scss

143 lines
2.5 KiB
SCSS
Raw Normal View History

@import "/imports/ui/stylesheets/variables/_all";
@import "/imports/ui/stylesheets/mixins/_scrollable";
2016-05-17 21:52:27 +08:00
/* Variables
* ==========
*/
2017-07-18 21:12:26 +08:00
// TODO: would be better to have those variables scoped and not global
:root {
--unread-messages-bg: var(--color-danger);
--user-list-text: var(--color-gray);
--user-list-bg: var(--color-off-white);
2016-05-26 03:29:22 +08:00
--user-thumbnail-border: var(--color-gray-light);
--user-thumbnail-text: var(--user-thumbnail-border);
2016-05-26 03:29:22 +08:00
--voice-user-bg: var(--color-success);
--voice-user-text: var(--color-white);
2016-05-17 21:52:27 +08:00
--moderator-text: var(--color-white);
--moderator-bg: var(--color-primary);
2016-05-17 21:52:27 +08:00
--sub-name-color: var(--color-gray-light);
2016-05-17 21:52:27 +08:00
--user-icons-color: var(--color-gray-light);
--user-icons-color-hover: var(--color-gray);
2016-05-17 21:52:27 +08:00
--list-item-bg-hover: #dce4ed;
--item-focus-border: var(--color-blue-lighter);
}
/* classes for extending
* ==========
*/
2016-06-28 21:10:20 +08:00
%flex-column {
display: flex;
flex-flow: column;
2016-05-26 03:29:22 +08:00
}
2016-05-17 21:52:27 +08:00
2016-06-28 21:10:20 +08:00
%no-margin {
margin: 0;
2016-05-17 21:52:27 +08:00
}
2016-06-28 21:10:20 +08:00
%list-item {
2016-05-17 21:52:27 +08:00
display: flex;
flex-flow: row;
transition: all 0.3s;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
2016-06-28 21:10:20 +08:00
cursor: pointer;
2016-05-26 03:29:22 +08:00
2016-05-17 21:52:27 +08:00
&:first-child {
margin-top: 0;
2016-05-17 21:52:27 +08:00
}
&:focus {
background-color: var(--list-item-bg-hover);
box-shadow: inset 0 0 0 var(--border-size) var(--item-focus-border), inset 1px 0 0 1px var(--item-focus-border);
outline: none;
}
&:hover {
background-color: var(--list-item-bg-hover);
}
2016-05-17 21:52:27 +08:00
}
/* Styling
* ==========
*/
.userList {
2016-06-28 21:10:20 +08:00
@extend %flex-column;
justify-content: flex-start;
background-color: var(--user-list-bg);
color: var(--user-list-text);
height: 100vh;
padding-top: var(--md-padding-x);
2016-05-17 21:52:27 +08:00
}
.lists {
2016-06-28 21:10:20 +08:00
@extend %flex-column;
@extend %no-margin;
padding: 0;
2016-06-28 21:10:20 +08:00
outline: none;
2016-05-26 03:29:22 +08:00
}
2016-05-20 02:22:56 +08:00
.participantsList,
.chatsList {
@extend .lists;
overflow-x: hidden;
2016-06-28 21:10:20 +08:00
flex-shrink: 1;
2016-05-17 21:52:27 +08:00
}
.participants,
.messages {
2016-06-28 21:10:20 +08:00
flex-grow: 0;
display: flex;
flex-flow: column;
2016-06-28 21:10:20 +08:00
flex-shrink: 0;
}
.messages {
2017-10-12 02:11:48 +08:00
max-height: 30vh;
}
2016-06-28 21:10:20 +08:00
.participants {
flex-basis: 31rem;
flex-grow: 1;
flex-shrink: 1;
overflow-x: hidden;
overflow-y: auto;
margin-top: (var(--lg-padding-x) / 2);
2016-06-28 21:10:20 +08:00
}
.smallTitle {
font-size: 0.85rem;
font-weight: 600;
text-transform: uppercase;
padding: 0 var(--sm-padding-x);
margin: 0 0 (var(--lg-padding-x) / 2) 0;
color: var(--color-gray-light);
}
.enter,
.appear {
2016-06-28 21:10:20 +08:00
opacity: 0.01;
}
.enterActive,
.appearActive {
2016-06-28 21:10:20 +08:00
opacity: 1;
transition: all 600ms;
}
.leave {
opacity: 1;
}
.leaveActive {
opacity: 0;
transition: all 600ms;
}