Skip to content

Commit

Permalink
feat: release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
phucbm committed Oct 7, 2024
1 parent 4383815 commit 70ca039
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 19 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Visit https://easy-popup.netlify.app/ for documentation.

```html

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/viivue/easy-popup@1.0.0/dist/easy-popup.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/viivue/easy-popup@1.1.0/dist/easy-popup.min.css">

<script src="https://cdn.jsdelivr.net/gh/viivue/easy-popup@1.0.0/dist/easy-popup.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/viivue/easy-popup@1.1.0/dist/easy-popup.min.js"></script>
```

### NPM Package
Expand Down
4 changes: 2 additions & 2 deletions dev/md/begin.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ View package at [@viivue/easy-popup](https://www.npmjs.com/package/@viivue/easy-

```html
<!-- Easy Popup -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/viivue/easy-popup@1.0.0/dist/easy-popup.min.css">
<script src="https://cdn.jsdelivr.net/gh/viivue/easy-popup@1.0.0/dist/easy-popup.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/viivue/easy-popup@1.1.0/dist/easy-popup.min.css">
<script src="https://cdn.jsdelivr.net/gh/viivue/easy-popup@1.1.0/dist/easy-popup.min.js"></script>
```
9 changes: 8 additions & 1 deletion dist/easy-popup.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Easy Popup v1.0.0
* Easy Popup v1.1.0
* https://github.com/viivue/easy-popup
*/
/* master */
Expand Down Expand Up @@ -176,6 +176,13 @@ html:not(.easy-popup-open) .easy-popup-master {
--ep-mobile-height: calc(100vh - var(--ep-top-empty-space));
}

.easy-popup.will-have-mobile-layout:not(.ep-mobile-layout) {
/* close button */
}
.easy-popup.will-have-mobile-layout:not(.ep-mobile-layout) .ep-close-button.for-mobile-layout {
display: none;
}

@media only screen and (max-width: 1023px) {
.easy-popup.ep-mobile-layout {
align-items: flex-end;
Expand Down
7 changes: 5 additions & 2 deletions dist/easy-popup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**!
* Easy Popup v1.0.0-staging
* Easy Popup v1.1.0
* @author phucbm
* @homepage https://easy-popup.netlify.app/
* @license MIT 2024
Expand Down Expand Up @@ -538,6 +538,7 @@ function initKeyboard(context){
*/
function initMobileLayout(context){
if(!context.options.hasMobileLayout) return;
context.outer.classList.add('will-have-mobile-layout');

new n({
object: {
Expand Down Expand Up @@ -610,7 +611,9 @@ function addCloseButton(context){


// sticky mobile close button
context.container.insertAdjacentHTML('beforebegin', getButtonHtml(CLASSES.closeButton + ' for-mobile-layout'));
if(context.options.hasMobileLayout){
context.container.insertAdjacentHTML('beforebegin', getButtonHtml(CLASSES.closeButton + ' for-mobile-layout'));
}
}
;// CONCATENATED MODULE: ./src/html.js

Expand Down
4 changes: 2 additions & 2 deletions dist/easy-popup.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 70ca039

Please sign in to comment.