@@ -382,33 +382,33 @@ $: formatted = Prism.highlight(code, Prism.languages.javascript, 'javascript')
382
382
/ >
383
383
< / svelte: head>
384
384
385
- < div class = " max-w-3xl mx-auto px-6 mt-8 mb-8 " >
386
- < h1 class = " text-4xl font-bold text-center mb-2 " > svelte- toast< / h1>
387
- < div class = " text-center mb-6" >
385
+ < div class = " mx-auto mb-8 mt-8 max-w-3xl px-6 " >
386
+ < h1 class = " mb-2 text-center text-4xl font-bold " > svelte- toast< / h1>
387
+ < div class = " mb-6 text-center " >
388
388
< a
389
- class = " badge font-mono text-xs px-4 py-3 hover:bg-base-300"
389
+ class = " badge px-4 py-3 font-mono text-xs hover:bg-base-300"
390
390
href= " https://github.com/zerodevx/svelte-toast"
391
391
title= " Visit Github repo"
392
392
target= " _blank"
393
393
rel= " noreferrer" > GITHUB v{version}< / a
394
394
>
395
395
< / div>
396
- < p class = " max-w-2xl mx-auto text-center mb-6 " >
396
+ < p class = " mx-auto mb-6 max-w-2xl text-center" >
397
397
Simple elegant toast notifications for modern web frontends in very little lines of code.
398
398
Because a demo helps better than a thousand API docs, so here it is . Use in Vanilla JS (< strong
399
399
> 8kB < / strong
400
400
>
401
401
gzipped) or as a Svelte component.
402
402
< / p>
403
403
< div class = " mockup-code mb-6" >
404
- < pre class = " w-full h-64 text-sm overflow-x-auto" >< code class = " language-javascript"
404
+ < pre class = " h-64 w-full overflow-x-auto text-sm " >< code class = " language-javascript"
405
405
> {@html formatted}< / code
406
406
>< / pre>
407
407
< / div>
408
408
< div class = " flex flex-wrap justify-around" >
409
409
{#each buttons as btn}
410
410
< button
411
- class = " btn btn-primary w-40 mb-2 text-xs"
411
+ class = " btn btn-primary mb-2 w-40 text-xs"
412
412
class: selected= {selected === btn .name }
413
413
on: click= {() => {
414
414
clicked (btn)
0 commit comments