-
Notifications
You must be signed in to change notification settings - Fork 202
Expand file tree
/
Copy pathFormField.css
More file actions
91 lines (77 loc) · 1.56 KB
/
Copy pathFormField.css
File metadata and controls
91 lines (77 loc) · 1.56 KB
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
.form-field {
display: flex;
flex-direction: column;
gap: 4px;
}
.form-field__label {
font-size: 14px;
font-weight: 500;
color: var(--text-primary);
}
.form-field__required {
color: #e74c3c;
margin-left: 4px;
}
.form-field__input-wrapper {
position: relative;
}
.form-field__input {
width: 100%;
padding: 10px 12px;
font-size: 16px;
border: 2px solid var(--border-color);
border-radius: 8px;
background: var(--input-background);
color: var(--text-primary);
transition: border-color 0.2s, box-shadow 0.2s;
outline: none;
}
.form-field__input:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.2);
}
.form-field__input:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.form-field--error .form-field__input {
border-color: #e74c3c;
}
.form-field--error .form-field__input:focus {
box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}
.form-field__help {
font-size: 13px;
color: var(--text-secondary);
}
.form-field__format {
font-size: 13px;
color: var(--text-secondary);
font-family: monospace;
background: var(--code-background);
padding: 2px 8px;
border-radius: 4px;
display: inline-block;
width: fit-content;
}
.form-field__error {
font-size: 13px;
color: #e74c3c;
display: flex;
align-items: center;
gap: 4px;
}
.form-field__error::before {
content: '⚠️';
font-size: 14px;
}
/* Dark mode variables */
.dark {
--input-background: #2a2a2a;
--code-background: #1a1a1a;
}
/* Light mode variables */
.light {
--input-background: #ffffff;
--code-background: #f5f5f5;
}