Skip to content

Commit

Permalink
feat(close-button): adjust show/hide css
Browse files Browse the repository at this point in the history
  • Loading branch information
phucbm committed Oct 7, 2024
1 parent e91303e commit dd83fa3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/css/close-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,6 @@
}
}

@media only screen and (min-width: 769px) {
.ep-close-button.for-mobile-layout {
display: none;
}
}

@media only screen and (max-width: 768px) {
.ep-close-button.for-mobile-layout .ep-close-button {
display: none;
}
}

/* custom close button */
.easy-popup.ep-has-custom-close-button {
Expand Down
7 changes: 7 additions & 0 deletions src/css/layout-mobile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
--ep-mobile-height: calc(100vh - var(--ep-top-empty-space));
}

.easy-popup.will-have-mobile-layout:not(.ep-mobile-layout) {
/* close button */
.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

0 comments on commit dd83fa3

Please sign in to comment.