Commit Graph

708 Commits

Author SHA1 Message Date
Paul Donald
779ca14125
css: remove unsupported properties
neither Safari nor Firefox recognize them, and they generate a parse
error.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-12-22 16:23:35 +00:00
Paul Donald
0459c378b7
themes: update package-manager style to match page name
opkg is no longer available as the generic name for package-manager

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-12-15 20:29:36 +01:00
Ramon Van Gorkom
80f18df48f luci-base: make items of UIDynamicList drag-sortable
Signed-off-by: Ramon Van Gorkom <Ramon00c00@gmail.com>
2024-11-27 21:43:16 +01:00
Mustafa Can Elmacı
ae8bbb814f treewide: HTML Cleanup
* 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>
2024-11-22 22:39:46 +01:00
Griffen Edge
c68d5c80bd luci-theme-bootstrap: cascade.css: Refactor unnecessary calc()
Replace all calc() doing maths on compatible numbers with their final values (to 2 decimal points).

Signed-off-by: Griffen Edge <griffen@griffenedge.com>
2024-10-10 02:28:12 +02:00
Ramon Van Gorkom
5a30e6c3af luci-theme-openwrt: change to HTML (like all other themes) instead of XML to fix incompatibility
luci-theme-openwrt: change to HTML (like all other themes) instead of XML to fix incompatibility

see also https://github.com/openwrt/luci/issues/7229

Signed-off-by: Ramon Van Gorkom <Ramon00c00@gmail.com>
2024-09-15 23:45:33 +02:00
Jo-Philipp Wich
79a7012dce luci-theme-openwrt: convert Lua templates to ucode
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>
2024-07-30 00:08:31 +02:00
Florian Eckert
3162128e2f luci-theme-openwrt: add css class button-row
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-07-09 16:19:51 +02:00
Florian Eckert
c1621c6d32 luci-theme-openwrt-2020: add css class button-row
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-07-09 16:19:51 +02:00
Florian Eckert
5119fa2f79 luci-theme-material: add css class button-row
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-07-09 16:19:51 +02:00
Florian Eckert
991549c238 luci-theme-bootstrap: add css class button-row
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-07-09 16:19:51 +02:00
James
3e967fd30d luci-theme-boostrap: dark realtime graphs
This fixes the graphs after extra divs were added.

Signed-off-by: James Lindstrom <jameslindstrom2@gmail.com>
* Customize commit message
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-05-02 09:42:29 +02:00
Florian Eckert
a277e63975 luci-theme-material: do not show the message 'no password' on the login page
This note is also not displayed in the theme luci-theme-boostrap. Also, for
security reasons, we should not explicitly point this out on the login page,
that no password is set.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-25 10:34:31 +02:00
Kristian Skramstad
bd2b2ec340 luci-theme-bootstrap: Change textarea font-family to monospace.
Better readability for pages:
- Startup -> Local Startup
- Flash Firmware -> Configuration
- Diagnostics

Signed-off-by: Kristian Skramstad <kristian+github@83.no>
2024-03-27 19:29:48 +01:00
Florian Eckert
41c18218f3
Merge pull request #7008 from dannil/material-color-variables
luci-theme-material: add back removed color variables
2024-03-25 07:56:39 +01:00
Daniel Nilsson
4adc4a6568 luci-theme-material: make luci-app-commands command box align with Bootstrap theme
The current implementation made the commands from the app luci-app-commands absolutely positioned which resulted in hiding elements which was underneath it, ie. the buttons. This implementation removes the absolutely positioned behavior making the buttons visible again and as an upside aligns it with how the Bootstrap theme handles commands.

Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
2024-03-23 01:53:43 +01:00
Daniel Nilsson
eeddf40ac9 luci-theme-material: add back removed color variables
Partially reverts 2bdabf14c3 by adding back the deleted color variables as the custom.css was used by users to override the theme with their own colors. To maintain backwards compatibility with users we should not remove/rename these as it will result in colors being applied incorrectly.

Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
2024-03-22 12:28:29 +01:00
Thomas Schröder
e569ddaf89 luci-theme-bootstrap: darkmode graphs fine-tuning
Fine tuning #6991

