Skip to content

Commit

Permalink
💄 优化弹出层层级及最小宽度
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Dec 17, 2022
1 parent 49b7021 commit ab38fa5
Show file tree
Hide file tree
Showing 12 changed files with 193 additions and 152 deletions.
5 changes: 3 additions & 2 deletions assets/dist/js/libs.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/dist/js/puock.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/dist/style/common.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assets/dist/style/libs.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/dist/style/style.min.css

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion assets/js/puock.js
Original file line number Diff line number Diff line change
Expand Up @@ -926,12 +926,14 @@ class Puock {
const title = el.attr("title") || el.attr("data-title") || '提示';
const url = el.attr("data-url");
this.getRemoteHtmlNode(url, (res) => {
const id = "pk-modal-" + (new Date()).getTime();
layer.open({
type: 1,
title: noTitle ? false : title,
content: `<div style='${noPadding ? '' : 'padding: 20px'}' class='fs14'>${res}</div>`,
content: `<div id="${id}" style='${noPadding ? '' : 'padding: 20px'}' class='fs14'>${res}</div>`,
shadeClose: true,
})
this.lazyLoadInit($("#" + id));
})
})
}
Expand Down
30 changes: 30 additions & 0 deletions assets/style/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,36 @@ a {
margin-left: 0.25rem !important;
}

.ml-2 {
margin-left: 0.5rem !important;
}

.ml-3 {
margin-left: 1rem !important;
}

.mr-1 {
margin-right: 0.25rem !important;
}

.mr-2 {
margin-right: 0.5rem !important;
}

.mr-3 {
margin-right: 1rem !important;
}

.min-width-modal {
min-width: 420px;
}

@media (max-width: 576px) {
.min-width-modal {
min-width: 300px;
}
}

.--dynamic-distance(@pre,@attr,@step,@start,@end) when (@start<=@end) {
.--dynamic-distance(@pre, @attr, @step, @start + @step, @end);
.@{pre}@{start} {
Expand Down
2 changes: 1 addition & 1 deletion assets/style/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ body.pre-mac pre {
position: fixed;
left: 0;
top: 0;
z-index: 1050;
z-index: 9999;
overflow-y: scroll;
height: 100vh;
background-color: var(--pk-bg-box);
Expand Down
2 changes: 1 addition & 1 deletion comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class="form-control form-control-sm t-sm"
<?php if (pk_is_checked('vd_comment') && pk_get_option('vd_type', 'img') === 'img'): ?>
<div class="col-12 col-sm-3">
<div class="row flex-row justify-content-end">
<div class="col-8 col-sm-7 text-right pl15">
<div class="col-8 col-sm-7 text-end pl15">
<input type="text" value="" placeholder="验证码" maxlength="4"
class="form-control form-control-sm t-sm" name="comment-vd"
autocomplete="off"
Expand Down
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class="fa fa-close"></i></button>
<div id="mobile-menu" class="d-none">
<div class="menus">
<div class="p-block">
<div class="text-right"><i class="fa fa-close t-xl puock-link mobile-menu-close ta3"></i></div>
<div class="text-end"><i class="fa fa-close t-xl puock-link mobile-menu-close ta3"></i></div>
<nav>
<?php echo pk_get_main_menu(true) ?>
</nav>
Expand Down
286 changes: 147 additions & 139 deletions inc/ajax/page-front-login.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/module-cms.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
title="<?php the_title() ?>" <?php pk_link_target() ?>
href="<?php the_permalink() ?>"><?php the_title() ?></a>
</div>
<div class="col-lg-3 text-right d-none d-lg-block">
<div class="col-lg-3 text-end d-none d-lg-block">
<span class="c-sub t-sm"><?php pk_get_post_date() ?></span>
</div>
</div>
Expand Down

0 comments on commit ab38fa5

Please sign in to comment.