[www] menu padding behaviour changed

This commit is contained in:
Roman Timashev committed 2017-10-15 14:05:38 +03:00
1 parent 6fa1b2ec12
commit 67870d2705
6 files changed
+5 -10

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ const config = require('../config')
const defaultOptions = {
commentsEnabled: false,
showAuthor: false,
menuPadding: true,
menuPadding: false,
}
const defaultMeta = {
+1 -1
View File
@@ -120,7 +120,7 @@ async function renderArticle(id) {
</div>
)
return render(article.url, Component, getMeta(article), {commentsEnabled: true})
return render(article.url, Component, getMeta(article), {commentsEnabled: true, menuPadding: true})
}
exports.createArticleCardList = createArticleCardList
+1 -1
View File
@@ -71,7 +71,7 @@ function getDocuments() {
)
ctx.type = 'text/html'
ctx.body = await render(path, Component, getDocumentsMeta())
ctx.body = await render(path, Component, getDocumentsMeta(), {menuPadding: true})
} else {
ctx.status = 404
}
+1 -1
View File
@@ -80,7 +80,7 @@ function getGallery() {
)
ctx.type = 'text/html'
ctx.body = await render(path, Component, getMeta())
ctx.body = await render(path, Component, getMeta(), {menuPadding: true})
} else {
ctx.status = 404
}
+1
View File
@@ -36,6 +36,7 @@ module.exports = function () {
path,
getComponent(page),
getPageMeta(page),
{menuPadding: true},
)
} else {
ctx.status = 404
-6
View File
@@ -19,14 +19,8 @@
width: $content-thin;
}
&.content--padding-top--double{
padding-top: $double-margin;
padding-bottom: $single-margin;
}
&.content--padding-top--menu{
padding-top: $menu-thickness;
padding-bottom: $single-margin;
}
}