-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
95 lines (83 loc) · 1.45 KB
/
styles.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
html {
box-sizing: border-box;
font-size: 16px;
font-size: 25pt;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
body {
margin: 0;
display: flex;
min-height: 100vh;
color: #303f46;
font-family: "Nunito Sans", sans-serif;
}
#root {
margin: auto;
width: 15em;
min-height: 5em;
text-align: center;
}
.quantity-picker {
display: flex;
justify-content: center;
align-items: center;
max-width: 5em;
margin: 0 auto;
}
.quantity-picker > div {
display: flex;
justify-content: center;
align-items: center;
}
.input-container {
flex: 1;
margin: 0 0.5rem;
}
.input-container input {
width: 100%;
text-align: center;
font-size: 1rem;
border: 1px solid #ddd;
border-radius: 2px;
}
.icon-button {
--size: 1rem;
all: unset;
position: relative;
line-height: 1;
margin: 0;
background-color: rgb(0, 157, 255);
color: #fff;
width: var(--size);
height: var(--size);
border-radius: calc(var(--size) / 2);
display: flex;
align-items: center;
justify-content: center;
user-select: none;
}
.icon-button > span {
vertical-align: initial;
}
.icon-button:focus {
outline: none;
}
.icon-button:focus::before {
--s: var(--size);
--size1: calc(var(--s) + (var(--offset) * 2));
--offset: 2px;
--thickness: 3px;
content: "";
position: absolute;
width: var(--size1);
height: var(--size1);
border: var(--thickness) solid rgba(0, 157, 255, 0.6);
border-radius: calc((var(--size1) + var(--thickness) * 2) / 2);
}
.quantity-picker-error {
color: crimson;
}