bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/user-list/styles.scss
Ghazi Triki 1f6326f7fd Change layout direction for RTL languages.
Update styles for RTL layout.
2019-05-14 14:17:19 +01:00

175 lines
3.1 KiB
SCSS
Executable File

@import "/imports/ui/stylesheets/variables/_all";
@import "/imports/ui/stylesheets/mixins/_scrollable";
@import "/imports/ui/stylesheets/mixins/_indicators";
/* Variables
* ==========
*/
// 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);
--user-thumbnail-border: var(--color-gray-light);
--user-thumbnail-text: var(--user-thumbnail-border);
--voice-user-bg: var(--color-success);
--voice-user-text: var(--color-white);
--moderator-text: var(--color-white);
--moderator-bg: var(--color-primary);
--sub-name-color: var(--color-gray-light);
--user-icons-color: var(--color-gray-light);
--user-icons-color-hover: var(--color-gray);
--list-item-bg-hover: #dce4ed;
--item-focus-border: var(--color-blue-lighter);
}
/* classes for extending
* ==========
*/
%flex-column {
display: flex;
flex-flow: column;
}
%no-margin {
margin: 0;
}
%list-item {
display: flex;
flex-flow: row;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
cursor: pointer;
[dir="rtl"] & {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
&:first-child {
margin-top: 0;
}
&:hover {
@include highContrastOutline();
background-color: var(--list-item-bg-hover);
}
&:active,
&:focus {
@include highContrastOutline();
outline-style: solid;
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);
}
}
/* Styling
* ==========
*/
.userList {
@extend %flex-column;
justify-content: flex-start;
background-color: var(--user-list-bg);
color: var(--user-list-text);
height: 100vh;
padding-top: var(--md-padding-x);
}
.lists {
@extend %flex-column;
@extend %no-margin;
padding: 0;
padding-top: var(--border-size);
outline: none;
}
.participantsList {
padding: 0 0 var(--border-size) var(--border-size);
[dir="rtl"] & {
padding: 0 var(--border-size) var(--border-size) 0;
}
}
.participantsList,
.chatsList {
@extend .lists;
overflow-x: hidden;
flex-shrink: 1;
}
.participants,
.messages {
flex-grow: 0;
display: flex;
flex-flow: column;
flex-shrink: 0;
}
.messages {
max-height: 30vh;
}
.participants {
flex-basis: 31rem;
flex-grow: 1;
flex-shrink: 1;
overflow-x: hidden;
overflow-y: auto;
margin-top: (var(--lg-padding-x) / 2);
}
.smallTitle {
font-size: 0.85rem;
font-weight: 600;
text-transform: uppercase;
padding: 0 var(--sm-padding-x);
margin: 0 0 (var(--lg-padding-x) / 2) 0;
color: var(--color-gray);
}
.userListColumn {
@extend %flex-column;
min-height: 0;
}
.enter,
.appear {
opacity: 0.01;
}
.enterActive,
.appearActive {
opacity: 1;
:global(.animationsEnabled) & {
transition: all 600ms;
}
}
.leave {
opacity: 1;
}
.leaveActive {
opacity: 0;
:global(.animationsEnabled) & {
transition: all 600ms;
}
}