Skip to content

Commit

Permalink
Fix post-meta position in scheme Mist
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Sep 2, 2020
1 parent f27e45b commit c9cdf1c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
3 changes: 1 addition & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion source/css/_common/outline/header/site-meta.styl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.site-meta {
flex-grow: 1;
text-align: $site-meta-text-align;
text-align: center;

+mobile() {
text-align: center;
Expand Down
11 changes: 9 additions & 2 deletions source/css/_schemes/Mist/_posts-expand.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.posts-expand {
&.index {
.post-header {
text-align: $site-meta-text-align;
text-align: left;

+mobile() {
text-align: center;
Expand All @@ -13,6 +13,14 @@
.post-meta-container {
margin-top: 5px;
}

.post-meta {
justify-content: flex-start;

+mobile() {
justify-content: center;
}
}
}

.post-eof {
Expand All @@ -25,7 +33,6 @@

.post-header {
margin-bottom: 20px;
text-align: center;
}

.post-tags {
Expand Down
1 change: 0 additions & 1 deletion source/css/_variables/Mist.styl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion source/css/_variables/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions source/js/local-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ document.addEventListener('DOMContentLoaded', () => {
});
};

highlightSearchWords();
if (CONFIG.localsearch.preload) {
fetchData();
}
Expand Down

0 comments on commit c9cdf1c

Please sign in to comment.