fixed bug
This commit is contained in:
1 parent
54b18039e3
commit
8c3232fadf
16 files changed
+1134
-97
No files matched your search
+188
-50
@@ -46,10 +46,11 @@
|
||||
}
|
||||
|
||||
[data-theme="dark"] .main {
|
||||
background: rgba(15, 23, 42, 0.96);
|
||||
background: rgba(15, 23, 42, 0.99); /* Increased opacity for readability */
|
||||
box-shadow: var(--card-shadow-dark);
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
/* Removed glassmorphism blur as requested */
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .header nav {
|
||||
@@ -505,7 +506,7 @@ ul {
|
||||
overflow: hidden;
|
||||
margin: 60px auto;
|
||||
padding: 50px;
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
box-shadow: var(--card-shadow-light);
|
||||
border-radius: 8px;
|
||||
z-index: 10;
|
||||
@@ -740,93 +741,153 @@ ul {
|
||||
animation: fadeIn 0.3s ease;
|
||||
}
|
||||
|
||||
/* Simplified Search Styles for Essay/Shuoshuo */
|
||||
.search-input-group {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
border-bottom: 2px solid #e5e7eb;
|
||||
transition: border-color 0.3s ease;
|
||||
border: 1px solid rgba(0, 0, 0, 0.08); /* Very subtle border for minimalism */
|
||||
border-radius: 99px; /* Fully rounded pill */
|
||||
padding: 2px 15px;
|
||||
background: transparent; /* No background by default */
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.search-input-group:hover {
|
||||
border-color: rgba(0, 0, 0, 0.15);
|
||||
background: rgba(0, 0, 0, 0.01);
|
||||
}
|
||||
|
||||
.search-input-group:focus-within {
|
||||
border-color: #111827;
|
||||
background: #fff;
|
||||
border-color: transparent;
|
||||
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); /* Soft diffuse shadow */
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .search-input-group {
|
||||
border-color: rgba(255, 255, 255, 0.1);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .search-input-group:hover {
|
||||
border-color: rgba(255, 255, 255, 0.2);
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .search-input-group:focus-within {
|
||||
border-color: #e5e7eb;
|
||||
background: #1f2933;
|
||||
border-color: transparent;
|
||||
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.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;
|
||||
padding: 10px 10px 10px 30px;
|
||||
font-size: 0.95rem;
|
||||
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;
|
||||
position: absolute;
|
||||
left: 15px;
|
||||
font-size: 1.1rem;
|
||||
color: #9ca3af;
|
||||
pointer-events: none;
|
||||
transition: color 0.3s;
|
||||
}
|
||||
|
||||
.search-input-group:focus-within .search-icon {
|
||||
color: #4b5563;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .search-input-group:focus-within .search-icon {
|
||||
color: #d1d5db;
|
||||
}
|
||||
|
||||
.close-icon {
|
||||
right: 5px;
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
font-size: 1.1rem;
|
||||
color: #9ca3af;
|
||||
cursor: pointer;
|
||||
transition: color 0.2s;
|
||||
transition: all 0.2s;
|
||||
opacity: 0;
|
||||
transform: scale(0.8);
|
||||
}
|
||||
|
||||
.search-input-group.has-value .close-icon {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
.close-icon:hover {
|
||||
color: var(--text-title-color);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .close-icon:hover {
|
||||
color: var(--text-title-dark-color);
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.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);
|
||||
right: 0;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
margin-top: 12px;
|
||||
overflow: hidden;
|
||||
z-index: 50;
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
visibility: hidden;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.search-dropdown.show {
|
||||
display: block;
|
||||
animation: slideDown 0.2s ease;
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .search-dropdown {
|
||||
background: rgba(31, 41, 51, 0.9);
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.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;
|
||||
padding: 10px 15px;
|
||||
border-bottom: 1px solid rgba(0,0,0,0.03);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.search-result-meta {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 0.8rem;
|
||||
color: #999;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.search-result-summary-text {
|
||||
max-width: 70%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.no-result {
|
||||
text-align: center;
|
||||
color: #999;
|
||||
padding: 15px;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .search-result-item {
|
||||
@@ -1001,6 +1062,83 @@ ul {
|
||||
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
|
||||
}
|
||||
|
||||
/* Code Block Controls */
|
||||
.code-controls {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 10px;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
z-index: 10;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.highlight:hover .code-controls {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.code-btn {
|
||||
background: rgba(0,0,0,0.5);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
padding: 4px 8px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.code-btn:hover {
|
||||
background: rgba(0,0,0,0.7);
|
||||
}
|
||||
|
||||
/* Expandable Code Blocks */
|
||||
.highlight.collapsed {
|
||||
max-height: 300px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.highlight.collapsed::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
background: linear-gradient(to bottom, transparent, #f6f8fa);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .highlight.collapsed::after {
|
||||
background: linear-gradient(to bottom, transparent, #282a36);
|
||||
}
|
||||
|
||||
.expand-btn-container {
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
z-index: 5;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.highlight.collapsed .expand-btn-container {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.expand-btn {
|
||||
background: var(--link-color);
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 5px 15px;
|
||||
border-radius: 20px;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .highlight {
|
||||
background: #282a36; /* Night Mode: Dark BG (Dracula) */
|
||||
color: #f8f8f2; /* Night Mode: Light Text */
|
||||
|
||||
Reference in new issue
Block a user