-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.module.css
More file actions
95 lines (77 loc) · 1.82 KB
/
Copy pathindex.module.css
File metadata and controls
95 lines (77 loc) · 1.82 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
92
93
94
95
.fieldFrame {
--field-frame-critical-color: var(--color-feedback-critical-strong, #ae1302);
--field-frame-br: 0.125rem;
}
.label {
font-weight: bolder;
}
.label-required {
color: var(--field-frame-critical-color);
}
.error {
color: var(--field-frame-critical-color);
}
.button {
background: color-mix(in oklch, var(--bg-base), black 6%);
border-radius: 0;
&[data-disabled] {
cursor: not-allowed;
}
}
.frame {
border-radius: var(--field-frame-br);
min-height: 40.5px;
box-sizing: border-box;
& > :first-child {
border-start-start-radius: var(--field-frame-br);
border-start-end-radius: 0;
border-end-start-radius: var(--field-frame-br);
border-end-end-radius: 0;
}
& > :last-child {
border-start-end-radius: var(--field-frame-br);
border-end-start-radius: 0;
border-end-end-radius: var(--field-frame-br);
border-start-start-radius: 0;
}
& > :only-child {
border-radius: var(--field-frame-br);
}
&[data-disabled] {
opacity: 0.4;
}
&[data-invalid] {
border-color: var(--field-frame-critical-color);
}
&[data-invalid]:has(input[data-focused="true"]),
&[data-invalid]:has(textarea[data-focused="true"]) {
outline: 2px solid var(--field-frame-critical-color);
}
&:has(input[data-focused="true"]),
&:has(textarea[data-focused="true"]) {
outline: 2px solid Highlight;
outline: 2px auto -webkit-focus-ring-color;
outline-offset: -1px;
}
& .button[data-focused="true"] {
outline: 2px solid Highlight;
outline: 2px auto -webkit-focus-ring-color;
}
}
.input {
background: transparent;
border: none;
outline: none;
flex: 1;
padding-inline: var(--sp-md);
min-width: 0;
&[data-disabled] {
cursor: not-allowed;
}
}
input.input {
padding-block: var(--sp-md);
}
textarea.input {
padding-block: var(--sp-sm);
}