From d452dee8ce2f958b7c0c3cad85eb4124456a9661 Mon Sep 17 00:00:00 2001 From: Miguel Angel Mulero Martinez Date: Sat, 30 Apr 2022 00:28:01 +0200 Subject: [PATCH 1/2] Revert "luci-material-theme: reduce size of logout icon" This reverts commit 3758ab9479be280a2df486120573a5ba3bb2c87a. The solution is not good. It breaks in some way the English UI to fix localizated UI. It will be fixed again in other commit. Signed-off-by: Miguel Angel Mulero Martinez --- .../htdocs/luci-static/material/cascade.css | 4 ++-- 1 file changed, 2 insertions(+), 2 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 f6cc45fa5b..160b4b0ce9 100644 --- a/themes/luci-theme-material/htdocs/luci-static/material/cascade.css +++ b/themes/luci-theme-material/htdocs/luci-static/material/cascade.css @@ -623,8 +623,8 @@ body[class*="node-"] > .main > .main-left > .nav > .slide > .menu.active::before .main > .main-left > .nav > li:last-child::before { position: absolute; left: 14px; - width: 20px; - height: 20px; + width: 24px; + height: 24px; content: url(./icons/logout.svg); } From f8e52aa85d305a73a276b45805d758ba20d759fe Mon Sep 17 00:00:00 2001 From: Miguel Angel Mulero Martinez Date: Sat, 30 Apr 2022 00:32:58 +0200 Subject: [PATCH 2/2] luci-material-theme: adjust data-title for logout The data-title attribute style depends on the content in the css rule. When translated to other language, the css rule fails. This change uses the position and not the content to apply the style. Signed-off-by: Miguel Angel Mulero Martinez --- .../luci-theme-material/htdocs/luci-static/material/cascade.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 160b4b0ce9..77e509227c 100644 --- a/themes/luci-theme-material/htdocs/luci-static/material/cascade.css +++ b/themes/luci-theme-material/htdocs/luci-static/material/cascade.css @@ -2649,7 +2649,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 > [data-title="Logout"] { + .main > .main-left > .nav > li:last-child > [data-title] { font-size: .9rem; }