From 65e84f4470a2dd9190b291dd4909a00f063d1fc5 Mon Sep 17 00:00:00 2001 From: Kombie Date: Mon, 9 Mar 2020 08:39:25 +0000 Subject: [PATCH] [refactor] improve menu tab index --- src/css/menu.css | 12 +- src/html/menu/content/bookmarks/name.html | 4 +- src/html/menu/content/groups/names.html | 2 +- src/html/menu/content/header/coloraccent.html | 2 +- src/html/menu/content/header/editadd.html | 2 +- src/html/menu/content/header/search.html | 2 +- src/html/menu/content/theme/color.html | 2 +- src/html/menu/content/theme/fonts.html | 12 +- src/html/menu/nav.html | 16 +- src/js/menu.js | 310 ++++++++++++------ 10 files changed, 228 insertions(+), 136 deletions(-) diff --git a/src/css/menu.css b/src/css/menu.css index 04db062c..ec689b1d 100755 --- a/src/css/menu.css +++ b/src/css/menu.css @@ -86,7 +86,7 @@ border-radius: 0; } -.menu-nav-body { +.menu-subnav { display: none; } @@ -115,7 +115,7 @@ } .menu-content-item { - padding: calc(var(--menu-space) * 1) calc(var(--menu-space) * 2); + padding: calc(var(--menu-space) * 3); position: relative; z-index: 1; } @@ -215,7 +215,7 @@ justify-content: flex-start; } - .menu-nav-body { + .menu-subnav { background-color: rgb(var(--theme-color-02)); display: flex; flex-direction: column; @@ -225,11 +225,11 @@ transition: height var(--layout-timing-extra-fast); } - .menu-nav-body.active { - height: var(--menu-nav-body-height); + .menu-subnav.active { + height: var(--menu-subnav-height); } - .is-edge .menu-nav-body { + .is-edge .menu-subnav { background-color: rgba(var(--theme-color-02), 0.5); } diff --git a/src/html/menu/content/bookmarks/name.html b/src/html/menu/content/bookmarks/name.html index 4b077538..11a9e403 100644 --- a/src/html/menu/content/bookmarks/name.html +++ b/src/html/menu/content/bookmarks/name.html @@ -5,12 +5,12 @@