Reindent code by 2 spaces, instead of 4

This commit is contained in:
Tautvidas Sipavičius
2015-08-27 13:50:05 +03:00
parent 21a4843a48
commit e6d59496eb
72 changed files with 7216 additions and 7264 deletions

View File

@ -135,7 +135,6 @@ select.mailpoet_font-size
border: 1px solid $range-track-border-color border: 1px solid $range-track-border-color
background: $range-track-background-color background: $range-track-background-color
.mailpoet_range_small .mailpoet_range_small
width: 100px width: 100px
@ -174,7 +173,6 @@ select.mailpoet_font-size
color: $button-default-text-color color: $button-default-text-color
border-radius(3px) border-radius(3px)
line-height: normal line-height: normal
vertical-align: top vertical-align: top
.mailpoet_button_full .mailpoet_button_full

View File

@ -45,7 +45,6 @@
&::before &::before
content: '\f140' content: '\f140'
.mailpoet_save_as_template_container .mailpoet_save_as_template_container
border-radius(3px) border-radius(3px)
float: left float: left

View File

@ -25,7 +25,6 @@ $sidepanel-active-heading-color = $primary-active-color
width: 120px width: 120px
.mailpoet_sidepanel_field_title_inline .mailpoet_sidepanel_field_title_inline
//clear: left
display: inline-block display: inline-block
vertical-align: middle vertical-align: middle
line-height: 30px line-height: 30px

View File

@ -17,4 +17,3 @@ $button-vertical-padding = 13px
&:hover &:hover
cursor: all-scroll cursor: all-scroll

View File

@ -49,7 +49,6 @@ $tool-width = 16px
border: 1px dashed $active-social-icon-set-border-color border: 1px dashed $active-social-icon-set-border-color
background-color: $active-social-icon-set-background-color background-color: $active-social-icon-set-background-color
.mailpoet_social_icon_settings .mailpoet_social_icon_settings
position: relative position: relative
@ -68,7 +67,6 @@ $tool-width = 16px
.mailpoet_social_icon_settings_label .mailpoet_social_icon_settings_label
margin-right: 5px margin-right: 5px
text-align: left text-align: left
.mailpoet_social_icon_image .mailpoet_social_icon_image
@ -90,7 +88,6 @@ $tool-width = 16px
vertical-align: middle vertical-align: middle
display: inline-block display: inline-block
.mailpoet_social_icon_settings_tool .mailpoet_social_icon_settings_tool
position: absolute position: absolute
top: 10px top: 10px

View File

@ -15,7 +15,6 @@ div.mce-toolbar-grp.mce-container
border-radius(3px) border-radius(3px)
background-color: $primary-background-color background-color: $primary-background-color
border: 1px solid $content-border-color border: 1px solid $content-border-color
box-shadow(0px 0px 3px 1px rgba(0, 0, 0, 0.05)) box-shadow(0px 0px 3px 1px rgba(0, 0, 0, 0.05))
.mce-window .mce-window
@ -39,13 +38,13 @@ div.mce-toolbar-grp.mce-container
/* Style "No search term specified" in TinyMCE link editor */ /* Style "No search term specified" in TinyMCE link editor */
#wp-link li, #wp-link div.query-notice #wp-link li, #wp-link div.query-notice
clear: both clear: both
margin-bottom: 0 margin-bottom: 0
border-bottom: 1px solid #f1f1f1 border-bottom: 1px solid #f1f1f1
color: #333 color: #333
padding: 4px 6px padding: 4px 6px
cursor: pointer cursor: pointer
position: relative position: relative
/* Remove empty space between WP admin sidebar and content */ /* Remove empty space between WP admin sidebar and content */
#wpbody-content > * #wpbody-content > *

View File

@ -2,4 +2,3 @@ box-shadow()
-webkit-box-shadow: arguments -webkit-box-shadow: arguments
-moz-box-shadow: arguments -moz-box-shadow: arguments
box-shadow: arguments box-shadow: arguments

View File

@ -23,5 +23,4 @@ $warning-alternate-text-color = #f4c6c8
$error-text-color = #d54e21 $error-text-color = #d54e21
// Dimensions // Dimensions
$newsletter-width = 600px $newsletter-width = 600px

View File

@ -20,5 +20,4 @@ define('newsletter_editor/behaviors/ColorPickerBehavior', [
}); });
}, },
}); });
}); });

View File

@ -424,5 +424,4 @@ define('newsletter_editor/behaviors/ContainerDropZoneBehavior', [
return depth === 0 || (depth === 1 && orientation === 'horizontal' && childCount <= this.options.columnLimit); return depth === 0 || (depth === 1 && orientation === 'horizontal' && childCount <= this.options.columnLimit);
}, },
}); });
}); });

View File

@ -128,5 +128,4 @@ define('newsletter_editor/behaviors/DraggableBehavior', [
}; };
}, },
}); });
}); });

View File

@ -65,5 +65,4 @@ define('newsletter_editor/behaviors/ResizableBehavior', [
} }
}, },
}); });
}); });

View File

@ -36,5 +36,4 @@ define('newsletter_editor/behaviors/SortableBehavior', [
} }
} }
}); });
}); });

View File

@ -336,5 +336,4 @@ define('newsletter_editor/blocks/automatedLatestContent', [
}); });
}); });
}); });
}); });

View File

@ -215,5 +215,4 @@ define('newsletter_editor/blocks/base', [
}, },
}); });
}); });
}); });

View File

@ -158,5 +158,4 @@ define('newsletter_editor/blocks/button', [
}); });
}); });
}); });
}); });

View File

@ -344,5 +344,4 @@ define('newsletter_editor/blocks/container', [
}); });
}); });
}); });
}); });

