Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
1) Hide Voltron on Mobile
2) Newly installed coding standards fixed several CS issues.
  • Loading branch information
namithj authored Nov 5, 2024
1 parent 6df35b5 commit f9e5b37
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 47 deletions.
79 changes: 42 additions & 37 deletions assets/css/aspire-update.css
Original file line number Diff line number Diff line change
@@ -1,64 +1,69 @@

@keyframes glow {
0% {
background-color: rgba(255, 223, 0, 0.1);
}
0% {
background-color: rgba(255, 223, 0, 0.1);
}

100% {
background-color: none;
}
100% {
background-color: none;
}
}

.glow-reveal {
animation: glow 0.5s ease-in-out;
animation: glow 0.5s ease-in-out;
}

.aspireupdate-settings-field-hosts-wrapper .aspireupdate-settings-field-hosts-row {
margin: 0 0 10px;
margin: 0 0 10px;
}

#aspireupdate-generate-api-key {
display: inline-block;
width: 30px;
height: 30px;
background: url(../images/icon-key.svg) no-repeat center center / 24px 24px;
background-color: #cbcbcb;
border: 1px solid #8c8f94;
border-radius: 3px;
clip-path: inset(0 0 0 0);
color: transparent;
cursor: pointer;
transition: background-color 0.3s ease;
display: inline-block;
width: 30px;
height: 30px;
background: url(../images/icon-key.svg) no-repeat center center / 24px 24px;
background-color: #cbcbcb;
border: 1px solid #8c8f94;
border-radius: 3px;
clip-path: inset(0 0 0 0);
color: transparent;
cursor: pointer;
transition: background-color 0.3s ease;
}

#aspireupdate-generate-api-key:hover {
background-color: #e3e3e3;
background-color: #e3e3e3;
}

.aspireupdate-settings-field-wrapper p.error {
color: #bc3b3b;
display: none;
color: #bc3b3b;
display: none;
}

#voltron {
color: transparent;
font-size: 8px;
line-height: 6px;
display: inline-block;
cursor: default;
color: transparent;
font-size: clamp(4px, 0.9vw, 8px);
line-height: 6px;
display: inline-block;
cursor: default;
}

#voltron:hover {
animation: blink 1.8s ease-in-out infinite;
animation-delay: 5s;
animation: blink 1.8s ease-in-out infinite;
animation-delay: 5s;
}

@keyframes blink {
0%,
100% {
color: inherit;
}
50% {
color: transparent;
}
0%,
100% {
color: inherit;
}
50% {
color: transparent;
}
}

@media only screen and (max-width: 576px) {
#voltron {
display: none;
}
}
6 changes: 0 additions & 6 deletions includes/class-admin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public function __construct() {

add_action( 'admin_init', [ $this, 'update_settings' ] );
add_action( 'network_admin_edit_aspireupdate-settings', [ $this, 'update_settings' ] );

}

/**
Expand Down Expand Up @@ -102,7 +101,6 @@ public function reset_settings() {
'reset-success-nonce' => wp_create_nonce( 'aspireupdate-reset-success-nonce' ),

],

network_admin_url( 'index.php?page=aspireupdate-settings' )
)
);
Expand Down Expand Up @@ -245,9 +243,7 @@ public function update_settings() {
update_site_option( $this->option_name, $this->sanitize_settings( wp_unslash( $_POST['aspireupdate_settings'] ) ) );

wp_safe_redirect(

add_query_arg( [ network_admin_url( 'index.php?page=aspireupdate-settings' ) ] )

);
exit;
}
Expand Down Expand Up @@ -291,7 +287,6 @@ public function admin_enqueue_scripts( $hook ) {
wp_localize_script(
'aspire_update_settings_js',
'aspireupdate',

[

'ajax_url' => network_admin_url( 'admin-ajax.php' ),
Expand All @@ -313,7 +308,6 @@ public function the_settings_page() {
'reset-nonce' => wp_create_nonce( 'aspireupdate-reset-nonce' ),

],

network_admin_url( 'index.php?page=aspireupdate-settings' )
);
?>
Expand Down
3 changes: 0 additions & 3 deletions includes/class-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ public function __construct() {
Themes_Screens::get_instance();
$this->api_rewrite();


add_action( 'init', [ $this, 'load_textdomain' ] );

}

/**
Expand Down Expand Up @@ -57,5 +55,4 @@ private function api_rewrite() {
public function load_textdomain() {
\load_plugin_textdomain( 'AspireUpdate', false, AP_PATH . '/languages/' );
}

}
1 change: 0 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
function _manually_load_plugin() {

require dirname( __DIR__ ) . '/aspire-update.php';

}

tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
Expand Down

0 comments on commit f9e5b37

Please sign in to comment.