From f5a783cbbe0d9072d87709637f9b0e8204139b3a Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Thu, 10 Oct 2024 12:44:39 +0530 Subject: [PATCH] More --- .../WPAdmin/Listeners/InstallerListener.php | 1 - .../components/Modal/stylesheet.scss | 34 ++++----- src/Installer/styles/app.scss | 10 +-- src/Scripts/installPremiumModal.css | 72 ------------------- src/Scripts/installPremiumModal.html | 21 ------ 5 files changed, 23 insertions(+), 115 deletions(-) delete mode 100644 src/Scripts/installPremiumModal.css delete mode 100644 src/Scripts/installPremiumModal.html diff --git a/includes/WPAdmin/Listeners/InstallerListener.php b/includes/WPAdmin/Listeners/InstallerListener.php index 51871f5..a369ec5 100644 --- a/includes/WPAdmin/Listeners/InstallerListener.php +++ b/includes/WPAdmin/Listeners/InstallerListener.php @@ -54,7 +54,6 @@ public function enqueue_installer_script() { 'before' ); - wp_enqueue_script( 'nfd-installer-enqueue' ); wp_enqueue_style( 'nfd-installer-enqueue' ); } diff --git a/src/Installer/components/Modal/stylesheet.scss b/src/Installer/components/Modal/stylesheet.scss index cafa1d2..bfaf30c 100644 --- a/src/Installer/components/Modal/stylesheet.scss +++ b/src/Installer/components/Modal/stylesheet.scss @@ -1,16 +1,16 @@ .nfd-installer-modal { top: 0; - left: 0; + left: 0; z-index: 99; - width: 100vw; - height: 100vh; - display: flex; - position: fixed; - align-items: center; - justify-content: center; - background: rgba(0, 0, 0, 0.5); - - &__content{ + width: 100vw; + height: 100vh; + display: flex; + position: fixed; + align-items: center; + justify-content: center; + background: rgba(0, 0, 0, 0.5); + + &__content { width: 400px; padding: 20px; position: relative; @@ -54,10 +54,12 @@ } @keyframes spin { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(360deg); - } + + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } } diff --git a/src/Installer/styles/app.scss b/src/Installer/styles/app.scss index 7de6885..8a6fd53 100644 --- a/src/Installer/styles/app.scss +++ b/src/Installer/styles/app.scss @@ -1,12 +1,12 @@ * { - margin: 0; - padding: 0; - box-sizing: border-box; + margin: 0; + padding: 0; + box-sizing: border-box; } body { - font-family: Arial, sans-serif; - background-color: #f4f4f4; + font-family: Arial, sans-serif; + background-color: #f4f4f4; } //Imports diff --git a/src/Scripts/installPremiumModal.css b/src/Scripts/installPremiumModal.css deleted file mode 100644 index 94ba519..0000000 --- a/src/Scripts/installPremiumModal.css +++ /dev/null @@ -1,72 +0,0 @@ -* { - margin: 0; - padding: 0; - box-sizing: border-box; -} - -body { - font-family: Arial, sans-serif; - background-color: #f4f4f4; -} - -.modal { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - display: flex; - justify-content: center; - align-items: center; - background: rgba(0, 0, 0, 0.5); -} - -.modal-content { - background-color: #fff; - padding: 20px; - border-radius: 8px; - text-align: center; - width: 400px; - box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); -} - -h2 { - font-size: 20px; - margin-bottom: 20px; - color: #333; -} - -.plugin-activation { - display: flex; - flex-direction: column; - align-items: center; -} - -.activation-image { - width: 150px; - margin-bottom: 15px; -} - -p { - margin-bottom: 10px; - font-size: 16px; - color: #333; -} - -.loader { - border: 4px solid #f3f3f3; - border-top: 4px solid #3498db; - border-radius: 50%; - width: 40px; - height: 40px; - animation: spin 1s linear infinite; -} - -@keyframes spin { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(360deg); - } -} diff --git a/src/Scripts/installPremiumModal.html b/src/Scripts/installPremiumModal.html deleted file mode 100644 index d955e46..0000000 --- a/src/Scripts/installPremiumModal.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - Plugin Activation Modal - - - -
- -
- -