Commit graph

618 commits

Author SHA1 Message Date
Yanlan Shen
eb3976c64a luci-theme-rosy: Fixed some table rounded display issues
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2019-01-10 11:59:45 +08:00
Yanlan Shen
fa407b036a luci-theme-rosy: Fixed table color matching problem
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2019-01-10 11:59:42 +08:00
Yanlan Shen
57dcdd2b84 luci-theme-rosy: (html)Change the scroll bar style, compatible with each bower
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2019-01-10 11:59:37 +08:00
Yanlan Shen
a5e1e86ba5 luci-theme-rosy: Change the scroll bar style, compatible with each browser
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2019-01-10 11:59:33 +08: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
91a73bebfb luci-theme-bootstrap: fix textarea height after CSS minification
Fixes #2378
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-16 15:08:05 +01:00
Yanlan Shen
3fd74316ab luci-theme-rosy: Fixed insufficient container container width
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-12-11 10:43:45 +08: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
Jo-Philipp Wich
357096d15f luci-theme-openwrt: add required CSS rules for new tabbing code
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-10 13:41:34 +01:00
Jo-Philipp Wich
1cdce0280a luci-theme-bootstrap: add required CSS rules for new tabbing code
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-10 13:41:34 +01:00
Jo-Philipp Wich
747e10bae6 luci-theme-openwrt: style tweaks
- Collapse table borders by default
 - Vertically align table cell content
 - Inherit font family and size for form widgets
 - Fix redundant horizontal padding for cell labels

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-10 13:41:34 +01:00
Jo-Philipp Wich
51dbb2756a luci-theme-bootstrap: dynlist style tweak
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-10 13:41:34 +01:00
Jo-Philipp Wich
1b26c91a08
Merge pull request #2334 from yglb/master
luci-theme-rosy: Fix related bugs displayed on the page
2018-12-07 00:12:18 +01:00
Jo-Philipp Wich
04e0657443
Merge pull request #2347 from shunjou/theme-material
luci-theme-material: partial style overhaul
2018-12-07 00:10:59 +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
Yanlan Shen
6aa8ab54ee luci-theme-rosy: Modify the code for the progress bar of the overview interface
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-12-03 15:14:14 +08:00
Yanlan Shen
c7bd4397fb luci-theme-rosy: Fixed bug with rounded corners and drop down boxes
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-12-03 15:08:11 +08:00
Yanlan Shen
6cb25970b8 luci-theme-rosy: Modify the color of the button's primary and secondary colors and the bug of the status-overview page.
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-12-03 15:08:11 +08:00
Jo-Philipp Wich
9a6e584449 luci-theme-bootstrap, luci-theme-openwrt: allow dynlist item content to wrap
Very long values without whitespace can easily overflow the dynlist item
container, so allow the browser to forcibly break such lines.

