Fix fixed navbar

This commit is contained in:
samaradel
2020-11-11 15:54:08 +02:00
parent 7b05b50e3f
commit 83576b23b8
4 changed files with 38 additions and 39 deletions

View File

@@ -84,8 +84,4 @@ export default {
max-width: 100%; max-width: 100%;
height: auto; height: auto;
} }
.flex-post:first-child {
margin-top: 60px;
}
</style> </style>

View File

@@ -1,15 +1,18 @@
<!DOCTYPE html> <!DOCTYPE html>
<html ${htmlAttrs}> <html ${htmlAttrs}>
<head>
<head>
${head} ${head}
</head> </head>
<body ${bodyAttrs}>
<body ${bodyAttrs}>
<script> <script>
// Add dark / light detection that runs before Vue.js load. Borrowed from overreacted.io // Add dark / light detection that runs before Vue.js load. Borrowed from overreacted.io
// for this starter, i used the code from gridsome.org // for this starter, i used the code from gridsome.org
(function() { (function() {
window.__onThemeChange = function() {}; window.__onThemeChange = function() {};
function setTheme(newTheme) { function setTheme(newTheme) {
window.__theme = newTheme; window.__theme = newTheme;
@@ -22,7 +25,7 @@
var preferredTheme; var preferredTheme;
try { try {
preferredTheme = localStorage.getItem('theme'); preferredTheme = localStorage.getItem('theme');
} catch (err) { } } catch (err) {}
window.__setPreferredTheme = function(newTheme) { window.__setPreferredTheme = function(newTheme) {
setTheme(newTheme); setTheme(newTheme);
@@ -41,7 +44,7 @@
})(); })();
</script> </script>
${app} ${app} ${scripts}
${scripts} </body>
</body>
</html> </html>

View File

@@ -49,7 +49,7 @@ export default {
metaInfo: { metaInfo: {
bodyAttrs: { bodyAttrs: {
class: "m-0" class: "m-0 pt-12"
} }
} }
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<Layout :hideHeader="false" :disableScroll="true"> <Layout :hideHeader="true" :disableScroll="true">
<div class="container sm:pxi-0 mx-auto overflow-x-hidden"> <div class="container sm:pxi-0 mx-auto overflow-x-hidden">