From debfa6ade970b029087ce7c814f9851c68e2dfea Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Mon, 26 Sep 2016 12:18:24 +0200 Subject: [PATCH] fix css in docs search Handles https://github.com/chef/inspec/issues/1114\#issuecomment-249525984 --- www/source/layouts/_nav.slim | 2 +- www/source/stylesheets/_sidebar.scss | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/www/source/layouts/_nav.slim b/www/source/layouts/_nav.slim index 5ab412387..b97c277ce 100644 --- a/www/source/layouts/_nav.slim +++ b/www/source/layouts/_nav.slim @@ -1,4 +1,4 @@ -nav#main-nav +nav#main-nav class="sidebar-layout-#{locals[:sidebar_layout]}" a.main-nav--logo href="/" img src="/images/inspec-by-chef-logo.svg" onerror="this.src='/images/inspec-by-chef-logo.png'" diff --git a/www/source/stylesheets/_sidebar.scss b/www/source/stylesheets/_sidebar.scss index fe3c61563..7ef685cb6 100644 --- a/www/source/stylesheets/_sidebar.scss +++ b/www/source/stylesheets/_sidebar.scss @@ -64,3 +64,9 @@ min-width: 54px; } } + +// FIXME: this is used to remove the top border line of the search +// see https://github.com/chef/inspec/issues/1114#issuecomment-249525984 +.sidebar-layout-docs > .main-nav--links { + border-top: none; +}