Skip to content

Commit

Permalink
CF7 related submission queries, menu badge count, input cut/copy impr…
Browse files Browse the repository at this point in the history
…ovement
  • Loading branch information
chrisblakley committed Apr 6, 2024
1 parent d1d694a commit 10d0b3d
Show file tree
Hide file tree
Showing 17 changed files with 166 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nebula-wp",
"title": "Nebula",
"description": "Advanced Starter WordPress Theme for Developers",
"version": "11.11.3.402",
"version": "11.11.6.706",
"homepage": "https://gearside.com/nebula/",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion Nebula-Child/assets/css/admin.css

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

2 changes: 1 addition & 1 deletion Nebula-Child/resources/sw.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//BEGIN automated edits. These will be automatically overwritten.
const THEME_NAME = 'nebula-child';
const NEBULA_VERSION = 'v11.11.3.402'; //Wednesday, April 3, 2024 9:38:28 AM
const NEBULA_VERSION = 'v11.11.6.706'; //Saturday, April 6, 2024 4:56:04 PM
const OFFLINE_URL = 'https://nebula.gearside.com/offline/';
const OFFLINE_IMG = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/offline.svg';
const META_ICON = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/meta/android-chrome-512x512.png';
Expand Down
4 changes: 2 additions & 2 deletions Nebula-Child/style.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/css/admin.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/critical.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/login.css

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

2 changes: 1 addition & 1 deletion assets/css/pre.css

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

2 changes: 1 addition & 1 deletion assets/js/modules/measure.js
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ nebula.eventTracking = async function(){
nebula.dom.document.on('cut copy', function(e){
//Ignore clipboard events that occur within form inputs or on Woocommerce checkout/confirmation pages
if ( jQuery(e.target).is('input, textarea') || jQuery(e.target).parents('form').length || jQuery('body.woocommerce-checkout').length || jQuery('body.woocommerce-order-received').length ){
return false;
return; //Exit the function but allow the original cut/copy to occur
}

let selection = window.getSelection().toString().trimAll();
Expand Down
17 changes: 14 additions & 3 deletions assets/scss/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,13 @@ body.appearance_page_nebula_options {background-color: #f1f1f1;}
}

//Nebula CF7 Submissions
#adminmenu .toplevel_page_wpcf7.wp-not-current-submenu .wp-submenu {min-width: 225px;} //Widen admin submenu for badge count (when not on that page)

.cf7-submits-today-color {color: $success_color;}
.cf7-submits-today-bg {background-color: $success_color !important;}

#poststuff .nebula-form-title {padding: 15px 0 0 0; font-size: 28px;}

.cf7-submits-possible-spam {opacity: 0.5;}

.post-type-nebula_cf7_submits {
Expand All @@ -377,9 +384,13 @@ body.appearance_page_nebula_options {background-color: #f1f1f1;}
}

#post-body-content {
.nebula-cf7-notice {background: #fff; border: 1px solid #c3c4c7; border-left-width: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.04); margin-top: 19px; padding: 1px 12px;
&.notice-caution {border-left-color: $info_color;}
.nebula-cf7-notice {background: #fff; border: 1px solid #c3c4c7; border-left-width: 4px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); margin-top: 19px; padding: 1px 12px;
&.notice-success {border-left-color: $success_color;}
&.notice-info,
&.notice-caution {border-left-color: darken($info_color, 11%);}
&.notice-warning,
&.notice-invalid {border-left-color: $warning_color;}
&.notice-error,
&.notice-spam {border-left-color: $danger_color;}
}
}
Expand All @@ -403,7 +414,7 @@ table.nebula-cf7-submissions {border-collapse: collapse; width: 100%; margin-top
}

&.nebula-cf7-submission-caution {
thead {background: $info_color; color: readable-color($info_color);}
thead {background: darken($info_color, 11%); color: readable-color(darken($info_color, 11%));}
}

tbody {
Expand Down
6 changes: 6 additions & 0 deletions assets/scss/partials/_helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@
&.btn-danger:focus {color: #fff;}
}

//These help on the admin side where Bootstrap CSS is not loaded
.text-success {color: $success_color;}
.text-warning {color: $warning_color;}
.text-danger {color: $danger_color;}
.text-info {color: darken($info_color, 11%);}

.nebula-flex-first {order: -1;} //Default flex order is 0. This class forces a column before that.

.col-centered {float: none; margin: 0 auto;}
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Theme URI: https://nebula.gearside.com
Description: Nebula is a springboard WordPress theme framework for developers. Like other WordPress startup themes, it has custom functionality built-in (like shortcodes, styles, and JS/PHP functions), but unlike other themes Nebula is not meant for the end-user.
Author: Nebula
Version: 11.11.3.402
Version: 11.11.6.706
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nebula
Expand Down
2 changes: 1 addition & 1 deletion inc/data/nebula_theme.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "11.11.3.402",
"version": "11.11.6.706",
"details_url": "https://github.com/chrisblakley/Nebula/commits/main",
"download_url": "https://github.com/chrisblakley/Nebula/archive/main.zip"
}
Loading

0 comments on commit 10d0b3d

Please sign in to comment.