From ce64319000768c4bd3f5e767312ff22143c4275f Mon Sep 17 00:00:00 2001 From: kaygb <48642860+kaygb@users.noreply.github.com> Date: Sun, 12 Jun 2022 20:31:40 +0800 Subject: [PATCH] update v1.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整弹窗样式 --- index.html | 18 ++++++----- .../layer/theme/kzhomepage/style.css | 30 +++++++++++++++++++ static/main.js | 13 ++++++++ 3 files changed, 53 insertions(+), 8 deletions(-) create mode 100644 static/layer-v3.5.1/layer/theme/kzhomepage/style.css diff --git a/index.html b/index.html index cd8d048..691e604 100644 --- a/index.html +++ b/index.html @@ -101,22 +101,24 @@

KZHomePage

$('#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=hi@kezez.com' }); }); diff --git a/static/layer-v3.5.1/layer/theme/kzhomepage/style.css b/static/layer-v3.5.1/layer/theme/kzhomepage/style.css new file mode 100644 index 0000000..c0b5585 --- /dev/null +++ b/static/layer-v3.5.1/layer/theme/kzhomepage/style.css @@ -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; +} */ \ No newline at end of file diff --git a/static/main.js b/static/main.js index 4f3f38c..f3d80ae 100644 --- a/static/main.js +++ b/static/main.js @@ -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 " +