From 03bf108d8cc060687ed02e253524df38c9b5e000 Mon Sep 17 00:00:00 2001 From: Alexander Agnarson Date: Mon, 17 Aug 2020 11:12:11 +0200 Subject: [PATCH] 1.1.4 --- readme.txt | 5 ++++- style.css | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index a206d0a..6ee7cc0 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: alxmedia Requires at least: 5.0 Tested up to: 5.5 -Version: 1.1.3 +Version: 1.1.4 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0 Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background @@ -79,6 +79,9 @@ Sidebar images == Changelog == += 1.1.4 - 2020-08-17 = +* Improved menu + = 1.1.3 - 2020-08-16 = * Fixed a11y diff --git a/style.css b/style.css index c053b74..56fad1d 100644 --- a/style.css +++ b/style.css @@ -1,7 +1,7 @@ /* Theme Name: Curver Theme URI: http://alx.media/themes/curver/ -Version: 1.1.3 +Version: 1.1.4 Requires at least: 5.0 Requires PHP: 5.6 Tested up to: 5.5 @@ -613,6 +613,10 @@ background-image: linear-gradient(to top left,#ff8a00,#da1b60); } .nav-menu:not(.mobile) .menu ul li { position: relative; } .nav-menu:not(.mobile) .menu ul a { display: block; padding: 10px 20px; transition: background-color 0.15s linear; width: 100%; } .nav-menu:not(.mobile) .menu li.menu-item-has-children.focus > ul { min-width: 180px; max-width: 180px; max-height: 300vh; overflow: visible; opacity: 1; transform: translateY(0); transition: opacity 0.15s linear, transform 0.15s linear; } +.nav-menu:not(.mobile) .menu li ul.sub-menu:not(.active) { opacity: 0; } +.nav-menu:not(.mobile) .menu li.hover ul.sub-menu:not(.active) { opacity: 1; } +.nav-menu:not(.mobile) .menu li.focus ul ul.sub-menu:not(.active) { opacity: 0; } +.nav-menu:not(.mobile) .menu li.focus ul li.hover ul.sub-menu { opacity: 1; } .nav-menu:not(.mobile) .menu ul:before, .nav-menu:not(.mobile) .menu ul:after { content: ""; display: block; position: absolute; bottom: 100%; }