luci-theme-design: update to v5.2.6 (#194)

This commit is contained in:
gngpp 2023-02-27 11:06:37 +08:00 committed by GitHub
parent 3ace903967
commit d34fb3704e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 97 additions and 35 deletions

View File

@ -7,8 +7,8 @@ include $(TOPDIR)/rules.mk
LUCI_TITLE:=Design Theme LUCI_TITLE:=Design Theme
LUCI_DEPENDS:= LUCI_DEPENDS:=
PKG_VERSION:=5.2 PKG_VERSION:=5.2.6
PKG_RELEASE:=20230216 PKG_RELEASE:=20230226
include $(TOPDIR)/feeds/luci/luci.mk include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -15,7 +15,7 @@
--mainbg: #fff; --mainbg: #fff;
--bgwhite: #fff; --bgwhite: #fff;
--activeColor: #5ea69b; --activeColor: #5ea69b;
--activeBottom: #51c291 2px solid; --activeBottom: #5ea69b 2px solid;
--textColor: rgb(132,119,116); --textColor: rgb(132,119,116);
--borderColor: rgba(0,0,0,.15); --borderColor: rgba(0,0,0,.15);
--navbgColor: rgba(255, 255, 255, .7); --navbgColor: rgba(255, 255, 255, .7);
@ -48,7 +48,8 @@
--alertColor: #000000; --alertColor: #000000;
--alertBackground: rgb(230 230 230); --alertBackground: rgb(230 230 230);
--scrollbarColor:#d0d0d0; --scrollbarColor:#d0d0d0;
--ifaceboxBorderColor: #b8b8b8bd --ifaceboxBorderColor: #b8b8b8bd;
--ifaceboxFontColor: #1a1a1a;
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
@ -57,7 +58,7 @@
--bgwhite: #000; --bgwhite: #000;
--textColor: #fefefe; --textColor: #fefefe;
--activeColor: #5ea69b; --activeColor: #5ea69b;
--activeBottom: #51c291 2px solid; --activeBottom: #5ea69b 2px solid;
--borderColor: #2C2C3A; --borderColor: #2C2C3A;
--navbgColor: hsla(0, 0%, 7%, .8); --navbgColor: hsla(0, 0%, 7%, .8);
--navBorder: 1px solid #1c1c1e; --navBorder: 1px solid #1c1c1e;
@ -89,7 +90,8 @@
--alertColor: #ffffff; --alertColor: #ffffff;
--alertBackground: rgb(30 30 30); --alertBackground: rgb(30 30 30);
--scrollbarColor:#222; --scrollbarColor:#222;
--ifaceboxBorderColor: #636363bd --ifaceboxBorderColor: #636363bd;
--ifaceboxFontColor: #1a1a1a;
} }
} }
@ -118,9 +120,6 @@
font-family: 'Cocon-Regular-Font'; font-family: 'Cocon-Regular-Font';
src : url('../fonts/Cocon-Regular-Font.otf') format('opentype'); src : url('../fonts/Cocon-Regular-Font.otf') format('opentype');
} }
div{
font-family: 'HYk2gj';
}
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 4px; width: 4px;
@ -130,6 +129,9 @@ div{
border-radius: 2px; border-radius: 2px;
} }
div{
font-family: 'HYk2gj';
}
html { html {
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
@ -370,17 +372,20 @@ svg {
} */ } */
/* fix .cbi-section .cbi-section */ /* fix .cbi-section .cbi-section */
.cbi-section .cbi-section { .cbi-section .cbi-section {
margin: 10px; margin: 10px;
} }
/* fix node-services-vssr */ /* fix node-services-vssr */
.node-services-vssr .status-bar { .node-services-vssr .status-bar {
bottom:calc(50px + constant(safe-area-inset-bottom)); bottom:calc(50px + constant(safe-area-inset-bottom));
bottom:calc(50px + env(safe-area-inset-bottom)); bottom:calc(50px + env(safe-area-inset-bottom));
/* display: none; */ /* display: none; */
background-color: var(--navbgColor);
}
.node-services-vssr .container {
padding-bottom:calc(50px + constant(safe-area-inset-bottom));
padding-bottom:calc(50px + env(safe-area-inset-bottom));
} }
.node-services-vssr .ssr-button { .node-services-vssr .ssr-button {
@ -747,14 +752,14 @@ img[src*="/luci-static/resources/icons/loading.gif"] {
} }
.ifacebox-body img { .ifacebox-body img {
background-size: 22px 22px; background-size: 20px 20px;
padding: 0 0 0 22px; padding: 0 0 0 20px;
width:22px !important; width:20px !important;
height:22px !important; height:20px !important;
padding: 0 0 0 22px !important; padding: 0 0 0 20px !important;
} }
.ifacebox-head { .ifacebox-head {
/* background-color: #1096db !important; */ /* background-color: #337ab7 !important; */
border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0;
} }
@ -1487,6 +1492,7 @@ fieldset > table > tbody > tr:nth-of-type(odd) {
#memtotal > div > div { #memtotal > div > div {
background-color: var(--progressbar) !important; background-color: var(--progressbar) !important;
color: var(--progressbartxtColor) !important; color: var(--progressbartxtColor) !important;
border-radius: 3px;
} }
#swaptotal div div, #swaptotal div div,
@ -1582,7 +1588,6 @@ div [id*="cbi-wireless"] [id*="-__status"] table td small {
} }
/* fix node-status-routes */ /* fix node-status-routes */
.node-status-routes .cbi-section-node{ .node-status-routes .cbi-section-node{
max-height: 500px; max-height: 500px;
overflow-y: auto; overflow-y: auto;
@ -1590,7 +1595,6 @@ div [id*="cbi-wireless"] [id*="-__status"] table td small {
} }
/* fix multiple table */ /* fix multiple table */
table table { table table {
border: none; border: none;
} }
@ -1645,6 +1649,7 @@ td#__status-ifc-signal {
min-width: 80px; min-width: 80px;
padding: 0px 8px 0px 8px; padding: 0px 8px 0px 8px;
max-width: 160px; max-width: 160px;
border-radius: 8px;
height: 35px; height: 35px;
line-height: 35px; line-height: 35px;
} }
@ -1700,8 +1705,8 @@ form.inline + form.inline,
.cbi-input-reload, .cbi-input-reload,
.cbi-button-reload { .cbi-button-reload {
color: var(--bttextColor); color: var(--bttextColor);
background-color: rgb(0,171,232) !important; background-color: #337ab7 !important;
border-color: rgb(0,171,232) !important; border-color: #337ab7 !important;
} }
.cbi-button-link:hover, .cbi-button-link:hover,
@ -1713,10 +1718,11 @@ form.inline + form.inline,
.cbi-input-reload:hover, .cbi-input-reload:hover,
.cbi-button-reload:hover{ .cbi-button-reload:hover{
color: #fff !important; color: #fff !important;
background-color: #337ab7 !important; background-color: #6A82AE!important;
border-color: #337ab7 !important; border-color: #6A82AE !important;
} }
.cbi-input-apply, .cbi-input-apply,
.cbi-button-apply, .cbi-button-apply,
.cbi-button-edit { .cbi-button-edit {
@ -1736,7 +1742,6 @@ form.inline + form.inline,
} }
/* table */ /* table */
.tabs { .tabs {
margin: 15px 0; margin: 15px 0;
overflow-x: auto; overflow-x: auto;
@ -2462,12 +2467,12 @@ header > .container > .pull-right > * {
.node-system-packages .cbi-section-node .cbi-value-last > div { .node-system-packages .cbi-section-node .cbi-value-last > div {
border: none !important; border: none !important;
border-radius: 3px;
} }
.node-system-packages .cbi-section-node .cbi-value-last > div > div { .node-system-packages .cbi-section-node .cbi-value-last > div > div {
border: none !important; border: none !important;
border-radius: 3px;
} }
.node-system-packages .cbi-section-node .cbi-value-last:nth-last-child(1) { .node-system-packages .cbi-section-node .cbi-value-last:nth-last-child(1) {
@ -3188,11 +3193,6 @@ body.lang_pl.node-main-login .cbi-value-title {
display: unset !important; display: unset !important;
} }
.node-nlbw-usage table {
display: block;
overflow: auto;
}
/* fix node-status-realtime */ /* fix node-status-realtime */
.node-status-realtime .container { .node-status-realtime .container {
overflow:auto overflow:auto
@ -3228,4 +3228,31 @@ form[action="/cgi-bin/luci/admin/network/wireless_join"] input[class="cbi-button
width: 100% !important; width: 100% !important;
} }
/* fix luci-app-fileassistant botton style */
.fb-container .cbi-button {
border-radius: 8px;
margin: 3px 3px 3px 0;
height: unset !important;
}
/* fix luci-app-appfilter table overflow style */
.node-services-appfilter .cbi-section.cbi-tblsection {
overflow: auto;
}
/* update node-system-commands style */
.node-system-commands h3 {
text-transform: unset;
}
.node-system-commands .commandbox {
margin: 10px;
}
.node-system-commands .commandbox p {
word-break:keep-all;
white-space:nowrap;
}
.node-network-network .ifacebox strong{
color: var(--ifaceboxFontColor);
padding: 5px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -45,6 +45,32 @@
}) })
}); });
// Fixed scrollbar styles for browsers on different platforms
settingGlobalScroll();
$(document).ready(function() {
settingGlobalScroll();
})
$(window).resize(function () {
settingGlobalScroll();
});
function settingGlobalScroll() {
let global = $('head #global-scroll')
if ((/(phone|pad|pod|iPhone|iPod|ios|iOS|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i.test(navigator.userAgent))) {
if (global.length > 0) {
global.remove();
}
} else if (global.length == 0 ) {
var style = document.createElement('style');
style.type = 'text/css';
style.id = "global-scroll"
style.innerHTML="::-webkit-scrollbar { width: 4px; } ::-webkit-scrollbar-thumb { background: var(--scrollbarColor); border-radius: 2px;}"
$("head").append(style)
}
}
/** /**
* trim text, Remove spaces, wrap * trim text, Remove spaces, wrap
* @param text * @param text

View File

@ -1,7 +1,7 @@
{ {
"name":"Design", "name":"Design",
"short_name":"Design", "short_name":"Design",
"description":"Design for OpenWRT by 2smile.", "description":"Design for OpenWRT by gngpp.",
"start_url":"/", "start_url":"/",
"scope": "/", "scope": "/",
"orientation":"portrait", "orientation":"portrait",

View File

@ -134,9 +134,9 @@
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="black"> <meta name="theme-color" media="(prefers-color-scheme: dark)" content="black">
<meta name="application-name" content="<%=striptags( (boardinfo.hostname or "?") ) %>"> <meta name="application-name" content="<%=striptags( (boardinfo.hostname or "?") ) %>">
<meta name="apple-mobile-web-app-title" content="<%=striptags( (boardinfo.hostname or "?") ) %>"> <meta name="apple-mobile-web-app-title" content="<%=striptags( (boardinfo.hostname or "?") ) %>">
<meta name="msapplication-TileImage" content="<%=media%>/images/icon.png"/> <meta name="msapplication-TileImage" content="<%=media%>/images/android-chrome-512x512.png"/>
<link rel="icon" href="<%=media%>/images/icon.png" sizes="192x192"> <link rel="icon" href="<%=media%>/images/android-chrome-192x192.png" sizes="192x192">
<link rel="apple-touch-icon" sizes="192x192" href="<%=media%>/images/icon.png"> <link rel="apple-touch-icon" sizes="192x192" href="<%=media%>/images/apple-touch-icon.png">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes" /> <meta name="apple-touch-fullscreen" content="yes" />
@ -152,6 +152,15 @@
</style> </style>
<% end -%> <% end -%>
<script src="<%=resource%>/xhr.js?<%= ver.luciversion %>"></script> <script src="<%=resource%>/xhr.js?<%= ver.luciversion %>"></script>
<style title="text/css" id="global-scroll">
::-webkit-scrollbar {
width: 4px
}
::-webkit-scrollbar-thumb {
background: var(--scrollbarColor) ;
border-radius: 2px;
}
</style>
</head> </head>
<body class="lang_<%=luci.i18n.context.lang%> <%- if node then %><%= striptags( node.title ) %><%- end %> <% if luci.dispatcher.context.authsession then %>logged-in<% end %>"> <body class="lang_<%=luci.i18n.context.lang%> <%- if node then %><%= striptags( node.title ) %><%- end %> <% if luci.dispatcher.context.authsession then %>logged-in<% end %>">