Skip to content

Commit

Permalink
update v1.1.1
Browse files Browse the repository at this point in the history
调整弹窗样式
  • Loading branch information
kaygb committed Jun 12, 2022
1 parent 4bec3fd commit ce64319
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 8 deletions.
18 changes: 10 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,24 @@ <h1>KZHomePage</h1>
$('#kaygb-blog').on('click', function() {
layer.open({
type: 2,
title: 'Kaygb',
title: 'Blog',
shadeClose: true,
shade: false,
maxmin: true, //开启最大化最小化按钮
area: ['80%', '100%'],
anim:4,
closeBtn: 2,
isOutAnim: false,
area: ['80%', '90%'],
content: '//www.kezez.com/'
});
});
$('#kaygb-mail').on('click', function() {
layer.open({
type: 2,
title: 'Mail',
title: 'Blog',
shadeClose: true,
shade: false,
maxmin: true, //开启最大化最小化按钮
area: ['80%', '100%'],
anim:4,
closeBtn: 2,
isOutAnim: false,
area: ['80%', '90%'],
content: '//mail.qq.com/cgi-bin/qm_share?t=qm_mailme&[email protected]'
});
});
Expand Down
30 changes: 30 additions & 0 deletions static/layer-v3.5.1/layer/theme/kzhomepage/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
body .layer-ext-kzhomepage .layui-layer-title{
color: transparent;
border: 0px;
display: none;
}
body .layui-ext-kzhomepage .layui-layer-btn{}
body .layui-ext-kzhomepage .layui-layer-btn a{}
.layer-ext-kzhomepage{
background-color: transparent;
box-shadow: none;
border: none;
}
/* .layui-layer-setwin{
right: -50px;
width: 50px;
background: transparent;
color: #fff;
}
.layui-layer-setwin .layui-layer-close{
background-color: #00000080;
width: 30px;
height: 30px;
}
.layui-layer-setwin .layui-layer-min cite{
background-color: #fff;
width: 15px;
left: 17.5px;
height: 2px;
} */
13 changes: 13 additions & 0 deletions static/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
var windowWidth = $(window).width();
layer.config({
extend: 'kzhomepage/style.css', //加载您的扩展样式
skin: 'layer-ext-kzhomepage'
});
// layer.open({
// type: 2,
// title: 'Blog',
// shadeClose: true,
// anim:5,
// closeBtn: 2,
// area: ['80%', '90%'],
// content: '//www.kezez.com/'
// });
console.log(
"\n" +
" %c KZHomePage by kaygb " +
Expand Down

0 comments on commit ce64319

Please sign in to comment.