blob: cdb8c9fd7abb281fa5deaf3568744729596d77d8 (
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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
@import '../../colors.scss';
.input-field {
font-size: 0.9em;
margin: 5px 0;
.field-name {
label {
margin: 0;
}
}
.field-input {
position: relative;
.field-value {
input, .file-label {
background-color: $color-primary-2;
width: 100%;
border: none;
color: $color-primary-4;
border-radius: 5px;
padding: 7px 10px;
&: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;
}
}
input[type="file"] {
display: none;
}
.file-label {
margin: 0;
}
.file-label:after {
content: "Browse";
position: absolute;
right: 0;
top: 0;
padding: 7px 10px 7px 12px;
background-color: $color-primary-1;
border-bottom-right-radius: 5px;
border-top-right-radius: 5px;
}
}
}
&.field-active {
&.field-inline .field-name {
background-color: $color-primary-4 !important;
color: $color-primary-3 !important;
}
.field-value input, .field-value .file-label {
background-color: $color-primary-4 !important;
color: $color-primary-3 !important;
}
.file-label:after {
background-color: $color-secondary-4 !important;
}
}
&.field-invalid {
&.field-inline .field-name {
background-color: $color-secondary-2 !important;
color: $color-primary-4 !important;
}
.field-value input, .field-value .file-label {
background-color: $color-secondary-2 !important;
color: $color-primary-4 !important;
}
.file-label:after {
background-color: $color-secondary-1 !important;
}
}
&.field-small {
font-size: 0.8em;
}
&.field-inline .field-wrapper {
display: flex;
.field-name {
background-color: $color-primary-2;
padding: 6px 7px;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
.field-input {
width: 100%;
input, .file-label {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
padding-left: 3px;
}
}
&:focus-within .field-name {
background-color: $color-primary-1;
}
}
.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;
}
}
|