fixed bug

This commit is contained in:
Vaica committed 2026-01-31 19:24:22 +08:00
1 parent 3b8edf8d39
commit 23eab42bd7
21 files changed
+2363 -408

No files matched your search

+199 -1
View File
@@ -703,7 +703,195 @@ ul {
transform: scale(1.2);
}
/* Pjax 页面切换过渡动画 */
/* Searchable Header Styles */
.searchable-header-container {
position: relative;
margin-bottom: 15px;
height: 40px; /* Fixed height to prevent layout jump */
display: flex;
align-items: center;
}
.section-header.normal-mode {
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
margin: 0; /* Reset margin */
}
.search-hint {
font-size: 0.75rem;
font-weight: normal;
color: #999;
opacity: 0;
transform: translateX(-10px);
transition: all 0.3s ease;
}
.section-header.normal-mode:hover .search-hint {
opacity: 1;
transform: translateX(0);
}
.search-mode {
width: 100%;
animation: fadeIn 0.3s ease;
}
.search-input-group {
position: relative;
display: flex;
align-items: center;
width: 100%;
border-bottom: 2px solid #e5e7eb;
transition: border-color 0.3s ease;
}
.search-input-group:focus-within {
border-color: #111827;
}
[data-theme="dark"] .search-input-group:focus-within {
border-color: #e5e7eb;
}
.search-input-group input {
width: 100%;
border: none;
background: transparent;
padding: 8px 35px 8px 45px; /* Increased left padding to separate from icon */
font-size: 1rem;
color: var(--text-title-color);
outline: none;
}
[data-theme="dark"] .search-input-group input {
color: var(--text-title-dark-color);
}
.search-icon, .close-icon {
position: absolute;
font-size: 1.2rem;
color: #999;
}
.search-icon {
left: 5px;
}
.close-icon {
right: 5px;
cursor: pointer;
transition: color 0.2s;
}
.close-icon:hover {
color: var(--text-title-color);
}
[data-theme="dark"] .close-icon:hover {
color: var(--text-title-dark-color);
}
.search-dropdown {
position: absolute;
top: 100%;
left: 0;
width: 100%;
background: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(10px);
border-radius: 8px;
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
z-index: 100;
max-height: 400px;
overflow-y: auto;
margin-top: 10px;
display: none; /* Hidden by default */
}
[data-theme="dark"] .search-dropdown {
background: rgba(30, 41, 59, 0.98);
box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.search-dropdown.show {
display: block;
animation: slideDown 0.2s ease;
}
.search-result-item {
padding: 12px 15px;
border-bottom: 1px solid rgba(0,0,0,0.05);
transition: background 0.2s;
text-align: left; /* Align text left */
cursor: pointer;
}
[data-theme="dark"] .search-result-item {
border-bottom: 1px solid rgba(255,255,255,0.05);
}
.search-result-item:hover {
background: rgba(0,0,0,0.02);
}
[data-theme="dark"] .search-result-item:hover {
background: rgba(255,255,255,0.02);
}
.search-result-title {
display: block;
font-weight: 600;
font-size: 0.95rem;
color: var(--text-title-color);
margin-bottom: 4px;
}
[data-theme="dark"] .search-result-title {
color: var(--text-title-dark-color);
}
.search-result-date {
font-size: 0.75rem;
color: #999;
margin-right: 10px;
}
.search-result-summary {
font-size: 0.85rem;
color: #666;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
margin-top: 4px;
}
[data-theme="dark"] .search-result-summary {
color: #9ca3af;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideDown {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Mobile Adaptation */
@media (max-width: 767px) {
.search-hint {
opacity: 1;
transform: translateX(0);
display: inline-block;
margin-left: 8px;
}
}
.pjax-leave {
position: absolute;
top: 0;
@@ -2409,6 +2597,16 @@ input[type=submit] {
display: none;
}
/* Migrated from assets/js/modules/style-fix.js */
#libabys:nth-of-type(-n+2) {
margin-left: -5px;
}
.itp-index:nth-child(even) {
float: right;
width: 48%;
}
/* 修改小方块的背景填充颜色 */
[data-theme=dark] .ch-subdomain-bg {
fill: var(--gray-200);