Commit Graph

135 Commits

Author SHA1 Message Date
Joshua Criss
9cccae92ee luci-theme-bootstrap: update -webkit-appearance
Compliment '-webkit-appearance'
with 'appearance', as it is
non-standard and has since
been succeeded by 'appearance',
accepted by all baseline browsers.

Future consideration to then
remove '-webkit-appearance'.

Signed-off-by: Joshua Criss <owlsy@outlook.com.au>
2026-04-04 16:23:59 +02:00
Joshua Criss
9e4058cdca luci-theme-bootstrap: refining hide/show buttons
Change mouse icon from text cursor to pointer.
Smaller buttons on larger screens.
Slightly fade "show" button.
Remove fade when hovered.

Signed-off-by: Joshua Criss <owlsy@outlook.com.au>
2026-04-02 16:11:18 +02:00
Joshua Criss
ec33f41105 luci-theme-bootstrap: match footer with header
Match footer with header
padding left and right so they are
aligned (header uses 1180px,
but footer was using 940px).

Signed-off-by: Joshua Criss <owlsy@outlook.com.au>
2026-04-02 16:09:00 +02:00
Paul Donald
94da6ead86 luci-base: restore titles class
follow-up to 720c96ce5b

While ::before CSS styling has been deactivated, and
'content' removed, cbi-value-first-field is a bit
ambiguous. So, restore cbi-section-table-titles, and
replace the ::before tags in CSS.

Remove also the data-title for title rows. We already
insert titles for named headers and rows via HTML and
not via CSS after the mentioned commit.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2026-02-02 18:22:15 +01:00
Ramon Van Gorkom
720c96ce5b luci-base: make some tables better searchable
This changes the "name" in specific tables from being painted to
being rendered. This allows the use of "ctrl-f" in browsers to e.g.
search for firewall rule names.

Closes https://github.com/openwrt/luci/issues/7708
Signed-off-by: Ramon Van Gorkom <Ramon00c00@gmail.com>
Link: https://github.com/openwrt/luci/pull/8191
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2026-01-23 04:10:13 +01:00
Paul Donald
7f0c172ee1 luci-theme: alignment fixes
These help to align read-only items with their title elements.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2026-01-18 18:14:40 +01:00
Paul Donald
bf8fe5e6ea luci-theme-bootstrap: partial revert of monospace changes
follow-up to 3c3a5e2b1a

Retain original monospace properties since those are handled by the system
anyway.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-12-03 23:34:57 +01:00
Akihiro Nagai
3c3a5e2b1a luci-theme-bootstrap: fall back to system font stack with CSS custom properties
Replace hardcoded font-family declarations with CSS custom properties
(--font-sans, --font-serif, --font-mono) that fall back to system UI fonts.

Signed-off-by: Akihiro Nagai <bashing.tremors_0f@icloud.com>
2025-12-03 22:17:50 +01:00
Paul Donald
6e263428bd luci-mod-status: partial revert of styling changes
follow-up to 788e47034b

Some of the CSS changes have knock-on effects and change behaviour in
other display areas, especially when the CSS is minified.

Simplified to change between label flavours on hide/show status.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-10-21 16:25:47 +02:00
Andy Chiang
91a94ce360 luci-theme-bootstrap: add width for localtime
set an appropriate width for #localtime

Signed-off-by: Andy Chiang <AndyChiang_git@outlook.com>
2025-10-20 20:40:46 +02:00
Christian Marangi
788e47034b luci-mod-status: add support to show/hide index cards
Add support to show/hide index cards. A card's state is saved using the
browser localstorage and its state is restored on page reload/relogin.

Rework the pool function to check and skip loading of hidden cards.

Rework themes to address new button position.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
[ changed tabs in CSS ]
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-10-02 15:11:51 +02:00
Dávid Benko
65c1075b86 themes: scale down icons for network interfaces
Many LuCI icons doubled in size during migration to vector graphics
in commit ae5d91da90 (16px to 32px).

Sizing of their instances is mostly controlled by CSS, but there's
an exception - network interface boxes of "Interfaces" page in LuCI.
Current CSS doesn't specify any particular size requirements to follow,
so the icons just scale with the images served, thus effectively
doubling in width and height compared to state before the vectorization
commit. Such a big icons look odd and take up too much space, especially
for bridge interfaces with many ports.

Instead of reverting to the original 16×16px, this commit proposes
compromise of 24×24px as most of other icons within LuCI became a bit
bigger as well.

Signed-off-by: Dávid Benko <davidbenko@davidbenko.dev>
2025-09-29 17:25:45 +02:00
Paul Donald
4d5ac5b3e9 themes: remove -moz selectors
Firefox newer than v88 complains with:

 Unknown pseudo-class or pseudo-element '-moz-focus-inner'.
 Ruleset ignored due to bad selector.

See: https://developer.mozilla.org/en-US/docs/Web/CSS/::-moz-focus-inner

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-07-30 14:49:54 +02:00
Marko Mäkelä
75a612ae63 luci-theme-bootstrap: global darkmode graphs
Instead of enumerating each SVG graph that the dark mode is applicable to,
apply --background-color-high to each SVG element that is a child of
<div style="…"> and --text-color-highest to each LINE inside such SVG.

This allows dark mode to work in all SVG widgets by default, in any
current or future LuCI component.