View File

@ -169,5 +169,4 @@ define('newsletter_editor/blocks/divider', [
}); });
}); });
}); });
}); });

View File

@ -143,5 +143,4 @@ define('newsletter_editor/blocks/footer', [
}); });
}); });
}); });
}); });

View File

@ -143,5 +143,4 @@ define('newsletter_editor/blocks/header', [
}); });
}); });
}); });
}); });

View File

@ -385,5 +385,4 @@ define('newsletter_editor/blocks/image', [
}); });
}); });
}); });
}); });

View File

@ -476,5 +476,4 @@ define('newsletter_editor/blocks/posts', [
}); });
}); });
}); });
}); });

View File

@ -370,5 +370,4 @@ define('newsletter_editor/blocks/social', [
}); });
}); });
}); });
}); });

View File

@ -101,5 +101,4 @@ define('newsletter_editor/blocks/spacer', [
}); });
}); });
}); });
}); });

View File

@ -122,5 +122,4 @@ define('newsletter_editor/blocks/text', [
}); });
}); });
}); });
}); });

View File

@ -21,7 +21,10 @@ define('newsletter_editor/components/config', [
// Global and available styles for access in blocks and their settings // Global and available styles for access in blocks and their settings
Module._config = {}; Module._config = {};
Module.getConfig = function() { return Module._config; }; Module.getConfig = function() { return Module._config; };
Module.setConfig = function(options) { Module._config = new Module.ConfigModel(options, { parse: true }); return Module._config; }; Module.setConfig = function(options) {
Module._config = new Module.ConfigModel(options, { parse: true });
return Module._config;
};
App.on('before:start', function(options) { App.on('before:start', function(options) {
// Expose config methods globally // Expose config methods globally
@ -31,5 +34,4 @@ define('newsletter_editor/components/config', [
App.setConfig(options.config); App.setConfig(options.config);
}); });
}); });
}); });

View File

@ -76,5 +76,4 @@ define('newsletter_editor/components/content', [
App._appView.contentRegion.show(App._contentContainerView); App._appView.contentRegion.show(App._contentContainerView);
}); });
}); });
}); });

View File

@ -29,5 +29,4 @@ define('newsletter_editor/components/heading', [
App._appView.headingRegion.show(new Module.HeadingView({ model: App.getNewsletter() })); App._appView.headingRegion.show(new Module.HeadingView({ model: App.getNewsletter() }));
}); });
}); });
}); });

View File

@ -174,5 +174,4 @@ define('newsletter_editor/components/save', [
App._appView.bottomRegion.show(saveView); App._appView.bottomRegion.show(saveView);
}); });
}); });
}); });

View File

@ -255,5 +255,4 @@ define('newsletter_editor/components/sidebar', [
App._appView.sidebarRegion.show(sidebarView); App._appView.sidebarRegion.show(sidebarView);
}); });
}); });
}); });

View File

@ -79,5 +79,4 @@ define('newsletter_editor/components/styles', [
App._appView.stylesRegion.show(stylesView); App._appView.stylesRegion.show(stylesView);
}); });
}); });
}); });

View File

@ -25,4 +25,3 @@ module.exports = {
this.loadScript("views/newsletter/templates/" + path, w, options); this.loadScript("views/newsletter/templates/" + path, w, options);
}, },
}; };

View File

@ -397,5 +397,4 @@ define('test/newsletter_editor/blocks/automatedLatestContent', [
}); });
}); });
}); });
}); });

View File

@ -418,5 +418,4 @@ define('test/newsletter_editor/blocks/button', [
}); });
}); });
}); });
}); });

View File

@ -203,5 +203,4 @@ define('test/newsletter_editor/blocks/container', [
}); });
}); });
}); });
}); });

View File

@ -202,5 +202,4 @@ define('test/newsletter_editor/blocks/divider', [
}); });
}); });
}); });
}); });

View File

@ -196,5 +196,4 @@ define('test/newsletter_editor/blocks/footer', [
}); });
}); });
}); });
}); });

View File

@ -199,5 +199,4 @@ define('test/newsletter_editor/blocks/header', [
}); });
}); });
}); });
}); });

View File

@ -196,5 +196,4 @@ define('test/newsletter_editor/blocks/image', [
}); });
}); });
}); });
}); });

View File

@ -384,5 +384,4 @@ define('test/newsletter_editor/blocks/posts', [
}); });
}); });
}); });
}); });

View File

@ -276,5 +276,4 @@ define('test/newsletter_editor/blocks/social', [
}); });
}); });
}); });
}); });

View File

@ -139,5 +139,4 @@ define('test/newsletter_editor/blocks/spacer', [
}); });
}); });
}); });
}); });

View File

@ -68,5 +68,4 @@ define('test/newsletter_editor/blocks/text', [
}); });
}); });
}); });
}); });

View File

@ -44,5 +44,4 @@ define('test/newsletter_editor/components/heading', [
}); });
}); });
}); });
}); });

View File

@ -77,5 +77,4 @@ define('test/newsletter_editor/components/save', [
}); });
}); });
}); });
}); });

View File

@ -4,7 +4,6 @@ define('test/newsletter_editor/components/sidebar', [
], function(EditorApplication) { ], function(EditorApplication) {
describe('Sidebar', function() { describe('Sidebar', function() {
describe('content view', function() { describe('content view', function() {
var view; var view;
beforeEach(function() { beforeEach(function() {
@ -185,5 +184,4 @@ define('test/newsletter_editor/components/sidebar', [
}); });
}); });
}); });
}); });

View File

@ -42,5 +42,4 @@ define('test/newsletter_editor/components/config', [
}); });
}); });
}); });
}); });