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

164 lines
2.5 KiB
SCSS
Raw Normal View History

@import '../../stylesheets/variables/_all';
@import '../../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 {
2016-05-17 21:52:27 +08:00
display: flex;
flex-flow: row;
padding-left: $sm-padding-x / 2;
margin-left: $sm-padding-x / 2;
padding-right: $sm-padding-x;
padding-top: $sm-padding-y;
padding-bottom: $sm-padding-y;
margin-top: $sm-padding-y * 2;
2016-05-17 21:52:27 +08:00
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;
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;
padding: 0 $sm-padding-x;
margin: $lg-padding-x 0;
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;
overflow-x: hidden;
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;
padding: 0 $sm-padding-x;
margin: 0 0 ($lg-padding-x / 2) 0;
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;
}
.messages {
margin-bottom: $lg-padding-x;
}
2016-06-28 21:10:20 +08:00
.participants {
flex-basis: 31rem;
flex-grow: 1;
flex-shrink: 1;
}
.separator {
margin: 1rem auto;
width: 2.2rem;
border: 0;
border-top: 1px solid $color-gray-lighter;
}
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;
}