From 1b2c0fd0fa44ae701fd887ee4598942246211cc4 Mon Sep 17 00:00:00 2001 From: yglb <39110824+yglb@users.noreply.github.com> Date: Sun, 7 Apr 2019 17:15:14 +0800 Subject: [PATCH] luci-theme-rosy: fix view for rosy-file-server packages Signed-off-by: YanlanShen --- .../htdocs/luci-static/rosy/cascade.css | 51 +++++++++++++++++++ .../htdocs/luci-static/rosy/js/script.js | 4 +- 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css b/themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css index 517f8a3645..b8b97ea577 100644 --- a/themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css +++ b/themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css @@ -2258,6 +2258,38 @@ input[name="nslookup"] { margin: 5rem 1rem 1rem; } +/* rosy file server */ +.login-info.node-main-login{ + background-color: #ebf1f6; +} + +.login-info.node-main-login header .container, +.login-info.node-main-login .main { + width: 1170px; +} + +.login-info.node-main-login header { + display: block; +} + +.login-info.node-main-login header .container { + margin: 1rem auto 0; + height: 3rem; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 50px; + line-height: 44px; +} + +.login-info.node-main-login .label.logout { + background-color: #f24b7c; +} + +.login-info.node-main-login .label.logout a { + color: #fff; + text-decoration: none; +} + /* node main login */ .login-info .main { margin: 0 auto; @@ -2619,6 +2651,13 @@ input[name="nslookup"] { } } +@media screen and (max-width: 992px) { + .login-info.node-main-login header .container, + .login-info.node-main-login .main .container { + width: 970px; + } +} + @media screen and (max-width: 992px) { .login .main-right { background: #354057; @@ -2890,6 +2929,18 @@ input[name="nslookup"] { .logged-in .main-left .navbar-container:hover { scrollbar-face-color: #839dd67a; } + + .login-info.node-main-login header .container, + .login-info.node-main-login .main .container { + width: 750px; + } +} + +@media screen and (max-width: 768px) { + .login-info.node-main-login header .container, + .login-info.node-main-login .main .container { + width: 100%; + } } @media screen and (max-width: 600px) { diff --git a/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js b/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js index 7f5f1ad0b0..886e175cc4 100755 --- a/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js +++ b/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js @@ -273,7 +273,9 @@ thisParent.removeClass('op-eye'); $(this).prev().attr('type', 'password'); } - + }); + $('#cbi-network-switch_vlan .table').wrap('#vlan_table'); + })(window, jQuery); -- 2.30.2