From a9e75ff3dac4a7e76940331411fb929d424665fa Mon Sep 17 00:00:00 2001 From: Miguel Angel Mulero Martinez Date: Mon, 2 May 2022 09:47:36 +0200 Subject: [PATCH] luci-material-theme: fix localizated left menu The latest fix to fix the logout worked, but it was not applied to all the resolutions, and I have observed the same problem exists for the dasboard optional component. Looking at the code, it seems only the components without submenu, have the data-title element, so this fix modifies the style for all of them, not relying on the position or text content. Signed-off-by: Miguel Angel Mulero Martinez (cherry picked from commit 56aeaa8ac8b2a8a9864f3c8290fb10c39ed3173a) --- .../htdocs/luci-static/material/cascade.css | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/themes/luci-theme-material/htdocs/luci-static/material/cascade.css b/themes/luci-theme-material/htdocs/luci-static/material/cascade.css index 4bf9740860..612dae52eb 100644 --- a/themes/luci-theme-material/htdocs/luci-static/material/cascade.css +++ b/themes/luci-theme-material/htdocs/luci-static/material/cascade.css @@ -584,8 +584,7 @@ header > .fill > .container > .status > * { } .main > .main-left > .nav > .slide > .menu, -.main > .main-left > .nav > li > [data-title="Logout"], -.main > .main-left > .nav > li > [data-title="Dashboard"] { +.main > .main-left > .nav > li > [data-title] { font-size: 1.15rem; font-weight: 500; display: flex; @@ -2657,7 +2656,7 @@ input[name="nslookup"] { .main > .main-left > .nav > li, .main > .main-left > .nav > li a, .main > .main-left > .nav > .slide > .menu, - .main > .main-left > .nav > li:last-child > [data-title] { + .main > .main-left > .nav > li > [data-title] { font-size: .9rem; } @@ -2936,7 +2935,7 @@ input[name="nslookup"] { } .main > .main-left > .nav > .slide > .menu, - .main > .main-left > .nav > li > [data-title="Logout"] { + .main > .main-left > .nav > li > [data-title] { font-size: 1.2rem; } -- 2.30.2