From 56aeaa8ac8b2a8a9864f3c8290fb10c39ed3173a 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 --- .../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 b194ff0d3b..1544482fc7 100644 --- a/themes/luci-theme-material/htdocs/luci-static/material/cascade.css +++ b/themes/luci-theme-material/htdocs/luci-static/material/cascade.css @@ -583,8 +583,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; @@ -2656,7 +2655,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; } @@ -2935,7 +2934,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; }