Signed-off-by: Marko Mäkelä <marko.makela@iki.fi>
2025-06-30 02:20:02 +02:00
Paul Donald
ae5d91da90 treewide: vectorise iconography
Clear, crisp, resolution independent vector graphics replace the trusty
microscopic PNG. Some minor CSS changes were needed to constrain images
in some locations to make sure they don't consume too much space.

Iconography taken from Mate desktop theme with minor adjustments:

https://github.com/mate-desktop/mate-icon-theme/

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-06-12 18:55:53 +02:00
Paul Donald
46c27a05c5 luci-theme-*: layout improvements
follow-up to 1be1deb9ec

bootstrap now utilizes more screen width for main content

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-06-10 16:34:48 +02:00
Paul Donald
37262790c1 luci-theme-*: layout improvements
follow-up to 1be1deb9ec

bootstrap now utilizes more screen width for main content

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-06-10 14:57:10 +02:00
Paul Donald
1be1deb9ec luci-theme-*: layout improvements
bootstrap now utilizes more screen width for main content

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-06-08 22:59:41 +02:00
Paul Donald
76fa3036a2 luci-theme-*: wrap span tags, fixes badge text
The nowrap can be a bit obnoxious when available layout space is
limited. Wrap.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-06-08 22:56:40 +02:00
Paul Donald
9157254059 luci-theme: fix some dynamic layout issues
Implement a dynamic menu item width to allow item unwrapped and visible:
'min-width: max-content;' or 'max-width: max-content;'

Remove IE hacks and fix a console error for -webkit-scrollbar-thumb

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-04-23 14:03:57 +02:00
Jyn
8f61f1616a luci-theme-bootstrap: zone-forwards wrap
Signed-off-by: Jyn <pvp4eek@gmail.com>
2025-04-14 15:19:35 +02:00
Florian Eckert
046a121087 treewide: set css tag flex-wrap to wrap buttons in modal view
In CSS, the flex-wrap property is used in a flex container to control
how flex items are laid out when there is not enough space in a single
line.

If a modal is displayed on small screens, the buttons are not wrapped. They
remain on one line. This breaks the layout and does not look good.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2025-03-06 11:21:32 -06:00
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
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
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
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
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
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
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
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
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
Santiago Kozak
d94a7285e5 luci-theme-bootstrap: File input background color
Remove the white background color for the file input elements, this way it'll use the default color defined for input elements, matching the light/dark theme.

Signed-off-by: Santiago Kozak <santikzk1406@gmail.com>
2023-03-26 06:31:10 -03:00
Liangbin Lian
7a023b3245 luci-theme-bootstrap: set scroll-margin-top for all elements
so we can use element.scrollIntoView() with fixed header

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
2023-03-17 16:59:45 +08:00
Jo-Philipp Wich
f416c27b90 luci-theme-bootstrap: minor style fixes
- Apply CSS reset to before/after pseudo elements as well and fix
   resulting shifted offsets
 - Apply focus highlight to select elements too
 - Improve radio button styling

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-02-07 10:09:42 +01:00
Jo-Philipp Wich
56a737ec53 luci-theme-bootstrap: add focus indication for tabs
Underline the link text if a tab has keyboard focus in order to give a
visual indication of the focus state.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-02-05 20:22:44 +01:00
Jo-Philipp Wich
c19020b2a4 luci-theme-bootstrap: various style tweaks
- Make control-group containers flex and ensure proper spacing between
   elements, fixes e.g. unwanted break for reveal/hide password button
   on narrow mobile views

 - Decrease top margin of modal popups

 - Fix displaying cell titles on mobile wrapped table rows

 - Tune mobile flex table styles

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-05-17 15:09:25 +02:00
Jo-Philipp Wich
c40dd71b84 luci-theme-bootstrap: use medium dark text color for version footer
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-05-06 13:42:54 +02:00
Jo-Philipp Wich
8e09f1833b luci-theme-bootstrap: fix incorrect wrap arounds in nested cbi sections
Fixes: #5743
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-03-25 11:49:57 +01:00
Jo-Philipp Wich
06b351722e luci-theme-bootstrap: add table column sort indicators
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-02-24 23:45:18 +01:00
Jo-Philipp Wich
edbde448b8 luci-theme-bootstrap: fix display glitch with combo buttons in row actions
Fixes: #5693
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-02-21 23:42:16 +01:00
Jo-Philipp Wich
1a9afa2a90 luci-theme-bootstrap: add bottom margin to log views
Prevent the log output textareas to touch the footer border.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-12-01 15:09:44 +01:00
Jo-Philipp Wich
e0888d70a9 luci-theme-bootstrap: prevent hiding header bar on long vertical scrolls
Ref: b11a7d8e49 (commitcomment-60968071)
Fixes: 8055acc9be ("luci-theme-bootstrap: overhaul styles")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-11-27 19:50:27 +01:00
Jo-Philipp Wich
b11a7d8e49 luci-theme-bootstrap: various style corrections
- Add proper top and bottom margin for tab descriptions
 - Allow flex wrapping for cbi-value rows
 - Ensure that nested table/grid sections always take the full width
 - Make table/grid section row action buttons are as narrow as possible

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-11-22 09:43:12 +01:00
Jo-Philipp Wich
4720a025e8 luci-theme-bootstrap: fix cbi-value caption alignment
Since the removal of the clearfix styles, overlong captions will displace
subsequent input field rows.

Fix the issue by replace floating label + field margin with flexbox styles.

Fixes: #5535
Fixes: 8055acc9be ("luci-theme-bootstrap: overhaul styles")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-11-21 23:03:49 +01:00