From 60b80379b1ace1b3e8cfbcb9565e621360680e7b Mon Sep 17 00:00:00 2001 From: Simon M Date: Wed, 5 Feb 2020 16:34:24 +0100 Subject: [PATCH] [Experimentation] Add navbar logo (#111) * Add navbar logo * Remove extra spacing * Switch to SVG for compatibility Use SVG instead of WEBP, any device too old to render it can't run the app anyways. --- src/.vuepress/config.js | 1 + src/.vuepress/public/assets/media/logo.svg | 23 ++++++++++++++++++++++ src/.vuepress/styles/index.styl | 12 ++++++++++- 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 src/.vuepress/public/assets/media/logo.svg diff --git a/src/.vuepress/config.js b/src/.vuepress/config.js index 11b0d613..2ae14b15 100644 --- a/src/.vuepress/config.js +++ b/src/.vuepress/config.js @@ -10,6 +10,7 @@ module.exports = { repo: 'inorichi/tachiyomi', docsRepo: 'tachiyomiorg/website', docsDir: 'src', + logo: '/assets/media/logo.svg', editLinks: true, editLinkText: 'Help us improve this page', nav: require('./config/nav'), diff --git a/src/.vuepress/public/assets/media/logo.svg b/src/.vuepress/public/assets/media/logo.svg new file mode 100644 index 00000000..9931732d --- /dev/null +++ b/src/.vuepress/public/assets/media/logo.svg @@ -0,0 +1,23 @@ + + + + + + + + + + diff --git a/src/.vuepress/styles/index.styl b/src/.vuepress/styles/index.styl index 2f452dd3..0d98d642 100644 --- a/src/.vuepress/styles/index.styl +++ b/src/.vuepress/styles/index.styl @@ -114,10 +114,20 @@ main.home font-size 1.125em margin-top 0.5em +// Navbar Changes +.navbar + img.logo + /* Bring navbar-name closer to navbar-logo */ + margin-right 0 + .site-name.can-hide + /* Display navbar-name even for small screens */ + @media (max-width: $MQMobile) + display inherit + // Center align class .centered text-align center // Bold class .bold - font-weight bold + font-weight bold \ No newline at end of file