Reported-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-02 16:57:24 +01: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
shunjou
9603990cb1 luci-theme-material: remove obsolete header info
Signed-off-by: Shun Jou <shunjou@gmail.com>
2018-11-29 04:10:18 -05:00
brv phoenix
6dac41a9b4 luci-theme-material: add the missing modal/progressbar rules.
Signed-off-by: brv phoenix <feixuekaka1@gmail.com>
2018-11-28 19:27:46 +08:00
Jo-Philipp Wich
4fe427ebcd
Merge pull request #2329 from TDT-AG/pr/20181123-luci-theme-material
luci-theme-material: add missing css cbi-section-error definitions
2018-11-27 23:46:08 +01:00
Jo-Philipp Wich
7e2b21d9b4
Merge pull request #2335 from shunjou/material-favicon
luci-theme-material: add new favicon
2018-11-27 23:44:24 +01:00
Jo-Philipp Wich
9cd5f6befd luci-theme-bootstrap: allow tabmenus to wrap (#2333)
Allow the tab menu line to wrap around on narrow screens to fix the issue
reported in PR #2333.

Also add the .nowrap utility class to the Bootstrap theme while we're
touching it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-27 13:58:58 +01:00
shunjou
168d80aaa7 luci-theme-material: add new favicon
Also remove logo.png as it is unused.

Signed-off-by: Shun Jou <shunjou@gmail.com>
2018-11-26 21:31:30 -05:00
Jo-Philipp Wich
12ed0274a9 luci-base: CSS accessibility improvements for modal dialog
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-24 21:31:28 +01:00
Jo-Philipp Wich
c270d48cdd luci-theme-bootstrap: add responsive CSS
Add responsive CSS to improve the rendering on small screen devices.

Tested on Mobile Safari using an iPhone 5 and iPhone 6, ymmv for other
platforms.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-23 15:11:28 +01:00
Florian Eckert
57b8d305af luci-theme-material: add missing css cbi-section-error definitions
Add the missing error css class definitions.
Highlights the wrong inputs detected by the cbi validation function.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-23 13:17:41 +01:00
Jo-Philipp Wich
6a0c1d1ab6 luci-mod-status: move index and iptables page JS code into external files
Also adjust the Bootstrap and OpenWrt themes accordingly

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-22 13:07:33 +01:00
Jo-Philipp Wich
515562be27 luci-theme-bootstrap, luci-theme-openwrt: allow dynlist .add-item to expand
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-20 13:32:31 +01:00
Yanlan Shen
58c03a8a06 luci-theme-luci: Match css to implement related styles
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-11-19 14:09:15 +08:00
Yanlan Shen
94a562ccf3 luci-theme-rosy: Modifying the form does not fully display the bug of the dropdown box
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-11-19 14:09:15 +08:00
Jo-Philipp Wich
5dddb105d2 luci-theme-bootstrap: remove redundant rules
Drop rules specific to the old status page progress bars and rework the
cbi element rules to work independently of a parent form tag.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-16 21:11:34 +01:00
Jo-Philipp Wich
e69d05cac4 luci-theme-openwrt: modal display fixes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-15 23:00:34 +01:00
Jo-Philipp Wich
1c84826242 luci-theme-bootstrap: add modal/progressbar rules, cleanup
- Add rules for modal dialogs and progress bar widgets
 - Drop redundant, unused or obsolete rules
 - Add spin utility class

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14 20:46:04 +01:00
Jo-Philipp Wich
cbd0d7c5de luci-theme-openwrt: modal/progressbar rules, mobile improvements
- Add rules for modal dialogs and progress bar widgets
 - Increase button and input size on mobile devices
 - Convert pt to px units
 - Add label and h5 styles
 - Add common flash and spin utility classes

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14 20:46:04 +01:00
Jo-Philipp Wich
4791180eb3 luci-base, themes: dropdown behaviour improvements
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14 20:46:04 +01:00
Jo-Philipp Wich
fa391e4f96 luci-theme-openwrt: dropdown style tweaks
- Remove 2em min height, this looks out of place with the OpenWrt theme
- Only colorize invalid dropdown when not open
- Drop use of image background for invalid fields while we're at it

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14 20:46:04 +01:00
Jo-Philipp Wich
13e2cce2d9 luci-theme-bootstrap: add invalid style for dropdowns
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14 20:46:04 +01:00
Jo-Philipp Wich
aea8c89c0c luci-theme-{freifunk-generic,material,openwrt}: z-index fixes
Ensure that open dropdowns cover active tooltips.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14 20:46:04 +01:00
Jo-Philipp Wich
48181051ef luci-theme-bootstrap: z-index fixes
Lower z-index of header bar to allow tooltips and dropdowns to overlap it,
also increase the z-index of open dropdowns to ensure that they cover
active tooltip bubbles.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14 20:46:04 +01:00
Yanlan Shen
4d3d6c66d6 luci-theme-rosy: fixed typo
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-11-14 11:50:49 +08:00
Yanlan Shen
4335c50a2b luci-theme-rosy: Remove redundant statements
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-11-14 11:49:33 +08:00
Yanlan Shen
6caf05eee2 luci-theme-rosy: Bug fix for network-interfaces
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-11-09 15:06:52 +08:00
Yanlan Shen
a4e4f935e0 luci-theme-rosy: Fix resolution-related styles
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-11-09 15:06:45 +08:00
Yanlan Shen
641681fa32 luci-theme-rosy: Modify the layout of the header and footer
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-11-09 15:06:38 +08:00
Yanlan Shen
f67cd74f01 luci-theme-rosy: Add a background picture
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
2018-11-09 15:06:30 +08:00
Jo-Philipp Wich
9b20f7ac52 luci-theme-material: add invalid input class
Fixes #1070.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05 11:05:12 +01:00
Jo-Philipp Wich
7c78218339 luci-base, themes: rework dynlist and dropdown widgets
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05 11:05:12 +01:00
Jo-Philipp Wich
bd614de514 luci-theme-bootstrap: add flash animation
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05 11:01:45 +01:00
Jo-Philipp Wich
7f613be500 luci-base, themes: add tooltip helpers & styles
Add the required JS and CSS infrastructure to support rich hover/focus
tooltips for element.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05 11:01:45 +01:00
Jo-Philipp Wich
21a151ac1a themes: load client side translations
Extend the theme headers to include the translation string scripts,
allowing client side code to translate strings without server side
support.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05 11:01:45 +01:00
Jo-Philipp Wich
21d7dfeff3
Merge pull request #2246 from rosysong/rosy
theme: add initial commit for rosy theme
2018-11-02 14:06:03 +01:00
Rosy Song
cc95746778 theme: add initial commit for rosy theme
Signed-off-by: Rosy Song <rosysong@rosinson.com>
Signed-off-by: Yan Lan Shen <yanlan.shen@rosinson.com>
2018-10-29 20:09:01 +08:00
Stefan Weil
ec63339ae5 Add missing variable declarations in JavaScript code
This fixes errors reported by LGTM.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-10-28 22:38:20 +01:00
Simon Tretter
f46ad87750 luci-theme-material: Add main color variable
Signed-off-by: Simon Tretter <simon@mediaarchitectu.re>
2018-10-21 11:50:55 +08:00
Florian Eckert
8095ba5a2d luci-theme-material: fix css to show loading-img again
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-10-15 13:56:48 +02:00
Florian Eckert
0f8b5402a2 luci-theme-material: fix word wrap on german i18n for username
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-10-01 14:49:02 +02:00
Florian Eckert
5fc51693ac luci-theme-material: make font configurable
Move font selection into custom.css

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-10-01 14:46:37 +02:00
Jo-Philipp Wich
c79a2bbab7 luci-theme-bootstrap: enforce minimum width for IPv4 DHCP lease column
Fixes #2132.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-29 14:23:43 +02:00
Jo-Philipp Wich
82dea9ca30 themes: add data-page attribute to body elements
This is useful to write page specific CSS rules.

Also fix a missing space in the body CSS class name in the bootstrap theme
while we're at it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-29 14:21:28 +02:00
Jo-Philipp Wich
58d7ee8ab3 luci-theme-bootstrap: fix typo in admin node lookup
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-27 21:19:03 +02:00
Jo-Philipp Wich
72d4b62d25 luci-theme-material: do not double escape menu titles
Fixes #1410.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-27 21:17:08 +02:00
Jo-Philipp Wich
ce46437b30 luci-theme-bootstrap: do not double escape menu titles
Fixes #1410.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-27 21:17:07 +02:00
Florian Eckert
8a8c3ae57b luci-theme-material: fix partly hidden logout navbar item
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Signed-off-by: Konrad Kreitmair <kreitmair.konrad@web.de>
2018-09-26 15:32:06 +02:00
Florian Eckert
fa0658da5e luci-theme-material: add logo brand
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Signed-off-by: Konrad Kreitmair <kreitmair.konrad@web.de>
2018-09-26 15:31:34 +02:00
Florian Eckert
6f33e73e29 luci-theme-material: fix whitspaces and change mode
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-09-25 11:40:04 +02:00
Daniel F. Dickinson
6ec0353201 modules: Make luci-base sufficient to use luci apps
Per the discussion in https://github.com/openwrt/luci/issues/869, make
luci-base sufficient to login, logout, and review and apply or revert
uci changes.  This allows most luci-app-xxx to work without having
luci-mod-admin-full installed.

It has been tested with some apps and not luci-mod-admin-full, as well
as with luci-mod-admin-full (to make sure the usual case doesn't break).

Instead of creating a new module namespace (e.g. 'Base') we reduce the
opportunities for breakage by having luci-base take over the 'shell' of
the 'Administration' (admin/....) namespace.

Since admin is assumed by all current building LuCI components (including
Freifunk), this doesn't introduce the 'Administration' tab into any
situation where it would not already be present (but includes it where it
was before).

We also add a "Component not installed" page to avoid fatal errors and
backtrace when e.g. luci-mod-admin-full is not installed.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2018-09-19 20:08:19 +02:00
Jo-Philipp Wich
ef1ca5f26d
Merge pull request #2159 from TDT-AG/pr/20180918-luci-theme-material-css-customize
luci-theme-material: make colors configurable
2018-09-18 17:15:38 +02:00
Florian Eckert
19a0522a12 luci-theme-material: make colors configurable
The var() css function can be used to insert the value of a custom property.
A custom.css file is added to change the colors. This file will get included
in the cascade.css file.

The following colors could be costomized in the file costom.css.

--header-bg
--header-color
--menu-bg-color
--menu-color
--submenu-bg-hover
--submenu-bg-hover-active

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-09-18 14:38:29 +02:00
Ameer Dawood
818ce143f2
luci-theme-material: Monospace font for textarea elements
Signed-off-by: Ameer Dawood <ameer1234567890@gmail.com>
2018-09-14 12:52:33 +05:00
Jo-Philipp Wich
849d153851 treewide: rework uci change display
- Use native rpcd uci changes format instead of incompletely converting
   back and forth between the old and the new format
 - Rework uci changelog template to print the equivalent uci commands
   for the various changes
 - Rework theme headers to properly count the uncomitted changes
 - Rework theme CSS to properly style new changelog

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-08-13 09:23:22 +02:00
Ansuel Smith
327e284b74
luci-mod-admin-full: fix broken applyreboot page
This improve applyreboot page and fix problem with luci-nginx that doesn't refresh the page when the router reboot.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-08-08 10:11:12 +02:00
Jo-Philipp Wich
849a5bb54e
Merge pull request #2043 from Ansuel/materialfix
luci-theme-material: fix theme for applyreboot page changes
2018-08-07 17:50:34 +02:00
Ansuel Smith
35da63fa9a
luci-theme-material: fix theme for applyreboot page changes
This rename style.css to casade.css (like the other themes) and fix the css to display the header even in the applyreboot page

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-08-07 17:46:00 +02:00
Jo-Philipp Wich
176e246998 luci-theme-bootstrap: fix CSS regression in kernel/system log pages
An unrelated removed some crucial fixes due to improper rebasing.

Fixes: 7ba4eb1a4 ("luci-theme-bootstrap: add styling for input-adjacent buttons")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-31 17:26:25 +02:00
Jo-Philipp Wich
6d74a82bf6 luci-theme-openwrt: style tweaks for DSL status display
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-29 21:12:30 +02:00
Jo-Philipp Wich
765816d07d luci-theme-bootstrap: style tweak for DSL status display
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-29 21:12:30 +02:00
Jo-Philipp Wich
efc1a5261a luci-theme-openwrt: fix button placement quirk
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-23 15:09:10 +02:00
Jo-Philipp Wich
7ba4eb1a42 luci-theme-bootstrap: add styling for input-adjacent buttons
Also add styling for CBI column title references.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-23 14:27:49 +02:00
Jo-Philipp Wich
2287e79a5c luci-theme-openwrt: add styling for input-adjacent buttons
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-23 14:26:56 +02:00
Jo-Philipp Wich
e3f76c255a luci-theme-openwrt: support rendering tblsection cell descriptions
Add support for rendering the "data-description" attribute when rendering
decomposed tables for small screen resolutions.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-22 17:45:03 +02:00
Jo-Philipp Wich
a68006245d luci-theme-bootstrap: allow pointer events on readonly textareas and dropdowns
This is required to scroll and select text.

Fixes #1965
Fixes 887d0a685 ("luci-theme-bootstrap: cleanup CSS")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-19 16:53:16 +02:00
Jo-Philipp Wich
369553cd14 luci-theme-openwrt: fix another instance of misplaced page action button
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-18 14:49:02 +02:00
Jo-Philipp Wich
68dae07225 luci-theme-openwrt: fixes for page action button placement
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-18 12:05:05 +02:00
Jo-Philipp Wich
29f542fa62 luci-theme-bootstrap: various fixes
- Styling fixes for table hover rows, striping and title row coloring
- Fixes for page action button placement

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-18 12:05:05 +02:00
Jo-Philipp Wich
2787a52d6d luci-theme-bootstrap: small style fix for link buttons
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-15 15:17:32 +02:00
Jo-Philipp Wich
053682c4c3 luci-theme-bootstrap: margin fix for multiple wifs on status overview
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-13 16:31:14 +02:00
Jo-Philipp Wich
4381a27ef0 luci-theme-material: table and button style fixes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-13 12:39:26 +02:00
Jo-Philipp Wich
58cee79869 luci-theme-openwrt: cleanup CSS
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-13 09:38:31 +02:00
Jo-Philipp Wich
887d0a6859 luci-theme-bootstrap: cleanup CSS
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-13 09:38:25 +02:00
Jo-Philipp Wich
a0e5e8a9da luci-theme-bootstrap: compress color names, fix table striping
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-12 18:57:20 +02:00
Jo-Philipp Wich
0d96655f8b luci-theme-openwrt: consolidate font sizes and button styles
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-12 18:10:10 +02:00
Jo-Philipp Wich
9651be2953 luci-theme-material: table layout fixes and minor CSS corrections
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-09 11:51:43 +02:00
Jo-Philipp Wich
690f3f13ac luci-theme-bootstrap: add CSS fixes for IE 11
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-09 11:51:43 +02:00
Jo-Philipp Wich
bf084f7f95 luci-theme-openwrt: add CSS fixes for IE 11
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-09 11:51:43 +02:00
Jo-Philipp Wich
c0de036b31 treewide: always include cbi.js
Include cbi.js in the main header template like it is done for xhr.js and
remove the page specific includes.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-09 11:51:43 +02:00
Jo-Philipp Wich
e8a9a6695e luci-theme-bootstrap: minor style fixes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-03 18:49:00 +02:00
Jo-Philipp Wich
04e483d16a luci-theme-openwrt: minor mobile style fixes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-02 09:23:56 +02:00
Jo-Philipp Wich
2ee1873acc luci-theme-openwrt: add further style tweaks
- slightly increase button color saturation
 - unify margins and paddings

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-02 08:46:26 +02:00
Jo-Philipp Wich
532846c3d8 luci-theme-bootstrap: fix input width in table cells
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-29 08:57:22 +02:00
Jo-Philipp Wich
167d371305 luci-theme-material: fix switch status display
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-26 22:00:01 +02:00
Jo-Philipp Wich
2efcc53f2e luci-theme-openwrt: add some compatibility styles
Add a few CSS rules and general tweaks improving the look of legacy markup.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-26 14:59:37 +02:00
Jo-Philipp Wich
c32097d7d5 luci-theme-freifunk-generic: fix & modernize
Align theme with current markup, port missing CSS directives from OpenWrt
theme and drop a few outdated resources.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-26 14:31:39 +02:00
Jo-Philipp Wich
211d8bc55e luci-theme-bootstrap: render tblsection row titles
The Bootstrap theme lacked appropriate CSS yet to render section title
attributes.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-25 09:52:29 +02:00
Jo-Philipp Wich
e3d02b1a49 luci-theme-bootstrap: remove unused styles
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-25 09:42:10 +02:00
Jo-Philipp Wich
c4e25bebfc luci-theme-material: align CSS with markup changes
Add the bare minimum of changes to make the theme render correctly with the
latest markup, requires further refinement and tuning in the future.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-23 17:59:37 +02:00
Jo-Philipp Wich
b453624dce luci-theme-bootstrap: align CSS with markup changes
Add changes to make the theme render correctly with the latest markup,
requires further refinement and tuning in the future.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-23 17:59:31 +02:00
Jo-Philipp Wich
f714f684fa luci-theme-openwrt: rework and polish OpenWrt theme
- polish styling
 - move main menu to the left for large resolutions and collapse into
   dropdown header bar for small mobile resolutions
 - make tables responsive by utilizing extra attributes to turn rows
   into wrappable flexboxes for low resolutions
 - mostly get rid of button icon references and use a uniform color
   scheme for action-, positive, negative and neutral buttons

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-23 17:59:09 +02:00
Jo-Philipp Wich
9d48490729 luci-base: add markup, JS and CSS for new dropdown
This commit introduces the required code for a new, markup based dropdown
widget which can be used as a styleable alternative to select boxes or
radio/checkbox button groups.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-08 08:14:36 +02:00
Jo-Philipp Wich
fed315a5e3 themes: drop errorbox styles
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 19:09:51 +02:00
Jo-Philipp Wich
e3bc12da6d themes: unify no-password / no-javascript alert boxes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 18:57:32 +02:00
Jo-Philipp Wich
79d793dffe themes: adjust CSS for reworked apply widget
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 15:38:42 +02:00
Jo-Philipp Wich
879f90d15c luci-theme-material: add new style classes
Add new style classes required for status page changes.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-30 14:59:24 +02:00
Jo-Philipp Wich
7875d92c42 luci-theme-bootstrap: add new style classes
Add new style classes required for status page changes, also drop old
Internet Explorer compatibility script and vendor prefixed properties.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-30 14:59:24 +02:00
Jo-Philipp Wich
f8221b9825 luci-theme-openwrt: add new style classes
Add new style classes required for status page changes, also drop old
Internet Explorer compatibility CSS.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-30 14:59:24 +02:00
Jo-Philipp Wich
5e37b724c4
Merge pull request #1827 from Ansuel/luci-map
luci-theme-material: upgrade jquery
2018-05-28 15:19:30 +02:00
Jo-Philipp Wich
97a640c836 themes: add forward-compatibility CSS
Subsequent changes will largely replace tables with div based markup, so
add forward compatibility style rules to keep the rendering intact.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-28 15:18:45 +02:00
Ansuel Smith
2f0c07a2c7
luci-theme-material: upgrade jquery
This upgrade jquery to latest version and solve 404 error for the useless .map file. Also it's 85kb instead of 97kb

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-05-26 18:58:45 +02:00
Jo-Philipp Wich
65479e3236 themes: fix CSS class of uci change indicator
The previous commit incorrectly added a new class attribute without
considering existing ones.

Fixes 736d8fee4 ("themes: add common class to uci change indicator")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-26 09:30:11 +02:00
Jo-Philipp Wich
736d8fee47 themes: add common class to uci change indicator
Add a common CSS class name to the change indicator and modify the openwrt.org
theme to hide it when no changes are present, similar to all other themes.

This is needed for upcoming uci apply handling changes to be able to auto-hide
the indicator without page reload after an apply.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-26 08:26:30 +02:00
Jo-Philipp Wich
731ed77c0b treewide: improve handling of page redirections in uci change views
Instead of passing the full LuCI request url, pass the relative resolved
request path instead and filter the received value through the lookup()
dispatcher function to only allow paths to actual internal pages.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-05 23:03:01 +02:00
Florian Eckert
2729f128c8 luci-theme-material: add missing css classes
* Add missing css class danger
* Add missing css class success
* Update background color for css class warning

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-03-23 10:31:46 +01:00
Quirin Hofstaetter
408f45aef3 luci-theme-bootstrap: add license tag
Signed-off-by: Quirin Hofstaetter <qh@dev.tdt.de>
2017-06-13 13:40:30 +02:00
Jo-Philipp Wich
cdc22eb39d luci-theme-freifunk: fix a few broken translation directives
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-30 23:07:51 +02:00
lutty
9a067e896d fix some bug and sync some code from luci-theme-bootstrap
Signed-off-by: lutty <lutty@lutty.me>
2017-05-02 12:17:24 +08:00
Florian Eckert
823d3cc86c luci-theme-boostrap: add JavaScript warning if disabled
Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
2017-02-22 10:13:17 +01:00
Florian Eckert
572e5d871e luci-theme-openwrt: fix JavaScript nameing
Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
2017-02-22 10:10:57 +01:00
Florian Eckert
f5a5f6cb92 luci-theme-freifunk-generic: fix JavaScript naming
Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
2017-02-22 10:10:57 +01:00
Jo-Philipp Wich
d0bf6489e9 luci-theme-bootstrap: tune default style select boxes
The previous styling made select dropdowns look like disabled text input
fields on Chrome browsers.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-02 11:59:21 +01:00
Arjen de Korte
c42b4a3bf9 luci-theme-bootstrap: fix minor CSS errors
Signed-off-by: Arjen de Korte \<build+luci@de-korte.org\>
2016-12-10 22:09:50 +01:00
Hannu Nyman
f7ec630913 luci-theme-material: remove link to distro repo from footer
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-12-10 14:26:34 +02:00
arjendekorte
d4c31c5c90 Update cascade.css
The linear-gradient function syntax uses 'to bottom' instead of 'top' for a gradient from top to bottom.
2016-12-05 16:31:32 +01:00
Jo-Philipp Wich
34c2eca4fc luci-theme-bootstrap: add missing CSS class
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-08-18 09:18:56 +02:00
Hsing-Wang Liao
c44f04952b luci-theme-bootstrap: Remove jql.min.js which does not exist
Fix 404 error

Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
2016-05-31 13:58:39 +08:00
Shuanglei Tao
d16a745b86 luci-theme-material: remove the double slash (//) from menu url
Signed-off-by: Shuanglei Tao <tsl0922@gmail.com>
2016-02-26 00:40:46 +08:00
Lutty Yang
aede64fd78 luci-theme-material: Rasterization Code
Signed-off-by: Lutty Yang <lutty@wcan.in>
2016-02-18 20:34:30 +08:00
Lutty Yang
c63f8be459 luci-theme-material: Decrease font and spacing
1) Decrease font and spacing
2) Synchronized to the LUCI version 99f5d4e

Signed-off-by: Lutty Yang <lutty@wcan.in>
2016-02-18 20:29:19 +08:00
Jo-Philipp Wich
5e113afdd7 luci-theme-openwrt: untangle & refactor header.htm code
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-10 13:41:06 +01:00
Jo-Philipp Wich
76041e7f99 luci-theme-openwrt: add some style fixes for interface badges
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-10 00:47:37 +01:00
Hannu Nyman
c2cf5d1855 Fix embedded links: github instead of luci.subsignal.org
Fix links to point into Github repo instead of luci.subsignal.org
 - the hint to file a bug in dispatcher
 - footers of Bootstrap and Firefunk themes

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-02 12:07:16 +02:00
Jo-Philipp Wich
8eaac4b637 Use numeric prefixes for uci-defaults scripts
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-01-27 16:50:19 +01:00
Jo-Philipp Wich
c1f7cb36b8 luci-theme-bootstrap: add new utility class for table valign, minor tweaks
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-01-20 16:59:06 +01:00
Jo-Philipp Wich
c57d60e3e6 luci-theme-bootstrap: css fix for map level tabs
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-01-19 11:00:15 +01:00
Jo-Philipp Wich
1600b600dd luci-theme-bootstrap: style fixes for map level tabs and disabled buttons
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-01-18 11:06:35 +01:00
Jo-Philipp Wich
b3c69b123a luci-theme-bootstrap: fix menu url generation (#625)
Also untangle Lua code and markup for better readability, use tabs for
indentation and build_url() to construct paths instead of concatenating
them manually.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-01-17 18:02:32 +01:00
Shuanglei Tao
c2e6ed898a luci-theme-material: set default font-size to 13px
Ref: https://developer.mozilla.org/en-US/docs/Web/CSS/font-size#Rems

Signed-off-by: Shuanglei Tao <tsl0922@gmail.com>
2015-12-27 20:21:02 +08:00
Hannu Nyman
2a9b2107ba Merge pull request #522 from LuttyYang/master
luci-theme-material: fix some style bugs
2015-10-24 09:33:42 +03:00
Lutty Yang
1328b89ef8 luci-theme-material: fix some style bugs
Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-10-24 10:14:11 +08:00
Hannu Nyman
a19f97f7ca Merge pull request #521 from LuttyYang/master
luci-theme-material: Synchronized to the LUCI version f9e590a
2015-10-23 20:21:01 +03:00
Hannu Nyman
8f97c6c15b Revert "luci-theme-material: do not infer login state from url (#520)"
This reverts commit f9e590aa47
in order to enable a clean merge of the PR #521 from the theme author.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-10-23 20:16:04 +03:00
Lutty Yang
8296a47c1a luci-theme-material: try find current position by using lua code
thanks for jow

Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-10-23 20:51:12 +08:00
Lutty Yang
9098b20650 luci-theme-material: Synchronized to the LUCI version f9e590a
Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-10-23 12:51:07 +08:00
Jo-Philipp Wich
f9e590aa47 luci-theme-material: do not infer login state from url (#520)
Checking for `;` in the url is no good indicator whether a user is logged in,
instead query the dispatcher and set a `logged-in` CSS class on the `<body>`
element if a session exists.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-22 21:08:22 +02:00
Hannu Nyman
e8349fbfdf Merge pull request #513 from LuttyYang/master
luci-theme-material: PR from Version 0.2.11
2015-10-13 18:15:05 +03:00
Lutty Yang
780778e6f9 luci-theme-material: PR from Version 0.2.11
Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-10-13 23:07:16 +08:00
Jo-Philipp Wich
9b75d8ec36 luci-theme-bootstrap: add redir parameter to uci change menu
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-06 22:21:48 +02:00
Jo-Philipp Wich
36f133f946 luci-theme-material: add redir parameter to uci change menu
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-06 22:21:36 +02:00
Hannu Nyman
d0f15d9804 Merge pull request #503 from LuttyYang/master
luci-theme-material: fix some style bug in LUCI newest version
2015-10-06 15:18:41 +03:00
Lutty Yang
7567f2d01f luci-theme-material: fix some style bug in LUCI newest version
Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-10-06 20:14:27 +08:00
Jo-Philipp Wich
8023fb9c43 Merge pull request #501 from LuttyYang/master
luci-theme-material: PR from version 0.2.6
2015-10-05 20:29:41 +02:00
Lutty Yang
a5ae384c8f luci-theme-material: PR from version 0.2.6
PR from version 0.2.6

Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-10-05 22:01:42 +08:00
Hannu Nyman
60e2148d70 themes: remove freifunk-bno theme
Remove the freifunk-bno theme as the bno profile itself was removed.
Discussion in https://github.com/openwrt/luci/pull/471

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-09-29 11:44:16 +03:00
Lutty Yang
5a0c3bbfa9 luci-theme-material: add button select input theme
add button select input theme

Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-09-20 12:08:44 +08:00
Lutty Yang
fea55f75c7 luci-theme-material: add some new features and fix some bugs
add footer and loading animation and auto focus switches
compact Fonts

Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-09-19 17:22:54 +08:00
Lutty Yang
cf0623f4f5 luci-theme-material: fix font size bug
fix "textarea font-size too big in firefox"

Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-09-18 16:22:39 +08:00
Lutty Yang
e04e263adf luci-theme-material: fix Polish text longer bug
Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-09-18 13:51:15 +08:00
Lutty Yang
2237aab76b luci-theme-material: fix some bug
fixed "logout" text theme error and "unsaved changes" page dislocation.

Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-09-18 11:32:44 +08:00
Lutty Yang
6c1a2e3483 luci-theme-material: fix no password set, Luci displays information is illegible.
Fixed the visibility of "no password set" warning.

Signed-off-by: Lutty Yang<lutty@wcan.in>
2015-09-17 21:03:01 +08:00
Lutty Yang
c332c66031 Material is a clean HTML5 theme for LuCI. It is based on luci-theme-bootstrap and MUI
Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-09-17 16:19:48 +08:00
Lutty Yang
cdf3122db2 fix path error 2015-09-16 22:02:21 +08:00
Lutty Yang
97d3497c46 fix path error 2015-09-16 21:30:50 +08:00
Lutty Yang
b825a140fd init Material Design theme 2015-09-16 19:59:17 +08:00
Jo-Philipp Wich
31e7adea63 Merge pull request #333 from legendtang/master
themes/bootstrap: add media queries to bootstrap-theme for better responsive UI on mobile devices
2015-03-10 18:55:15 +01:00
Legend Tang
291834e707 theme/bootstrap: add a mssing class style in form section (#298)
NOTE: three <br /> in some luci-app's cbi-tab-descr section which help
to workaround must be removed.
2015-03-01 01:20:33 +08:00
Legend Tang
d6b0448339 add media queries for better responsive UI on mobile devices
This is for modern browsers only
2015-02-28 23:08:26 +08:00
Manuel Munz
8b123df287 themes/freifunk-generic: fix error with version string display in header on BB 2015-02-19 20:20:31 +01:00
Christian Schoenebeck
55ab4e4ce2 luci-themes: luci.main.mediaurlbase not set correctly
Currently by default theme Bootstrap is installed but
luci.main.mediaurlbase (it holds the current active theme) still has
openwrt.org set.
I did not find the mechanism how LuCI starts Bootstrap theme but the
installation should set luci.main.mediaurlbase correctly.

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-01-19 21:08:03 +01:00
Jo-Philipp Wich
30d45d0c0e themes: fix load number formatting
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-17 15:17:42 +01:00
Jo-Philipp Wich
4abf1caa3f luci-theme-openwrt: fix version display
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-17 00:40:31 +01:00
Jo-Philipp Wich
41d2b33087 Update my email addresses in the license headers
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-16 23:49:44 +01:00
Jo-Philipp Wich
7a3493b1f7 Globally reduce copyright headers
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-16 23:38:38 +01:00
Jo-Philipp Wich
daee4a650e themes: require luci.version directly
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-16 21:40:49 +01:00
Jo-Philipp Wich
921df0f3fc luci-theme-freifunk-generic: switch to nixio.fs
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-15 15:09:02 +01:00
Jo-Philipp Wich
bfbc7f4bdf themes: eliminate uses of luci.sys.loadavg()
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-15 14:26:27 +01:00
Jo-Philipp Wich
50b258a1d4 Remove obsolete ipkg directories
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:31:40 +01:00
Jo-Philipp Wich
1bb4822dca Rework LuCI build system
* Rename subdirectories to their repective OpenWrt package names
 * Make each LuCI module its own standalone package
 * Deploy a shared luci.mk which is used by each module Makefile

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:26:20 +01:00
Freddy Leitner
ae90464447 Update cascade.css
Make submenus accessible to screen readers
2014-10-13 17:26:23 +09:00
David Heidelberger
65dbd8527d themes/bootstrap: make theme usable on touchscreen
When using this theme on touchscreen, after selecting menu it won't
allow me select submenu selection. It directly start loading menu
section (unnecessary, because it's always first link in subsection).
It work only at moment, when you are really fast, which is annoying.

Signed-off-by: David Heidelberger <david.heidelberger@ixit.cz>
2014-10-10 21:28:47 +02:00
Jo-Philipp Wich
3ebb519411 themes/bootstrap: add missing styles for server side validation errors
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-07-01 11:09:33 +00:00
Jo-Philipp Wich
7043c30e0e build: introduce luci-base
Merges libs/core, libs/ipkg, libs/web, libs/sys, libs/sgi-cgi, libs/sgi-uhttpd,
modules/admin-core, themes/base and protcols/core into modules/base and renames
luci-lib-core to luci-base.
2014-06-11 13:29:05 +00:00
Jo-Philipp Wich
29b3a87de2 themes/bootstrap: fix css issue with input fileds within zonebadges (#556) 2013-12-03 15:51:54 +00:00
Manuel Munz
2598a2cfd1 themes/freifunk-generic: Fix invalid html 2013-09-19 17:19:17 +00:00
Manuel Munz
b7de5ce7c1 themes/bootstrap: Fixes for mobile devices: add initial scale, don't show hostname in header, partly fixes #481 2013-01-28 22:49:59 +00:00
Manuel Munz
cb178921da themes/freifunk-generic: minor style fixes, add some space around header logo and header_right 2013-01-21 13:34:12 +00:00
Manuel Munz
1edd63045c themes/freifunk-generic: Improve display on mobile devices, remove useless css from mobile.css 2013-01-21 09:39:51 +00:00
Jo-Philipp Wich
c369ef0f3d themes/bootstrap: another round of css fixes 2013-01-04 19:55:54 +00:00
Jo-Philipp Wich
3fce9b3a32 themes/bootstrap: fix a small style quirk observed on firewall overview page 2013-01-04 16:25:06 +00:00