-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquantity-input.css
More file actions
47 lines (47 loc) · 1.19 KB
/
Copy pathquantity-input.css
File metadata and controls
47 lines (47 loc) · 1.19 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
/**
* @file quantity-input.scss
* Styles for quantity input.
*/
.quantity-input {
--border-color: var(--color-neutral-20, #e5e5e5);
--button-bg: var(--color-neutral-10, #f5f5f5);
--button-color: var(--color-text-primary, #222222);
}
[data-theme=dark] .quantity-input {
--border-color: var(--color-neutral-60, #757575);
--button-bg: var(--color-neutral-80, #424242);
--button-color: var(--color-neutral-40, #bdbdbd);
}
.quantity-input {
display: inline-flex;
align-items: stretch;
border: 1px solid var(--border-color);
border-radius: 3px;
overflow: hidden;
height: 40px;
}
.quantity-input__field {
width: 50px;
text-align: center;
border: none;
border-left: 1px solid var(--border-color);
border-right: 1px solid var(--border-color);
-moz-appearance: textfield;
}
.quantity-input__field::-webkit-outer-spin-button, .quantity-input__field::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.quantity-input__btn {
background-color: var(--button-bg);
border: none;
width: 40px;
cursor: pointer;
font-size: 1.2rem;
color: var(--button-color);
transition: background 0.2s;
}
.quantity-input__btn:disabled {
opacity: 0.3;
cursor: not-allowed;
}