fix: 修復上個版本導致的代碼塊部分css沒有生成的bugs

fix: 修復valine背景圖片再次出現時,由左到右移動的bugs
improvement: 調大sidebar的寬度
improvement: html結構調整,mobile-sidebar改為sidebar/search調整
remove: 刪除多餘的css和pug
This commit is contained in:
Jerry
2020-10-20 21:05:58 +08:00
parent 71b15d86c1
commit c54f23bc14
28 changed files with 364 additions and 361 deletions

View File

@@ -1,7 +1,7 @@
$(function () {
const openSearch = () => {
$('body').css({ width: '100%', overflow: 'hidden' })
$('#algolia-search').css('display', 'block')
$('#algolia-search .search-dialog').css('display', 'block')
$('.ais-search-box--input').focus()
$('#search-mask').fadeIn()
// shortcut: ESC
@@ -15,12 +15,12 @@ $(function () {
const closeSearch = () => {
$('body').css({ width: '', overflow: '' })
$('#algolia-search').css({
$('#algolia-search .search-dialog').css({
animation: 'search_close .5s'
})
setTimeout(function () {
$('#algolia-search').css({
$('#algolia-search .search-dialog').css({
animation: '',
display: 'none'
})