From 8d170ed30d2b8a4bf401a0db7288c8bc1958c1f4 Mon Sep 17 00:00:00 2001 From: Andrew Boyd Date: Tue, 13 Feb 2024 16:52:35 -0500 Subject: [PATCH 1/2] =?UTF-8?q?docs:=20set=20background=20texture=20to=20?= =?UTF-8?q?=E2=80=9Ccover=E2=80=9D=20and=20slightly=20increase=20base=20te?= =?UTF-8?q?xt=20size=20on=20small=20screens?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/assets/css/main.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/assets/css/main.css b/docs/assets/css/main.css index e782706..77230b4 100644 --- a/docs/assets/css/main.css +++ b/docs/assets/css/main.css @@ -9,7 +9,7 @@ html { } body { - @apply text-sm min-[1400px]:text-base; + @apply text-base min-[1400px]:text-base; @apply bg-slate-200; @apply selection:bg-sky-500; @apply selection:text-white; @@ -28,8 +28,8 @@ html body::before { inset: 0; z-index: -1; width: 100vw; - height: 150vh; - background-size: 100% 100%; + height: 100vh; + background-size: cover; background-image: radial-gradient( circle at 50% 40%, rgba(0, 0, 0, 0), From a872ffde54ea8db2b5416d6e818accc6027413bc Mon Sep 17 00:00:00 2001 From: Andrew Boyd Date: Tue, 13 Feb 2024 17:05:21 -0500 Subject: [PATCH 2/2] docs: fixes sidebar organization for timezone section of docs --- docs/components/HeadingSection.vue | 7 +++++-- docs/components/TheSidebar.vue | 8 ++++++-- docs/components/content/Timezones.vue | 7 ++++++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/docs/components/HeadingSection.vue b/docs/components/HeadingSection.vue index 0def67a..08b9dff 100644 --- a/docs/components/HeadingSection.vue +++ b/docs/components/HeadingSection.vue @@ -2,17 +2,20 @@ defineProps<{ title: string size?: "sm" + sidebarExclude?: boolean }>() const heading = ref() const isInView = useElementVisibility(heading) diff --git a/docs/components/TheSidebar.vue b/docs/components/TheSidebar.vue index c62339c..97608ac 100644 --- a/docs/components/TheSidebar.vue +++ b/docs/components/TheSidebar.vue @@ -7,9 +7,13 @@ const headingsTree = new Map() onMounted(() => { h2s.value = - (Array.from(document.querySelectorAll("h2")) as HTMLElement[]) || [] + (Array.from( + document.querySelectorAll("h2:not([data-sidebar-exclude=true])") + ) as HTMLElement[]) || [] h3s.value = - (Array.from(document.querySelectorAll("h3")) as HTMLElement[]) || [] + (Array.from( + document.querySelectorAll("h3:not([data-sidebar-exclude=true])") + ) as HTMLElement[]) || [] // add ids to all headings based on their text content const headings = Array.from(document.querySelectorAll("h2, h3")) diff --git a/docs/components/content/Timezones.vue b/docs/components/content/Timezones.vue index ae063bd..1040afb 100644 --- a/docs/components/content/Timezones.vue +++ b/docs/components/content/Timezones.vue @@ -23,7 +23,12 @@ way to express that moment relative the geography and politics of a given region.

- +

Creating timezone dates

The most basic timezone aware function is tzDate which allows