2017-07-18 02:21:45 +08:00
|
|
|
@import "/imports/ui/stylesheets/variables/_all";
|
2017-07-18 02:56:05 +08:00
|
|
|
@import "/imports/ui/stylesheets/mixins/_scrollable";
|
2016-05-17 21:52:27 +08:00
|
|
|
|
2016-06-01 04:25:42 +08:00
|
|
|
/* Variables
|
|
|
|
* ==========
|
|
|
|
*/
|
2017-07-18 21:12:26 +08:00
|
|
|
|
2016-06-01 04:25:42 +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
|
|
|
|
2016-06-01 04:25:42 +08:00
|
|
|
$user-thumbnail-border: $color-gray-light;
|
|
|
|
$user-thumbnail-text: $user-thumbnail-border;
|
2016-05-26 03:29:22 +08:00
|
|
|
|
2016-06-01 04:25:42 +08:00
|
|
|
$voice-user-bg: $color-success;
|
|
|
|
$voice-user-text: $color-white;
|
2016-05-17 21:52:27 +08:00
|
|
|
|
2016-06-01 04:25:42 +08:00
|
|
|
$moderator-text: $color-white;
|
|
|
|
$moderator-bg: $color-primary;
|
2016-05-17 21:52:27 +08:00
|
|
|
|
2016-06-01 04:25:42 +08:00
|
|
|
$sub-name-color: $color-gray-light;
|
2016-05-17 21:52:27 +08:00
|
|
|
|
2016-06-01 04:25:42 +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;
|
2016-06-01 04:25:42 +08:00
|
|
|
|
|
|
|
/* classes for extending
|
|
|
|
* ==========
|
|
|
|
*/
|
2016-06-28 21:10:20 +08:00
|
|
|
%flex-column {
|
2016-06-01 04:25:42 +08:00
|
|
|
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 {
|
2016-06-01 04:25:42 +08:00
|
|
|
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 {
|
2016-06-01 04:25:42 +08:00
|
|
|
margin-top: 0;
|
2016-05-17 21:52:27 +08:00
|
|
|
}
|
2017-11-14 23:41:03 +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
|
|
|
}
|
|
|
|
|
2016-06-01 04:25:42 +08:00
|
|
|
/* Styling
|
|
|
|
* ==========
|
|
|
|
*/
|
|
|
|
|
|
|
|
.userList {
|
2016-06-28 21:10:20 +08:00
|
|
|
@extend %flex-column;
|
2016-06-01 04:25:42 +08:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2016-06-01 04:25:42 +08:00
|
|
|
.lists {
|
2016-06-28 21:10:20 +08:00
|
|
|
@extend %flex-column;
|
|
|
|
@extend %no-margin;
|
2016-06-01 04:25:42 +08:00
|
|
|
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
|
|
|
|
2016-06-01 04:25:42 +08:00
|
|
|
.participantsList,
|
|
|
|
.chatsList {
|
|
|
|
@extend .lists;
|
2016-09-02 04:30:11 +08:00
|
|
|
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;
|
2016-06-01 04:25:42 +08:00
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
2016-06-28 21:10:20 +08:00
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
2016-12-07 00:39:48 +08:00
|
|
|
.messages {
|
2017-10-12 02:11:48 +08:00
|
|
|
max-height: 30vh;
|
2016-12-07 00:39:48 +08:00
|
|
|
}
|
|
|
|
|
2016-06-28 21:10:20 +08:00
|
|
|
.participants {
|
|
|
|
flex-basis: 31rem;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
2017-01-28 06:13:25 +08:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2016-06-28 21:10:20 +08:00
|
|
|
}
|
|
|
|
|
2017-10-06 22:59:07 +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;
|
2017-10-06 22:59:07 +08:00
|
|
|
color: $color-gray-light;
|
2016-08-26 01:50:37 +08:00
|
|
|
}
|
|
|
|
|
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;
|
2016-06-01 04:25:42 +08:00
|
|
|
}
|