luci-theme-rosy: Correcting Writing Errors and Style Errors

Signed-off-by: YanlanShen <yanlan.Shen@rosinson.com>
This commit is contained in:
YanlanShen 2019-02-18 11:12:13 +08:00
parent 55cd0c4c6b
commit f4e6e1a6a2
2 changed files with 76 additions and 48 deletions

View file

@ -180,6 +180,12 @@ body {
header {
display: none;
height: 3rem;
z-index: 1000;
}
header .container {
padding: 0 0.5rem;
}
select {
@ -904,35 +910,54 @@ form[method="post"] + form[method="post"],
border-radius: 20px;
}
.cbi-tabmenu > li,
.tabs > li {
margin-right: .8rem;
padding: .5rem 4px;
position: relative;
display: inline-block;
text-align: center;
}
.tabs > li a {
color: #468EA4;
font-size: 14px;
text-decoration: none;
position: relative;
z-index: 1;
}
.tabs > li::after {
content: '';
background-color: #cccccc82;
position: absolute;
width: 0;
height: 100%;
bottom: 0;
border-radius: 20px;
left: 50%;
transform: translateX(-50%);
}
.tabs > li:hover::after {
transition: width .35s;
width: calc(100% + 4px);
}
.tabs > li.active::after {
width: calc(100% + 4px);
background-color: #468ea473;
}
.cbi-tabmenu > li {
display: inline-block;
padding: .6rem 0;
}
.cbi-tabmenu > li > a,
.tabs > li > a {
.cbi-tabmenu > li > a {
padding: .5rem .8rem;
text-decoration: none;
color: #404040;
}
.tabs > li[class~="active"],
.tabs > li:hover {
cursor: pointer;
background-color: #468ea4;
border-radius: 20px;
}
.tabs > li[class~="active"],
.tabs > li:hover a {
color: #fff;
}
.tabs > li[class~="active"] > a {
color: #fff;
}
.cbi-tabmenu {
border: thin solid #d4d4d4;
border-bottom: 0;
@ -2207,16 +2232,14 @@ body.login {
}
.logged-in header {
padding: 0 1rem;
height: 4rem;
width: 100%;
position: fixed;
top: 0;
background: #fff;
color: #fff;
z-index: 1000;
border-bottom: 1px solid #f5f5f5;
display: block;
position: fixed;
top: 1rem;
right: 1rem;
border: 1px solid #ddd;
background-color: #fff;
border-radius: 20px;
width: calc(85% - 20px - 2rem);
}
.logged-in .main {
@ -2228,8 +2251,8 @@ body.login {
}
.logged-in header .container .btn-con {
height: 4rem;
line-height: 4rem;
height: 3rem;
line-height: 3rem;
}
.logged-in header .container .btn-con #xhr_poll_status {
@ -2628,8 +2651,13 @@ body.login {
}
.logged-in header {
height: 3rem;
z-index: 2000;
top: 0;
left: 0;
width: 100%;
border-radius: 0;
border: none;
border-bottom: 1px solid #ddd;
}
.showSide,

View file

@ -170,22 +170,22 @@
* Sidebar expand
*/
var showSide = false;
if ($(win).height() == 992) {
$(".showSide").click(function () {
if (showSide) {
$(".darkMask").stop(true).fadeOut("fast");
$(".main-left").stop(true).fadeOut("fast");
$(".main-right").css("overflow-y", "visible");
showSide = false;
} else {
$(".darkMask").stop(true).fadeIn("fast");
$(".main-left").stop(true).animate({
width: "100%"
}, "fast").fadeIn("fast");
$(".main-right").css("overflow-y", "hidden");
showSide = true;
}
});
$(".showSide").click(function () {
if (showSide) {
$(".darkMask").stop(true).fadeOut("fast");
$(".main-left").stop(true).fadeOut("fast");
$(".main-right").css("overflow-y", "visible");
showSide = false;
} else {
$(".darkMask").stop(true).fadeIn("fast");
$(".main-left").stop(true).animate({
width: "100%"
}, "fast").fadeIn("fast");
$(".main-right").css("overflow-y", "hidden");
showSide = true;
}
});
if($(win).width() <= 992){
$(".main-left").click(function(e) {
e.preventDefault();
$(".main-left").stop(true).fadeOut("fast");
@ -274,4 +274,4 @@
}
});
})(window, jQuery);
})(window, jQuery);