mirror of https://github.com/1099438829/macUI.git
小幅调整窗口图标
This commit is contained in:
parent
0816c6475f
commit
3beeb215e1
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
10
js/index.js
10
js/index.js
|
|
@ -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');
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue