summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-openwrt-2020
AgeCommit message (Collapse)Author
2024-03-19luci-theme-openwrt-2020: add missing license informationFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-03-02luci-themes: add luci-base to dependsFengyu Wu
Signed-off-by: Fengyu Wu <saldry@proton.me>
2024-02-19luci-theme-openwrt-2020: add dropdown option hover stylesJo-Philipp Wich
Subsequent commits will drop the JS based mouse following focus behavior, so add appropriate replacement CSS hover styles. Ref: #6903 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2024-01-10Merge pull request #6802 from stangri/luci-theme-openwrt2020Stan Grishin
luci-theme-openwrt-2020: fix anchor decorations
2024-01-07luci-theme-openwrt-2020: fix anchor decorationsStan Grishin
* add the decorations for when the links are included in the field descriptions Thanks @dibdot, @stokito! Signed-off-by: Stan Grishin <stangri@melmac.ca>
2023-12-12luci-theme-openwrt-2020: Fix header light blue colorSergey Ponomarev
According to a style guide the color should be #00B5E2. In a9f6d850a28aa936228253806717a1c70dfe94d4 added a light blue square background to logo.svg. Their color started differs, the change fixes this. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2023-12-12luci-theme-openwrt-2020: Remove apple-touch-iconSergey Ponomarev
The apple-touch-icon was used by old Safari on iOS. Today just <link rel="icon" href="logo.png"> is enough. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2023-12-12luci-theme-openwrt-2020: Fix Safari favicon: use PNG alongside with SVGSergey Ponomarev
Chrome, Edge and Firefox will use the SVG icon but Safari will use the PNG. Chrome will try to pick an icon with a best suited dimension. So it will also download the PNG to check it's dimension. The explicitly specified sizes are preventing this. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2023-12-12luci-theme-openwrt-2020: remove icon explicit svg typeSergey Ponomarev
That was a fix for old browsers when the mime type is incorrect. Today all servers return a correct mime but also browsers can sniff a type. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2023-12-12luci-theme-openwrt-2020: Minimize logo.svgSergey Ponomarev
Save 686-536=150 bytes Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2023-12-12luci-theme-openwrt-2020: logo.svg add 1px on top and bottomSergey Ponomarev
To keep ratio the one pixel was also added to left and right and now size is 100x100 Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2023-12-12luci-theme-openwrt-2020: make logo.svg squareSergey Ponomarev
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2023-12-12luci-theme-openwrt-2020: fix logo.svg according to Logo Usage GuidelinesSergey Ponomarev
The "White & Dark Blue" logo should have a background filled with PANTONE 306 C HEX #00B5E2. SVG doesn't support background-color properly so use a rectangle instead. The dark blue circle must be PANTONE 7463 C HEX #002B49 See https://openwrt.org/_media/docs/guide-graphic-designer/openwrt-logo-usage-guidelines.pdf Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2023-07-26luci-theme-openwrt-2020: import bootstrap radio/checkbox styling rulesJo-Philipp Wich
Import the radio and checkbox styling rules from the default Bootstrap theme and adapt colors and margins to the OpenWrt 2020 one. Fixes: #6442 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-02-07luci-theme-openwrt-2020: don't inherit background in alert message buttonsJo-Philipp Wich
Fixes: #6177 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-01-09luci-theme-: add postrm scriptFlorian Eckert
Remove uci theme config section on uninstall. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-26luci-theme-openwrt-2020: convert Lua templates to ucodeJo-Philipp Wich
Convert the theme's Lua templates to ucode to avoid the implicit dependency on the luci-lua-runtime package. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-14luci-theme-openwrt-2020: quantize png imageRosen Penev
Small size reduction. From: 5908 To: 3896 Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-11luci-theme-openwrt-2020: add iOS webapp supportRosen Penev
This way instead of opening a Safari tab, it opens in its own instance. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-11luci-theme-openwrt-2020: add iOS icon supportRosen Penev
Used when adding LuCI to Springboard. Image generated from logo.svg. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-12-09luci-theme-openwrt-2020: fix font issue when mixing latin and non-latin symbolsSergey V. Lobanov
The GalanoGrotesque font used by the openwrt2020 theme does not support non- latin symbols. If latin and non-latin symbols are used together in one line it looks strange because for latin symbols GalanoGrotesque is used but for non-latin symbols a fallback font is used (sans-serif). This patch changes default font to Helvetica for the "bg", "ru", "uk", "el" and "he" locales. Original patch was written by Jo-Philipp Wich Fixes: #5580 Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in> [reword commit message, drop "de" from exception list] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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-08-31luci-theme-openwrt-2020: add css success labelFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-08-11Merge pull request #5253 from selanf/x13Jo-Philipp Wich
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-06-17luci-theme-openwrt-2020: fix spinning disk animationJo-Philipp Wich
Fixes: #4824 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-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-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-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-05-02luci-theme-openwrt-2020: add control-group style fixesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-theme-openwrt-2020: disabled widget style tweaksJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-theme-openwrt-2020: rework menu renderingJo-Philipp Wich
Utilize the LuCI.ui.menu class to load, traverse and cache the menu tree in the local session store. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-theme-openwrt-2020: add styles for disabled input elementsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-theme-openwrt-2020: remove xhr_poll_status markupJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-08Merge pull request #3819 from ptpt52/themeJo-Philipp Wich
set mediaurlbase only when it is the first time to be installed
2020-04-03luci-theme-*: set mediaurlbase if it is the first time to be installedChen Minqiang
If we build multi-themes into firmware, each of them set itself to be the default theme, what theme should it be? To make it clear, we only set mediaurlbase if the theme is the first time to be installed/built-in. This resolve the issue that theme always change to somewhat default after upgrading the firmware even with a config-keep-upgrade Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2020-04-03luci-theme-bootstrap, luci-theme-openwrt-2020: fix dynlist overflowsJo-Philipp Wich
Fixes: #3795 Signed-off-by: Jo-Philipp Wich <jo@mein.io>