Skip to content

Commit

Permalink
🐛 (windi) switch back to main.css as latest Windi fixed it :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed Jun 23, 2021
1 parent e90cc70 commit 1b940aa
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 43 deletions.
40 changes: 0 additions & 40 deletions src/defaultTheme/components/organisms/app/AppLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,43 +35,3 @@ export default defineComponent({
}
})
</script>

<style lang="postcss">
:root {
--header-height: theme('spacing.14');
--docs-scroll-margin-block: calc(var(--header-height) + 4rem);
--blogpost-scroll-margin-block: calc(var(--header-height));
}
@screen md {
:root {
--header-height: theme('spacing.18');
--blogpost-scroll-margin-block: calc(var(--header-height) - 0.5rem);
}
}
@screen xl {
:root {
--docs-scroll-margin-block: calc(var(--header-height) + 1rem);
}
}
.fade-enter-active,
.fade-leave-active {
transition: opacity 200ms linear;
}
.fade-enter,
.fade-leave-to {
opacity: 0;
}
.slide-from-left-to-left-enter-active,
.slide-from-left-to-left-leave-active {
transition: transform 200ms ease-out, opacity 200ms linear;
}
.slide-from-left-to-left-enter,
.slide-from-left-to-left-leave-to {
opacity: 0;
transform: translate3d(-50px, 0, 0);
}
</style>
37 changes: 37 additions & 0 deletions src/defaultTheme/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
:root {
--header-height: theme('spacing.14');
--docs-scroll-margin-block: calc(var(--header-height) + 4rem);
--blogpost-scroll-margin-block: calc(var(--header-height));
}

@screen md {
:root {
--header-height: theme('spacing.18');
--blogpost-scroll-margin-block: calc(var(--header-height) - 0.5rem);
}
}

@screen xl {
:root {
--docs-scroll-margin-block: calc(var(--header-height) + 1rem);
}
}

.fade-enter-active,
.fade-leave-active {
transition: opacity 200ms linear;
}
.fade-enter,
.fade-leave-to {
opacity: 0;
}

.slide-from-left-to-left-enter-active,
.slide-from-left-to-left-leave-active {
transition: transform 200ms ease-out, opacity 200ms linear;
}
.slide-from-left-to-left-enter,
.slide-from-left-to-left-leave-to {
opacity: 0;
transform: translate3d(-50px, 0, 0);
}
5 changes: 2 additions & 3 deletions src/defaultTheme/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { resolve } from 'path'
import { nuxtConfig } from 'nuxt-extend'
import type { NuxtConfig } from '@nuxt/types'
import themeSetupModule, { readyHook, beforeBuildHook } from './module'
import themeSetupModule, { beforeBuildHook } from './module'

const r = (...args: string[]) => resolve(__dirname, ...args)

Expand All @@ -24,7 +24,7 @@ const themeConfig: NuxtConfig = nuxtConfig({
colorMode: {
classSuffix: ''
},
css: [r('./css/prism.css')],
css: [r('./css/main.css'), r('./css/prism.css')],
components: [
/**
* Atoms
Expand Down Expand Up @@ -108,7 +108,6 @@ const themeConfig: NuxtConfig = nuxtConfig({
plugins: [r('./plugins/menu')],
modules: [themeSetupModule, 'nuxt-windicss', '@nuxtjs/color-mode'],
hooks: {
ready: readyHook,
build: {
before: beforeBuildHook
}
Expand Down

1 comment on commit 1b940aa

@vercel
Copy link

@vercel vercel bot commented on 1b940aa Jun 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.