rizzo-css 0.0.51 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/bin/rizzo-css.js +9 -9
- package/dist/rizzo.min.css +3 -2
- package/package.json +1 -1
- package/scaffold/astro/BackToTop.astro +59 -0
- package/scaffold/astro/DocsSidebar.astro +146 -0
- package/scaffold/astro/Settings.astro +1 -1
- package/scaffold/astro/ThemeSwitcher.astro +2 -1
- package/scaffold/astro/icons/ChevronUp.astro +29 -0
- package/scaffold/astro-core/README-RIZZO.md +1 -1
- package/scaffold/astro-core/src/pages/index.astro +9 -3
- package/scaffold/svelte/BackToTop.svelte +53 -0
- package/scaffold/svelte/Settings.svelte +1 -1
- package/scaffold/svelte/index.ts +4 -0
- package/scaffold/svelte-core/README-RIZZO.md +1 -1
- package/scaffold/svelte-core/src/routes/+page.svelte +9 -3
- package/scaffold/vanilla/README-RIZZO.md +4 -3
- package/scaffold/vanilla/components/accordion.html +26 -1
- package/scaffold/vanilla/components/alert.html +26 -1
- package/scaffold/vanilla/components/avatar.html +26 -1
- package/scaffold/vanilla/components/back-to-top.html +633 -0
- package/scaffold/vanilla/components/badge.html +26 -1
- package/scaffold/vanilla/components/breadcrumb.html +26 -1
- package/scaffold/vanilla/components/button.html +26 -1
- package/scaffold/vanilla/components/cards.html +26 -1
- package/scaffold/vanilla/components/copy-to-clipboard.html +26 -1
- package/scaffold/vanilla/components/divider.html +26 -1
- package/scaffold/vanilla/components/docs-sidebar.html +26 -1
- package/scaffold/vanilla/components/dropdown.html +26 -1
- package/scaffold/vanilla/components/font-switcher.html +26 -1
- package/scaffold/vanilla/components/footer.html +26 -1
- package/scaffold/vanilla/components/forms.html +26 -1
- package/scaffold/vanilla/components/icons.html +26 -1
- package/scaffold/vanilla/components/index.html +27 -1
- package/scaffold/vanilla/components/modal.html +26 -1
- package/scaffold/vanilla/components/navbar.html +26 -1
- package/scaffold/vanilla/components/pagination.html +26 -1
- package/scaffold/vanilla/components/progress-bar.html +26 -1
- package/scaffold/vanilla/components/search.html +26 -1
- package/scaffold/vanilla/components/settings.html +26 -1
- package/scaffold/vanilla/components/sound-effects.html +26 -1
- package/scaffold/vanilla/components/spinner.html +26 -1
- package/scaffold/vanilla/components/table.html +26 -1
- package/scaffold/vanilla/components/tabs.html +26 -1
- package/scaffold/vanilla/components/theme-switcher.html +26 -1
- package/scaffold/vanilla/components/toast.html +26 -1
- package/scaffold/vanilla/components/tooltip.html +26 -1
- package/scaffold/vanilla/icons/ChevronUp.svg +12 -0
- package/scaffold/vanilla/index.html +26 -1
- package/scaffold/vanilla/js/main.js +19 -0
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<svg width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="4" x2="12" y2="12"></line><line x1="12" y1="4" x2="4" y2="12"></line></svg>
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
|
-
<div class="settings__content">
|
|
146
|
+
<div class="settings__content" tabindex="-1" aria-label="Settings options">
|
|
147
147
|
<section class="settings__section">
|
|
148
148
|
<h3 class="settings__section-title">Theme</h3>
|
|
149
149
|
<div class="settings__control">
|
|
@@ -406,6 +406,15 @@
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
409
418
|
|
|
410
419
|
|
|
411
420
|
|
|
@@ -603,6 +612,22 @@
|
|
|
603
612
|
|
|
604
613
|
|
|
605
614
|
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
<div class="back-to-top" data-back-to-top data-threshold="400" aria-hidden="true">
|
|
625
|
+
<button type="button" class="back-to-top__btn" aria-label="Back to top" data-back-to-top-btn>
|
|
626
|
+
<span class="back-to-top__icon" aria-hidden="true">
|
|
627
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
|
|
628
|
+
</span>
|
|
629
|
+
</button>
|
|
630
|
+
</div>
|
|
606
631
|
<script src="../js/main.js"></script>
|
|
607
632
|
</body>
|
|
608
633
|
</html>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<svg width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="4" x2="12" y2="12"></line><line x1="12" y1="4" x2="4" y2="12"></line></svg>
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
|
-
<div class="settings__content">
|
|
146
|
+
<div class="settings__content" tabindex="-1" aria-label="Settings options">
|
|
147
147
|
<section class="settings__section">
|
|
148
148
|
<h3 class="settings__section-title">Theme</h3>
|
|
149
149
|
<div class="settings__control">
|
|
@@ -406,6 +406,15 @@
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
409
418
|
|
|
410
419
|
|
|
411
420
|
|
|
@@ -603,6 +612,22 @@
|
|
|
603
612
|
|
|
604
613
|
|
|
605
614
|
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
<div class="back-to-top" data-back-to-top data-threshold="400" aria-hidden="true">
|
|
625
|
+
<button type="button" class="back-to-top__btn" aria-label="Back to top" data-back-to-top-btn>
|
|
626
|
+
<span class="back-to-top__icon" aria-hidden="true">
|
|
627
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
|
|
628
|
+
</span>
|
|
629
|
+
</button>
|
|
630
|
+
</div>
|
|
606
631
|
<script src="../js/main.js"></script>
|
|
607
632
|
</body>
|
|
608
633
|
</html>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<svg width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="4" x2="12" y2="12"></line><line x1="12" y1="4" x2="4" y2="12"></line></svg>
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
|
-
<div class="settings__content">
|
|
146
|
+
<div class="settings__content" tabindex="-1" aria-label="Settings options">
|
|
147
147
|
<section class="settings__section">
|
|
148
148
|
<h3 class="settings__section-title">Theme</h3>
|
|
149
149
|
<div class="settings__control">
|
|
@@ -406,6 +406,15 @@
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
409
418
|
|
|
410
419
|
|
|
411
420
|
|
|
@@ -603,6 +612,22 @@
|
|
|
603
612
|
|
|
604
613
|
|
|
605
614
|
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
<div class="back-to-top" data-back-to-top data-threshold="400" aria-hidden="true">
|
|
625
|
+
<button type="button" class="back-to-top__btn" aria-label="Back to top" data-back-to-top-btn>
|
|
626
|
+
<span class="back-to-top__icon" aria-hidden="true">
|
|
627
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
|
|
628
|
+
</span>
|
|
629
|
+
</button>
|
|
630
|
+
</div>
|
|
606
631
|
<script src="../js/main.js"></script>
|
|
607
632
|
</body>
|
|
608
633
|
</html>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<svg width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="4" x2="12" y2="12"></line><line x1="12" y1="4" x2="4" y2="12"></line></svg>
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
|
-
<div class="settings__content">
|
|
146
|
+
<div class="settings__content" tabindex="-1" aria-label="Settings options">
|
|
147
147
|
<section class="settings__section">
|
|
148
148
|
<h3 class="settings__section-title">Theme</h3>
|
|
149
149
|
<div class="settings__control">
|
|
@@ -406,6 +406,15 @@
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
409
418
|
|
|
410
419
|
|
|
411
420
|
|
|
@@ -603,6 +612,22 @@
|
|
|
603
612
|
|
|
604
613
|
|
|
605
614
|
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
<div class="back-to-top" data-back-to-top data-threshold="400" aria-hidden="true">
|
|
625
|
+
<button type="button" class="back-to-top__btn" aria-label="Back to top" data-back-to-top-btn>
|
|
626
|
+
<span class="back-to-top__icon" aria-hidden="true">
|
|
627
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
|
|
628
|
+
</span>
|
|
629
|
+
</button>
|
|
630
|
+
</div>
|
|
606
631
|
<script src="../js/main.js"></script>
|
|
607
632
|
</body>
|
|
608
633
|
</html>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<svg width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="4" x2="12" y2="12"></line><line x1="12" y1="4" x2="4" y2="12"></line></svg>
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
|
-
<div class="settings__content">
|
|
146
|
+
<div class="settings__content" tabindex="-1" aria-label="Settings options">
|
|
147
147
|
<section class="settings__section">
|
|
148
148
|
<h3 class="settings__section-title">Theme</h3>
|
|
149
149
|
<div class="settings__control">
|
|
@@ -406,6 +406,15 @@
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
409
418
|
|
|
410
419
|
|
|
411
420
|
|
|
@@ -603,6 +612,22 @@
|
|
|
603
612
|
|
|
604
613
|
|
|
605
614
|
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
<div class="back-to-top" data-back-to-top data-threshold="400" aria-hidden="true">
|
|
625
|
+
<button type="button" class="back-to-top__btn" aria-label="Back to top" data-back-to-top-btn>
|
|
626
|
+
<span class="back-to-top__icon" aria-hidden="true">
|
|
627
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
|
|
628
|
+
</span>
|
|
629
|
+
</button>
|
|
630
|
+
</div>
|
|
606
631
|
<script src="../js/main.js"></script>
|
|
607
632
|
</body>
|
|
608
633
|
</html>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<svg width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="4" x2="12" y2="12"></line><line x1="12" y1="4" x2="4" y2="12"></line></svg>
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
|
-
<div class="settings__content">
|
|
146
|
+
<div class="settings__content" tabindex="-1" aria-label="Settings options">
|
|
147
147
|
<section class="settings__section">
|
|
148
148
|
<h3 class="settings__section-title">Theme</h3>
|
|
149
149
|
<div class="settings__control">
|
|
@@ -406,6 +406,15 @@
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
409
418
|
|
|
410
419
|
|
|
411
420
|
|
|
@@ -603,6 +612,22 @@
|
|
|
603
612
|
|
|
604
613
|
|
|
605
614
|
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
<div class="back-to-top" data-back-to-top data-threshold="400" aria-hidden="true">
|
|
625
|
+
<button type="button" class="back-to-top__btn" aria-label="Back to top" data-back-to-top-btn>
|
|
626
|
+
<span class="back-to-top__icon" aria-hidden="true">
|
|
627
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
|
|
628
|
+
</span>
|
|
629
|
+
</button>
|
|
630
|
+
</div>
|
|
606
631
|
<script src="../js/main.js"></script>
|
|
607
632
|
</body>
|
|
608
633
|
</html>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<svg width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="4" x2="12" y2="12"></line><line x1="12" y1="4" x2="4" y2="12"></line></svg>
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
|
-
<div class="settings__content">
|
|
146
|
+
<div class="settings__content" tabindex="-1" aria-label="Settings options">
|
|
147
147
|
<section class="settings__section">
|
|
148
148
|
<h3 class="settings__section-title">Theme</h3>
|
|
149
149
|
<div class="settings__control">
|
|
@@ -406,6 +406,15 @@
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
409
418
|
|
|
410
419
|
|
|
411
420
|
|
|
@@ -603,6 +612,22 @@
|
|
|
603
612
|
|
|
604
613
|
|
|
605
614
|
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
<div class="back-to-top" data-back-to-top data-threshold="400" aria-hidden="true">
|
|
625
|
+
<button type="button" class="back-to-top__btn" aria-label="Back to top" data-back-to-top-btn>
|
|
626
|
+
<span class="back-to-top__icon" aria-hidden="true">
|
|
627
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
|
|
628
|
+
</span>
|
|
629
|
+
</button>
|
|
630
|
+
</div>
|
|
606
631
|
<script src="../js/main.js"></script>
|
|
607
632
|
</body>
|
|
608
633
|
</html>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<svg width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="4" x2="12" y2="12"></line><line x1="12" y1="4" x2="4" y2="12"></line></svg>
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
|
-
<div class="settings__content">
|
|
146
|
+
<div class="settings__content" tabindex="-1" aria-label="Settings options">
|
|
147
147
|
<section class="settings__section">
|
|
148
148
|
<h3 class="settings__section-title">Theme</h3>
|
|
149
149
|
<div class="settings__control">
|
|
@@ -406,6 +406,15 @@
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
409
418
|
|
|
410
419
|
|
|
411
420
|
|
|
@@ -603,6 +612,22 @@
|
|
|
603
612
|
|
|
604
613
|
|
|
605
614
|
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
<div class="back-to-top" data-back-to-top data-threshold="400" aria-hidden="true">
|
|
625
|
+
<button type="button" class="back-to-top__btn" aria-label="Back to top" data-back-to-top-btn>
|
|
626
|
+
<span class="back-to-top__icon" aria-hidden="true">
|
|
627
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
|
|
628
|
+
</span>
|
|
629
|
+
</button>
|
|
630
|
+
</div>
|
|
606
631
|
<script src="../js/main.js"></script>
|
|
607
632
|
</body>
|
|
608
633
|
</html>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<svg width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="4" x2="12" y2="12"></line><line x1="12" y1="4" x2="4" y2="12"></line></svg>
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
|
-
<div class="settings__content">
|
|
146
|
+
<div class="settings__content" tabindex="-1" aria-label="Settings options">
|
|
147
147
|
<section class="settings__section">
|
|
148
148
|
<h3 class="settings__section-title">Theme</h3>
|
|
149
149
|
<div class="settings__control">
|
|
@@ -406,6 +406,15 @@
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
409
418
|
|
|
410
419
|
|
|
411
420
|
|
|
@@ -603,6 +612,22 @@
|
|
|
603
612
|
|
|
604
613
|
|
|
605
614
|
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
<div class="back-to-top" data-back-to-top data-threshold="400" aria-hidden="true">
|
|
625
|
+
<button type="button" class="back-to-top__btn" aria-label="Back to top" data-back-to-top-btn>
|
|
626
|
+
<span class="back-to-top__icon" aria-hidden="true">
|
|
627
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
|
|
628
|
+
</span>
|
|
629
|
+
</button>
|
|
630
|
+
</div>
|
|
606
631
|
<script src="../js/main.js"></script>
|
|
607
632
|
</body>
|
|
608
633
|
</html>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<svg width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="4" x2="12" y2="12"></line><line x1="12" y1="4" x2="4" y2="12"></line></svg>
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
|
-
<div class="settings__content">
|
|
146
|
+
<div class="settings__content" tabindex="-1" aria-label="Settings options">
|
|
147
147
|
<section class="settings__section">
|
|
148
148
|
<h3 class="settings__section-title">Theme</h3>
|
|
149
149
|
<div class="settings__control">
|
|
@@ -406,6 +406,15 @@
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
409
418
|
|
|
410
419
|
|
|
411
420
|
|
|
@@ -603,6 +612,22 @@
|
|
|
603
612
|
|
|
604
613
|
|
|
605
614
|
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
<div class="back-to-top" data-back-to-top data-threshold="400" aria-hidden="true">
|
|
625
|
+
<button type="button" class="back-to-top__btn" aria-label="Back to top" data-back-to-top-btn>
|
|
626
|
+
<span class="back-to-top__icon" aria-hidden="true">
|
|
627
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
|
|
628
|
+
</span>
|
|
629
|
+
</button>
|
|
630
|
+
</div>
|
|
606
631
|
<script src="../js/main.js"></script>
|
|
607
632
|
</body>
|
|
608
633
|
</html>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<svg width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="4" x2="12" y2="12"></line><line x1="12" y1="4" x2="4" y2="12"></line></svg>
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
|
-
<div class="settings__content">
|
|
146
|
+
<div class="settings__content" tabindex="-1" aria-label="Settings options">
|
|
147
147
|
<section class="settings__section">
|
|
148
148
|
<h3 class="settings__section-title">Theme</h3>
|
|
149
149
|
<div class="settings__control">
|
|
@@ -406,6 +406,15 @@
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
409
418
|
|
|
410
419
|
|
|
411
420
|
|
|
@@ -603,6 +612,22 @@
|
|
|
603
612
|
|
|
604
613
|
|
|
605
614
|
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
<div class="back-to-top" data-back-to-top data-threshold="400" aria-hidden="true">
|
|
625
|
+
<button type="button" class="back-to-top__btn" aria-label="Back to top" data-back-to-top-btn>
|
|
626
|
+
<span class="back-to-top__icon" aria-hidden="true">
|
|
627
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
|
|
628
|
+
</span>
|
|
629
|
+
</button>
|
|
630
|
+
</div>
|
|
606
631
|
<script src="../js/main.js"></script>
|
|
607
632
|
</body>
|
|
608
633
|
</html>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg" width="24" height="24"
|
|
3
|
+
viewBox="0 0 24 24"
|
|
4
|
+
fill="none"
|
|
5
|
+
stroke="currentColor"
|
|
6
|
+
stroke-width="2"
|
|
7
|
+
stroke-linecap="round"
|
|
8
|
+
stroke-linejoin="round"
|
|
9
|
+
aria-hidden="true"
|
|
10
|
+
>
|
|
11
|
+
<path d="m18 15-6-6-6 6" />
|
|
12
|
+
</svg>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<svg width="20" height="20" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="4" x2="12" y2="12"></line><line x1="12" y1="4" x2="4" y2="12"></line></svg>
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
|
-
<div class="settings__content">
|
|
146
|
+
<div class="settings__content" tabindex="-1" aria-label="Settings options">
|
|
147
147
|
<section class="settings__section">
|
|
148
148
|
<h3 class="settings__section-title">Theme</h3>
|
|
149
149
|
<div class="settings__control">
|
|
@@ -406,6 +406,15 @@
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
409
418
|
|
|
410
419
|
|
|
411
420
|
|
|
@@ -693,6 +702,22 @@
|
|
|
693
702
|
|
|
694
703
|
|
|
695
704
|
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
<div class="back-to-top" data-back-to-top data-threshold="400" aria-hidden="true">
|
|
715
|
+
<button type="button" class="back-to-top__btn" aria-label="Back to top" data-back-to-top-btn>
|
|
716
|
+
<span class="back-to-top__icon" aria-hidden="true">
|
|
717
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
|
|
718
|
+
</span>
|
|
719
|
+
</button>
|
|
720
|
+
</div>
|
|
696
721
|
<script src="js/main.js"></script>
|
|
697
722
|
</body>
|
|
698
723
|
</html>
|
|
@@ -949,6 +949,24 @@
|
|
|
949
949
|
});
|
|
950
950
|
}
|
|
951
951
|
|
|
952
|
+
function initBackToTop() {
|
|
953
|
+
var wrapper = document.querySelector('[data-back-to-top]');
|
|
954
|
+
var btn = wrapper && wrapper.querySelector('[data-back-to-top-btn]');
|
|
955
|
+
if (!wrapper || !btn) return;
|
|
956
|
+
var threshold = Number(wrapper.getAttribute('data-threshold')) || 400;
|
|
957
|
+
function updateVisibility() {
|
|
958
|
+
var visible = window.scrollY > threshold;
|
|
959
|
+
wrapper.setAttribute('data-visible', visible ? 'true' : 'false');
|
|
960
|
+
wrapper.setAttribute('aria-hidden', visible ? 'false' : 'true');
|
|
961
|
+
}
|
|
962
|
+
function scrollToTop() {
|
|
963
|
+
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
964
|
+
}
|
|
965
|
+
window.addEventListener('scroll', updateVisibility, { passive: true });
|
|
966
|
+
btn.addEventListener('click', scrollToTop);
|
|
967
|
+
updateVisibility();
|
|
968
|
+
}
|
|
969
|
+
|
|
952
970
|
function run() {
|
|
953
971
|
initTheme();
|
|
954
972
|
initSettings();
|
|
@@ -959,6 +977,7 @@
|
|
|
959
977
|
initAccordions();
|
|
960
978
|
initSearch();
|
|
961
979
|
initNavbarMobile();
|
|
980
|
+
initBackToTop();
|
|
962
981
|
}
|
|
963
982
|
|
|
964
983
|
if (document.readyState === 'loading') {
|