summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-bootstrap/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-10-09 00:30:48 +0200
committerJo-Philipp Wich <jo@mein.io>2021-10-10 19:45:31 +0200
commit588e24f9ca68de074c4d085ec99fd8c96ad0a3ed (patch)
treefb3186f3f442780124b53bb0d729e6f87d005a50 /themes/luci-theme-bootstrap/luasrc
parent28b9663660fcb6b5414105171bf4d6a954070b76 (diff)
luci-theme-bootstrap: various tweaks and cleanups
- introduce new variable --text-color-highest which results in #000/#fff for bright and dark modes respectively - drop unused navigation style rules and selectors - use sticky positioning for header bar and drop top margin hacks - use flex box layout for header bar contents - use uniform line-height for button elements instead of pixel paddings - fix too bright .cbi-value bottom border in mobile dark mode - avoid rendering duplicate .cbi-value bottom borders for nested sections - simplify header markup, get rid of unused container elements - use non-wrapping flex box layout for page actions, prioritize primary action button in automatic width calculation - fix border radius of ifacebox headers - use brightest color for log output textareas - fix dark mode colors for mode menu - use flex layout for footer Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes/luci-theme-bootstrap/luasrc')
-rw-r--r--themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm4
-rw-r--r--themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm10
2 files changed, 6 insertions, 8 deletions
diff --git a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm
index d0c395bf31..7b84772180 100644
--- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm
+++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm
@@ -8,7 +8,9 @@
<% local ver = require "luci.version" %>
<footer>
- <a href="https://github.com/openwrt/luci">Powered by <%= ver.luciname %> (<%= ver.luciversion %>)</a> / <%= ver.distversion %>
+ <span>
+ <a href="https://github.com/openwrt/luci">Powered by <%= ver.luciname %> (<%= ver.luciversion %>)</a> / <%= ver.distversion %>
+ </span>
<ul class="breadcrumb pull-right" id="modemenu" style="display:none"></ul>
</footer>
</div>
diff --git a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
index d762637d8a..6e4861fe0b 100644
--- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
+++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
@@ -39,13 +39,9 @@
<body class="lang_<%=luci.i18n.context.lang%> <% if node then %><%= striptags( node.title ) %><%- end %>" data-page="<%= pcdata(table.concat(disp.context.requestpath, "-")) %>">
<header>
- <div class="fill">
- <div class="container">
- <a class="brand" href="/"><%=striptags(boardinfo.hostname or "?")%></a>
- <ul class="nav" id="topmenu" style="display:none"></ul>
- <div id="indicators" class="pull-right"></div>
- </div>
- </div>
+ <a class="brand" href="/"><%=striptags(boardinfo.hostname or "?")%></a>
+ <ul class="nav" id="topmenu" style="display:none"></ul>
+ <div id="indicators" class="pull-right"></div>
</header>
<div id="maincontent" class="container">