signal-desktop/stylesheets/_conversation.scss

113 lines
2.3 KiB
SCSS
Raw Normal View History

2023-01-03 19:55:46 +00:00
// Copyright 2015 Signal Messenger, LLC
2020-10-30 20:34:04 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
@import './mixins';
2023-04-20 17:03:43 +00:00
@keyframes panel--in--ltr {
from {
2023-04-20 17:03:43 +00:00
// stylelint-disable-next-line declaration-property-value-disallowed-list
transform: translateX(500px);
}
to {
2023-04-20 17:03:43 +00:00
// stylelint-disable-next-line declaration-property-value-disallowed-list
transform: translateX(0);
}
}
@keyframes panel--in--rtl {
from {
// stylelint-disable-next-line declaration-property-value-disallowed-list
transform: translateX(-500px);
}
to {
// stylelint-disable-next-line declaration-property-value-disallowed-list
transform: translateX(0);
}
}
.conversation {
2019-10-04 18:06:17 +00:00
@include light-theme {
background-color: $color-white;
}
@include dark-theme {
background-color: $color-gray-95;
}
.panel {
2021-02-01 20:01:25 +00:00
height: calc(100% - #{$header-height} - var(--title-bar-drag-area-height));
2023-04-20 17:03:43 +00:00
inset-inline-start: 0;
2021-10-05 16:47:06 +00:00
overflow-y: overlay;
position: absolute;
2021-02-01 20:01:25 +00:00
top: calc(#{$header-height} + var(--title-bar-drag-area-height));
width: 100%;
2021-12-01 23:13:09 +00:00
z-index: $z-index-base;
@include light-theme() {
background-color: $color-white;
}
@include dark-theme() {
background-color: $color-gray-95;
}
2018-04-26 23:06:13 +00:00
}
2018-04-26 23:06:13 +00:00
.panel {
&:not(.main) {
2023-04-20 17:03:43 +00:00
&:dir(ltr) {
animation: panel--in--ltr 350ms cubic-bezier(0.17, 0.17, 0, 1);
}
&:dir(rtl) {
animation: panel--in--rtl 350ms cubic-bezier(0.17, 0.17, 0, 1);
}
}
&--static {
animation: none;
}
&--remove {
2023-04-20 17:03:43 +00:00
&:dir(ltr) {
// stylelint-disable-next-line declaration-property-value-disallowed-list
transform: translateX(100%);
}
&:dir(rtl) {
// stylelint-disable-next-line declaration-property-value-disallowed-list
transform: translateX(-100%);
}
2021-10-05 16:47:06 +00:00
transition: transform 350ms cubic-bezier(0.17, 0.17, 0, 1);
}
}
}
// Make sure the main panel is hidden when other panels are in the dom
.panel + .main.panel {
display: none;
}
.message-detail-wrapper {
height: calc(100% - 48px);
width: 100%;
overflow-y: auto;
}
2018-11-14 19:10:32 +00:00
.typing-bubble-wrapper {
margin-bottom: 20px;
}
.contact-detail-pane {
overflow-y: scroll;
padding-top: 40px;
padding-bottom: 40px;
}
.permissions-popup,
.debug-log-window {
.modal {
background-color: transparent;
padding: 0;
}
}