Bugfix for the wireless graphs, reorder everything to the same level
as displayed in the menu and make the spaces even.

Signed-off-by: Thomas Schröder <tschroeder_github@outlook.com>
2024-03-20 09:56:41 +01:00
Florian Eckert
be212dd452 luci-theme-openwrt-2020: add missing license information
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-03-19 13:37:41 +01:00
Florian Eckert
0f5fd2e70a luci-theme-openwrt: add missing license information
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-03-19 13:37:14 +01:00
Florian Eckert
504d934150 luci-theme-material: add missing license information
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-03-19 13:36:33 +01:00
james
850345bfb9 luci-theme-bootstrap: darkmode graphs
This adds 2 more graphs to be dark in dark mode and makes the gridlines white
Signed-off-by: james <jameslindstrom2@gmail.com>
2024-03-15 00:45:41 +01:00
Jo-Philipp Wich
37daa26be9
Merge pull request #6928 from thomasschroeder/luci-theme-bootstrap_show-scrollbar
luci-theme-bootstrap: Always show scrollbar
2024-03-13 22:57:02 +01:00
james
056407754d luci-theme-bootstrap: Realtime Graphs dark mode
This feature is to have the realtime graphs dark when using Bootstrap Dark Theme

Signed-off-by: james <jameslindstrom2@gmail.com>
2024-03-12 20:24:06 +01:00
Fengyu Wu
98a6ba28de luci-themes: add luci-base to depends
Signed-off-by: Fengyu Wu <saldry@proton.me>
2024-03-02 17:57:01 +01:00
Fengyu Wu
45d2becacb luci-theme-material: open footer link in new tab
Also set Referrer Policy

Signed-off-by: Fengyu Wu <saldry@proton.me>
2024-03-02 17:57:01 +01:00
Fengyu Wu
f01347d3be luci-theme-bootstrap: open footer links in new tab
Also set Referrer Policy

