From 8732a186cbaf23372549b993385d607329090b4a Mon Sep 17 00:00:00 2001 From: shunjou Date: Tue, 4 Dec 2018 14:21:32 -0500 Subject: luci-theme-material: make header logo link to main overview Signed-off-by: Shun Jou --- .../htdocs/luci-static/material/cascade.css | 19 +++++++++++-------- .../luasrc/view/themes/material/header.htm | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) (limited to 'themes') 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 eaec0c7963..02c1142549 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 052c174dca..f463ef5cb2 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() %> -- cgit v1.2.3