diff --git a/source/css/_partial/navbar.styl b/source/css/_partial/navbar.styl index 3b3dee3..9cf5a6f 100644 --- a/source/css/_partial/navbar.styl +++ b/source/css/_partial/navbar.styl @@ -30,12 +30,4 @@ img width logo-size -// Media Query -@media (max-width: 768px) - .navbar - .nav - .nav-item-link - &.nav-item-search - display: none - diff --git a/source/css/_partial/search.styl b/source/css/_partial/search.styl index d07e6f0..a230b19 100644 --- a/source/css/_partial/search.styl +++ b/source/css/_partial/search.styl @@ -16,7 +16,7 @@ position relative margin 0 auto padding 1rem 3rem - background-color rgba(255,255,255,.5) + background-color rgba(body-color,.9) box-shadow 0 1rem 3rem rgba(sea, .05) max-height 100vh overflow-y auto @@ -65,12 +65,17 @@ font-size 1.6rem font-weight bold .search-result + color white padding-top .5rem margin 0 max-height 12rem overflow hidden em.search-keyword - color sand + font-style normal + color link-color .search-result-empty - padding 3rem 0 0 + padding 2.6rem 0 0 + color white + p + text-align center diff --git a/source/js/ayer.js b/source/js/ayer.js index 6d3f7a0..81ad9e4 100644 --- a/source/js/ayer.js +++ b/source/js/ayer.js @@ -57,7 +57,7 @@ // // 建议在移动端不初始化,其实 /search.xml 文件还挺大的, - if ($('.local-search').size() && !isMobile.any()) { + if ($('.local-search').size()) { $.getScript('/js/search.js', function () { searchFunc("/search.xml", 'local-search-input', 'local-search-result'); });