Commit graph

99 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
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
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
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
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
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
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
Anton Kikin
5d26fec0bf Fix a overview page style issue for various themes
Fixed a overview page style issue with interface boxes for
bootstrap, material and rosy themes.

The issue only appears in the Chrome browser and lies in the
fact that the block with the device name and MAC address gets
out of the  interface block.

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-06-28 19:04:22 +03:00
Florian Eckert
74d2b24197 luci-theme-material: fix checkbox css StaticList view
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-06-04 15:16:54 +02:00
shunjou
7a2085a8e5 luci-theme-material: icons and other changes
* Remove excess font dependency
* Retain two glyphs as svg
* Store svg icons externally
* Add logout icon
* Replace spaces with tabs in script
* Various minor fixes

Signed-off-by: Shun Jou <shunjou@gmail.com>
2019-04-07 03:05:36 -04:00
shunjou
731a2d3a0f luci-theme-material: correct main menu color variable
* Also declare default color above as fallback

Signed-off-by: Shun Jou <shunjou@gmail.com>
2019-04-07 03:04:48 -04:00
Florian Eckert
e77430d8bb luci-theme-material: fix loading view on href
After opening an external hyperlink in a new browser tab, LuCI hangs in the
load screen. This commit will fix this issue.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-02-27 14:03:56 +01:00
shunjou
6ab3771e9d luci-theme-material: fix firewall table style
Signed-off-by: Shun Jou <shunjou@gmail.com>
2019-01-30 11:24:35 -05:00
shunjou
9375fbe86d luci-theme-material: various css changes
* Improve dropdown menu indicators
* Remove border on code
* Compensate for occasional log overflow
* Restrict webkit scrollbar style from mobile

Signed-off-by: Shun Jou <shunjou@gmail.com>
2019-01-29 18:46:47 -05:00
Florian Eckert
280c55b9ad luci-theme-material: make top level menu fontcolor configurable
If you change the color of the submenues then the colors of the toplevel
should also be changed into the same color.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-12-20 14:46:31 +01:00
Jo-Philipp Wich
5d90e704ef luci-theme-{freifunk-generic,material,rosy}: fixup tab CSS
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-10 13:43:30 +01:00
shunjou
8732a186cb luci-theme-material: make header logo link to main overview
Signed-off-by: Shun Jou <shunjou@gmail.com>
2018-12-05 09:29:29 -05:00
shunjou
dba2462fe1 luci-theme-material: partial style overhaul
* Restore theme to near original style
* Properly declare variable fallbacks
* More consistent table and border styling
* Improve responsive design scaling
* Add static ripple effect to sidebar menu
* Style command output as terminal
* Comb coding style and widespread cleanup
* Various other improvements and fixes

Signed-off-by: Shun Jou <shunjou@gmail.com>
2018-12-05 09:29:24 -05:00
shunjou
ba6f7b6d33 luci-theme-material: optimize brand logo
Signed-off-by: Shun Jou <shunjou@gmail.com>
2018-11-29 04:10:38 -05:00