Skip to content

Commit 5897694

Browse files
committed
Tons of minor Codacy fixes
#1886 #1887
1 parent cb305b4 commit 5897694

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+201
-201
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//Import partials
2-
@import $parent_partials_directory + '/variables';
3-
@import 'variables'; //Child theme variables
4-
@import $parent_partials_directory + '/mixins';
2+
@import $parent_partials_directory + "/variables";
3+
@import "variables"; //Child theme variables
4+
@import $parent_partials_directory + "/mixins";
55

66
//Add critical above-the-fold styles in this file.

Nebula-Child/assets/scss/style.scss

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
*/
1414

1515
//Import Nebula partials
16-
@import $parent_partials_directory + '/variables';
17-
@import 'variables'; //Child theme variables
18-
@import $parent_partials_directory + '/functions';
19-
@import $parent_partials_directory + '/mixins';
20-
@import $parent_partials_directory + '/helpers';
21-
@import $parent_partials_directory + '/animations';
22-
@import '../critical'; //Child theme critical styles
16+
@import $parent_partials_directory + "/variables";
17+
@import "variables"; //Child theme variables
18+
@import $parent_partials_directory + "/functions";
19+
@import $parent_partials_directory + "/mixins";
20+
@import $parent_partials_directory + "/helpers";
21+
@import $parent_partials_directory + "/animations";
22+
@import "../critical"; //Child theme critical styles
2323

2424
//Import child theme partials
25-
@import 'utilities';
26-
@import 'typography';
27-
@import 'header';
28-
@import 'sidebar';
29-
@import 'footer';
25+
@import "utilities";
26+
@import "typography";
27+
@import "header";
28+
@import "sidebar";
29+
@import "footer";

Nebula-Child/resources/sw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//BEGIN automated edits. These will be automatically overwritten.
22
var THEME_NAME = 'nebula-child';
3-
var NEBULA_VERSION = 'v6.12.1.0001'; //Wednesday, May 1, 2019 11:20:03 AM
3+
var NEBULA_VERSION = 'v6.12.1.5244'; //Wednesday, May 1, 2019 10:57:42 PM
44
var OFFLINE_URL = 'https://gearside.com/nebula/offline/';
55
var OFFLINE_IMG = 'https://gearside.com/nebula/wp-content/themes/Nebula-master/assets/img/offline.svg';
66
var OFFLINE_GA_DIMENSION = 'cd2';
@@ -10,7 +10,7 @@ var HOME_URL = 'https://gearside.com/nebula/';
1010
var START_URL = 'https://gearside.com/nebula/?utm_source=pwa';
1111
//END automated edits
1212

13-
importScripts('https://storage.googleapis.com/workbox-cdn/releases/4.3.0/workbox-sw.js'); //https://developers.google.com/web/tools/workbox/guides/get-started
13+
importScripts('https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js'); //https://developers.google.com/web/tools/workbox/guides/get-started
1414
workbox.setConfig({debug: false}); //https://developers.google.com/web/tools/workbox/guides/troubleshoot-and-debug
1515

1616
//@todo "Nebula" 0: If ?debug is present in the URL on load, dump the entire cache and unregister (or update) the SW completely

Nebula-Child/style.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/critical.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/login.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/pre.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/admin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jQuery(window).on('load', function(){
107107
}, 1000, 'nebula options filter history api');
108108

109109
//Prevent the form from submitting if pressing enter after searching
110-
if ( e.type == 'keydown' && e.keyCode == 13 ){
110+
if ( e.type === 'keydown' && e.keyCode === 13 ){
111111
e.preventDefault();
112112
return false;
113113
}
@@ -674,7 +674,7 @@ function checkDependents(inputObject){
674674
}
675675
});
676676

677-
if ( dependentsChecked == totalDependents ){
677+
if ( dependentsChecked === totalDependents ){
678678
oThis.removeClass('inactive').find('.dependent-note').addClass('hidden');
679679
}
680680
});
@@ -694,7 +694,7 @@ function checkDependents(inputObject){
694694
}
695695
});
696696

697-
if ( dependentsUnchecked == totalDependents ){
697+
if ( dependentsUnchecked === totalDependents ){
698698
oThis.addClass('inactive').find('.dependent-note').removeClass('hidden');
699699
}
700700
});
@@ -969,7 +969,7 @@ function debounce(callback, wait, uniqueID, immediate){
969969
}
970970

971971
if ( !uniqueID ){
972-
uniqueID = "Don't call this twice without a uniqueID";
972+
uniqueID = 'Do not call this twice without a uniqueID';
973973
}
974974

975975
var context = this, args = arguments;

assets/scss/admin.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
@import 'variables';
2-
@import 'functions';
3-
@import 'mixins';
4-
@import 'helpers';
1+
@import "variables";
2+
@import "functions";
3+
@import "mixins";
4+
@import "helpers";
55

66
$admin_media_queries: (
77
widescreen: "(max-width: 1800px) and (min-width: 1500px)",
@@ -21,7 +21,7 @@ $admin_media_queries: (
2121

2222
//Lighten the primary color if too dark for WordPress menu backgrounds
2323
$admin_hover_color: lighten($primary_color, 22%);
24-
@if high-contrast-color($primary_color) == '#000' {
24+
@if high-contrast-color($primary_color) == "#000" {
2525
$admin_hover_color: $primary_color;
2626
}
2727

@@ -210,7 +210,7 @@ td.column-title strong, td.plugin-title strong {font-size: 12px !important;}
210210
.widefat .column-wpseo-focuskw {width: 100px; font-size: 10px !important; background: #fafafa;}
211211

212212
#dashboard_right_now a[href$="options-reading.php"] {color: $danger_color !important; font-weight: 700;
213-
&:before {content: '!'; background: $danger_color; color: #fff; padding: 0 7px; margin-right: 5px;}
213+
&:before {content: "!"; background: $danger_color; color: #fff; padding: 0 7px; margin-right: 5px;}
214214
}
215215

216216
ul.admin-menu-tree-page-tree .admin-menu-tree-page-expand {width: 19px; height: 20px;}
@@ -337,7 +337,7 @@ body.appearance_page_nebula_options {background-color: #f1f1f1;}
337337

338338
input[type=checkbox] {height: 0; width: 0; visibility: hidden; display: none;
339339
+ label {display: flex; position: relative; align-items: center; cursor: pointer; text-indent: 50px; width: 38px; white-space: nowrap; padding: 0.5rem 0; font-size: 1rem; line-height: 1; background: #ddd; border-radius: 1.25rem; margin: 0 15px 0 0; overflow: visible;
340-
&:after {content: ''; position: absolute; top: 6px; left: 5px; width: 1rem; height: 1rem; background: #fff; border-radius: 50%; transition: 0.25s;
340+
&:after {content: ""; position: absolute; top: 6px; left: 5px; width: 1rem; height: 1rem; background: #fff; border-radius: 50%; transition: 0.25s;
341341
&:after {width: 1rem;}
342342
}
343343
}

0 commit comments

Comments
 (0)