diff --git a/docs/.vuepress/public/search-icon.svg b/docs/.vuepress/public/search-icon.svg new file mode 100644 index 00000000..69eb2afd --- /dev/null +++ b/docs/.vuepress/public/search-icon.svg @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/.vuepress/theme/components/Navbar.vue b/docs/.vuepress/theme/components/Navbar.vue index 0d21af89..de5b5e28 100644 --- a/docs/.vuepress/theme/components/Navbar.vue +++ b/docs/.vuepress/theme/components/Navbar.vue @@ -1,98 +1,118 @@ @@ -144,6 +164,33 @@ $searchBoxInputColor = #0b1426 position relative display flex color $headerTextColor + + .input-container { + position: relative; + width: 100%; + margin: 0; + + .input { + display: block; + height: 15px; + padding: 10px 45px; + background: white url("/docs/search-icon.svg") no-repeat 15px center; + background-size: 15px 15px; + font-size: 16px; + border: none; + border-radius: 5px; + box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, + rgba(0, 0, 0, 0.3) 0px 1px 3px -1px; + } + + .span { + position: absolute; + right: 5px; + top: -2px; + color: grey; + } + } + .search-box margin-right 0 flex: 0 0 auto