Signed-off-by: Fengyu Wu <saldry@proton.me>
2024-03-02 17:57:01 +01:00
Daniel Nilsson
3acc8bc373 luci-theme-material: improve theming system colors and contrasts
This changed spawned from trying to make certain text colors readable (such as white text on white background in many dialogs) introduced by commit 4ee2bc6 (ref: #5841) which made obvious the need to improve the color and contrast situation in the theme.

Alot of colors were duplicated in cascade.css and made for a hard time to align colors across different elements. This commit tries to rectify that by introducing variables for all commonly used colors.

* All base colors (white, blue, red, green, blue, yellow, etc) has been consolidated and moved to common variables
* Introduced more specific selectors for info levels to avoid colors bleeding over to other elements
* Removed duplicated properties which were overriden at the next row

Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
2024-03-02 17:56:28 +01:00
Florian Eckert
0b24d1f465 luci-theme-material: add missing css for dsl_status_table
Insert a space between the name and the current value, as with other themes.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-02-28 15:28:40 +01:00
Jo-Philipp Wich
01e5510888 luci-theme-material: add dropdown option hover styles
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-02-19 00:04:16 +01:00
Jo-Philipp Wich
b0e56a39aa luci-theme-openwrt: add dropdown option hover styles
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-02-19 00:04:16 +01:00
Jo-Philipp Wich
ae146074a1 luci-theme-openwrt-2020: add dropdown option hover styles
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-02-19 00:04:16 +01:00
Jo-Philipp Wich
f57514d63c luci-theme-bootstrap: add dropdown option hover styles
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-02-19 00:04:16 +01:00
Thomas Schröder
d77615c422
luci-theme-bootstrap: Allways show scrollbar
With this addition to the body tag, on desktop browsers the vertical scrollbar
is always visible and the content will not be shifted by changing tabs (like
at System/Software when the update tab has no to little content).

I couldn't see any negative side effects with Chromium browsers or Firefox
under Windows/Linux and Android, but I don't have access to Apple devices
for tests.

Signed-off-by: Thomas Schröder <tschroeder_github@outlook.com>
2024-02-18 14:16:20 +01:00
Daniel Nilsson
8200c5d49e luci-theme-bootstrap: allow network interfaces to line break
The inherited nowrap of white-space causes the interface boxes to not line break, resulting in a horizontal scroll bar when many interfaces are present.

Tested on Chrome and Firefox.

Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
2024-02-18 00:55:20 +01:00
Stan Grishin
4433701463
Merge pull request #6802 from stangri/luci-theme-openwrt2020
luci-theme-openwrt-2020: fix anchor decorations
2024-01-10 19:27:06 -07:00
Stan Grishin
525c5da356 luci-theme-openwrt-2020: fix anchor decorations
* add the decorations for when the links are included in the field descriptions

Thanks @dibdot, @stokito!

Signed-off-by: Stan Grishin <stangri@melmac.ca>
2024-01-07 22:18:06 +00:00
Sergey Ponomarev
74935b8ebb luci-theme-openwrt-2020: Fix header light blue color
According to a style guide the color should be #00B5E2.
In a9f6d850a2 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-12 21:00:02 +02:00
Sergey Ponomarev
9ce280af95 luci-theme-bootstrap: Use a new OpenWrt logo
The new OpenWrt logo.svg is copied from luci-theme-openwrt-2020.
The logo.png was copied too but resized from 180px 3.9Kb down to 48px 2.3Kb.
This is enough when used as icon for app pinned to desktop.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2023-12-12 20:24:12 +02:00
Sergey Ponomarev
b572c35ca8 luci-theme-material: Use a new OpenWrt logo
The new OpenWrt logo.svg is copied from luci-theme-openwrt-2020.
The logo.png was copied too but resized from 180px 3.9Kb down to 48px 2.3Kb.
This is enough when used as icon for app pinned to desktop.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2023-12-12 20:24:12 +02:00
Sergey Ponomarev
5f3a24ef81 luci-theme-openwrt-2020: Remove apple-touch-icon
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-12 20:24:12 +02:00
Sergey Ponomarev
b5a3354e82 luci-theme-openwrt-2020: Fix Safari favicon: use PNG alongside with SVG
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-12 20:24:12 +02:00
Sergey Ponomarev
a9b06db126 luci-theme-openwrt-2020: remove icon explicit svg type
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-12 20:24:12 +02:00
Sergey Ponomarev
84da02bc09 luci-theme-openwrt-2020: Minimize logo.svg
Save 686-536=150 bytes

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2023-12-12 20:24:12 +02:00
Sergey Ponomarev
d0df669431 luci-theme-openwrt-2020: logo.svg add 1px on top and bottom
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-12 20:24:12 +02:00
Sergey Ponomarev
cc0c66c0e5 luci-theme-openwrt-2020: make logo.svg square
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2023-12-12 20:24:12 +02:00
Sergey Ponomarev
a9f6d850a2 luci-theme-openwrt-2020: fix logo.svg according to Logo Usage Guidelines
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-12-12 20:24:12 +02:00
Paul Donald
16470a0ab8
Merge pull request #6296 from jjm2473/patch-2
luci-theme-bootstrap: set scroll-margin-top for all elements
2023-12-04 03:44:24 +01:00
Kristian Skramstad
04d9820f17 luci-theme-bootstrap: better readability in System Log/Kernel Log.
Signed-off-by: Kristian Skramstad <kristian+github@83.no>
2023-09-06 22:16:12 +02:00
Paul Dee
2c3018d426 luci-base: grammar fixes
Login (n) -> Log (v) in

Logout (n) -> Log (v) out

Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
2023-08-11 13:17:04 +02:00