Search
This commit is contained in:
1 parent
e33b5a2719
commit
e7cf77e57e
5 files changed
+456
-15
No files matched your search
+224
-1
@@ -106,6 +106,14 @@ body[style*="background-image"] {
|
||||
font-size: 1.5rem; /* Increased font size for site title */
|
||||
}
|
||||
|
||||
.navbar {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.navbar-collapse {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Class to force light text color when background is dark */
|
||||
body.dark-background-active {
|
||||
color: #f8f9fa !important;
|
||||
@@ -185,5 +193,220 @@ body.dark-background-active .form-text,
|
||||
|
||||
/* Custom styles for transparent theme */
|
||||
[data-bs-theme="transparent"] {
|
||||
|
||||
/* Transparent theme styles can be added here if needed */
|
||||
}
|
||||
|
||||
/* New navbar layout */
|
||||
.container-fluid {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.navbar-left {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.navbar-right {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
/* Search functionality styles */
|
||||
.input-group.search {
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
/* Hide search bar on login page */
|
||||
body.login-page .search-container-center {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
|
||||
.search-container-center {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
max-width: 600px;
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.search-container-center .form-control {
|
||||
font-size: 1.1rem;
|
||||
padding: 0.75rem 1rem;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.search-container-center .btn {
|
||||
padding: 0.75rem 1rem;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.search-results {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: var(--bs-body-bg);
|
||||
border: 1px solid var(--bs-border-color);
|
||||
border-top: none;
|
||||
border-radius: 0 0 0.375rem 0.375rem;
|
||||
max-height: 300px;
|
||||
overflow-y: auto;
|
||||
z-index: 1000;
|
||||
display: none;
|
||||
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
|
||||
}
|
||||
|
||||
.search-results.show {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.search-result-item {
|
||||
padding: 0.75rem 1rem;
|
||||
border-bottom: 1px solid var(--bs-border-color);
|
||||
cursor: pointer;
|
||||
transition: background-color 0.15s ease-in-out;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.search-result-item:hover {
|
||||
background-color: var(--bs-gray-100);
|
||||
}
|
||||
|
||||
.search-result-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.search-result-item .bookmark-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.search-result-item .bookmark-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.search-result-item .bookmark-title {
|
||||
font-weight: 500;
|
||||
color: var(--bs-body-color);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.search-result-item .bookmark-url {
|
||||
font-size: 0.875rem;
|
||||
color: var(--bs-secondary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.search-result-item .bookmark-category {
|
||||
font-size: 0.75rem;
|
||||
color: var(--bs-dark);
|
||||
background: var(--bs-warning);
|
||||
padding: 0.125rem 0.375rem;
|
||||
border-radius: 0.25rem;
|
||||
white-space: nowrap;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.search-no-results {
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
color: var(--bs-muted);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.search-engine-results {
|
||||
padding: 0.5rem;
|
||||
background: var(--bs-info-bg-subtle);
|
||||
border-bottom: 1px solid var(--bs-border-color);
|
||||
}
|
||||
|
||||
.search-engine-results .search-engine-item {
|
||||
padding: 0.5rem;
|
||||
cursor: pointer;
|
||||
border-radius: 0.25rem;
|
||||
transition: background-color 0.15s ease-in-out;
|
||||
}
|
||||
|
||||
.search-engine-item:hover {
|
||||
background-color: var(--bs-info);
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Dark theme adjustments for search */
|
||||
[data-bs-theme="dark"] .search-results {
|
||||
background: var(--bs-dark);
|
||||
border-color: var(--bs-gray-700);
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .search-result-item:hover {
|
||||
background-color: var(--bs-gray-800);
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .search-result-item .bookmark-category {
|
||||
color: var(--bs-dark);
|
||||
background: var(--bs-warning);
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .search-engine-results {
|
||||
background: var(--bs-dark);
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .search-engine-item:hover {
|
||||
background-color: var(--bs-primary);
|
||||
}
|
||||
|
||||
/* Responsive search bar */
|
||||
@media (max-width: 768px) {
|
||||
.container-fluid {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.search-container-center {
|
||||
position: static;
|
||||
transform: none;
|
||||
max-width: 100%;
|
||||
margin: 1rem auto;
|
||||
order: -1;
|
||||
}
|
||||
|
||||
.search-container-center .form-control {
|
||||
font-size: 1rem;
|
||||
padding: 0.6rem 0.8rem;
|
||||
}
|
||||
|
||||
.search-container-center .btn {
|
||||
padding: 0.6rem 0.8rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.search-results {
|
||||
position: fixed;
|
||||
top: auto;
|
||||
left: 1rem;
|
||||
right: 1rem;
|
||||
max-height: 50vh;
|
||||
}
|
||||
|
||||
.navbar-collapse {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.navbar-nav {
|
||||
margin-left: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user