session-desktop/stylesheets/_session_group_panel.scss

166 lines
3.4 KiB
SCSS
Raw Normal View History

2020-02-14 05:01:39 +01:00
.conversation-content-right {
transition: $session-transition-duration;
width: 22vw;
margin-right: -22vw;
}
.group-settings {
2020-01-13 05:50:18 +01:00
display: flex;
flex-direction: column;
height: 100vh;
2020-01-15 06:34:07 +01:00
width: 22vw;
2020-01-13 05:50:18 +01:00
flex-shrink: 0;
2020-08-25 04:13:43 +02:00
@include themify($themes) {
background: themed('leftpaneOverlayBackground');
border-left: themed('borderActionPanel');
}
2020-01-13 05:50:18 +01:00
align-items: center;
&-header {
margin-top: $session-margin-lg;
width: -webkit-fill-available;
display: flex;
2020-01-13 05:50:18 +01:00
flex-direction: row;
flex-shrink: 0;
2020-01-13 05:50:18 +01:00
.module-avatar {
margin: auto;
}
.session-icon-button,
.invite-friends-container {
2020-01-13 05:50:18 +01:00
margin: 0 $session-margin-md;
}
2020-01-13 05:50:18 +01:00
}
h2 {
word-break: break-word;
}
.description {
margin: $session-margin-md 0;
min-height: 4rem;
width: inherit;
2020-08-25 04:13:43 +02:00
@include themify($themes) {
color: themed('textColor');
background: themed('cellBackground');
border: themed('borderActionPanel');
}
2020-01-13 05:50:18 +01:00
text-align: center;
display: none;
2020-01-13 05:50:18 +01:00
}
&-item {
display: flex;
align-items: center;
min-height: 3rem;
font-size: 0.8rem;
2020-08-25 04:13:43 +02:00
@include themify($themes) {
color: themed('textColor');
background: themed('cellBackground');
border-top: themed('borderActionPanel');
border-bottom: themed('borderActionPanel');
}
2020-01-13 05:50:18 +01:00
width: -webkit-fill-available;
padding: 0 $session-margin-md;
transition: $session-transition-duration;
cursor: pointer;
&:hover {
2020-08-25 04:13:43 +02:00
@include themify($themes) {
background: themed('clickableHovered');
}
}
2020-01-13 05:50:18 +01:00
}
// no double border (top and bottom) between two elements
&-item + &-item {
border-top: none;
}
// bottom button
.session-button.square-outline.danger {
margin-top: auto;
width: 100%;
2020-08-25 07:57:37 +02:00
height: 51px;
2020-01-13 05:50:18 +01:00
flex-shrink: 0;
2020-01-16 05:04:44 +01:00
align-items: center;
2020-08-25 04:13:43 +02:00
@include themify($themes) {
border: none;
border-top: themed('borderActionPanel');
}
2020-01-13 05:50:18 +01:00
}
.module-empty-state {
text-align: center;
}
.module-attachment-section__items {
2020-01-30 02:03:43 +01:00
&-media {
display: grid;
grid-template-columns: repeat(3, 1fr);
width: 100%;
}
2020-01-30 03:24:20 +01:00
&-documents {
2020-01-30 02:03:43 +01:00
width: 100%;
}
2020-01-13 05:50:18 +01:00
}
.module-media {
&-gallery {
&__tab-container {
padding-top: 1rem;
}
&__tab {
2020-08-25 04:13:43 +02:00
@include themify($themes) {
color: themed('textColor');
}
2020-01-13 05:50:18 +01:00
font-weight: bold;
font-size: 0.9rem;
padding: 0.6rem;
opacity: 0.8;
&--active {
border-bottom: none;
opacity: 1;
&:after {
content: ''; /* This is necessary for the pseudo element to work. */
display: block;
margin: 0 auto;
width: 70%;
2020-01-15 06:34:07 +01:00
padding-top: 0.5rem;
border-bottom: $session-element-border-green;
2020-01-13 05:50:18 +01:00
}
}
2020-01-13 05:50:18 +01:00
}
2020-01-13 05:50:18 +01:00
&__content {
padding: $session-margin-xs;
2020-01-13 05:50:18 +01:00
.module-media-grid-item__image,
.module-media-grid-item {
height: calc(
22vw / 3.5
); //.group-settings is 22vw and we want three rows with some space so divide it by 3.5
width: calc(
22vw / 3.5
); //.group-settings is 22vw and we want three rows with some space so divide it by 3.5
margin: auto;
}
2020-01-13 05:50:18 +01:00
}
}
2020-01-13 05:50:18 +01:00
}
}
.conversation-content {
2020-01-13 05:50:18 +01:00
display: flex;
height: inherit;
2020-01-13 05:50:18 +01:00
&-left {
flex-grow: 1;
}
}