-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
Input.scss
128 lines (107 loc) · 2.22 KB
/
Input.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.Input {
&__container {
@include font-body-1;
border-radius: 6px;
border-style: solid;
border-width: 2px;
margin: 16px 0;
padding: 8px 12px;
position: relative;
@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;
left: 0;
position: absolute;
top: 0;
width: 32px;
}
&__input {
@include font-body-1;
background: inherit;
border: none;
resize: none;
width: 100%;
&--large {
height: 280px;
}
&--with-icon {
padding-left: 28px;
}
&: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;
height: 22px;
justify-content: flex-end;
margin: 8px;
position: absolute;
right: 0;
top: 0;
}
&__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 {
bottom: 0;
margin: 12px 24px 12px 12px;
position: absolute;
right: 0;
}
}
}