Fix post-meta position in scheme Mist

This commit is contained in:
Mimi 2020-09-02 09:56:23 +08:00
parent f27e45bcae
commit c9cdf1c695
6 changed files with 12 additions and 7 deletions

View File

@ -79,7 +79,6 @@ creative_commons:
# Usage: `Key: /link/ || icon`
# Key is the name of menu item. If the translation for this item is available, the translated text will be loaded, otherwise the Key name will be used. Key is case-senstive.
# Value before `||` delimiter is the target link, value after `||` delimiter is the name of Font Awesome icon.
# When running the site in a subdirectory (e.g. yoursite.com/blog), remove the leading slash from link value (/archives -> archives).
# External url should start with http:// or https://
menu:
#home: / || fa fa-home
@ -165,7 +164,7 @@ links_settings:
layout: block
links:
#Title: http://yoursite.com
#Title: https://example.com
# Table of Contents in the Sidebar
# Front-matter variable (unsupport wrap expand_all).

View File

@ -1,6 +1,6 @@
.site-meta {
flex-grow: 1;
text-align: $site-meta-text-align;
text-align: center;
+mobile() {
text-align: center;

View File

@ -3,7 +3,7 @@
.posts-expand {
&.index {
.post-header {
text-align: $site-meta-text-align;
text-align: left;
+mobile() {
text-align: center;
@ -13,6 +13,14 @@
.post-meta-container {
margin-top: 5px;
}
.post-meta {
justify-content: flex-start;
+mobile() {
justify-content: center;
}
}
}
.post-eof {
@ -25,7 +33,6 @@
.post-header {
margin-bottom: 20px;
text-align: center;
}
.post-tags {

View File

@ -15,7 +15,6 @@ $head-bg = var(--content-bg-color);
$brand-color = $black-deep;
$brand-hover-color = $brand-color;
$site-meta-text-align = left;
$posts-collapse-left = 0;
$btn-default-bg = transparent;

View File

@ -207,7 +207,6 @@ $headband-bg = $black-deep;
$head-bg = transparent;
// Site Meta
$site-meta-text-align = center;
$brand-color = white;
$brand-hover-color = white;
$brand-color-dark = $grey-lighter;

View File

@ -281,6 +281,7 @@ document.addEventListener('DOMContentLoaded', () => {
});
};
highlightSearchWords();
if (CONFIG.localsearch.preload) {
fetchData();
}