2021-10-01 21:52:36 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2021-07-20 20:18:35 +00:00
|
|
|
.CompositionArea {
|
|
|
|
position: relative;
|
|
|
|
min-height: 42px;
|
2022-06-15 17:53:08 +00:00
|
|
|
padding: 10px 0 10px 0;
|
2021-07-20 20:18:35 +00:00
|
|
|
|
|
|
|
&__placeholder {
|
|
|
|
flex-grow: 1;
|
|
|
|
margin: {
|
|
|
|
bottom: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__row {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2022-06-15 17:53:08 +00:00
|
|
|
align-items: end;
|
2022-06-13 23:37:29 +00:00
|
|
|
|
2021-07-20 20:18:35 +00:00
|
|
|
&--center {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
&--padded {
|
|
|
|
padding: 0 12px;
|
|
|
|
}
|
|
|
|
&--control-row {
|
2022-06-15 17:53:08 +00:00
|
|
|
margin-top: 12px;
|
2021-07-20 20:18:35 +00:00
|
|
|
}
|
|
|
|
&--column {
|
|
|
|
flex-direction: column;
|
2022-06-14 19:54:10 +00:00
|
|
|
align-items: stretch;
|
2021-07-20 20:18:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__button-cell {
|
2022-06-13 23:37:29 +00:00
|
|
|
margin: 0 6px;
|
2021-07-20 20:18:35 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
height: 100%;
|
|
|
|
flex-shrink: 0;
|
2022-06-13 23:37:29 +00:00
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-left: 12px;
|
2021-07-20 20:18:35 +00:00
|
|
|
}
|
2022-06-13 23:37:29 +00:00
|
|
|
|
|
|
|
&:last-child {
|
2021-07-20 20:18:35 +00:00
|
|
|
margin-right: 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&__send-button {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
2023-02-16 07:10:25 +00:00
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
2021-07-20 20:18:35 +00:00
|
|
|
&::after {
|
|
|
|
display: block;
|
|
|
|
content: '';
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
@include color-svg('../images/icons/v2/send-24.svg', $color-ultramarine);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&__input {
|
|
|
|
flex-grow: 1;
|
2022-06-13 23:37:29 +00:00
|
|
|
margin: 0 6px;
|
|
|
|
|
|
|
|
&--large {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2021-07-20 20:18:35 +00:00
|
|
|
}
|
|
|
|
$comp-area: &;
|
|
|
|
&__toggle-large {
|
2022-06-14 19:54:10 +00:00
|
|
|
$width: 48px;
|
|
|
|
$height: 24px;
|
|
|
|
|
|
|
|
width: $width;
|
|
|
|
height: $height;
|
2021-07-20 20:18:35 +00:00
|
|
|
position: absolute;
|
2022-06-14 19:54:10 +00:00
|
|
|
left: calc(50% - $width / 2);
|
|
|
|
|
2022-06-15 17:53:08 +00:00
|
|
|
// 6px coming from padding-top of .module-composition-input__input__scroller
|
|
|
|
top: calc(0px - $height / 2 - 6px);
|
2021-07-20 20:18:35 +00:00
|
|
|
border-radius: 12px 12px 0 0;
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 200ms ease-out;
|
|
|
|
|
|
|
|
#{$comp-area}:hover & {
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background-color: $color-gray-95;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__button {
|
|
|
|
width: 48px;
|
|
|
|
height: 24px;
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
@include light-theme() {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/expand-up-20.svg',
|
|
|
|
$color-gray-45,
|
|
|
|
false
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/expand-up-20.svg',
|
|
|
|
$color-gray-45,
|
|
|
|
false
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
&--large-active {
|
|
|
|
@include light-theme() {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/collapse-down-20.svg',
|
|
|
|
$color-gray-45,
|
|
|
|
false
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/collapse-down-20.svg',
|
|
|
|
$color-gray-45,
|
|
|
|
false
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&__attachment-list {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--sms-only {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
// Note the margin in &__placeholder above
|
|
|
|
padding: 14px 16px 18px 16px;
|
|
|
|
|
|
|
|
&:not(.module-composition-area--pending) {
|
|
|
|
@include light-theme {
|
|
|
|
border-top: 1px solid $color-gray-05;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border-top: 1px solid $color-gray-75;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
@include font-body-2-bold;
|
|
|
|
margin: 0 0 2px 0;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__body {
|
|
|
|
@include font-body-2;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-05 16:47:06 +00:00
|
|
|
|
|
|
|
&__attach-file {
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
2022-06-15 17:53:08 +00:00
|
|
|
border-radius: 4px;
|
2021-10-05 16:47:06 +00:00
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
background: transparent;
|
2022-06-13 23:37:29 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2021-10-05 16:47:06 +00:00
|
|
|
|
2022-06-13 23:37:29 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
2022-06-15 17:53:08 +00:00
|
|
|
outline: 2px solid $color-ultramarine;
|
2022-06-13 23:37:29 +00:00
|
|
|
}
|
2021-10-05 16:47:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
outline: none;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v2/plus-24.svg', $color-gray-75);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/plus-24.svg', $color-gray-15);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-07-20 20:18:35 +00:00
|
|
|
}
|