From 0e5aae15d20329e1e577f67d7734af49e80cd543 Mon Sep 17 00:00:00 2001 From: sinchang Date: Thu, 21 Feb 2019 16:54:16 +0800 Subject: [PATCH 1/4] fix: css break when hover algolia logo --- v1/lib/static/css/main.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/v1/lib/static/css/main.css b/v1/lib/static/css/main.css index eecc0c5484d5..081a68fd8c8b 100644 --- a/v1/lib/static/css/main.css +++ b/v1/lib/static/css/main.css @@ -916,6 +916,10 @@ input[type='search'] { border-color: rgba(57, 57, 57, 0.3); } +.navigationSlider .slidingNav ul li .algolia-docsearch-footer--logo:hover { + background-color: transparent; +} + input#search_input_react { background-color: rgba(0, 0, 0, 0.2); border: none; @@ -1282,7 +1286,7 @@ input::placeholder { .navigationSlider .slidingNav ul li a:hover, .navigationSlider .slidingNav ul li.siteNavItemActive a, .navigationSlider .slidingNav ul li.siteNavGroupActive a { - background: $primaryColor; + background-color: $primaryColor; } /* End of Navigation Slider */ From aece5377f963477602a5f1613d62c165cd793fff Mon Sep 17 00:00:00 2001 From: sinchang Date: Thu, 21 Feb 2019 17:01:32 +0800 Subject: [PATCH 2/4] Tweak --- v1/lib/static/css/main.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/v1/lib/static/css/main.css b/v1/lib/static/css/main.css index 081a68fd8c8b..47d30916b53c 100644 --- a/v1/lib/static/css/main.css +++ b/v1/lib/static/css/main.css @@ -916,10 +916,6 @@ input[type='search'] { border-color: rgba(57, 57, 57, 0.3); } -.navigationSlider .slidingNav ul li .algolia-docsearch-footer--logo:hover { - background-color: transparent; -} - input#search_input_react { background-color: rgba(0, 0, 0, 0.2); border: none; @@ -1288,6 +1284,10 @@ input::placeholder { .navigationSlider .slidingNav ul li.siteNavGroupActive a { background-color: $primaryColor; } + +.navigationSlider .slidingNav ul li .algolia-docsearch-footer--logo:hover { + background-color: transparent; +} /* End of Navigation Slider */ /* Languages Dropdown */ From 823a563e453868daa81f07b41028109dbe6f05b0 Mon Sep 17 00:00:00 2001 From: sinchang Date: Fri, 22 Feb 2019 10:08:52 +0800 Subject: [PATCH 3/4] Improve --- v1/lib/static/css/main.css | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/v1/lib/static/css/main.css b/v1/lib/static/css/main.css index 47d30916b53c..cdd480842b04 100644 --- a/v1/lib/static/css/main.css +++ b/v1/lib/static/css/main.css @@ -1278,16 +1278,13 @@ input::placeholder { transition: background-color 0.3s; } -.navigationSlider .slidingNav ul li a:focus, -.navigationSlider .slidingNav ul li a:hover, -.navigationSlider .slidingNav ul li.siteNavItemActive a, -.navigationSlider .slidingNav ul li.siteNavGroupActive a { +.navigationSlider .slidingNav ul li > a:focus, +.navigationSlider .slidingNav ul li > a:hover, +.navigationSlider .slidingNav ul li.siteNavItemActive > a, +.navigationSlider .slidingNav ul li.siteNavGroupActive > a { background-color: $primaryColor; } -.navigationSlider .slidingNav ul li .algolia-docsearch-footer--logo:hover { - background-color: transparent; -} /* End of Navigation Slider */ /* Languages Dropdown */ From 8341fca5721993f19980ceb5a5c041a17058f955 Mon Sep 17 00:00:00 2001 From: sinchang Date: Fri, 22 Feb 2019 10:11:53 +0800 Subject: [PATCH 4/4] Remove empty line --- v1/lib/static/css/main.css | 1 - 1 file changed, 1 deletion(-) diff --git a/v1/lib/static/css/main.css b/v1/lib/static/css/main.css index cdd480842b04..763ca8d6fe55 100644 --- a/v1/lib/static/css/main.css +++ b/v1/lib/static/css/main.css @@ -1284,7 +1284,6 @@ input::placeholder { .navigationSlider .slidingNav ul li.siteNavGroupActive > a { background-color: $primaryColor; } - /* End of Navigation Slider */ /* Languages Dropdown */