summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-openwrt-2020/ucode
AgeCommit message (Collapse)Author
2024-11-22treewide: HTML CleanupMustafa Can Elmacı
* HTML Cleanup: Meta tags. * Converted charset to shorthand. * Removed meta tags with `Content-Script-Type` attribute. (Invalid in HTML5 spec.) * HTML Cleanup: CSS tags. * Removed `type` attribute with CSS files from link tags. (HTML5 spec recommends omitting it.) * Removed `type` attribute from style tags. (Deprecated in HTML5 spec.) https://html.spec.whatwg.org/#attr-link-type https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style * HTML Cleanup: Convert from XHTML to HTML5 * Removed XML declaration. * Removed XML namespace. * Changed doctype to HTML5. * HTML Cleanup: CDATA tags. * CDATA sections should not be used within HTML they are considered as comments and not displayed. https://developer.mozilla.org/en-US/docs/Web/API/CDATASection * HTML Cleanup: Script tags. * Removed `language` attribute from script tags. (No longer valid in HTML5) * Removed `type` attribute with JavaScript MIME type from script tags. (HTML5 spec recommends omitting it.) https://html.spec.whatwg.org/multipage/scripting.html#attr-script-type https://mimesniff.spec.whatwg.org/#javascript-mime-type Signed-off-by: Mustafa Can Elmacı <mustafacan@elmaci.net>
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>
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>