Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Commit

Permalink
fix: banner (#65)
Browse files Browse the repository at this point in the history
Co-authored-by: DespauxGuillaume <[email protected]>
Co-authored-by: Florent Delerue <[email protected]>
  • Loading branch information
3 people authored Jul 7, 2021
1 parent 07f43b7 commit afb03c3
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 112 deletions.
18 changes: 18 additions & 0 deletions assets/nuxt.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
: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);
}
}
13 changes: 0 additions & 13 deletions components/atoms/NuxtBanner.vue

This file was deleted.

85 changes: 0 additions & 85 deletions components/organisms/PageMobileToc.vue

This file was deleted.

1 change: 0 additions & 1 deletion components/organisms/app/AppHeader.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<template>
<header class="sticky w-full top-0 z-50 ">
<HeaderNuxt3Banner />
<div class="d-header -mt-0.5 lg:-mt-0">
<div class="flex flex-none d-container-content pt-1 md:pt-2.5">
<NavigationButton v-if="aside" />
Expand Down
13 changes: 0 additions & 13 deletions components/organisms/app/AppPage.vue

This file was deleted.

3 changes: 3 additions & 0 deletions docus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export default {
apiKey: 'ff80fbf046ce827f64f06e16f82f1401',
indexName: 'nuxtjs'
},
layout: {
banner: true
},
github: {
repo: 'nuxt/nuxtjs.org',
branch: 'dev',
Expand Down
1 change: 1 addition & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default withDocus({
class: ['min-w-xs']
}
},
css: [resolve(__dirname, './assets/nuxt.css')],
buildModules: ['@nuxt/typescript-build'],
plugins: ['~/plugins/adblock.client'],
windicss: {
Expand Down

0 comments on commit afb03c3

Please sign in to comment.