Refactor Layout and improve search
This commit is contained in:
+27
-24
@@ -379,37 +379,40 @@ textarea {
|
||||
.search-input:focus {
|
||||
border-color: var(--primary-hover);
|
||||
}
|
||||
.search-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
white-space: nowrap;
|
||||
.search-summary {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.search-result {
|
||||
.search-results {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.2rem;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
gap: 1rem;
|
||||
}
|
||||
.search-result-row {
|
||||
.search-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
min-width: 0;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px dashed var(--secondary);
|
||||
}
|
||||
.search-result-row a {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
.search-card:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.search-snippet {
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.4;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
.search-card-name {
|
||||
color: var(--link);
|
||||
font-size: 1.1rem;
|
||||
word-break: break-word;
|
||||
}
|
||||
.search-card-name:hover {
|
||||
color: var(--link-hover);
|
||||
}
|
||||
.search-card-path {
|
||||
word-break: break-all;
|
||||
}
|
||||
.search-card-snippet {
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.5;
|
||||
color: var(--text-muted);
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
/* === Muted text === */
|
||||
|
||||
Reference in New Issue
Block a user