小幅调整窗口图标

This commit is contained in:
昱墨 2022-10-28 13:57:21 +08:00
parent 0816c6475f
commit 3beeb215e1
4 changed files with 31 additions and 28 deletions

View File

@ -731,6 +731,7 @@ body .mac-btn_refresh {
.mac-open-iframe .layui-layer-ico {
background: url(../img/frame/assets.png) no-repeat;
background-size: 144px;
}
.mac-open-iframe .layui-layer-setwin {
@ -752,8 +753,8 @@ body .mac-btn_refresh {
}
.mac-open-iframe .layui-layer-setwin a {
width: 20px;
height: 20px;
width: 1rem;
height: 1rem;
font-size: 13px;
overflow: hidden;
margin-left: 10px;
@ -787,65 +788,65 @@ body .mac-btn_refresh {
.mac-open-iframe .layui-layer-min cite{display:none}
body .mac-open-iframe .layui-layer-setwin .layui-layer-min {
background: url(../img/frame/assets.png) no-repeat;
background-position: -3px -33px;
background: url(../img/frame/assets.png) no-repeat -3px -26px;
background-size: 144px;
cursor: pointer;
}
body .mac-open-iframe .layui-layer-setwin .layui-layer-min:hover {
background: url(../img/frame/assets.png) no-repeat;
background-position: -3px -62px;
background: url(../img/frame/assets.png) no-repeat -3px -49px;
background-size: 144px;
cursor: pointer;
}
body .mac-open-iframe .layui-layer-setwin a.layui-layer-close {
background-position: -46px -33px;
background-position: -37px -26px;
cursor: pointer;
}
body .mac-open-iframe .layui-layer-setwin a.layui-layer-close:hover {
background-position: -46px -62px;
background-position: -37px -49px;
cursor: pointer;
}
body .mac-open-iframe .layui-layer-setwin .layui-layer-max {
background-position: -24px -33px;
background-position: -20px -26px;
cursor: pointer;
}
body .mac-open-iframe .layui-layer-setwin .layui-layer-max:hover {
background-position: -24px -62px;
background-position: -20px -49px;
cursor: pointer;
}
body .mac-open-iframe .layui-layer-setwin .layui-layer-maxmin {
background-position: -69px -33px;
background-position: -55px -15px;
cursor: pointer;
}
body .mac-open-iframe.layui-layer-setwin .layui-layer-maxmin:hover {
background-position: -69px -62px;
background-position: -55px -49px;
cursor: pointer;
}
body .mac-open-iframe .layui-layer-setwin .layui-layer-refresh {
background-position: -104px -32px;
background-position: -83px -25px;
cursor: pointer;
}
body .mac-open-iframe .layui-layer-setwin .layui-layer-refresh:hover {
background-position: -104px -61px;
background-position: -83px -49px;
cursor: pointer;
}
body .mac-open-iframe .layui-layer-setwin .layui-layer-change-url {
background-position: -69px -32px;
background-position: -55px -25px;
cursor: pointer;
}
body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
background-position: -104px -61px;
background-position: -83px -49px;
cursor: pointer;
}
@ -1253,7 +1254,7 @@ body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
@media (min-width: 1281px) {
}
/*
/*
##笔记本或PC
##1025px - 1280px
*/
@ -1261,7 +1262,7 @@ body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
@media (min-width: 1025px) and (max-width: 1280px) {
}
/*
/*
##平板电脑/Ipad竖屏
##768px - 1024px
*/
@ -1277,7 +1278,7 @@ body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
}
}
/*
/*
##平板电脑或Ipad横屏
##768px - 1024px
*/
@ -1293,7 +1294,7 @@ body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
}
}
/*
/*
##低分辨率的平板电脑或横屏的手机
##481px - 767px
*/
@ -1311,7 +1312,7 @@ body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
}
}
/*
/*
##多数竖屏的智能手机
##320px - 479px
*/
@ -1378,4 +1379,4 @@ body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
-webkit-transform: translateY(0px) translateX(0.1px);
transform: translateY(0px) translateX(0.1px);
}
}
}

2
css/index.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -1169,13 +1169,15 @@ window.Macui = {
let layero_opened = Macui.getLayeroByIndex(index);
layero_opened.css('z-index', Macui._countTask + 813);
Macui._settop(layero_opened);
//重新定义菜单布局
layero_opened.find('.layui-layer-setwin').prepend('<a class="layui-layer-ico layui-layer-refresh" index="' + index +
'" href="#"></a>');
//菜单排列倒序
layero_opened.find(".layui-layer-setwin>a").each(function () {
$(this).prependTo(layero_opened.find(".layui-layer-setwin"));
if ($(this).hasClass('layui-layer-close')){
$(this).prependTo(layero_opened.find(".layui-layer-setwin"));
}
})
//重新定义菜单布局
layero_opened.find('.layui-layer-setwin').append('<a class="layui-layer-ico layui-layer-refresh" index="' + index +
'" href="#"></a>');
layero_opened.find('.layui-layer-setwin .layui-layer-max').click(function () {
setTimeout(function () {
let height = layero_opened.css('height');

2
js/index.min.js vendored

File diff suppressed because one or more lines are too long