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

150 lines
2.2 KiB
SCSS
Raw Normal View History

2016-05-17 21:52:27 +08:00
@import '../../stylesheets/variables/palette';
2016-06-28 21:10:20 +08:00
@import "imports/ui/stylesheets/mixins/_scrollable";
2016-05-17 21:52:27 +08:00
/* Variables
* ==========
*/
$unread-messages-bg: $color-danger;
2016-05-26 03:29:22 +08:00
$user-list-bg: $color-white;
$user-list-text: $color-gray-dark;
2016-05-26 03:29:22 +08:00
$list-item-bg-hover: darken($user-list-bg, 7%);
2016-05-17 21:52:27 +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
/* 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 {
padding: 0.3rem;
padding-left: 0.5rem;
2016-06-28 21:10:20 +08:00
padding-right: 0rem;
margin-left: 0.7rem;
2016-06-28 21:10:20 +08:00
margin-top: 0.9rem;
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
&:hover,
&:focus {
background-color: $list-item-bg-hover;
2016-06-28 21:10:20 +08:00
outline: none;
2016-05-17 21:52:27 +08:00
}
&:first-child {
margin-top: 0;
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;
2016-05-17 21:52:27 +08:00
}
.header {
2016-06-28 21:10:20 +08:00
@extend %flex-column;
2016-05-17 21:52:27 +08:00
justify-content: center;
min-height: 3.9rem;
flex-grow: 0;
2016-05-26 03:29:22 +08:00
}
2016-05-17 21:52:27 +08:00
.headerTitle {
2016-05-20 02:22:56 +08:00
font-size: 1.05rem;
font-weight: 600;
margin-left: 1.3rem;
2016-05-17 21:52:27 +08:00
}
.content {
2016-06-28 21:10:20 +08:00
@extend %flex-column;
flex-grow: 9;
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;
2016-06-28 21:10:20 +08:00
flex-shrink: 1;
2016-05-17 21:52:27 +08:00
}
.smallTitle {
2016-05-26 03:29:22 +08:00
color: $color-text;
font-size: 0.9rem;
font-weight: 700;
2016-05-26 03:29:22 +08:00
text-transform: uppercase;
2016-06-28 21:10:20 +08:00
margin: 0.6rem 1.3rem;
2016-05-20 02:22:56 +08:00
}
.scrollableList {
2016-06-28 21:10:20 +08:00
@include scrollbox-vertical($user-list-bg);
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;
}
.participants {
flex-basis: 31rem;
flex-grow: 1;
flex-shrink: 1;
}
.enter, .appear {
opacity: 0.01;
}
.enterActive, .appearActive {
opacity: 1;
transition: all 600ms;
}
.leave {
opacity: 1;
}
.leaveActive {
opacity: 0;
transition: all 600ms;
}