|
183 | 183 | </body>
|
184 | 184 | <style>
|
185 | 185 | /* stylesheet.css */
|
186 |
| -html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6,label { |
187 |
| - margin: 0; |
188 |
| - padding: 0; |
189 |
| - font-family: sans-serif; |
190 |
| -} |
191 |
| -button,input,select,textarea { |
192 |
| - margin: 0; |
193 |
| - font: inherit; |
194 |
| -} |
195 |
| -html { |
196 |
| - font-size: 10px; /* 1.8 rem = 18px */ |
197 |
| - text-size-adjust: none; /* Fixes chrome on mobile. */ |
198 |
| - -webkit-text-size-adjust: none; /* Fixes safari on mobile. */ |
199 |
| - -moz-text-size-adjust: none; /* Firefox works fine, but for consistency. */ |
200 |
| - background: #adadad; |
201 |
| -} |
202 |
| -/* Custom for showcase. */ |
203 |
| -body { |
204 |
| - font-family: system-ui, sans-serif; |
205 |
| - font-size: 2rem; |
206 |
| - padding: 1rem; |
207 |
| - background: #adadad; |
208 |
| - color: #ccc; |
209 |
| - perspective: 1500px; |
210 |
| -} |
211 |
| -.active { |
212 |
| - background: hsl(345deg 100% 47%); |
213 |
| - transition: background 3s; |
214 |
| -} |
215 |
| -.inactive { |
216 |
| - background: grey; |
217 |
| - transition: background 3s; |
218 |
| -} |
219 |
| -body > div { |
220 |
| - color: #222; |
221 |
| - margin: 1rem; |
222 |
| - padding: 1rem; |
223 |
| - border-radius: 1rem; |
224 |
| -} |
225 |
| -body div[thick] { |
226 |
| - color: #222; |
227 |
| - margin: 2rem; |
228 |
| - padding: 3rem; |
229 |
| - border-radius: 1rem; |
230 |
| - background: #eee; |
231 |
| -} |
232 |
| -body div[thick] div[thick] { |
233 |
| - background: #ccc; |
234 |
| -} |
235 |
| -button { |
236 |
| - cursor: pointer; |
237 |
| - color: #fff; |
238 |
| - padding: 2rem 3rem; |
239 |
| - margin: 2rem; |
240 |
| - border: none; |
241 |
| - background: hsl(262deg 86% 47%); |
242 |
| - border-bottom: 0.5rem solid hsl(262deg 86% 28%); |
243 |
| - border-radius: 12px; |
244 |
| - text-shadow: 0 2px #222222AA; |
245 |
| -} |
246 |
| -button:active { |
247 |
| - transform: translateY(0.2rem); |
248 |
| -} |
249 |
| -button.blue { |
250 |
| - background: hsl(200deg 100% 47%); |
251 |
| - border: none; |
252 |
| - border-bottom: 0.5rem solid hsl(200deg 100% 28%); |
253 |
| -} |
254 |
| -button.invisible { |
255 |
| - opacity: 0.2; |
256 |
| - background: hsl(147, 60%, 50%); |
257 |
| - border-bottom: 0.5rem solid hsl(147 80% 28%); |
258 |
| -} |
259 |
| -button.close { |
260 |
| - background: hsl(345deg 90% 40%); |
261 |
| - border-bottom: 0.5rem solid hsl(345deg 100% 28%); |
262 |
| - border-radius: 12px; |
263 |
| -} |
264 |
| -button.close:disabled { |
265 |
| - color: #aaa; |
266 |
| - background: hsl(345deg 0% 30%); |
267 |
| - border-bottom: 0.5rem solid hsl(345deg 0% 18%); |
268 |
| - transform: translateY(0.2rem); |
269 |
| -} |
270 |
| -.card { |
271 |
| - position: relative; |
272 |
| - width: 300px; |
273 |
| - height: 400px; |
274 |
| - padding: 1em; |
275 |
| - margin: 2em auto; |
276 |
| - font-weight: bold; |
277 |
| - text-align: right; |
278 |
| - text-shadow: 0 0 4px #000; |
279 |
| - color: #ddd; |
280 |
| - box-shadow: 0 1px 5px #00000099; |
281 |
| - border-radius: 10px; |
282 |
| - background: #999 center; |
283 |
| - background-size: cover; |
284 |
| - cursor: pointer; |
285 |
| - transition-duration: 300ms; |
286 |
| - transition-property: transform, box-shadow; |
287 |
| - transition-timing-function: ease-out; |
288 |
| - transform: rotate3d(0); |
289 |
| -} |
290 |
| -.card :hover { |
291 |
| - transition-duration: 150ms; |
292 |
| - box-shadow: 0 5px 20px 5px #00000044; |
293 |
| -} |
294 |
| -.card > div { |
295 |
| - position: absolute; |
296 |
| - width: 100%; |
297 |
| - height: 100%; |
298 |
| - left: 0; |
299 |
| - top: 0; |
300 |
| - border-radius: 10px; |
301 |
| - background-image: radial-gradient(circle at 90% -20%, #ffffff33, #0000000f); |
302 |
| -} |
| 186 | + html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6,label { |
| 187 | + margin: 0; |
| 188 | + padding: 0; |
| 189 | + font-family: sans-serif; |
| 190 | + } |
| 191 | + button,input,select,textarea { |
| 192 | + margin: 0; |
| 193 | + font: inherit; |
| 194 | + } |
| 195 | + html { |
| 196 | + font-size: 10px; /* 1.8 rem = 18px */ |
| 197 | + text-size-adjust: none; /* Fixes chrome on mobile. */ |
| 198 | + -webkit-text-size-adjust: none; /* Fixes safari on mobile. */ |
| 199 | + -moz-text-size-adjust: none; /* Firefox works fine, but for consistency. */ |
| 200 | + background: #adadad; |
| 201 | + } |
| 202 | + /* Custom for showcase. */ |
| 203 | + body { |
| 204 | + font-family: system-ui, sans-serif; |
| 205 | + font-size: 2rem; |
| 206 | + padding: 1rem; |
| 207 | + background: #adadad; |
| 208 | + color: #ccc; |
| 209 | + perspective: 1500px; |
| 210 | + } |
| 211 | + .active { |
| 212 | + background: hsl(345deg 100% 47%); |
| 213 | + transition: background 3s; |
| 214 | + } |
| 215 | + .inactive { |
| 216 | + background: grey; |
| 217 | + transition: background 3s; |
| 218 | + } |
| 219 | + body > div { |
| 220 | + color: #222; |
| 221 | + margin: 1rem; |
| 222 | + padding: 1rem; |
| 223 | + border-radius: 1rem; |
| 224 | + } |
| 225 | + body div[thick] { |
| 226 | + color: #222; |
| 227 | + margin: 2rem; |
| 228 | + padding: 3rem; |
| 229 | + border-radius: 1rem; |
| 230 | + background: #eee; |
| 231 | + } |
| 232 | + body div[thick] div[thick] { |
| 233 | + background: #ccc; |
| 234 | + } |
| 235 | + button { |
| 236 | + cursor: pointer; |
| 237 | + color: #fff; |
| 238 | + padding: 2rem 3rem; |
| 239 | + margin: 2rem; |
| 240 | + border: none; |
| 241 | + background: hsl(262deg 86% 47%); |
| 242 | + border-bottom: 0.5rem solid hsl(262deg 86% 28%); |
| 243 | + border-radius: 12px; |
| 244 | + text-shadow: 0 2px #222222AA; |
| 245 | + } |
| 246 | + button:active { |
| 247 | + transform: translateY(0.2rem); |
| 248 | + } |
| 249 | + button.blue { |
| 250 | + background: hsl(200deg 100% 47%); |
| 251 | + border: none; |
| 252 | + border-bottom: 0.5rem solid hsl(200deg 100% 28%); |
| 253 | + } |
| 254 | + button.invisible { |
| 255 | + opacity: 0.2; |
| 256 | + background: hsl(147, 60%, 50%); |
| 257 | + border-bottom: 0.5rem solid hsl(147 80% 28%); |
| 258 | + } |
| 259 | + button.close { |
| 260 | + background: hsl(345deg 90% 40%); |
| 261 | + border-bottom: 0.5rem solid hsl(345deg 100% 28%); |
| 262 | + border-radius: 12px; |
| 263 | + } |
| 264 | + button.close:disabled { |
| 265 | + color: #aaa; |
| 266 | + background: hsl(345deg 0% 30%); |
| 267 | + border-bottom: 0.5rem solid hsl(345deg 0% 18%); |
| 268 | + transform: translateY(0.2rem); |
| 269 | + } |
| 270 | + .card { |
| 271 | + position: relative; |
| 272 | + width: 300px; |
| 273 | + height: 400px; |
| 274 | + padding: 1em; |
| 275 | + margin: 2em auto; |
| 276 | + font-weight: bold; |
| 277 | + text-align: right; |
| 278 | + text-shadow: 0 0 4px #000; |
| 279 | + color: #ddd; |
| 280 | + box-shadow: 0 1px 5px #00000099; |
| 281 | + border-radius: 10px; |
| 282 | + background: #999 center; |
| 283 | + background-size: cover; |
| 284 | + cursor: pointer; |
| 285 | + transition-duration: 300ms; |
| 286 | + transition-property: transform, box-shadow; |
| 287 | + transition-timing-function: ease-out; |
| 288 | + transform: rotate3d(0); |
| 289 | + } |
| 290 | + .card :hover { |
| 291 | + transition-duration: 150ms; |
| 292 | + box-shadow: 0 5px 20px 5px #00000044; |
| 293 | + } |
| 294 | + .card > div { |
| 295 | + position: absolute; |
| 296 | + width: 100%; |
| 297 | + height: 100%; |
| 298 | + left: 0; |
| 299 | + top: 0; |
| 300 | + border-radius: 10px; |
| 301 | + background-image: radial-gradient(circle at 90% -20%, #ffffff33, #0000000f); |
| 302 | + } |
303 | 303 | </style>
|
304 | 304 | </html>
|
305 | 305 |
|
0 commit comments