From: shunjou Date: Tue, 4 Dec 2018 19:21:32 +0000 (-0500) Subject: luci-theme-material: make header logo link to main overview X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8732a186cbaf23372549b993385d607329090b4a;p=oweals%2Fluci.git luci-theme-material: make header logo link to main overview Signed-off-by: Shun Jou --- 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 eaec0c796..02c114254 100644 --- a/themes/luci-theme-material/htdocs/luci-static/material/cascade.css +++ b/themes/luci-theme-material/htdocs/luci-static/material/cascade.css @@ -428,13 +428,16 @@ header > .fill > .container { user-select: none; } -header > .fill > .container > img { +header > .fill > .container > #logo { + margin: 0 3.5rem 0 1.5rem; +} + +header > .fill > .container > #logo > img { width: calc(0% + 10rem); - margin: -.1rem 3.5rem 0 1.5rem; - pointer-events: none; + margin-top: -.1rem; } -body:not(.logged-in) > header > .fill > .container > img { +body:not(.logged-in) > header > .fill > .container > #logo { display: none; } @@ -2373,7 +2376,7 @@ input[name="nslookup"] { [data-page^="admin-system-commands"] .panel-title, [data-page^="command-cfg"] .mobile-hide, -[data-page^="command-cfg"] header > .fill > .container > img { +[data-page^="command-cfg"] header > .fill > .container > #logo { display: none; } @@ -2395,8 +2398,8 @@ input[name="nslookup"] { } @media screen and (max-width: 1600px) { - header > .fill > .container > img { - margin: -.1rem 2.5rem 0 .5rem; + header > .fill > .container > #logo { + margin: 0 2.5rem 0 .5rem; } .main-left { @@ -2522,7 +2525,7 @@ input[name="nslookup"] { } @media screen and (max-width: 1152px) { - header > .fill > .container > img { + header > .fill > .container > #logo { display: none; } diff --git a/themes/luci-theme-material/luasrc/view/themes/material/header.htm b/themes/luci-theme-material/luasrc/view/themes/material/header.htm index 052c174dc..f463ef5cb 100644 --- a/themes/luci-theme-material/luasrc/view/themes/material/header.htm +++ b/themes/luci-theme-material/luasrc/view/themes/material/header.htm @@ -206,7 +206,7 @@
- + <%=boardinfo.hostname or "?"%>
<% render_changes() %>