From 8e0ee883bab621962a93ae5cd452700c191cfe97 Mon Sep 17 00:00:00 2001 From: Dongsheng Zhao Date: Fri, 19 Jul 2024 09:50:28 +0800 Subject: [PATCH] chore: wrap all --at-apply with quotes --- .changeset/dirty-flies-draw.md | 5 +++++ .../src/components/ActionButton.svelte | 4 ++-- .../theme-default/src/components/AjaxBar.svelte | 2 +- .../theme-default/src/components/Backdrop.svelte | 3 +-- .../theme-default/src/components/CopyCode.svelte | 2 +- .../theme-default/src/components/EditPage.svelte | 4 ++-- .../src/components/Expansion.svelte | 14 +++++++------- .../src/components/GlobalLayout.svelte | 12 ++++++------ .../theme-default/src/components/Home.svelte | 2 +- .../src/components/IconifyIcon.svelte | 2 +- .../theme-default/src/components/Link.svelte | 2 +- .../theme-default/src/components/Logo.svelte | 4 ++-- .../src/components/MobileSubNav.svelte | 2 +- .../theme-default/src/components/NavItem.svelte | 6 +++--- .../theme-default/src/components/Navbar.svelte | 6 +++--- .../src/components/PageSwitcher.svelte | 16 ++++++++-------- .../theme-default/src/components/Search.svelte | 2 +- .../src/components/SidebarGroup.svelte | 6 +++--- .../theme-default/src/components/TabPanel.svelte | 3 --- .../theme-default/src/components/Tabs.svelte | 2 +- packages/theme-default/src/components/Toc.svelte | 2 +- .../src/components/pwa/Prompt.svelte | 2 +- 22 files changed, 52 insertions(+), 51 deletions(-) create mode 100644 .changeset/dirty-flies-draw.md diff --git a/.changeset/dirty-flies-draw.md b/.changeset/dirty-flies-draw.md new file mode 100644 index 00000000..7b1ec9cd --- /dev/null +++ b/.changeset/dirty-flies-draw.md @@ -0,0 +1,5 @@ +--- +"@sveltepress/theme-default": patch +--- + +chore: wrap all --at-apply with quotes diff --git a/packages/theme-default/src/components/ActionButton.svelte b/packages/theme-default/src/components/ActionButton.svelte index f1429480..5cc936af 100644 --- a/packages/theme-default/src/components/ActionButton.svelte +++ b/packages/theme-default/src/components/ActionButton.svelte @@ -34,9 +34,9 @@ --at-apply: 'svp-gradient-bg text-white dark:text-warm-gray-8'; } .external-icon { - --at-apply: text-6 ml-2 flex items-center; + --at-apply: 'text-6 ml-2 flex items-center'; } .label { - --at-apply: flex-grow text-center; + --at-apply: 'flex-grow text-center'; } diff --git a/packages/theme-default/src/components/AjaxBar.svelte b/packages/theme-default/src/components/AjaxBar.svelte index d240e38a..88238456 100644 --- a/packages/theme-default/src/components/AjaxBar.svelte +++ b/packages/theme-default/src/components/AjaxBar.svelte @@ -41,7 +41,7 @@
-
+
diff --git a/packages/theme-default/src/components/EditPage.svelte b/packages/theme-default/src/components/EditPage.svelte index 724cdb73..4de07ff2 100644 --- a/packages/theme-default/src/components/EditPage.svelte +++ b/packages/theme-default/src/components/EditPage.svelte @@ -39,9 +39,9 @@ --at-apply: 'flex items-center text-svp-primary hover:text-svp-hover cursor-pointer'; } .edit-icon { - --at-apply: text-5 flex items-center; + --at-apply: 'text-5 flex items-center'; } .edit-text { - --at-apply: ml-1; + --at-apply: 'ml-1'; } diff --git a/packages/theme-default/src/components/Expansion.svelte b/packages/theme-default/src/components/Expansion.svelte index 5ccc8c80..52e36d7b 100644 --- a/packages/theme-default/src/components/Expansion.svelte +++ b/packages/theme-default/src/components/Expansion.svelte @@ -121,24 +121,24 @@ --at-apply: 'mb-8 shadow-sm b-1 b-solid b-gray-2 dark:b-warmgray-8 rounded-lg'; } :global(.svp-live-code--demo) { - --at-apply: p-4; + --at-apply: 'p-4'; } :global(.c-expansion--body .svp-code-block) { - --at-apply: mb-none; + --at-apply: 'mb-none'; } .c-expansion--header { - --at-apply: rounded-b flex justify-between px-4 py-2 items-center; + --at-apply: 'rounded-b flex justify-between px-4 py-2 items-center'; } .c-expansion--icon { - --at-apply: mr-2 text-6 flex items-center; + --at-apply: 'mr-2 text-6 flex items-center'; } .c-expansion--arrow { - --at-apply: text-6 flex items-center; + --at-apply: 'text-6 flex items-center'; } .c-expansion--header-left { - --at-apply: flex items-center; + --at-apply: 'flex items-center'; } .c-expansion--title { - --at-apply: text-3.5; + --at-apply: 'text-3.5'; } diff --git a/packages/theme-default/src/components/GlobalLayout.svelte b/packages/theme-default/src/components/GlobalLayout.svelte index 17ca7c90..a93d65b6 100644 --- a/packages/theme-default/src/components/GlobalLayout.svelte +++ b/packages/theme-default/src/components/GlobalLayout.svelte @@ -199,30 +199,30 @@ } :global(.svp-code-block--with-line-numbers .svp-code-block--diff-add), :global(.svp-code-block--with-line-numbers .svp-code-block--diff-sub) { - --at-apply: pl-8; + --at-apply: 'pl-8'; } :global(.svp-code-block--diff-add) { - --at-apply: text-green-4; + --at-apply: 'text-green-4'; } :global(.svp-code-block--diff-sub) { - --at-apply: text-rose-4; + --at-apply: 'text-rose-4'; } :global(.svp-code-block--diff-add), :global(.svp-code-block--diff-sub) { - --at-apply: absolute left-[4px] top-0 bottom-0 leading-[1.5em]; + --at-apply: 'absolute left-[4px] top-0 bottom-0 leading-[1.5em]'; font-family: var(--svp-code-font); } :global(.svp-code-block--hl) { --at-apply: 'bg-black dark:bg-white bg-opacity-10 dark:bg-opacity-10'; } :global(.svp-code-block:hover .svp-code-block--focus) { - --at-apply: opacity-0; + --at-apply: 'opacity-0'; } :global(blockquote) { --at-apply: 'border-l-[4px] border-l-solid border-gray-4 m-none bg-gray-2 indent-[1em] text-gray-4 py-[4px] my-4 dark:border-l-gray-5 dark:bg-gray-8'; } :global(blockquote p) { - --at-apply: m-none; + --at-apply: 'm-none'; } :global(table) { diff --git a/packages/theme-default/src/components/Home.svelte b/packages/theme-default/src/components/Home.svelte index 705be1a8..92985e74 100644 --- a/packages/theme-default/src/components/Home.svelte +++ b/packages/theme-default/src/components/Home.svelte @@ -56,7 +56,7 @@ --at-apply: 'col-start-1 sm:col-span-7 col-span-12 row-start-2 sm:row-start-1 text-center sm:text-left'; } .gradient-title { - --at-apply: svp-gradient-text; + --at-apply: 'svp-gradient-text'; } .tagline { --at-apply: 'text-slate-5 dark:text-slate-4 text-6 mt-4 font-500 leading-9 font-normal'; diff --git a/packages/theme-default/src/components/IconifyIcon.svelte b/packages/theme-default/src/components/IconifyIcon.svelte index 73ff67a6..43ef0175 100644 --- a/packages/theme-default/src/components/IconifyIcon.svelte +++ b/packages/theme-default/src/components/IconifyIcon.svelte @@ -5,4 +5,4 @@ $$restProps -
+
diff --git a/packages/theme-default/src/components/Link.svelte b/packages/theme-default/src/components/Link.svelte index 1dc17d70..fe974c64 100644 --- a/packages/theme-default/src/components/Link.svelte +++ b/packages/theme-default/src/components/Link.svelte @@ -34,7 +34,7 @@ diff --git a/packages/theme-default/src/components/MobileSubNav.svelte b/packages/theme-default/src/components/MobileSubNav.svelte index df370b34..5afaddfa 100644 --- a/packages/theme-default/src/components/MobileSubNav.svelte +++ b/packages/theme-default/src/components/MobileSubNav.svelte @@ -19,7 +19,7 @@ class="i-ic-round-menu-open text-6" on:click={openSidebar} on:keypress={openSidebar} - /> + >
{themeOptions?.i18n?.onThisPage || DEFAULT_ON_THIS_PAGE}
diff --git a/packages/theme-default/src/components/NavItem.svelte b/packages/theme-default/src/components/NavItem.svelte index 85ec80a9..52ed005b 100644 --- a/packages/theme-default/src/components/NavItem.svelte +++ b/packages/theme-default/src/components/NavItem.svelte @@ -88,10 +88,10 @@ } .nav-item--icon:hover { - --at-apply: opacity-80; + --at-apply: 'opacity-80'; } :global(:not(.dropdown) > .nav-item:not(.nav-item--icon):hover) { - --at-apply: svp-gradient-text; + --at-apply: 'svp-gradient-text'; } .dropdown { --at-apply: 'transition-transform transition-opacity transition-300 opacity-0 pointer-events-none absolute top-0 right-0 bg-white dark:bg-[#232323] whitespace-nowrap z-3 rounded shadow-sm p-2'; @@ -104,7 +104,7 @@ background-image: none; } .nav-item:hover .dropdown { - --at-apply: opacity-100 pointer-events-initial; + --at-apply: 'opacity-100 pointer-events-initial'; transform: translateY(54px); } .arrow { diff --git a/packages/theme-default/src/components/Navbar.svelte b/packages/theme-default/src/components/Navbar.svelte index 95ad5eb4..4fed410a 100644 --- a/packages/theme-default/src/components/Navbar.svelte +++ b/packages/theme-default/src/components/Navbar.svelte @@ -90,13 +90,13 @@ --at-apply: 'sm:w-[80vw] h-full flex items-stretch justify-between mx-auto'; } .left { - --at-apply: flex items-center; + --at-apply: 'flex items-center'; } .doc-search { --at-apply: 'flex-grow flex items-center relative transition-500 transition-left'; } .doc-search.is-home { - --at-apply: left-2; + --at-apply: 'left-2'; } .doc-search.move { --at-apply: 'sm:left-[15.5vw]'; @@ -106,7 +106,7 @@ --at-apply: 'items-stretch flex'; } .nav-links { - --at-apply: flex items-stretch flex-grow justify-end; + --at-apply: 'flex items-stretch flex-grow justify-end'; } .navbar-pc :global(.nav-item:not(.nav-item--icon)), diff --git a/packages/theme-default/src/components/PageSwitcher.svelte b/packages/theme-default/src/components/PageSwitcher.svelte index 7a8f4504..d9a1efbd 100644 --- a/packages/theme-default/src/components/PageSwitcher.svelte +++ b/packages/theme-default/src/components/PageSwitcher.svelte @@ -66,27 +66,27 @@ --at-apply: 'border-solid border-1 border-light-7 dark:border-gray-7 rounded-lg flex-grow cursor-pointer hover:border-svp-primary transition-300 transition-colors'; } .hint { - --at-apply: text-gray-4 text-3; + --at-apply: 'text-gray-4 text-3'; } .title { - --at-apply: flex items-center text-svp-primary mt-3; + --at-apply: 'flex items-center text-svp-primary mt-3'; } .right .title { - --at-apply: justify-end; + --at-apply: 'justify-end'; } .title-label { - --at-apply: ml-2; + --at-apply: 'ml-2'; } .right .title-label { - --at-apply: mr-2 ml-none; + --at-apply: 'mr-2 ml-none'; } .right { - --at-apply: text-right; + --at-apply: 'text-right'; } .switch-icon { - --at-apply: text-5; + --at-apply: 'text-5'; } .trigger { - --at-apply: px-4 py-2 block; + --at-apply: 'px-4 py-2 block'; } diff --git a/packages/theme-default/src/components/Search.svelte b/packages/theme-default/src/components/Search.svelte index 29c9d8bd..4d089763 100644 --- a/packages/theme-default/src/components/Search.svelte +++ b/packages/theme-default/src/components/Search.svelte @@ -17,4 +17,4 @@ }) -
+
diff --git a/packages/theme-default/src/components/SidebarGroup.svelte b/packages/theme-default/src/components/SidebarGroup.svelte index 64d94388..01c02091 100644 --- a/packages/theme-default/src/components/SidebarGroup.svelte +++ b/packages/theme-default/src/components/SidebarGroup.svelte @@ -81,16 +81,16 @@ --at-apply: 'font-bold text-slate-8 dark:text-slate-2 flex items-center justify-between'; } .links { - --at-apply: leading-8 overflow-hidden; + --at-apply: 'leading-8 overflow-hidden'; } .collapse-control { --at-apply: 'transition transition-200 transition-bg transition-transform cursor-pointer text-5 hover:bg-gray-2 active:bg-gray-3 dark:hover:bg-gray-8 dark:active:bg-gray-7 w-[28px] h-[28px] flex items-center justify-center rounded'; } .arrow { - --at-apply: flex items-center transition-300 transition-transform; + --at-apply: 'flex items-center transition-300 transition-transform'; } .collapsed { - --at-apply: rotate--90; + --at-apply: 'rotate--90'; } .active-icon { --at-apply: 'text-svp-primary ml-4 flex items-center text-5'; diff --git a/packages/theme-default/src/components/TabPanel.svelte b/packages/theme-default/src/components/TabPanel.svelte index 7daa3a0c..e8a4e442 100644 --- a/packages/theme-default/src/components/TabPanel.svelte +++ b/packages/theme-default/src/components/TabPanel.svelte @@ -24,9 +24,6 @@ {/if}