2021-10-01 21:52:36 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2021-07-19 19:26:06 +00:00
|
|
|
.Input {
|
|
|
|
&__container {
|
|
|
|
@include font-body-1;
|
|
|
|
border-radius: 6px;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 2px;
|
|
|
|
margin: 16px 0;
|
2022-10-18 17:12:02 +00:00
|
|
|
padding: 2px 16px;
|
|
|
|
display: flex;
|
2021-07-19 19:26:06 +00:00
|
|
|
position: relative;
|
|
|
|
|
2022-10-18 17:12:02 +00:00
|
|
|
&--expandable {
|
|
|
|
padding: 2px 8px;
|
|
|
|
}
|
|
|
|
|
2021-07-19 19:26:06 +00:00
|
|
|
@include light-theme {
|
|
|
|
background: $color-white;
|
|
|
|
border-color: $color-gray-15;
|
|
|
|
color: $color-black;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-80;
|
|
|
|
border-color: $color-gray-45;
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--disabled {
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-gray-02;
|
|
|
|
border-color: $color-gray-05;
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-95;
|
|
|
|
border-color: $color-gray-60;
|
|
|
|
color: $color-gray-20;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus-within {
|
|
|
|
outline: none;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
border-color: $color-ultramarine;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border-color: $color-ultramarine-light;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__icon {
|
|
|
|
font-size: 24px;
|
|
|
|
height: 32px;
|
|
|
|
width: 32px;
|
2022-10-18 17:12:02 +00:00
|
|
|
margin-right: 8px;
|
2021-07-19 19:26:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__input {
|
|
|
|
@include font-body-1;
|
|
|
|
|
|
|
|
background: inherit;
|
|
|
|
border: none;
|
|
|
|
resize: none;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&--large {
|
|
|
|
height: 280px;
|
|
|
|
}
|
|
|
|
|
2022-10-18 17:12:02 +00:00
|
|
|
&--expandable {
|
|
|
|
margin-top: 4px;
|
2021-07-19 19:26:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:placeholder {
|
|
|
|
color: $color-gray-45;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-black;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__controls {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2022-10-18 17:12:02 +00:00
|
|
|
flex-shrink: 0;
|
2021-07-19 19:26:06 +00:00
|
|
|
height: 22px;
|
|
|
|
justify-content: flex-end;
|
2022-10-18 17:12:02 +00:00
|
|
|
min-height: 32px;
|
2021-07-19 19:26:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__clear-icon {
|
|
|
|
height: 18px;
|
|
|
|
width: 18px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-60);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-25);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__remaining-count {
|
|
|
|
@include font-subtitle;
|
|
|
|
color: $color-gray-45;
|
|
|
|
|
|
|
|
&--large {
|
|
|
|
position: absolute;
|
2022-10-18 17:12:02 +00:00
|
|
|
bottom: 0;
|
2021-07-19 19:26:06 +00:00
|
|
|
right: 0;
|
2022-10-18 17:12:02 +00:00
|
|
|
|
|
|
|
margin: 12px;
|
2021-07-19 19:26:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|