luci-material-theme: adjust data-title for logout 5790/head
authorMiguel Angel Mulero Martinez <migmul@gmail.com>
Fri, 29 Apr 2022 22:32:58 +0000 (00:32 +0200)
committerMiguel Angel Mulero Martinez <migmul@gmail.com>
Sat, 30 Apr 2022 07:15:40 +0000 (09:15 +0200)
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 <migmul@gmail.com>
themes/luci-theme-material/htdocs/luci-static/material/cascade.css

index 160b4b0ce9b252edb1aaa1dbd437ed4f4abfcf8a..77e509227cbb8e4730df442f93dc1b77d1b9a884 100644 (file)
@@ -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;
        }