进行了一些小优化

This commit is contained in:
2026-08-30 20:20:31 +08:00
parent 95540ea32c
commit 4c62fda62b
11 changed files with 290 additions and 13 deletions
+50 -2
View File
@@ -32,6 +32,13 @@
display: none;
}
#respond:not(.mobile-fixed) #postcomments .comt-box {
padding: 5px 5px 4px 5px;
background: var(--main-bg-color);
border-radius: 4px;
margin-top: 12px;
}
#comments #postcomments .comt-ctrl .but {
margin-bottom: 2px;
}
@@ -184,6 +191,13 @@
height: auto;
}
/* 假输入条仅移动端显示。必须带 #comments 前缀(id 特异性):
标记上自带的 .flex{display:flex} 等单类工具规则无论加载顺序
如何都压不过它,宽屏不会再重复出现假输入条。 */
#comments .virtual-input {
display: none;
}
.commentlist .no-more {
margin: 0;
padding-bottom: 10px;
@@ -232,7 +246,31 @@
* ============================================================ */
@media (max-width: 767px) {
.drop-fixed-sm .dropdown-menu {
/* 与 layout.css 的桌面隐藏同特异性,靠 bundle 内靠后顺序在移动端反转。 */
#comments .virtual-input {
display: flex;
height: 36px;
border-radius: 120px;
background: var(--main-shadow);
color: var(--muted-2-color);
}
.virtual-input .but,
.virtual-input img {
width: 28px;
height: 28px;
border-radius: 120px;
margin: 0 4px;
flex-shrink: 0;
}
.virtual-input .but {
width: auto;
padding: 3px 10px;
}
.drop-fixed-sm .dropdown-menu,
.mobile-fixed {
position: fixed;
transform: translateY(220%);
transition: 0.6s;
@@ -247,12 +285,22 @@
margin: 0;
}
.drop-fixed-sm.open .dropdown-menu {
.drop-fixed-sm.open .dropdown-menu,
.mobile-fixed.show {
box-shadow: 0 -50px 50px rgba(0, 0, 0, 0.2);
transition: 0.6s cubic-bezier(0.28, 0.9, 0.34, 0.99);
transform: unset;
}
.mobile-fixed.show .fixed-body {
visibility: unset;
z-index: -1;
}
#respond.mobile-fixed {
z-index: 1040;
}
.drop-fixed-sm .dropdown-menu {
z-index: 1045;
padding: 10px;