-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.css
81 lines (73 loc) · 1.39 KB
/
global.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
.custom-input {
position: relative;
display: inline-block;
width: 100px;
height: 30px;
background-color: #333;
border: 1px solid #8b8b8b;
border-radius: 2px;
color: #fff;
font-size: 14px;
text-align: center;
}
.custom-input input[type="number"] {
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
width: 90%;
height: 50%;
background-color: transparent;
padding-left: 8px;
border: none;
color: #fff;
appearance: textfield;
font-size: 14px;
text-align: left;
}
.custom-input input[type="text"] {
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
width: 90%;
height: 50%;
background-color: transparent;
padding-left: 8px;
border: none;
color: #fff;
font-size: 14px;
text-align: left;
}
.custom-input:focus-within {
outline: none;
box-shadow: none;
border: 1px solid #0077cc;
}
.custom-input input[type="number"]:focus {
outline: none;
box-shadow: none;
}
.custom-input .arrow-container {
position: absolute;
background-color: #333;
top: 0;
right: 0;
width: 20px;
height: 100%;
display: flex;
flex-direction: column;
}
.custom-input .arrow {
width: 100%;
height: 50%;
cursor: pointer;
}
.custom-input .arrow:hover {
background-color: #666;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}