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 {
|
.mac-open-iframe .layui-layer-ico {
|
||||||
background: url(../img/frame/assets.png) no-repeat;
|
background: url(../img/frame/assets.png) no-repeat;
|
||||||
|
background-size: 144px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac-open-iframe .layui-layer-setwin {
|
.mac-open-iframe .layui-layer-setwin {
|
||||||
|
|
@ -752,8 +753,8 @@ body .mac-btn_refresh {
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac-open-iframe .layui-layer-setwin a {
|
.mac-open-iframe .layui-layer-setwin a {
|
||||||
width: 20px;
|
width: 1rem;
|
||||||
height: 20px;
|
height: 1rem;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
|
@ -787,65 +788,65 @@ body .mac-btn_refresh {
|
||||||
.mac-open-iframe .layui-layer-min cite{display:none}
|
.mac-open-iframe .layui-layer-min cite{display:none}
|
||||||
|
|
||||||
body .mac-open-iframe .layui-layer-setwin .layui-layer-min {
|
body .mac-open-iframe .layui-layer-setwin .layui-layer-min {
|
||||||
background: url(../img/frame/assets.png) no-repeat;
|
background: url(../img/frame/assets.png) no-repeat -3px -26px;
|
||||||
background-position: -3px -33px;
|
background-size: 144px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .mac-open-iframe .layui-layer-setwin .layui-layer-min:hover {
|
body .mac-open-iframe .layui-layer-setwin .layui-layer-min:hover {
|
||||||
background: url(../img/frame/assets.png) no-repeat;
|
background: url(../img/frame/assets.png) no-repeat -3px -49px;
|
||||||
background-position: -3px -62px;
|
background-size: 144px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .mac-open-iframe .layui-layer-setwin a.layui-layer-close {
|
body .mac-open-iframe .layui-layer-setwin a.layui-layer-close {
|
||||||
background-position: -46px -33px;
|
background-position: -37px -26px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .mac-open-iframe .layui-layer-setwin a.layui-layer-close:hover {
|
body .mac-open-iframe .layui-layer-setwin a.layui-layer-close:hover {
|
||||||
background-position: -46px -62px;
|
background-position: -37px -49px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
body .mac-open-iframe .layui-layer-setwin .layui-layer-max {
|
body .mac-open-iframe .layui-layer-setwin .layui-layer-max {
|
||||||
background-position: -24px -33px;
|
background-position: -20px -26px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .mac-open-iframe .layui-layer-setwin .layui-layer-max:hover {
|
body .mac-open-iframe .layui-layer-setwin .layui-layer-max:hover {
|
||||||
background-position: -24px -62px;
|
background-position: -20px -49px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .mac-open-iframe .layui-layer-setwin .layui-layer-maxmin {
|
body .mac-open-iframe .layui-layer-setwin .layui-layer-maxmin {
|
||||||
background-position: -69px -33px;
|
background-position: -55px -15px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .mac-open-iframe.layui-layer-setwin .layui-layer-maxmin:hover {
|
body .mac-open-iframe.layui-layer-setwin .layui-layer-maxmin:hover {
|
||||||
background-position: -69px -62px;
|
background-position: -55px -49px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .mac-open-iframe .layui-layer-setwin .layui-layer-refresh {
|
body .mac-open-iframe .layui-layer-setwin .layui-layer-refresh {
|
||||||
background-position: -104px -32px;
|
background-position: -83px -25px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .mac-open-iframe .layui-layer-setwin .layui-layer-refresh:hover {
|
body .mac-open-iframe .layui-layer-setwin .layui-layer-refresh:hover {
|
||||||
background-position: -104px -61px;
|
background-position: -83px -49px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .mac-open-iframe .layui-layer-setwin .layui-layer-change-url {
|
body .mac-open-iframe .layui-layer-setwin .layui-layer-change-url {
|
||||||
background-position: -69px -32px;
|
background-position: -55px -25px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
|
body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
|
||||||
background-position: -104px -61px;
|
background-position: -83px -49px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1253,7 +1254,7 @@ body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
|
||||||
@media (min-width: 1281px) {
|
@media (min-width: 1281px) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
##笔记本或PC
|
##笔记本或PC
|
||||||
##1025px - 1280px
|
##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) {
|
@media (min-width: 1025px) and (max-width: 1280px) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
##平板电脑/Ipad竖屏
|
##平板电脑/Ipad竖屏
|
||||||
##768px - 1024px
|
##768px - 1024px
|
||||||
*/
|
*/
|
||||||
|
|
@ -1277,7 +1278,7 @@ body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
##平板电脑或Ipad横屏
|
##平板电脑或Ipad横屏
|
||||||
##768px - 1024px
|
##768px - 1024px
|
||||||
*/
|
*/
|
||||||
|
|
@ -1293,7 +1294,7 @@ body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
##低分辨率的平板电脑或横屏的手机
|
##低分辨率的平板电脑或横屏的手机
|
||||||
##481px - 767px
|
##481px - 767px
|
||||||
*/
|
*/
|
||||||
|
|
@ -1311,7 +1312,7 @@ body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
##多数竖屏的智能手机
|
##多数竖屏的智能手机
|
||||||
##320px - 479px
|
##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);
|
-webkit-transform: translateY(0px) translateX(0.1px);
|
||||||
transform: translateY(0px) translateX(0.1px);
|
transform: translateY(0px) translateX(0.1px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
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);
|
let layero_opened = Macui.getLayeroByIndex(index);
|
||||||
layero_opened.css('z-index', Macui._countTask + 813);
|
layero_opened.css('z-index', Macui._countTask + 813);
|
||||||
Macui._settop(layero_opened);
|
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 () {
|
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 () {
|
layero_opened.find('.layui-layer-setwin .layui-layer-max').click(function () {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
let height = layero_opened.css('height');
|
let height = layero_opened.css('height');
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue