Commit graph

134 commits

Author SHA1 Message Date
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
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
Florian Eckert
f464199be1 luci-theme-material: add again no password set hint
This was accidentally deleted with commit:
bec2c7e2b5

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2023-03-29 10:34:20 +02:00
Florian Eckert
21b40652d9 luci-theme-: add postrm script
Remove uci theme config section on uninstall.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2023-01-09 13:07:42 +01:00
Jo-Philipp Wich
bd4bf6ac9b luci-theme-material: fix location of template files
Fixes: #6060
Fixes: e496014760 ("luci-theme-material: convert Lua templates to ucode")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-27 11:14:52 +02:00
Jo-Philipp Wich
e496014760 luci-theme-material: convert Lua templates to ucode
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25 01:03:37 +02:00
INAGAKI Hiroshi
2a55839363 luci-theme-material: fix typo in recovery mode message
Fix the message from "Sytem" to "System" and merge with the existing
message on the other themes.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2022-07-27 11:21:54 +09:00
y04
ec8bdab76c
luci-theme-material: optimized image filesize
Optimized PNG filesize from 6280 to 3939 bytes. Visually looks the same, technically the image is 99.9% identical.

Signed-off-by: Alexander Semukhin <semukhin@mail.com>
2022-06-25 01:43:23 +02:00
Quentin Baker
4ee2bc644a luci-theme-material: CSS Fix for previous update
Commit b0f13ef Changed the color of a CSS element from a bright blue to
a dark blue. This resulted in a modal with difficult-to-read text (black
text on dark blue).

This commit sets the modal text-color to #000, in line with style
guidelines.

Signed-off-by: Quentin Baker <opensource@quentb.com>
2022-06-17 00:02:09 -04:00
Quentin Baker
b0f13efa9c luci-theme-material: Update brand logo/colors
I have updated the brand.png logo to the 2020 version, and I have
made a small adjustment to the CSS to reflect its slightly larger
vertical height.

I also have made small tweaks to the system theme colors to use
the brand colors as recommended on page 5 of the logo usage
guidelines document avalible at
openwrt/branding/blob/master/openwrt-styleguide.pdf

Signed-off-by: Quentin Baker <opensource@quentb.com>
2022-06-05 21:46:27 -04:00
Miguel Angel Mulero Martinez
1cd615787a luci-material-theme: replace margin by gap in ifacebadge
Material is a "flex" theme. Better to use "gap" in place of "margin" to
add some space between elements inside "flex" elements.

This fixes the problem specially when there are text elements inside the
"flex" and don't hurt when there are images.

Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
2022-05-04 10:53:35 +02:00
Jo-Philipp Wich
a000cf9c01
Merge pull request #5794 from McGiverGim/material_align_button_text_center
luci-material-theme: align text buttons center
2022-05-02 10:37:15 +02:00
Miguel Angel Mulero Martinez
56aeaa8ac8 luci-material-theme: fix localizated left menu
The latest fix to fix the logout worked, but it was not applied to all
the resolutions, and I have observed the same problem exists for the
dasboard optional component.
Looking at the code, it seems only the components without submenu, have the
data-title element, so this fix modifies the style for all of them, not
relying on the position or text content.

Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
2022-05-02 09:47:36 +02:00
Miguel Angel Mulero Martinez
9e73a04adb luci-material-theme: align text buttons center
The text inside the buttons is aligned to the top. This change mades
it aligned to the center.

Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
2022-05-01 09:23:04 +02:00
Jo-Philipp Wich
0a8bf7583e
Merge pull request #5791 from McGiverGim/fix_td_align
luci-material-theme: align td text width 33%
2022-04-30 15:35:06 +02:00
Jo-Philipp Wich
0a49bbe87f
Merge pull request #5792 from McGiverGim/controlgroup_flex
luci-material-theme: make control-group flex
2022-04-30 15:34:41 +02:00
Miguel Angel Mulero Martinez
17ddeb7b57 luci-material-theme: make control-group flex
The control-group div does not flex. The buttons overflow the screen.

This change mades them flex.

Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
2022-04-30 10:37:08 +02:00
Miguel Angel Mulero Martinez
3333fd6695 luci-material-theme: align td text width 33%
The CSS applies a different padding for td elements with 33% width. This
misaligns the text from this td to the others td.

This change modifies the CSS to apply the same padding to all of the
sibling td.

Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
2022-04-30 09:57:02 +02:00
Miguel Angel Mulero Martinez
f8e52aa85d luci-material-theme: adjust data-title for logout
The data-title attribute style depends on the content in the css rule.
When translated to other language, the css rule fails.
This change uses the position and not the content to apply the style.

Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
2022-04-30 09:15:40 +02:00
Miguel Angel Mulero Martinez
d452dee8ce Revert "luci-material-theme: reduce size of logout icon"
This reverts commit 3758ab9479.

The solution is not good. It breaks in some way the English UI to fix
localizated UI.

It will be fixed again in other commit.

Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
2022-04-30 09:13:32 +02:00
Jo-Philipp Wich
5ccef2421b
Merge pull request #5788 from McGiverGim/fix_logout_icon_material_theme
luci-material-theme: reduce size of logout icon
2022-04-29 19:58:50 +02:00
Miguel Angel Mulero Martinez
3758ab9479 luci-material-theme: reduce size of logout icon
The icon of the logout option overflows the text. This reduces the size of the icon to not overflow.

Signed-off-by: Miguel Angel Mulero <mcgivergim@gmail.com>
2022-04-29 16:55:21 +02:00
Miguel Angel Mulero Martinez
35fb253adb luci-theme-material: fix size of progressbar text
The text of the progressbar is bigger than the progressbar height. This removes the font-size element that produced that.

Signed-off-by: Miguel Angel Mulero <mcgivergim@gmail.com>
2022-04-29 16:32:58 +02:00
Paul Spooren
c8d9819c9a themes: warn if booted from initramfs
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-05 15:33:15 -10:00
Ansuel Smith
a9ff8d3468
luci-theme-material: fix cut syslog
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-04 18:56:36 +02:00
Ansuel Smith
78de736a95
luci-theme-material: improve support for dashboard module
Fix sidebar styling to improve support for dashboard module.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-09-03 21:05:53 +02:00
Ansuel Smith
05d100442b
luci-theme-material: add support for modmenu
Improve support for modmenu.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-08-17 16:47:11 +02:00
Ansuel Smith
031424c0d3
luci-theme-material: standardize menu and drop jquery
- 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-11 17:13:02 +02:00
Ansuel Smith
be028dce56
luci-theme: fix css for flash advanced settings
Fix themes for broken display of advanced button in the sysupgrade modal.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-08-05 15:51:02 +02:00
Hauke Mehrtens
5cbd79d7e3 themes: Call striptags() on hostname to prevent XSS
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-09 01:33:44 +02:00
Liangbin Lian
97d50d2c6b luci-theme-material: fix wrong active state on common prefix node
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-21 18:00:48 +08:00
Ansuel Smith
01cefed7f0
luci-theme-material: fix bigger button for combo-box
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-30 21:34:10 +01:00
Oldřich Jedlička
b03a508c6c luci-theme-material: Fix section title padding.
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-10-25 12:11:24 +01:00
Hannu Nyman
258e74c1c3 themes: remove deprecated reference to enabling SSH
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-08-16 22:19:37 +03:00
Florian Eckert
0024609a00 luci-theme-material: fix Makefile file mod
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-05-04 12:44:03 +02:00
Florian Eckert
1b875a610f luci-theme-material: remove useless logging output
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-05-04 12:43:59 +02:00
Chen Minqiang
fc150636b9 luci-theme-*: set mediaurlbase if it is the first time to be installed
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-03 21:44:28 +08:00
Jo-Philipp Wich
ccb7e4a4a7 themes: generalize indicator markup and styling
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-30 17:12:07 +02:00
Jo-Philipp Wich
5d7dc391d4 themes: ensure that data-page attribute is escaped
Fixes: #3757
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-15 17:48:40 +01:00
Jo-Philipp Wich
0130e2b08c themes: render menu even when not logged in
Ref: #3563
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-25 23:28:24 +01:00
Florian Eckert
71743a7ef6 luci-theme-material: fix button position on modal save
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-01-21 09:21:55 +01:00
Florian Eckert
1c49bda198 luci-theme-material: fix apply dropdown color
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-01-20 14:11:53 +01:00
Jo-Philipp Wich
185b84bc9d
Merge pull request #3401 from MartB/modal-heightfixv2
luci-theme-*: remove modal max-height #3383 v2
2019-12-25 17:58:06 +01:00
Jo-Philipp Wich
92eecedc8a luci-theme-material: render menu on client side
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-16 18:07:17 +01:00
MartB
c6122af7ea luci-theme-*: remove modal max-height #3383 v2
Signed-off-by: MartB <mart.b@outlook.de>
2019-12-10 17:26:10 +01:00
Jo-Philipp Wich
277053a5e9 luci-theme-material: mobile style fixes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-22 22:27:12 +02:00
Jo-Philipp Wich
5223c7c221 luci-theme-material: fix some severe styling issues
Add some CSS band aids to fix styling and positioning of hidden tab panes,
cbi maps in modal dialogs and nested cbi sections.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-22 19:33:34 +02:00
Martin Schiller
92069c1f74 luci-theme-material: show logo also on login page
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-08-29 14:17:33 +02:00