starting grammar cleanup
This commit is contained in:
@@ -2040,43 +2040,16 @@ body.login {
|
||||
|
||||
#content-container.page-transition {
|
||||
opacity: 0;
|
||||
transform: perspective(800px) rotateY(-90deg) scale(0.9);
|
||||
transform-origin: left center;
|
||||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
|
||||
background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 50%, transparent 50%);
|
||||
background-size: 200% 100%;
|
||||
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-position 0.3s ease-in-out;
|
||||
transform: translatex(-100%);
|
||||
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
#content-container:not(.page-transition) {
|
||||
opacity: 1;
|
||||
transform: perspective(800px) rotateY(0deg) scale(1);
|
||||
transform-origin: left center;
|
||||
box-shadow: 0 0 20px rgba(0, 0, 0, 0);
|
||||
background-position: 100% 0;
|
||||
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-position 0.3s ease-in-out;
|
||||
transform: translateY(0);
|
||||
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
#content-container.page-transition {
|
||||
opacity: 0;
|
||||
transform: perspective(800px) rotateY(-5deg) scale(1);
|
||||
transform-origin: left center;
|
||||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
|
||||
background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 50%, transparent 50%);
|
||||
background-size: 200% 100%;
|
||||
background-position: 100% 0;
|
||||
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-position 0.3s ease-in-out;
|
||||
}
|
||||
#content-container:not(.page-transition) {
|
||||
opacity: 1;
|
||||
transform: perspective(800px) rotateY(0deg) scale(1);
|
||||
transform-origin: left center;
|
||||
box-shadow: 0 0 20px rgba(0, 0, 0, 0);
|
||||
background-position: 0 0;
|
||||
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-position 0.3s ease-in-out;
|
||||
}
|
||||
}
|
||||
#footer-nav.out-of-view {
|
||||
opacity: 0;
|
||||
translate: 0 100%;
|
||||
|
@@ -112,14 +112,15 @@ class PageTransitions {
|
||||
if (this.navControl.toggleMenuBtn.classList.contains('active')) {
|
||||
this.navControl.toggleNavMenu();
|
||||
}
|
||||
if (this.isExternalLink(link)) {
|
||||
link.setAttribute('target', '_blank');
|
||||
window.open(link, '_blank');
|
||||
}
|
||||
if (!this.isExternalLink(link)) {
|
||||
if (!this.isExternalLink(link) && this.isWordPressAdminLink(link)) {
|
||||
window.location.href = link.href; // Navigate normally
|
||||
} else if (!this.isExternalLink(link)) {
|
||||
this.animatePageTransition(() => {
|
||||
this.loadContent(link.getAttribute('href'), 'content-container');
|
||||
});
|
||||
} else if (this.isExternalLink(link)) {
|
||||
link.setAttribute('target', '_blank');
|
||||
window.open(link, '_system');
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -186,6 +187,11 @@ class PageTransitions {
|
||||
const linkDomain = link.hostname;
|
||||
return linkDomain !== currentDomain;
|
||||
}
|
||||
isWordPressAdminLink(link) {
|
||||
// Customize the condition based on your WordPress admin URL structure
|
||||
const adminUrlRegex = /^.*\/wp-admin\//;
|
||||
return adminUrlRegex.test(link.href);
|
||||
}
|
||||
}
|
||||
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PageTransitions);
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user