Skip to content

Commit

Permalink
feat: preload slides
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 2, 2021
1 parent 762bf13 commit 3bc564b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ module.exports = {
'/guide/': slidebars,
'/themes/': slidebars,
'/custom/': slidebars,
'/builtin/': slidebars,
'/': slidebars,
},
},
Expand Down
14 changes: 10 additions & 4 deletions docs/.vitepress/theme/components/HomeHero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
<NavLink
v-if="hasAction"
:item="{ link: data.actionLink, text: data.actionText }"
class="action mx-2 rounded-tr-4xl rounded-tl-2xl rounded-br-2xl rounded-bl-3xl"
class="action mx-2"
rounded="tr-4xl tl-2xl br-2xl bl-3xl"
/>

<NavLink
v-if="hasAltAction"
:item="{ link: data.altActionLink, text: data.altActionText }"
class="action alt mx-2 rounded-tr-2xl rounded-tl-3xl rounded-br-4xl rounded-bl-4xl"
class="action alt mx-2"
rounded="tr-2xl tl-3xl br-4xl bl-4xl"
/>

<div class="mt-5 flex">
Expand Down Expand Up @@ -61,7 +63,7 @@ const showHero = computed(() => {
})
</script>

<style scoped>
<style scoped lang="postcss">
.home-hero {
margin: 0rem 0 2.75rem;
padding: 3rem 1.5rem;
Expand Down Expand Up @@ -134,8 +136,8 @@ const showHero = computed(() => {
line-height: 40px;
border: 0;
color: #ffffff;
background-color: var(--c-brand);
transition: background-color 0.1s ease;
@apply bg-primary cursor-pointer;
}
.action :deep(.item) {
Expand All @@ -151,6 +153,10 @@ const showHero = computed(() => {
color: #ffffff;
}
.action:hover {
@apply bg-primary-deep;
}
.action.alt {
background-color: #476582;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/custom/config-windicss.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Since Markdown naturally supports embedded HTML markups. You can style your cont
</div>
```

## Configure Windi CSS
## Configurations

To configure the Windi CSS configuration, you will need to extend it by

Expand Down
2 changes: 1 addition & 1 deletion packages/client/internals/SlidesOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const cardWidth = computed(() => {

<template>
<div
v-if="value"
v-show="value"
class="slides-overview bg-main !bg-opacity-75 p-16 overflow-y-auto"
>
<div
Expand Down

0 comments on commit 3bc564b

Please sign in to comment.