From 260e610e65dccdb8b14d4db8c77e055b7f2833bb Mon Sep 17 00:00:00 2001 From: REJack Date: Wed, 2 Dec 2020 09:25:20 +0100 Subject: [PATCH] add site-search-block scss script --- build/scss/_main-header.scss | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/build/scss/_main-header.scss b/build/scss/_main-header.scss index 262797eb1..3efc266ba 100644 --- a/build/scss/_main-header.scss +++ b/build/scss/_main-header.scss @@ -143,3 +143,39 @@ } } } + +// Site Search +.site-search-block { + position: absolute; + padding: 0 $nav-link-padding-x; + left: 0; + top: 0; + right: 0; + bottom: 0; + z-index: 10; + display: none; + justify-content: center; + flex-direction: column; + + @each $color, $value in $theme-colors { + @if $color != dark and $color != light { + .navbar-#{$color} & { + background-color: $value; + } + } + } + + @each $color, $value in $colors { + .navbar-#{$color} & { + background-color: $value; + } + } + + &.site-search-open { + display: flex; + } + + .input-group { + width: 100%; + } +}