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

137 lines
2.2 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
$unread-messages-bg: $color-danger;
2017-07-18 21:12:26 +08:00
$user-list-text: $color-gray;
2017-11-09 00:42:13 +08:00
$user-list-bg: $color-off-white;
2016-05-26 03:29:22 +08:00
$user-thumbnail-border: $color-gray-light;
$user-thumbnail-text: $user-thumbnail-border;
2016-05-26 03:29:22 +08:00
$voice-user-bg: $color-success;
$voice-user-text: $color-white;
2016-05-17 21:52:27 +08:00
$moderator-text: $color-white;
$moderator-bg: $color-primary;
2016-05-17 21:52:27 +08:00
$sub-name-color: $color-gray-light;
2016-05-17 21:52:27 +08:00
$user-icons-color: $color-gray-light;
$user-icons-color-hover: $color-gray;
2016-05-17 21:52:27 +08:00
2017-11-09 00:42:13 +08:00
$list-item-bg-hover: darken($color-off-white, 7%);
$item-focus-border: $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: $list-item-bg-hover;
box-shadow: inset 0 0 0 $border-size $item-focus-border, inset 1px 0 0 1px $item-focus-border;
outline: none;
}
&:hover {
background-color: $list-item-bg-hover;
}
2017-12-04 20:45:03 +08:00
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: $user-list-bg;
color: $user-list-text;
height: 100vh;
2017-10-05 22:52:34 +08:00
padding-top: $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
}
2016-06-28 21:10:20 +08:00
.participants, .messages {
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;
2016-06-28 21:10:20 +08:00
}
.smallTitle {
font-size: 0.85rem;
font-weight: 600;
text-transform: uppercase;
padding: 0 $sm-padding-x;
2017-12-04 20:45:03 +08:00
margin: 0 0 ($lg-padding-x / 2) 0;
color: $color-gray-light;
}
2016-06-28 21:10:20 +08:00
.enter, .appear {
opacity: 0.01;
}
.enterActive, .appearActive {
opacity: 1;
transition: all 600ms;
}
.leave {
opacity: 1;
}
.leaveActive {
opacity: 0;
transition: all 600ms;
}