luci-theme-design: update to v5.2.6 (#194)
@ -7,8 +7,8 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=Design Theme
|
||||
LUCI_DEPENDS:=
|
||||
PKG_VERSION:=5.2
|
||||
PKG_RELEASE:=20230216
|
||||
PKG_VERSION:=5.2.6
|
||||
PKG_RELEASE:=20230226
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
--mainbg: #fff;
|
||||
--bgwhite: #fff;
|
||||
--activeColor: #5ea69b;
|
||||
--activeBottom: #51c291 2px solid;
|
||||
--activeBottom: #5ea69b 2px solid;
|
||||
--textColor: rgb(132,119,116);
|
||||
--borderColor: rgba(0,0,0,.15);
|
||||
--navbgColor: rgba(255, 255, 255, .7);
|
||||
@ -48,7 +48,8 @@
|
||||
--alertColor: #000000;
|
||||
--alertBackground: rgb(230 230 230);
|
||||
--scrollbarColor:#d0d0d0;
|
||||
--ifaceboxBorderColor: #b8b8b8bd
|
||||
--ifaceboxBorderColor: #b8b8b8bd;
|
||||
--ifaceboxFontColor: #1a1a1a;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@ -57,7 +58,7 @@
|
||||
--bgwhite: #000;
|
||||
--textColor: #fefefe;
|
||||
--activeColor: #5ea69b;
|
||||
--activeBottom: #51c291 2px solid;
|
||||
--activeBottom: #5ea69b 2px solid;
|
||||
--borderColor: #2C2C3A;
|
||||
--navbgColor: hsla(0, 0%, 7%, .8);
|
||||
--navBorder: 1px solid #1c1c1e;
|
||||
@ -89,7 +90,8 @@
|
||||
--alertColor: #ffffff;
|
||||
--alertBackground: rgb(30 30 30);
|
||||
--scrollbarColor:#222;
|
||||
--ifaceboxBorderColor: #636363bd
|
||||
--ifaceboxBorderColor: #636363bd;
|
||||
--ifaceboxFontColor: #1a1a1a;
|
||||
}
|
||||
}
|
||||
|
||||
@ -118,9 +120,6 @@
|
||||
font-family: 'Cocon-Regular-Font';
|
||||
src : url('../fonts/Cocon-Regular-Font.otf') format('opentype');
|
||||
}
|
||||
div{
|
||||
font-family: 'HYk2gj';
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 4px;
|
||||
@ -130,6 +129,9 @@ div{
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
div{
|
||||
font-family: 'HYk2gj';
|
||||
}
|
||||
|
||||
html {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
@ -370,17 +372,20 @@ svg {
|
||||
} */
|
||||
|
||||
/* fix .cbi-section .cbi-section */
|
||||
|
||||
.cbi-section .cbi-section {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
/* fix node-services-vssr */
|
||||
|
||||
.node-services-vssr .status-bar {
|
||||
bottom:calc(50px + constant(safe-area-inset-bottom));
|
||||
bottom:calc(50px + env(safe-area-inset-bottom));
|
||||
/* 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 {
|
||||
@ -747,14 +752,14 @@ img[src*="/luci-static/resources/icons/loading.gif"] {
|
||||
}
|
||||
|
||||
.ifacebox-body img {
|
||||
background-size: 22px 22px;
|
||||
padding: 0 0 0 22px;
|
||||
width:22px !important;
|
||||
height:22px !important;
|
||||
padding: 0 0 0 22px !important;
|
||||
background-size: 20px 20px;
|
||||
padding: 0 0 0 20px;
|
||||
width:20px !important;
|
||||
height:20px !important;
|
||||
padding: 0 0 0 20px !important;
|
||||
}
|
||||
.ifacebox-head {
|
||||
/* background-color: #1096db !important; */
|
||||
/* background-color: #337ab7 !important; */
|
||||
border-radius: 4px 4px 0 0;
|
||||
}
|
||||
|
||||
@ -1487,6 +1492,7 @@ fieldset > table > tbody > tr:nth-of-type(odd) {
|
||||
#memtotal > div > div {
|
||||
background-color: var(--progressbar) !important;
|
||||
color: var(--progressbartxtColor) !important;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
#swaptotal div div,
|
||||
@ -1582,7 +1588,6 @@ div [id*="cbi-wireless"] [id*="-__status"] table td small {
|
||||
}
|
||||
|
||||
/* fix node-status-routes */
|
||||
|
||||
.node-status-routes .cbi-section-node{
|
||||
max-height: 500px;
|
||||
overflow-y: auto;
|
||||
@ -1590,7 +1595,6 @@ div [id*="cbi-wireless"] [id*="-__status"] table td small {
|
||||
}
|
||||
|
||||
/* fix multiple table */
|
||||
|
||||
table table {
|
||||
border: none;
|
||||
}
|
||||
@ -1645,6 +1649,7 @@ td#__status-ifc-signal {
|
||||
min-width: 80px;
|
||||
padding: 0px 8px 0px 8px;
|
||||
max-width: 160px;
|
||||
border-radius: 8px;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
}
|
||||
@ -1700,8 +1705,8 @@ form.inline + form.inline,
|
||||
.cbi-input-reload,
|
||||
.cbi-button-reload {
|
||||
color: var(--bttextColor);
|
||||
background-color: rgb(0,171,232) !important;
|
||||
border-color: rgb(0,171,232) !important;
|
||||
background-color: #337ab7 !important;
|
||||
border-color: #337ab7 !important;
|
||||
}
|
||||
|
||||
.cbi-button-link:hover,
|
||||
@ -1713,10 +1718,11 @@ form.inline + form.inline,
|
||||
.cbi-input-reload:hover,
|
||||
.cbi-button-reload:hover{
|
||||
color: #fff !important;
|
||||
background-color: #337ab7 !important;
|
||||
border-color: #337ab7 !important;
|
||||
background-color: #6A82AE!important;
|
||||
border-color: #6A82AE !important;
|
||||
}
|
||||
|
||||
|
||||
.cbi-input-apply,
|
||||
.cbi-button-apply,
|
||||
.cbi-button-edit {
|
||||
@ -1736,7 +1742,6 @@ form.inline + form.inline,
|
||||
}
|
||||
|
||||
/* table */
|
||||
|
||||
.tabs {
|
||||
margin: 15px 0;
|
||||
overflow-x: auto;
|
||||
@ -2462,12 +2467,12 @@ header > .container > .pull-right > * {
|
||||
|
||||
.node-system-packages .cbi-section-node .cbi-value-last > div {
|
||||
border: none !important;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.node-system-packages .cbi-section-node .cbi-value-last > div > div {
|
||||
border: none !important;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.node-nlbw-usage table {
|
||||
display: block;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/* fix node-status-realtime */
|
||||
.node-status-realtime .container {
|
||||
overflow:auto
|
||||
@ -3228,4 +3228,31 @@ form[action="/cgi-bin/luci/admin/network/wireless_join"] input[class="cbi-button
|
||||
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;
|
||||
}
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 54 KiB |
After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 3.9 KiB |
@ -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
|
||||
* @param text
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name":"Design",
|
||||
"short_name":"Design",
|
||||
"description":"Design for OpenWRT by 2smile.",
|
||||
"description":"Design for OpenWRT by gngpp.",
|
||||
"start_url":"/",
|
||||
"scope": "/",
|
||||
"orientation":"portrait",
|
||||
|
@ -134,9 +134,9 @@
|
||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="black">
|
||||
<meta name="application-name" 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"/>
|
||||
<link rel="icon" href="<%=media%>/images/icon.png" sizes="192x192">
|
||||
<link rel="apple-touch-icon" sizes="192x192" href="<%=media%>/images/icon.png">
|
||||
<meta name="msapplication-TileImage" content="<%=media%>/images/android-chrome-512x512.png"/>
|
||||
<link rel="icon" href="<%=media%>/images/android-chrome-192x192.png" sizes="192x192">
|
||||
<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="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-touch-fullscreen" content="yes" />
|
||||
@ -152,6 +152,15 @@
|
||||
</style>
|
||||
<% end -%>
|
||||
<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>
|
||||
|
||||
<body class="lang_<%=luci.i18n.context.lang%> <%- if node then %><%= striptags( node.title ) %><%- end %> <% if luci.dispatcher.context.authsession then %>logged-in<% end %>">
|
||||
|