-
Notifications
You must be signed in to change notification settings - Fork 0
/
Input.scss
91 lines (79 loc) · 2.16 KB
/
Input.scss
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
label {
margin-bottom: 0.2rem;
line-height: 0.5rem;
margin-top: 0.8rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.input-container {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
gap: 1rem;
input {
font-family: Kalam, Verdana, sans-serif;
font-size: 2.5rem;
font-weight: 700;
width: 9rem;
background-color: rgb(0 0 0 / 0%);
border: none;
text-align: center;
outline: none;
}
.input-arrows {
position: absolute;
right: 0;
translate: 100% -5%;
display: flex;
flex-direction: column;
scale: 1.2 1;
box-shadow: 0 0 2px 0 rgb(0 0 0 / 0.7);
border-radius: 20%;
opacity: 0;
transition: opacity 0.3s;
&:hover {
opacity: 1;
}
.input-arrow-up, .input-arrow-down {
user-select: none;
font-family: inherit;
font-size: 1.3rem;
width: 1.2rem;
height: 1.3rem;
background: white;
border-radius: 0 0 20% 20%;
border-color: transparent;
line-height: 1.5rem;
transition: background 0.3s;
&:hover {
background: #d2d2d2;
}
}
.input-arrow-up {
rotate: 180deg;
}
}
}
// noinspection ALL
input[type="number"] {
&::-webkit-inner-spin-button {
appearance: none;
}
appearance: textfield;
}
}
@media (width <= 650px), (height <= 650px) {
.app > label {
font-size: 1.1rem;
line-height: 0;
input {
margin-right: 0;
padding: 0;
}
.input-container .input-arrows {
display: none;
}
}
}