-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
179 lines (179 loc) · 3.89 KB
/
index.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
body {
font-family: "Sour Gummy", sans-serif;
display: flex;
flex-flow: column;
place-items: center;
place-content: center;
position: absolute;
inset: 0;
gap: 1rem;
background-color: #bf873b;
font-size: 2rem;
}
h1 {
font-family: "Pacifico", sans-serif;
font-size: 4rem;
color: #4f1800;
margin: 0;
}
h2 {
font-size: 2rem;
font-weight: bold;
color: #752503;
margin: 0;
}
fieldset {
border: none;
text-align: center;
}
fieldset select {
font-family: "Sour Gummy", sans-serif;
padding: 5px;
text-align: center;
background: transparent;
border: none;
border-bottom: solid 3px #852e00;
border-radius: 0;
font-size: 2rem;
font-weight: bold;
color: #4f1800;
}
label {
display: flex;
flex-flow: column;
place-content: center;
place-items: stretch;
width: 40vw;
text-align: center;
/* Pizza-style range input */
}
label > span {
display: flex;
place-items: baseline;
gap: 2rem;
margin: -2rem 0;
}
#amount-range {
-webkit-appearance: none;
/* Remove default styling */
flex: 1 1 auto;
height: 8px;
background: linear-gradient(to right, #f77f00, #e63946);
border-radius: 10px;
outline: none;
opacity: 0.9;
transition: opacity 0.2s;
/* Custom thumb styling */
/* Style for Firefox range track */
}
#amount-range:hover {
opacity: 1;
}
#amount-range::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 30px;
height: 30px;
background-color: #fcbf49;
/* Pizza crust color */
border: 2px solid #e63946;
/* Pizza sauce edge */
border-radius: 50%;
cursor: pointer;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
background-image: radial-gradient(
circle at 8px 8px,
#e63946 20%,
transparent 22%
),
radial-gradient(circle at 22px 22px, #e63946 20%, transparent 22%);
background-size: 50% 50%;
background-position: center;
}
#amount-range::-moz-range-thumb {
width: 30px;
height: 30px;
background-color: #fcbf49;
border: 2px solid #e63946;
border-radius: 50%;
cursor: pointer;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
background-image: radial-gradient(
circle at 8px 8px,
#e63946 20%,
transparent 22%
),
radial-gradient(circle at 22px 22px, #e63946 20%, transparent 22%);
background-size: 50% 50%;
background-position: center;
}
#amount-range::-moz-range-track {
width: 100%;
height: 8px;
background: linear-gradient(to right, #f77f00, #e63946);
border-radius: 10px;
}
#amount {
appearance: none;
font-family: "Pacifico", sans-serif;
padding: 5px;
text-align: center;
background: transparent;
border: none;
border-bottom: solid 3px #852e00;
border-radius: 0;
font-size: 4rem;
font-weight: bold;
color: #4f1800;
width: 100px;
}
#amount::-webkit-inner-spin-button,
#amount::-webkit-outer-spin-button {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin: 0;
}
#result {
margin-top: 20px;
display: flex;
flex-flow: column;
gap: 1rem;
place-items: center;
}
#pizza-amount {
font-size: 4rem;
font-weight: bold;
color: #a90000;
}
#pizza-label {
font-size: 2rem;
font-weight: bold;
color: #752503;
}
#pizza-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-flow: column wrap;
max-height: 375px;
gap: 0.3rem;
}
#pizza-list li {
background-color: #97222b;
border-radius: 8px;
padding: 0.5rem 1rem;
font-size: 18px;
font-weight: bold;
color: #fff;
display: flex;
align-items: center;
transition: transform 0.3s ease;
/* Decorative pizza slice icon */
}
#pizza-list li::before {
content: "🍕";
font-size: 2rem;
margin-right: 10px;
}