diff --git a/cdn/dev/css/kb-search.css b/cdn/dev/css/kb-search.css new file mode 100644 index 000000000..8acbb54da --- /dev/null +++ b/cdn/dev/css/kb-search.css @@ -0,0 +1,33 @@ +.search-bar { + display: flex; + align-items: center; + width: 40vw; + height: 56px; + padding: 0 10px; + margin-bottom: 20px; + margin-left: 10px; + background-color: #eceef3; + border: 1px solid gray; +} + +.search-icon { + font-size: 20px; + opacity: 0.6; + margin-right: 10px; +} + +.search-bar form { + width: 100%; + display: flex; + flex-direction: row; +} + +.search-bar input { + flex: 1; + background: transparent; + border: none; + outline: none; + font-size: 18px; + width: 100%; + padding: 0 10px; +} diff --git a/knowledge-base/index.php b/knowledge-base/index.php index fe4f3b780..cf690216b 100644 --- a/knowledge-base/index.php +++ b/knowledge-base/index.php @@ -38,11 +38,11 @@ // Required head([ 'title' =>'Keyman Support | ' . $title, - 'css' => ['template.css','prism.css'], + 'css' => ['template.css','prism.css', 'kb-search.css'], 'showMenu' => true, 'index' => false ]); - + echo "
"; $pid = intval($id,10) - 1; @@ -55,8 +55,15 @@ $ParsedownAndAlerts = new \Keyman\Site\Common\GFMAlerts(); echo $ParsedownAndAlerts->text($kb); } else { - echo "