Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

website: remove sidebar search box and enhance the one in the top navigation bar #3064

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions website/assets/scss/_variables_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,23 @@ $td-sidebar-tree-root-color: #222 !default;
.td-arrow-down:before {
border-color: $secondary transparent transparent transparent !important;
}
}

.td-search__input {
color: var(--bs-body-color) !important;
border: 1px solid var(--bs-gray-400) !important;
}

.td-search__input:focus {
color: inherit !important;
border-color: var(--bs-body-bg) !important;
box-shadow: 0 0 0 2px var(--bs-primary) !important;
}

.td-search__input::placeholder {
color: var(--bs-gray) !important;
}

.td-search__icon {
color: $secondary !important;
}
2 changes: 1 addition & 1 deletion website/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ navbar_translucent_over_cover_disable = false
# Enable to show the side bar menu in its compact state.
sidebar_menu_compact = false
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
sidebar_search_disable = false
sidebar_search_disable = true
sidebar_menu_foldable = true
ul_show = 1

Expand Down
Loading