signal-desktop/stylesheets/components/ForwardMessageModal.scss

246 lines
4.5 KiB
SCSS
Raw Normal View History

2021-04-27 22:35:35 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.module-ForwardMessageModal {
$padding: 16px;
@include popper-shadow();
border-radius: 8px;
display: flex;
flex-direction: column;
margin: 0 auto;
max-height: 90vh;
max-width: 360px;
width: 95%;
@include light-theme() {
background: $color-white;
color: $color-gray-90;
}
@include dark-theme() {
background: $color-gray-75;
color: $color-gray-05;
}
&--link-preview {
border-bottom: 1px solid $color-gray-15;
padding: 12px 16px;
@include dark-theme() {
border-color: $color-gray-60;
}
}
&__input {
&__input {
background: inherit;
border: none;
border-radius: 0;
height: 100%;
&:focus-within {
border: none;
}
@include dark-theme() {
border: none;
&:focus-within {
border: none;
}
}
@include keyboard-mode {
&:focus-within {
2021-05-28 16:15:17 +00:00
border: solid 1px $color-ultramarine;
2021-04-27 22:35:35 +00:00
}
}
}
2021-05-11 00:50:43 +00:00
&__input__scroller {
2021-04-27 22:35:35 +00:00
max-height: 300px;
min-height: 300px;
padding: 16px;
// Need more padding on the right to make room for floating emoji button
padding-right: 36px;
2021-04-27 22:35:35 +00:00
}
}
&__header {
align-items: center;
display: flex;
justify-content: center;
position: relative;
&--edit {
border-bottom: 1px solid $color-gray-15;
@include dark-theme() {
border-color: $color-gray-60;
}
}
&--close {
2021-04-27 22:35:35 +00:00
@include button-reset;
position: absolute;
top: 8px;
right: 16px;
height: 22px;
width: 22px;
@include light-theme {
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-75);
}
@include dark-theme {
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-15);
}
2021-04-27 22:35:35 +00:00
@include keyboard-mode {
&:focus {
2021-05-28 16:15:17 +00:00
background-color: $color-ultramarine;
2021-04-27 22:35:35 +00:00
}
}
}
&--back {
@include button-reset;
height: 24px;
left: 16px;
position: absolute;
width: 24px;
@include light-theme {
@include color-svg(
'../images/icons/v2/chevron-left-24.svg',
$color-gray-60
);
}
@include keyboard-mode {
&:focus {
@include color-svg(
'../images/icons/v2/chevron-left-24.svg',
2021-05-28 16:15:17 +00:00
$color-ultramarine
2021-04-27 22:35:35 +00:00
);
}
}
@include dark-theme {
@include color-svg(
'../images/icons/v2/chevron-left-24.svg',
$color-gray-25
);
}
@include dark-keyboard-mode {
&:hover {
@include color-svg(
'../images/icons/v2/chevron-left-24.svg',
2021-05-28 16:15:17 +00:00
$color-ultramarine-light
2021-04-27 22:35:35 +00:00
);
}
}
}
h1 {
@include font-body-1-bold;
}
}
&__list-wrapper {
flex-grow: 1;
overflow: hidden;
}
&__main-body {
display: flex;
flex-direction: column;
min-height: 300px;
}
&__text-edit-area {
height: 100%;
position: relative;
}
&__no-candidate-contacts {
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
}
&__send-button {
align-items: center;
border: none;
border-radius: 100%;
display: flex;
height: 32px;
justify-content: center;
width: 32px;
&::after {
content: '';
display: block;
flex-shrink: 0;
height: 24px;
width: 24px;
}
&--continue {
&::after {
@include color-svg(
'../images/icons/v2/arrow-down-24.svg',
$color-white
);
transform: rotate(270deg);
}
}
&--forward {
&::after {
@include color-svg('../images/icons/v2/send-24.svg', $color-white);
}
}
}
&__emoji {
position: absolute;
right: 8px;
top: 8px;
button::after {
background-color: $color-black;
}
}
&__footer {
@include font-body-2;
align-items: center;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
display: flex;
justify-content: space-between;
margin-top: 0;
padding: $padding;
position: relative;
@include light-theme {
background-color: $color-gray-02;
color: $color-gray-60;
}
@include dark-theme() {
background: $color-gray-65;
color: $color-gray-25;
}
}
// Disable cursor since images are non-clickable
.module-image__image {
cursor: inherit;
}
}