forked from sqlpad/sqlpad
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInput.module.css
More file actions
68 lines (60 loc) · 1.34 KB
/
Copy pathInput.module.css
File metadata and controls
68 lines (60 loc) · 1.34 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
.input {
box-sizing: border-box;
margin: 0;
padding: 0;
font-variant: tabular-nums;
list-style: none;
font-feature-settings: 'tnum';
position: relative;
display: inline-block;
width: 100%;
height: 32px;
padding: 4px 11px;
color: rgba(0, 0, 0, 0.65);
font-size: 14px;
line-height: 1.5;
background-color: #fff;
background-image: none;
border: 1px solid #d9d9d9;
border-radius: 2px;
}
.input:focus {
border: 2px solid var(--primary-color);
/* padding adjustment prevents added border from shifting text */
padding-left: 10px;
padding-right: 10px;
outline: 0;
}
.input:hover {
border: 2px solid var(--primary-color);
/* padding adjustment prevents added border from shifting text */
padding-left: 10px;
padding-right: 10px;
}
.input:disabled,
.input[aria-disabled='true'] {
color: graytext;
border-color: #aaa;
background-color: #eee;
}
.input:disabled:hover,
.input[aria-disabled='true'] {
border: 1px solid #aaa;
/* override hover padding changes */
padding-left: 11px;
padding-right: 11px;
}
.danger {
border-color: var(--secondary-color);
box-shadow: inset 0 1px 1px var(--secondary-color-30);
}
.danger:focus {
border: 2px solid var(--secondary-color);
outline: 0;
}
.danger:hover {
border-color: var(--secondary-color);
}
.danger::placeholder {
color: var(--secondary-color);
}