blob: 606f5375e47de333696d6ee42da16995d64feac3 (
plain) (
blame)
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
|
@import '../../colors.scss';
.text-field {
font-size: 0.9em;
margin: 5px 0;
label {
display: block;
margin: 0;
}
textarea {
background-color: $color-primary-2;
width: 100%;
border: none;
color: $color-primary-4;
border-radius: 5px;
padding: 7px 10px;
resize: none;
&:focus {
background-color: $color-primary-1;
color: $color-primary-4;
box-shadow: none;
outline: none;
}
&[readonly] {
background-color: $color-primary-2;
border: none;
color: $color-primary-4;
}
&[readonly]:focus {
background-color: $color-primary-1;
color: $color-primary-4;
box-shadow: none;
}
}
&.field-active {
textarea {
background-color: $color-primary-4 !important;
color: $color-primary-3 !important;
}
}
&.field-invalid {
textarea {
background-color: $color-secondary-2 !important;
color: $color-primary-4 !important;
}
}
&.field-small {
font-size: 0.8em;
}
.field-clear {
position: absolute;
right: 8px;
top: 8px;
z-index: 10;
font-size: 0.9em;
font-weight: 600;
letter-spacing: -0.5px;
cursor: pointer;
}
&.field-active .field-clear {
color: $color-primary-2;
}
.field-error {
padding: 5px 10px;
font-size: 0.9em;
color: $color-secondary-0;
}
}
|