优化halo的主题xue

764

##halo-theme-xue
在设置,主题编辑里调整halo-theme-xue我感觉不合适的地方
调整后的效果图

屏幕截图 20201012 005743.jpg

##调整style.min.css

#collapseNav {
    display: none!important;
}
.night.nav-wrapper{
    background-color: var(--night-background);
    color: var(--night-txt-color)!important;
}
.github-badge .badge-subject {
    display: inline-block;
    background-color: #4d4d4d;
    padding: 8px 6px 8px 6px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.github-badge .badge-value {
    display: inline-block;
    padding: 8px 6px 8px 6px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-left: -6px;
}

##调整main.js

function handleScrollMenu() {
  if (getClientWidth() <= 800) {
    $('#navHeader').addClass('night')
    $('#navHeader .nav').addClass('opacity-100').removeClass('opacity-0')
    return;
  }
  var scrollTop = getScrollTop();
  if (scrollTop > 29) {
    $('#navHeader').addClass('nav-bg-fff')
    //$('#navHeader .nav').addClass('opacity-100').removeClass('opacity-0')
    //$('#navHeader .collapse-nav').hide()
    //$('.collapse-burger').removeClass('open');
  } else {
    $('#navHeader').removeClass('nav-bg-fff')
    //$('#navHeader .nav').removeClass('opacity-100').addClass('opacity-0')
    //$('#navHeader .collapse-nav').show()
  }
}

##调整header.ftl

  <nav class="nav opacity-100"  id="nav">