Skip to content

Commit

Permalink
fix: fixed navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Jan 27, 2023
1 parent bd7555c commit 29b2599
Show file tree
Hide file tree
Showing 10 changed files with 140 additions and 387 deletions.
1 change: 0 additions & 1 deletion docs/.vuepress/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { defineClientConfig } from '@vuepress/client'
import MyLayout from './theme/layouts/Layout.vue'

export default defineClientConfig({

enhance({ router }) {
router.addRoute('/', {
path: '/ads.txt',
Expand Down
16 changes: 15 additions & 1 deletion docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,21 @@ export default defineUserConfig({
docsDir: 'docs',
docsBranch: 'master',
sidebarDepth: 6,
sidebar: [...getGuideSidebar()]
sidebar: [...getGuideSidebar()],
navbar: [
{
text: 'Guide',
link: '/'
},
{
text: 'Sponsor',
link: '/support/'
},
{
text: 'Twitter',
link: 'https://twitter.com/intent/user?screen_name=kirorisk'
}
]
})
})

Expand Down
11 changes: 11 additions & 0 deletions docs/.vuepress/public/assets/img/github-black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions docs/.vuepress/public/assets/img/github-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion docs/.vuepress/public/assets/img/github.svg

This file was deleted.

11 changes: 11 additions & 0 deletions docs/.vuepress/public/assets/img/twitter-black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions docs/.vuepress/public/assets/img/twitter-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion docs/.vuepress/public/assets/img/twitter.svg

This file was deleted.

69 changes: 69 additions & 0 deletions docs/.vuepress/styles/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
@import url('https://use.fontawesome.com/releases/v5.7.1/css/all.css');
@import url('https://fonts.bunny.net/css?family=dosis:500|inconsolata:200|roboto:400,500,700|roboto-mono:400|source-sans-pro:300,400,600');

body {
font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
}

.navbar .site-name {
font-family: 'Dosis', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
font-weight: normal !important;

&.can-hide {
display: inline-block !important;
}
}

.navbar .home-link:hover {
.logo {
animation: spin 0.5s ease-in-out 1 !important;
}
}

.navbar .logo {
margin-right: 0.4rem !important;
}

@keyframes spin {
50% {
transform: rotate(180deg) scale(1.2);
}

to {
transform: rotate(180deg) scale(1);
}
}

h2 {
padding-bottom: 1rem;
border-bottom: none;
}

// Twitter
nav > div:nth-child(3) > a {
background-image: url(/assets/img/twitter-black.svg);
background-repeat: no-repeat;
height: 20px;
display: flex;
align-items: center;
padding-left: 30px; /* width of the image plus a little extra padding */
}

.dark nav > div:nth-child(3) > a {
background-image: url(/assets/img/twitter-white.svg);
}

// Github
nav > div:nth-child(4) > a {
background-image: url(/assets/img/github-black.svg);
background-repeat: no-repeat;
height: 20px;
display: flex;
fill: #ffffff;
align-items: center;
padding-left: 30px; /* width of the image plus a little extra padding */
}

.dark nav > div:nth-child(4) > a {
background-image: url(/assets/img/github-white.svg);
}
Loading

0 comments on commit 29b2599

Please sign in to comment.