Skip to content

Commit f765918

Browse files
authored
Merge pull request #3064 from paulinek13/improve-search-boxes
website: remove sidebar search box and enhance the one in the top navigation bar
2 parents f4cf70c + 9c8abbc commit f765918

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

website/assets/scss/_variables_project.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,23 @@ $td-sidebar-tree-root-color: #222 !default;
3232
.td-arrow-down:before {
3333
border-color: $secondary transparent transparent transparent !important;
3434
}
35+
}
36+
37+
.td-search__input {
38+
color: var(--bs-body-color) !important;
39+
border: 1px solid var(--bs-gray-400) !important;
40+
}
41+
42+
.td-search__input:focus {
43+
color: inherit !important;
44+
border-color: var(--bs-body-bg) !important;
45+
box-shadow: 0 0 0 2px var(--bs-primary) !important;
46+
}
47+
48+
.td-search__input::placeholder {
49+
color: var(--bs-gray) !important;
50+
}
51+
52+
.td-search__icon {
53+
color: $secondary !important;
3554
}

website/hugo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ navbar_translucent_over_cover_disable = false
142142
# Enable to show the side bar menu in its compact state.
143143
sidebar_menu_compact = false
144144
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
145-
sidebar_search_disable = false
145+
sidebar_search_disable = true
146146
sidebar_menu_foldable = true
147147
ul_show = 1
148148

0 commit comments

Comments
 (0)