Signal-Desktop/stylesheets/_conversation.scss

219 lines
3.8 KiB
SCSS
Raw Normal View History

2021-05-28 16:15:17 +00:00
// Copyright 2015-2021 Signal Messenger, LLC
2020-10-30 20:34:04 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
@import './mixins';
@keyframes panel--in {
from {
transform: translateX(500px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
.conversation {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
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));
overflow-y: scroll;
z-index: 1;
position: absolute;
left: 0;
2021-02-01 20:01:25 +00:00
top: calc(#{$header-height} + var(--title-bar-drag-area-height));
width: 100%;
@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) {
animation: panel--in 250ms ease-out;
}
&--static {
animation: none;
}
&--remove {
transform: translateX(500px);
opacity: 0;
transition: all 250ms ease-out;
}
.container {
padding-top: 20px;
max-width: 750px;
margin: 0 auto;
padding: 20px;
}
}
2018-04-26 23:06:13 +00:00
.main.panel {
display: flex;
flex-direction: column;
overflow: initial;
2018-04-26 23:06:13 +00:00
}
2018-04-26 23:06:13 +00:00
.main.panel {
.timeline-placeholder {
flex-grow: 1;
position: relative;
max-width: 100%;
margin: 0;
.timeline-wrapper {
-webkit-padding-start: 0px;
position: absolute;
top: 0;
height: 100%;
width: 100%;
margin: 0;
padding: 0;
overflow-y: auto;
overflow-x: hidden;
}
}
}
}
// 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;
}
// We need to use the wrapper because the conversation view calculates the height of all
// things in the composition area. A margin on an inner div won't be included in that
// height calculation.
.bottom-bar .quote-wrapper {
2019-08-06 19:18:37 +00:00
margin-left: 18px;
margin-right: 18px;
2019-01-10 20:26:28 +00:00
margin-top: 3px;
}
2019-01-16 03:03:56 +00:00
.bottom-bar .preview-wrapper {
margin-top: 3px;
2019-08-06 19:18:37 +00:00
margin-left: 12px;
margin-right: 12px;
2019-01-16 03:03:56 +00:00
margin-bottom: 2px;
}
.bottom-bar {
2016-03-22 00:17:39 +00:00
box-sizing: content-box;
$button-width: 36px;
form.active {
textarea {
2021-05-28 16:15:17 +00:00
border: solid 1px $color-ultramarine;
}
}
2016-03-18 20:09:45 +00:00
form.send {
2019-01-10 20:26:28 +00:00
margin-bottom: 0px;
2019-10-04 18:06:17 +00:00
@include light-theme {
background: $color-white;
}
@include dark-theme {
background-color: $color-gray-95;
}
2016-03-18 20:09:45 +00:00
}
2016-08-15 22:36:29 +00:00
.flex {
display: flex;
flex-direction: row;
.send-message {
flex-grow: 1;
}
}
.choose-file {
2015-01-25 09:18:10 +00:00
float: left;
height: 36px;
}
.send-message {
display: block;
max-height: 100px;
padding: 10px;
2019-01-10 20:26:28 +00:00
margin-top: 3px;
margin-bottom: 6px;
border-radius: 20px;
2019-10-04 18:06:17 +00:00
resize: none;
font-size: 1em;
font-family: inherit;
2016-08-15 22:36:29 +00:00
2019-10-04 18:06:17 +00:00
@include light-theme {
background-color: $color-gray-02;
color: $color-gray-95;
border: 1px solid $color-black-alpha-20;
outline: 0;
}
@include dark-theme {
background-color: $color-gray-90;
color: $color-gray-02;
border: 1px solid $color-gray-60;
outline: 0;
}
2018-05-04 20:07:52 +00:00
&[disabled='disabled'] {
2016-08-15 22:36:29 +00:00
background: transparent;
}
2014-11-07 08:17:27 +00:00
}
2016-08-15 22:36:29 +00:00
.capture-audio {
float: right;
height: 36px;
}
.android-length-warning {
padding: 10px;
2018-05-04 20:07:52 +00:00
max-width: 150px;
}
2015-01-11 11:27:22 +00:00
}
.permissions-popup,
.debug-log-window {
.modal {
background-color: transparent;
padding: 0;
}
}