summaryrefslogtreecommitdiffhomepage
path: root/themes
AgeCommit message (Collapse)Author
2021-11-18luci-theme-bootstrap: hide scrollbars in modal overlayJo-Philipp Wich
Only enable scrollbars if content overflows. Fixes: #5505 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-11-17luci-theme-bootstrap: further uci changelog style fixesJo-Philipp Wich
- Use the proper dialog class name to apply changelog styles - Darken grey background and borders Fixes: 5bd111f58f ("luci-theme-bootstrap: fix uci changelog and readonly input styles") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-11-17luci-theme-bootstrap: fix uci changelog and readonly input stylesJo-Philipp Wich
- Rework uci changelog styling rules to work with unmodified markup - Drop redundant readonly input styles, don't fade readonly input texts Fixes: 8055acc9be ("luci-theme-bootstrap: overhaul styles") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-11-16luci-theme-bootstrap: don't overwrite theme selection upon installJo-Philipp Wich
Revert to the previous uci-defaults behaviour of only setting the selected theme to Bootstrap if the Bootstrap entry didn't exist yet in the configuration. Ref: https://forum.openwrt.org/t/luci-theme-behaviour-change/112047 Fixes: ed86f03a9f ("luci-theme-bootstrap: add explicit dark/light mode selection") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-11-16luci-theme-bootstrap: overhaul stylesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-11-08luci-theme-bootstrap: light/dark mode releated CSS fixesJo-Philipp Wich
- Fix progress bar shadow in light mode - Fix color schema preference in light and dark modes Fixes: #5498 Fixes: #5499 Fixes: ed86f03a9f ("luci-theme-bootstrap: add explicit dark/light mode selection") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-11-07luci-theme-bootstrap: add explicit dark/light mode selectionJo-Philipp Wich
Register two further "virtual" themes called BootstrapDark and BootstrapLight which force dark and light mode respectively. The actual Bootstrap theme itself will continue to auto-select dark mode preference based on OS/Browser preference settings. Fixes: #5492 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-25luci-theme-bootstrap: work around csstidy bugJo-Philipp Wich
Ref: https://github.com/openwrt/luci/commit/26047fb967f079000ab61c7377f8e26e11277569#commitcomment-58638390 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-25luci-theme-bootstrap: fix overlay display failuresPaul Dee
Fixed overlay display failures for users on mobile, or users who booted up in safe mode XD. Noticeable when vertical or horizontal real-estate is too small for the displayed overlay. This failure is most evident when you "edit" an interface, or display your unsaved changes. When content is wider than the screen view, the table hugs the (widest) content maximally, and the overlay window becomes scrollable. Disabled -webkit-overflow-scrolling, left, and right, because both FF and Safari disable them as invalid anyway. Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com> [Merge duplicate modal declarations, remove not applicable modal flexbox properties] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-25luci-theme-bootstrap: fix header widthJo-Philipp Wich
Fixes: 588e24f9ca ("luci-theme-bootstrap: various tweaks and cleanups") Ref: https://github.com/openwrt/luci/commit/588e24f9ca68de074c4d085ec99fd8c96ad0a3ed#r58625289 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-12luci-theme-openwrt: add success style for alert messagesJo-Philipp Wich
Fixes: #5427 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-10luci-theme-bootstrap: various tweaks and cleanupsJo-Philipp Wich
- 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>
2021-10-08luci-theme-bootstrap: rework uci changelog stylingJo-Philipp Wich
Fixes: #5405 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-10-07luci-theme-bootstrap: add dark theme variantTeoh Han Hui
Add a dark theme variant which is enabled by default when prefers-color-scheme is set to dark. Signed-off-by: Teoh Han Hui <teohhanhui@gmail.com>
2021-10-05themes: warn if booted from initramfsPaul Spooren
Some devices offer a full LuCI interface from their recovery interface. As it's read-only it should only be used for installing sysupgrades and therefore warn users that no settings are saved. Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-02luci-theme-openwrt-2020: add styling of hyperlinksPetr Štetiar
Currently it's not possible to distinguish between normal text and hyperlink. Signed-off-by: Petr Štetiar <ynezz@true.cz>
2021-09-28luci-theme-openwrt-2020: add styling of abbreviations and acronymsPetr Štetiar
Style abbreviations and acronyms with dotted underline text-decoration as without the style it's quite hard to find out which text is abbreviation or acronym. References: https://developer.mozilla.org/en-US/docs/Archive/Web_Standards/Styling_Abbreviations_and_Acronyms Signed-off-by: Petr Štetiar <ynezz@true.cz>
2021-09-04luci-theme-material: fix cut syslogAnsuel Smith
Remove line-height css for syslog textarea as it cause some problem with displaying all the rows of the syslog. (Row line are calculated with a line-height of 1) Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-09-03luci-theme-material: improve support for dashboard moduleAnsuel Smith
Fix sidebar styling to improve support for dashboard module. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-08-31Merge pull request #5241 from Ansuel/materialnewFlorian Eckert
luci-theme-material: standardize menu and drop jquery
2021-08-31luci-theme-openwrt-2020: add css success labelFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-08-17luci-theme-material: add support for modmenuAnsuel Smith
Improve support for modmenu. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-08-11Merge pull request #5253 from selanf/x13Jo-Philipp Wich
2021-08-11luci-theme-material: standardize menu and drop jqueryAnsuel Smith
- Drop jquery lib - Move to the new menu.js implementation - Rework css to mimic old js transition - Rework footer and header to new implementation Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-08-11theme openwrt-2020: set maximum menu widthFritz D. Ansel
more space for it does not have an advance Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
2021-08-11theme openwrt-2020: larger bridge-boxesFritz D. Ansel
they are to small for devices like e8450 as it has 4x LAN + 2x WLAN + 1x Bridge Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
2021-08-05luci-theme: fix css for flash advanced settingsAnsuel Smith
Fix themes for broken display of advanced button in the sysupgrade modal. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-06-17luci-theme-openwrt-2020: fix spinning disk animationJo-Philipp Wich
Fixes: #4824 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-13luci-theme-bootstrap: mobile style fixes for vlan filter matrixJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-09themes: Call striptags() on hostname to prevent XSSHauke Mehrtens
This calls striptags() on the hostname to prevent any XSS over the hostname. This should fix CVE-2021-33425 as far as I understood it. If someone adds some Javascript into system.@system[0].hostname it would have been directly added to the page, this prevents the problem. This can only be exploited by someone being able to modify the uci configuration, normally a user with such privileges could also just modify the webpage. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-06-02Merge pull request #4985 from ↵Jo-Philipp Wich
j123b567/feature_luci-theme-openwrt-2020_mainmenu-submenu-tweek luci-theme-openwrt-2020: remove submenu margin-bottom when submenu not visible
2021-06-02Merge pull request #5062 from SvenRoederer/issue_5051Jo-Philipp Wich
luci-theme-openwrt-2020: use SVG-file for favicon and logo
2021-06-01luci-theme-bootstrap: add svg help icon to form field descriptionsJo-Philipp Wich
The still referenced help.gif icon is absent by default since it has been moved to luci-compat. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-05-23luci-theme-openwrt-2020: use SVG-file for favicon and logoSven Roederer
Using the scalable graphic in place of the static png file saves some ressources in flash and network. It also aligns the filetype to the type announced to the browser. fixes GitHub-issue #5051 Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
2021-04-21luci-theme-material: fix wrong active state on common prefix nodeLiangbin Lian
Before fixed, if we have two nodes: 'services/ddns' and 'services/ddnsto', click any one of they, will show they all actived. Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
2021-04-13luci-theme-openwrt-2020: remove submenu margin-bottom when submenu not visibleJan Breuer
Signed-off-by: Jan Breuer <jan.breuer@jaybee.cz>
2021-04-09luci-theme-openwrt-2020: honor CSS definitions passed by viewsJo-Philipp Wich
Legacy Lua views might declare a global `css` variable to inject custom styles into the template header. Support this mechanism in the OpenWrt 2020 theme as well. Ref: https://github.com/openwrt/luci/issues/4972 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-03-11luci-theme-openwrt-2020: add missing css success colorFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-03-01luci-theme-openwrt-2020: rework table stylesJo-Philipp Wich
Target table, tr, th and td tags directly and stop using the corresponding CSS class names. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-03-01Revert "luci-mod-status: allow displaying raw iptables counter values"Jo-Philipp Wich
This reverts commit 52caa1dc96ed6fde5c4b84f4f7f2a7429694f69c since it contained unrelated changes. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-03-01luci-mod-status: allow displaying raw iptables counter valuesJo-Philipp Wich
Fixes: #4852 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-02-24luci-mod-failsafe: kill old failsafe modDaniel Golle
It's been unmaintained for ages and became useless. Better just limit regular luci-mod-admin to only show basic functionality in case `ubus call system board` indicates we are running off initramfs. Singed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-02-04luci-theme-openwrt-2000: Add doctype to headerBryan Forbes
Fix table rendering in the small responsive breakpoint on Safari (which ignores `display: block;` for `<td>` elements). Signed-off-by: Bryan Forbes <bryan@reigndropsfall.net>
2020-12-29luci-theme-rosy: Remove BROKEN themeHannu Nyman
The Rosy theme has been marked broken for over a year, since 23 Dec 2019. Remove it now, so that it does not get into the next release branch 20.xx (or 21.xx). Reference to https://github.com/openwrt/luci/issues/3759#issuecomment-599436159 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-12-27luci-theme-bootstrap: fix text wrapping in buttonsDirk Brenken
* should fix #4647 Signed-off-by: Dirk Brenken <dev@brenken.org>
2020-10-30luci-theme-material: fix bigger button for combo-boxAnsuel Smith
Combobox are bigger than any other button. Align the dimension to all the other buttons. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-10-25luci-theme-material: Fix section title padding.Oldřich Jedlička
After moving section title from `legend`, which was translated to `span` with style `panel-title`, to `h3`, update also CSS style to match first `h3` in `cbi-section`. Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
2020-08-16themes: remove deprecated reference to enabling SSHHannu Nyman
Remove the reference to setting a password being linked to SSH capability. (SSH has been initially enabled since year 2015.) Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-06-16luci-theme-openwrt-2020: link hostname to index pageRussell Morris
In the Material theme, clicking on the logo takes you to the status page. This seems logical, and is very helpful. But in OpenWrt 2020, clicking on the hostname doesn't do anything, so just pulling the same href from Material so the link works in this theme as well. Signed-off-by: Russell Morris <rmorris@rkmorris.us> [adjust subject, commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-06-16luci-theme-bootstrap: update href for Bootstrap "brand"Russell Morris
In the Material theme, clicking on the logo takes you to the status page. This seems logical, and is very helpful. But in Bootstrap, it doesn't do anything, so just pulling the same href from Material to Bootstrap, so the link works in Bootstrap as well. Signed-off-by: Russell Morris <rmorris@rkmorris.us> [adjust commit subject, squash commits] Signed-off-by: Jo-Philipp Wich <jo@mein.io>