session-desktop/stylesheets/_session_group_panel.scss

140 lines
2.9 KiB
SCSS
Raw Normal View History

.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-01-15 06:34:07 +01:00
border: $session-separator-element-border;
2020-01-13 05:50:18 +01:00
background-color: $session-shade-4;
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;
}
2020-01-13 05:50:18 +01:00
.session-icon-button {
margin: 0 $session-margin-md;
}
2020-01-13 05:50:18 +01:00
}
h2 {
word-break: break-word;
}
.description {
margin: $session-margin-md 0;
2020-01-15 06:34:07 +01:00
border: $session-separator-element-border;
2020-01-13 05:50:18 +01:00
background-color: $session-shade-1;
min-height: 4rem;
width: inherit;
color: $session-color-white;
text-align: center;
display: none;
2020-01-13 05:50:18 +01:00
}
&-item {
display: flex;
align-items: center;
background-color: $session-shade-1;
min-height: 3rem;
font-size: 0.8rem;
color: $session-color-white;
width: -webkit-fill-available;
padding: 0 $session-margin-md;
2020-01-15 06:34:07 +01:00
border-bottom: $session-separator-element-border;
border-top: $session-separator-element-border;
2020-01-13 05:50:18 +01:00
transition: $session-transition-duration;
cursor: pointer;
&:hover {
@include session-dark-background-hover;
}
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%;
border: none;
height: 3.5rem;
background-color: black;
flex-shrink: 0;
2020-01-16 05:04:44 +01:00
align-items: center;
2020-01-13 05:50:18 +01:00
}
.module-empty-state {
text-align: center;
}
.module-attachment-section__items {
display: grid;
grid-template-columns: repeat(3, 1fr);
2020-01-13 05:50:18 +01:00
}
.module-media {
&-gallery {
&__tab-container {
padding-top: 1rem;
}
&__tab {
color: white;
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;
}
}