From c518e03c6c13d7dd1d7360268cce5271ca3c311a Mon Sep 17 00:00:00 2001 From: Mark Eaton Date: Thu, 23 Jun 2022 16:01:29 -0400 Subject: [PATCH] make mainnav dropdowns open on hover, with accommodations for tablets --- groups/home/LibAnswers-4-js-css.html | 26 +++++++++++++++++++--- groups/home/LibAnswers-SlideOutChat-4.html | 6 ++--- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/groups/home/LibAnswers-4-js-css.html b/groups/home/LibAnswers-4-js-css.html index 520d40a..717267f 100644 --- a/groups/home/LibAnswers-4-js-css.html +++ b/groups/home/LibAnswers-4-js-css.html @@ -41,8 +41,11 @@ body { opacity: 1; } .fade { - -webkit-transition-duration: 5s; /* Safari */ - transition-duration: 0.5s; + -webkit-transition-duration: 5s; /* Safari */ + transition-duration: 0.5s; +} +.dropdown:hover .dropdown-menu { + display: block; } /* style the login at the top right */ @@ -273,7 +276,7 @@ a.no-underline { text-decoration: none; } } } -@media only screen and (min-width: 1px) and (max-width: 768px) { +@media only screen and (min-width: 1px) and (max-width: 767px) { #hamburger-alternative { display: none; } @@ -371,6 +374,23 @@ a.no-underline { text-decoration: none; } + + +