-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfieldWrapper.css
84 lines (71 loc) · 1.69 KB
/
fieldWrapper.css
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
:root {
--tooltip-transition-duration: 0.2s;
}
.feed-back {
border-radius: 0.5rem;
position: relative;
padding: 0.625rem 0.813rem 1rem 1rem;
&.info:not(:has(.status-message-wrapper-tooltip)) {
@apply bg-info-5;
}
&.warning:not(:has(.status-message-wrapper-tooltip)) {
@apply bg-warning-5;
}
&.error:not(:has(.status-message-wrapper-tooltip)) {
@apply bg-error-5;
}
.custom-field {
display: flex;
flex-direction: column;
.field-and-status-icon,
.field-wrapper-status-message {
display: flex;
align-items: center;
.status-icon.next-to-field {
margin-left: 0.563rem;
}
}
input:focus:has(.status-message-wrapper-tooltip) .status-message-wrapper-tooltip {
z-index: 2;
}
.status-message-wrapper-tooltip {
position: absolute;
display: flex;
align-items: center;
width: 320px;
top: 60px;
gap: 12px;
border-radius: 8px;
box-shadow:
0px 10px 20px 0px rgba(0, 0, 0, 0.2),
0px 1px 0px rgba(255, 255, 255, 0.6) inset;
background-color: theme('colors.error.5');
opacity: 1;
padding: 8px 12px;
min-height: 64px;
z-index: 10;
transition: var(--tooltip-transition-duration) ease;
.status-message {
opacity: 1;
color: theme('colors.error.60');
font-size: 16px;
font-weight: 600;
font-style: SemiBold;
letter-spacing: 0px;
text-align: left;
line-height: 24px;
}
}
.tooltip-left {
left: -5px;
}
.tooltip-right {
right: -5px;
}
}
}
@media (prefers-reduced-motion: reduce) {
:root {
--tooltip-transition-duration: 0s;
}
}