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
|
|
|
|
2018-10-19 04:37:14 +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
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
--user-thumbnail-border: var(--color-gray-light);
|
|
|
|
--user-thumbnail-text: var(--user-thumbnail-border);
|
2016-05-26 03:29:22 +08:00
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
--voice-user-bg: var(--color-success);
|
|
|
|
--voice-user-text: var(--color-white);
|
2016-05-17 21:52:27 +08:00
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
--moderator-text: var(--color-white);
|
|
|
|
--moderator-bg: var(--color-primary);
|
2016-05-17 21:52:27 +08:00
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
--sub-name-color: var(--color-gray-light);
|
2016-05-17 21:52:27 +08:00
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
--user-icons-color: var(--color-gray-light);
|
|
|
|
--user-icons-color-hover: var(--color-gray);
|
2016-05-17 21:52:27 +08:00
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
--list-item-bg-hover: #dce4ed;
|
|
|
|
--item-focus-border: var(--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 {
|
2018-10-19 04:37:14 +08:00
|
|
|
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);
|
2017-11-14 23:41:03 +08:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2018-10-19 04:37:14 +08:00
|
|
|
background-color: var(--list-item-bg-hover);
|
2017-11-14 23:41: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;
|
2018-10-19 04:37:14 +08:00
|
|
|
background-color: var(--user-list-bg);
|
|
|
|
color: var(--user-list-text);
|
2016-06-01 04:25:42 +08:00
|
|
|
height: 100vh;
|
2018-10-19 04:37:14 +08:00
|
|
|
padding-top: var(--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
|
|
|
}
|
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
.participants,
|
|
|
|
.messages {
|
2016-06-28 21:10:20 +08:00
|
|
|
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;
|
2018-10-19 04:37:14 +08:00
|
|
|
margin-top: (var(--lg-padding-x) / 2);
|
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;
|
2018-10-19 04:37:14 +08:00
|
|
|
padding: 0 var(--sm-padding-x);
|
|
|
|
margin: 0 0 (var(--lg-padding-x) / 2) 0;
|
|
|
|
color: var(--color-gray-light);
|
2016-08-26 01:50:37 +08:00
|
|
|
}
|
|
|
|
|
2018-11-22 21:34:41 +08:00
|
|
|
.userListColumn {
|
|
|
|
@extend %flex-column;
|
|
|
|
min-height: 0;
|
|
|
|
}
|
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
.enter,
|
|
|
|
.appear {
|
2016-06-28 21:10:20 +08:00
|
|
|
opacity: 0.01;
|
|
|
|
}
|
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
.enterActive,
|
|
|
|
.appearActive {
|
2016-06-28 21:10:20 +08:00
|
|
|
opacity: 1;
|
|
|
|
transition: all 600ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
.leave {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.leaveActive {
|
|
|
|
opacity: 0;
|
|
|
|
transition: all 600ms;
|
2016-06-01 04:25:42 +08:00
|
|
|
}
|