fix: 恢复设置页目录框收起/展开按钮
- 保留目录框折叠功能 - 默认状态为展开(不添加 folded 类) - 用户可手动收起或展开
This commit is contained in:
60
settings.php
60
settings.php
@@ -5635,6 +5635,8 @@ window.pjaxLoaded = function(){
|
|||||||
|
|
||||||
<div id="headindex_box">
|
<div id="headindex_box">
|
||||||
|
|
||||||
|
<button id="headindex_toggler" onclick="$('#headindex_box').toggleClass('folded');"><?php _e('收起', 'argon');?></button>
|
||||||
|
|
||||||
<div id="headindex"></div>
|
<div id="headindex"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -5703,7 +5705,7 @@ window.pjaxLoaded = function(){
|
|||||||
|
|
||||||
box-shadow: 0 1px 1px rgba(0,0,0,.04);
|
box-shadow: 0 1px 1px rgba(0,0,0,.04);
|
||||||
|
|
||||||
padding: 6px 20px;
|
padding: 6px 30px 6px 20px;
|
||||||
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
||||||
@@ -5745,6 +5747,62 @@ window.pjaxLoaded = function(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#headindex_toggler{
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
|
||||||
|
right: 5px;
|
||||||
|
|
||||||
|
top: 5px;
|
||||||
|
|
||||||
|
color: #555;
|
||||||
|
|
||||||
|
background: #f7f7f7;
|
||||||
|
|
||||||
|
box-shadow: 0 1px 0 #ccc;
|
||||||
|
|
||||||
|
outline: none !important;
|
||||||
|
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
|
||||||
|
border-radius: 2px;
|
||||||
|
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
width: 40px;
|
||||||
|
|
||||||
|
height: 25px;
|
||||||
|
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#headindex_box.folded {
|
||||||
|
|
||||||
|
right: -185px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#headindex_box.folded #headindex_toggler{
|
||||||
|
|
||||||
|
position: fixed;
|
||||||
|
|
||||||
|
right: 15px;
|
||||||
|
|
||||||
|
top: 55px;
|
||||||
|
|
||||||
|
font-size: 0px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#headindex_box.folded #headindex_toggler:before{
|
||||||
|
|
||||||
|
content: '<?php _e('展开', 'argon');?>';
|
||||||
|
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width:960px){
|
@media screen and (max-width:960px){
|
||||||
|
|
||||||
#headindex_box {
|
#headindex_box {
|
||||||
|
|||||||
Reference in New Issue
Block a user