Skip to content

Commit

Permalink
修复关闭搜索后,第一行分类过高
Browse files Browse the repository at this point in the history
  • Loading branch information
owen0o0 committed Oct 29, 2019
1 parent 554cb52 commit 96704b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions css/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ footer.main-footer{
border-top: 0;
background-color:#fff;
}
.no-search{
margin-top: 85px;
}
@media screen and (min-width: 768px){
.sidebar-menu.collapsed .main-menu>li>a>i {
font-size: 20px;
Expand All @@ -124,6 +127,9 @@ footer.main-footer .footer-text{
text-align: center;
float: none;
}
.no-search{
margin-top: 0px;
}
}
.comments-area{
position: relative;
Expand Down
4 changes: 4 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
</nav>
<?php
if(io_get_option('is_search')){include('search-tool.php'); }
else{?>
<div class="no-search"></div>
<?php
}


foreach($categories as $category) {
Expand Down

0 comments on commit 96704b4

Please sign in to comment.