diff --git a/scripts/helpers/font.js b/scripts/helpers/font.js index 1fd124d..aafad05 100644 --- a/scripts/helpers/font.js +++ b/scripts/helpers/font.js @@ -10,7 +10,7 @@ hexo.extend.helper.register('next_font', function() { const fontStyles = ':300,300italic,400,400italic,700,700italic'; const fontHost = config.host || '//fonts.googleapis.com'; - //Get a font list from config + // Get a font list from config let fontFamilies = ['global', 'title', 'headings', 'posts', 'codes'].map(item => { if (config[item] && config[item].family && config[item].external) { return config[item].family + fontStyles; diff --git a/source/css/_common/components/post/post-nav.styl b/source/css/_common/components/post/post-nav.styl index e9203ff..b242663 100644 --- a/source/css/_common/components/post/post-nav.styl +++ b/source/css/_common/components/post/post-nav.styl @@ -14,7 +14,6 @@ display: block; font-size: $font-size-small; line-height: 1.6; - position: relative; &:active { top: 2px; diff --git a/source/css/_common/outline/header/github-banner.styl b/source/css/_common/outline/header/github-banner.styl index b72f786..1346321 100644 --- a/source/css/_common/outline/header/github-banner.styl +++ b/source/css/_common/outline/header/github-banner.styl @@ -20,7 +20,6 @@ } svg { - border: 0; color: white; fill: $bg-color; position: absolute; diff --git a/source/css/_common/outline/header/header.styl b/source/css/_common/outline/header/header.styl index eb52d91..cb884d4 100644 --- a/source/css/_common/outline/header/header.styl +++ b/source/css/_common/outline/header/header.styl @@ -1,5 +1,14 @@ // Header Section // -------------------------------------------------- +.headband { + background: $headband-bg; + height: $headband-height; + + +tablet-mobile() { + display: none; + } +} + .header { background: $head-bg; } @@ -14,7 +23,6 @@ padding: 0 10px; } -@import 'headerband'; @import 'site-meta'; @import 'site-nav'; @import 'menu'; diff --git a/source/css/_common/outline/header/headerband.styl b/source/css/_common/outline/header/headerband.styl deleted file mode 100644 index 4f1263a..0000000 --- a/source/css/_common/outline/header/headerband.styl +++ /dev/null @@ -1,4 +0,0 @@ -.headband { - background: $headband-bg; - height: $headband-height; -} diff --git a/source/css/_common/outline/header/menu.styl b/source/css/_common/outline/header/menu.styl index db2aa51..69b45a3 100644 --- a/source/css/_common/outline/header/menu.styl +++ b/source/css/_common/outline/header/menu.styl @@ -1,8 +1,8 @@ // Menu // -------------------------------------------------- .menu { - margin-top: 20px; - padding-left: 0; + margin: 0; + padding: 1em 0; text-align: center; } diff --git a/source/css/_common/outline/header/site-meta.styl b/source/css/_common/outline/header/site-meta.styl index 566b409..6614edd 100644 --- a/source/css/_common/outline/header/site-meta.styl +++ b/source/css/_common/outline/header/site-meta.styl @@ -19,9 +19,7 @@ border-bottom: none; color: var(--brand-color); display: inline-block; - line-height: $font-size-title; padding: 0 40px; - position: relative; &:hover { color: var(--brand-hover-color); diff --git a/source/css/_common/outline/sidebar/sidebar-toggle.styl b/source/css/_common/outline/sidebar/sidebar-toggle.styl index 97742a0..d49b50d 100644 --- a/source/css/_common/outline/sidebar/sidebar-toggle.styl +++ b/source/css/_common/outline/sidebar/sidebar-toggle.styl @@ -2,8 +2,8 @@ background: $black-deep; bottom: 45px; cursor: pointer; - height: 14px; - padding: 5px; + height: 12px; + padding: 6px 5px; position: fixed; width: 14px; z-index: $zindex-3; diff --git a/source/css/_common/scaffolding/tags/blockquote-center.styl b/source/css/_common/scaffolding/tags/blockquote-center.styl index 8957754..9bb834c 100644 --- a/source/css/_common/scaffolding/tags/blockquote-center.styl +++ b/source/css/_common/scaffolding/tags/blockquote-center.styl @@ -21,8 +21,8 @@ .fa-quote-right { border-bottom: 1px solid $grey-light; - text-align: right; bottom: -20px; + text-align: right; } p, div { diff --git a/source/css/_common/scaffolding/toggles.styl b/source/css/_common/scaffolding/toggles.styl index aa129ac..5befab0 100644 --- a/source/css/_common/scaffolding/toggles.styl +++ b/source/css/_common/scaffolding/toggles.styl @@ -3,13 +3,12 @@ .toggle-line { background: white; - display: inline-block; + display: block; height: 2px; left: 0; position: relative; top: 0; transition: all .4s; - vertical-align: top; width: 100%; &:not(:first-child) { diff --git a/source/css/_schemes/Mist/_menu.styl b/source/css/_schemes/Mist/_menu.styl index 3f39df5..1402098 100644 --- a/source/css/_schemes/Mist/_menu.styl +++ b/source/css/_schemes/Mist/_menu.styl @@ -9,7 +9,7 @@ } .menu { - margin: 0; + padding: 0; .menu-item { margin: 0; diff --git a/source/css/_schemes/Muse/_sidebar.styl b/source/css/_schemes/Muse/_sidebar.styl index 525ed3e..393b590 100644 --- a/source/css/_schemes/Muse/_sidebar.styl +++ b/source/css/_schemes/Muse/_sidebar.styl @@ -29,9 +29,9 @@ if (hexo-config('sidebar.position') == 'right') { } .sidebar { + transition: all $transition-ease-out; width: $sidebar-desktop; z-index: $zindex-2; - transition: all $transition-ease-out; a, span.exturl { border-bottom-color: $black-light; diff --git a/source/css/_schemes/Pisces/_layout.styl b/source/css/_schemes/Pisces/_layout.styl index 8886c46..abe030d 100644 --- a/source/css/_schemes/Pisces/_layout.styl +++ b/source/css/_schemes/Pisces/_layout.styl @@ -17,8 +17,6 @@ background: var(--content-bg-color); border-radius: $border-radius-inner; box-shadow: $box-shadow-inner; - overflow: hidden; - padding: 0; top: 0; width: $sidebar-desktop; @@ -28,7 +26,6 @@ +tablet-mobile() { border-radius: initial; - position: relative; width: auto; } } @@ -69,21 +66,13 @@ padding-top: 40px; } -if (hexo-config('sidebar.position') == 'right') { - .header-inner { - right: 0; - } +.footer-inner { - .footer-inner { + if (hexo-config('sidebar.position') == 'right') { padding-right: $sidebar-desktop + $sidebar-offset; - } -} else { - .footer-inner { + } else { padding-left: $sidebar-desktop + $sidebar-offset; } -} - -.footer-inner { +tablet-mobile() { padding-left: 0; diff --git a/source/css/_schemes/Pisces/_sidebar.styl b/source/css/_schemes/Pisces/_sidebar.styl index 2c6244e..84de45a 100644 --- a/source/css/_schemes/Pisces/_sidebar.styl +++ b/source/css/_schemes/Pisces/_sidebar.styl @@ -88,7 +88,7 @@ } .links-of-blogroll-item { - padding: 0; + //padding: 0; if (hexo-config('links_settings.layout') == 'inline') { display: inline-block;