Compare commits

...

426 Commits

Author SHA1 Message Date
21d6a69820 Release 3.46.6 2020-03-23 18:41:44 +01:00
ea6f9bb76a Fix tests
[MAILPOET-2614]
2020-03-23 18:30:26 +01:00
68ad8a72c0 Remove html support, we don't support that
[MAILPOET-2614]
2020-03-23 18:30:26 +01:00
9ffd442653 Render paragraph properties
[MAILPOET-2614]
2020-03-23 18:30:26 +01:00
c0a5097cdd Add an empty paragraph renderer
[MAILPOET-2614]
2020-03-23 18:30:26 +01:00
6fe3ff3fe1 Load paragraph block from server
[MAILPOET-2614]
2020-03-23 18:30:26 +01:00
718bc278f9 Save paragraph block to server
[MAILPOET-2614]
2020-03-23 18:30:26 +01:00
b7aa1b9f3d Create paragraph block
[MAILPOET-2614]
2020-03-23 18:30:26 +01:00
c15ddf478a Release 3.46.5 2020-03-23 16:38:56 +01:00
1d7fb55ae4 Revert "Remove functionality from old model"
This reverts commit 99f4a377c7.

[MAILPOET-2815]
2020-03-23 14:07:02 +01:00
7e60e9ba7e Make NewsletterTemplateEntity name mandatory
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
a0ee6dadba Ignore PHPStan error about EntityManager::getReference() type for now
PHPStan's Doctrine extension doesn't recognize our prefixed version of Doctrine.
We'll need to address this separately.

[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
72af35e2af Rewrite newsletter template model test to Doctrine repository test
[MAILPOET-2645]
2020-03-23 00:33:40 +01:00
f1fb0c3529 Rewrite newsletter template API tests to Doctrine
[MAILPOET-2645]
2020-03-23 00:33:40 +01:00
239e77256a Add SafeToOneAssociationLoadTrait, use it in NewsletterTemplateEntity
[MAILPOET-2645]
2020-03-23 00:33:40 +01:00
8ffdde144e Backport fix for Doctrine relation lazy loading bug
[MAILPOET-2645]
2020-03-23 00:33:40 +01:00
2a6c777b96 Replace remaining usages of NewsletterTemplate model with Doctrine, remove the model
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
a88cc069a7 Implement NewsletterTempates::cleanRecentlySent() API using Doctrine
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
e9ae4df4bc Remove 'description' from newsletter templates, it's not used anymore
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
196fb6794c Implement NewsletterTempates::delete() API using Doctrine
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
32f5777945 Implement NewsletterTempates::save() API using Doctrine
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
4d110bbb68 Implement NewsletterTempates::get() API using Doctrine
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
29ebd113b5 Implement NewsletterTempates::getAll() API using Doctrine
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
a50a23c0e2 Add NewsletterTemplateEntity and repository
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
e1f913a6b4 Reduce plugin's common styles lenght
[MAILPOET-2487]
2020-03-21 13:26:31 +01:00
2841f5bb89 Reduce editor's common styles lenght
[MAILPOET-2487]
2020-03-21 13:26:31 +01:00
0998f72632 Separate plugin and public styles
[MAILPOET-2487]
2020-03-21 13:26:31 +01:00
f02876b7cf Separate newsletter editor CSS file
[MAILPOET-2487]
2020-03-21 13:26:31 +01:00
cdf52fa6e4 Separate post editor block component
[MAILPOET-2487]
2020-03-21 13:26:31 +01:00
1d112fced6 Separate form editor components
[MAILPOET-2487]
2020-03-21 13:26:31 +01:00
87e9054117 Separate global wordpress styles components
[MAILPOET-2487]
2020-03-21 13:26:31 +01:00
7754da489e Create breakpoints mixin
This will later be used to define breakpoints by name, so developers don't have to remember specific sizes in pixels

[MAILPOET-2487]
2020-03-21 13:26:31 +01:00
7487a2aa63 Create mixin files with SCSS mixins
[MAILPOET-2487]
2020-03-21 13:26:31 +01:00
8afb42d88a Unify newsletter editor variable naming
[MAILPOET-2487]
2020-03-21 13:26:31 +01:00
32b6bff89e Create settings files with just SCSS variables and unify their naming
[MAILPOET-2487]
2020-03-21 13:26:31 +01:00
ae58c44129 Unify SCSS files naming to kebab-case
[MAILPOET-2487]
2020-03-21 13:26:31 +01:00
6d6a01ba53 Rename main styles files
[MAILPOET-2487]
2020-03-21 13:26:31 +01:00
02fe614b27 Split component into two
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
d2716736a1 Use variables and calculations
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
96a5344115 Update acceptance test
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
20f417fe1e Remove debug code
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
46fbb588bb Add checkbox
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
db47fdf22f Use a new close button
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
104f84c863 Add save button
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
915d80d4c5 Display toggle in modal
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
fbae1f10ad Fix modal prop types
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
c77a9f3137 Create toggle component
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
f9aca4fe57 Open settings modal
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
af69fae556 Active state for form placement component
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
15df4ec37c Hover state for form placement component
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
c9a2a44970 Add placement settings header
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
9c4844f77c Create a component for placement settings
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
5d317fc4a8 Remove form placement switches
[MAILPOET-2738]
2020-03-21 10:15:58 +01:00
136b1050a1 Fix proptypes warning in Selection
[MAILPOET-2746]
2020-03-21 09:40:46 +01:00
e9c3049576 Fix saving class name attributes for divider and custom html blocks
[MAILPOET-2746]
2020-03-21 09:40:46 +01:00
162b968f09 Add acceptance test for input custom class name
[MAILPOET-2746]
2020-03-21 09:40:46 +01:00
99be159566 Render custom class names in form editor
[MAILPOET-2746]
2020-03-21 09:40:46 +01:00
060a6839c7 Render form block custom classes on frontend
[MAILPOET-2746]
2020-03-21 09:40:46 +01:00
72a0afa75b Refactor block renderers to use wrapper renderer
[MAILPOET-2746]
2020-03-21 09:40:46 +01:00
65afeca59e Add form block wrapper renderer
[MAILPOET-2746]
2020-03-21 09:40:46 +01:00
6c9d24a6ed Add saving and loading of custom classes
[MAILPOET-2746]
2020-03-21 09:40:46 +01:00
bdd3be889c Allow custom class names in all blocks settings
[MAILPOET-2746]
2020-03-21 09:40:46 +01:00
8ca759dc9b Display selected value for product/category for WooCommerce segments
[MAILPOET-2762]
2020-03-19 21:30:59 +01:00
f1aee6f971 Fix custom color pickers unwanted state reset in style settings
[MAILPOE-2599]
2020-03-19 14:19:06 +01:00
0e2afb9c80 Use proper state properties in input settings
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
f6d4cd11a6 Set auto height for textarea in forms
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
28327f9d0e Render input borders with custom styles as solid
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
002639fa24 Fix input styles range controls reset and initial value
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
4d1b589da3 Disable resize on textarea in form editor
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
4d524f906a Fix textarea label rendering in form editor
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
9565844854 Use blur on focus to make textarea behave like disabled instead readonly
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
9689b846a1 Don't apply any styles if inherit from theme is turned on
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
47142be4c5 Use partial from lodash instead of underscore
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
4726b285c5 Add acceptance test for text input styles settings in form editor
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
126f988e8c Adjust vertical spacing within style settings panel
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
efdcae19c0 Add apply styles to all inputs button
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
760aed407f Render bold labels according to styles settings
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
4e8fda670c Render form input and textarea styles on frontend
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
b70884ecaa Return original default input width to form custom CSS
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
ee49d77ff4 Remove disabled parameter from textarea in editor
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
52bddd763f Apply input styles styles for custom textareas in editor
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
ab3267bb6d Refactor text input to not render as disabled but behave like that
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
631deeb669 Apply input styles styles for text inputs in editor
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
23de26d413 Refactor text inputs in form editor body to a component
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
af87ca3a7d Add border related settings to input style settings
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
eadd6af544 Add background color input style to styles settings
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
026a35fffb Add mapping of form API data format styles to block attributes
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
e6ceb97b18 Add mapping of block styles attribute to API data format
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
251c9ffd38 Add default inputs style settings
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
131a4366da Add dummy input styles settings component
[MAILPOET-2599]
2020-03-19 14:19:06 +01:00
b0b7c020b9 Update the changelog 2020-03-19 11:47:43 +02:00
b4282ea330 Release 3.46.4 2020-03-19 11:47:43 +02:00
f7f09edaeb Ensure same success message in a form test
[MAILPOET-2797]
2020-03-19 10:00:24 +01:00
c26b967e64 Fix segment loading for inconsistent segment/newsletter segment relations
[MAILPOET-2729]
2020-03-18 18:24:38 +01:00
770a831d3d Add SafeToOneAssociationLoadTrait
[MAILPOET-2793]
2020-03-18 18:24:38 +01:00
8c104d2842 Make sure level is always number
Gutenberg compares it using === and the toolbar in the sidebar doesn't work

[MAILPOET-2613]
2020-03-17 21:22:13 +01:00
ca88ef3359 Make h2 and h3 different size in the form editor
[MAILPOET-2613]
2020-03-17 21:22:13 +01:00
52d94256da Map heading colours
[MAILPOET-2613]
2020-03-17 21:22:13 +01:00
3c32811720 Use block editor's color settings for block colors mapping
[MAILPOET-2754]
2020-03-17 21:22:13 +01:00
2d4061b998 Render headings
[MAILPOET-2613]
2020-03-17 21:22:13 +01:00
1b05ea2e68 Create renderer for form headers
[MAILPOET-2613]
2020-03-17 21:22:13 +01:00
0c796e7a7d Remove redundant attributes
[MAILPOET-2613]
2020-03-17 21:22:13 +01:00
40ee30259d Load headings data
[MAILPOET-2613]
2020-03-17 21:22:13 +01:00
f465564d41 Save heading data
[MAILPOET-2613]
2020-03-17 21:22:13 +01:00
4e54740666 Add heading block
[MAILPOET-2613]
2020-03-17 21:22:13 +01:00
cf501dfe1f Release 3.46.3 2020-03-17 11:23:23 +02:00
39c30eb6e8 Fix form preview rendering
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
126b69b750 Render proper font and background color for html block within column
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
1c0f5b875a Fix unique client ids for blocks
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
6e33cc80e2 Fix fields extraction for form data
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
69beccf285 Add default padding for columns with background and margin between columns
Older forms don't have these values in Custom CSS so these are default fallback values
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
6dae3b73ba Hide core/column toolbar because it is rendered empty
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
b6f704c2a8 Simply color styles rendering in form columns
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
8a66fd1811 Use block editor's color settings for block colors mapping
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
4ec53d2d52 Fix switching between HTML blocks
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
5c20c11ac9 Update form validator to be able to check email and submit are present columns
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
fb5df4b09e Add CSS fix for editor header
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
de3aa28dea Remove CSS fix for alignment columns
This was fixed in Gutenberg library

[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
4802461d5a Update fix for react-beautiful-dnd nested scrolling warnings
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
a151d146eb Upgrade react-beatiful-dnd library
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
1b0106b761 Update Gutenberg packages
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
3505ad65dc Re-enable columns and acceptance test
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
6671625fa9 Add padding to make styling consistent
[MAILPOET-2745]
2020-03-16 16:47:48 +01:00
bb3cfa8bc7 Use gutenberg button
[MAILPOET-2745]
2020-03-16 16:47:48 +01:00
0e0e25b208 Add back button to form editor
[MAILPOET-2745]
2020-03-16 16:47:48 +01:00
10e28e7a27 Remove absolute positioning
[MAILPOET-2744]
2020-03-16 10:00:55 +01:00
a8b0f1de2b Use name as fallback label
[MAILPOET-2747]
2020-03-16 08:35:52 +01:00
a98e98487b Fix Creating textarea custom field
[MAILPOET-2719]
2020-03-16 08:35:37 +01:00
27bf71bad9 Refactoring the control to be reusable
[MAILPOET-2676]
2020-03-16 08:03:26 +01:00
1026b07495 Add comments about TS keyof and overloads
[MAILPOET-2676]
2020-03-16 08:03:26 +01:00
187c8f5ac7 Use full name for classnames
[MAILPOET-2676]
2020-03-16 08:03:26 +01:00
33ccb84744 Create a separate bundle for settings
[MAILPOET-2676]
2020-03-16 08:03:26 +01:00
1fba3c2e5b Add Settings tabs
[MAILPOET-2676]
2020-03-16 08:03:26 +01:00
b9a3b40f12 Remove temporary code
[MAILPOET-2676]
2020-03-16 08:03:26 +01:00
e617475803 Add useSetting and useSettingSetter hooks
Because `useSelector('getSetting')` and `useAction('setSetting')` dont have detailed type definitions
for parameters and return. The type definitions for these two hooks are verbose but they ensure more
type coverage and proper code auto-completion.
[MAILPOET-2676]
2020-03-16 08:03:26 +01:00
9174df7323 Add useActions and useSelector hooks
[MAILPOET-2676]
2020-03-16 08:03:26 +01:00
1d6a7f6fde Create WP Redux store
[MAILPOET-2676]
2020-03-16 08:03:26 +01:00
408437af70 Inject all settings
[MAILPOET-2676]
2020-03-16 08:03:26 +01:00
1d029374e8 Create new settings page
[MAILPOET-2676]
The new settings can be accessed via `?page=mailpoet-new-settings`
I don't think we need a flag for this because it's already hidden.
2020-03-16 08:03:26 +01:00
2917361a98 Fix wrong Doctrine 'inversedBy' annotation
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
038a7fee1c Escape parameter for LIKE statement
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
2cc1caba07 Prefetch options & segments for listing
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
f3525eb293 Fetch latest queue & task for listing in batch
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
65ab8fd420 Fetch statistics for listing in batch
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
310d658647 Add tests for remaining NewslettersListingRepository functionality
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
cf88ada402 Rewrite old tests to NewslettersListingRepository tests
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
82fe4e6c78 Add helper method for truncating entities in integration tests
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
99f4a377c7 Remove functionality from old model
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
8f8439d47f Use NewslettersListingRepository for newsletter groups
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
b4bcc5179c Use NewslettersListingRepository for newsletter filters
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
51882b43cf Add NewsletterListingRepository, use it for newsletters data
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
f1e044aa28 Add abstract ListingRepository as a base class for all listing repos
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
fe16dd3ccc Add ListingDefinition value object and its factory
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
521b473755 Sanitize database values before they are decoded
[MAILPOET-2674]
2020-03-11 16:38:52 +00:00
339b087dd9 Display only the new editor KB
[MAILPOET-2713]
2020-03-11 16:33:54 +00:00
9de080b336 Add KB about the new form
[MAILPOET-2713]
2020-03-11 16:33:54 +00:00
3248c77bb3 Shortcodes cannot spread to multiple lines
Wordpress as well doesn't use those modifiers

[MAILPOET-2660]
2020-03-11 16:32:42 +00:00
038cc0bc6b Remove Feedback section from form editor
[MAILPOET-2735]
2020-03-11 16:26:50 +00:00
276986c0f9 Increase specificity of default margin for form fields
[MAILPOET-2609]
2020-03-11 16:20:46 +00:00
54c2b5b6ac Disable columns blocks in form editor
[MAILPOET-2609]
2020-03-11 16:20:46 +00:00
976c1be012 Fix unsubscribe from hidden lists
[MAILPOET-2664]
2020-03-11 16:15:32 +00:00
535ca3db55 Update wordpress tested version
[MAILPOET-2753]
2020-03-11 16:12:30 +00:00
ef1cee0fdf Fix Swiftmailer autoloader to handle only Swift_* classes in MailPoetVendor namespace
[MAILPOET-2722]
2020-03-10 18:36:51 +00:00
ebfda35e9d Added eu-central-1, ap-south-1, ap-southeast-2 as Amazon SES regions 2020-03-08 13:19:10 +02:00
9378aef58c Move layout category above fields in block inserter
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
772df80f01 Change class name for columns with background
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
23a8a46858 Move column spacing styles to Custom CSS
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
8c7fa4fb16 Add public styles to form editor to fix rendering in preview
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
564c61a82b Add acceptance test for form with columns
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
d9d1f05119 Change form input wrappers to form p to div
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
28b750c9e2 Fix vertical alignment rendering within column block in editor
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
7bf1b69a94 Update form::getFields to return also nested fields
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
0c64c38e61 Add small container detection on desktop
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
e5f84f9333 Ensure email and submit are always present even when deleted with columns
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
6b718dfb2c Add background color indicating class also for custom backgrounds
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
ab1e2ef0a9 Remove disabled from text inputs in form editor
Was causing that those inputs were rendered with transparent background
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
6c4a7a9ee0 Display correct margins for items within columns
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
eb4b0a5c1d Add css for mobiles for form columns
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
cce9997084 Add custom text, background support to columns, column renderer
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
634bd391e1 Add custom class name support to columns/column
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
4acdb24af3 Add text color support to columns
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
747269d6ff Add support for basic background color
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
b036a466e5 Add vertical alignment support to columns renderer
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
d6b06ec371 Store columns block vertical alignment settings
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
6dc1fa5177 Add form block basic colors to public css
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
b51ce7c1b2 Store columns block custom class name
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
8e71f8d3cc Store columns text and background colors settings
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
c93efabc70 Add CSS for block columns for desktop
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
b767387551 Add column/columns block renderering
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
c5f4962645 Add column/columns block renderers
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
7cccd68d08 Add storing of vertical alignment property for column blocks
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
1c6cffc44d Add mapping for blocks from stored form data
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
97f76717eb Move test data from form to blocks test to separate file
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
ea99002b43 Move test data from blocks to form mapper test to separate file
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
1d7fffbe8d Add saving of nested columns blocks
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
5f2aa1adda Add core\columns and core\column blocks to form editor
[MAILPOET-2610]
2020-03-06 14:15:14 +01:00
f31378922b Add layout category and move divider block in it
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
3d7a3ac2d9 Release 3.46.2 2020-03-03 12:47:33 +01:00
698c523d25 Remove React.FC
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
dc280fd38c Ignore PropTypes ESLint warnings
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
e951591d6f Use Typescript instead of InferProps
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
34409432e8 Fix ESlint for Typescript
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
0ceac8921f Add Typescript linting to qa:lint-javascript command
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
20909f0912 Generate PropTypes from Typescript definitions
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
a669beed07 Add ESLint rule for Typescript files
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
9de1481efe Add First .ts file
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
33948892fa Add possibility to omit extensions
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
83f3729e37 Refactor APIErrorsNotice to Typescript
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
25aec60bc9 Refactor Notice component to Typescript
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
cbe2fc64bb Install and configure Typescript
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
9547839aa9 Remove unused component
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
f5fc03ee1d Fix preview
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
61251f6e34 Fix styling form bellow post
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
ec8adcae73 Move form wrapping to widget
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
691a8a45f3 Render font size
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
ce127eadc1 Render styles for the form
[MAILPOET-2600]

Signed-off-by: Pavel Dohnal <pavel@mailpoet.com>
2020-03-02 20:52:38 +00:00
b49ce7d4e4 Improve styling of styles settings panel
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
d83975dc64 Use font picker from components
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
57b0747b6e Remove toggle that has been removed from specs
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
24c87ad19e Add font size title
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
2c7b8a7d25 Use font size from settings
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
07bbdc59f6 Add font size control
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
3f74b74ff0 Rename component
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
713908b6c3 Display texts using selected colour
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
fbc650e331 Add component for font colour
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
eef74fa2cc Display background colour
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
317bed32b1 Add component for background colour
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
8fa61ca883 Update Guteneberg packages
They added some minor fixes before release of wp5.4
[MAILPOET-2609]
2020-03-02 20:52:38 +00:00
a1df6acdcc Add Form Styles Panel
[MAILPOET-2600]
2020-03-02 20:52:38 +00:00
ac557d692e Fix throttling integration test
[MAILPOET-2723]
2020-03-02 12:49:26 +00:00
7b2eef18ad Fix font color when deleting editor block
[MAILPOET-2723]
2020-03-02 12:49:26 +00:00
c9c1b1fa92 Remove input because it would never apply
Renderer adds the class directly to the input element
and the css would never apply.

[MAILPOET-2601]
2020-02-27 18:49:59 +00:00
927d9cf87e Add classes to inputs
[MAILPOET-2601]
2020-02-27 18:49:59 +00:00
daefe143a0 Add mailpoet_paragraph class to all blocks
[MAILPOET-2601]
2020-02-27 18:49:59 +00:00
21926ea3e0 Add mailpoet_form class to form
[MAILPOET-2601]
2020-02-27 18:49:59 +00:00
9e5acecbc0 Fix useNotices implementation 2020-02-26 19:45:43 +00:00
c921bc6f71 Use useMemo and useCallback to memoize context values 2020-02-26 19:45:43 +00:00
2f2a00cbbe Remove MailPoet.Notice 2020-02-26 19:45:43 +00:00
493d6caffc Release 3.46.1 2020-02-25 13:17:45 +01:00
95d8365fb7 Fix image position changes for full post not trigering rendering
[MAILPOET-2491]
2020-02-25 08:08:23 +00:00
b52def5c57 Add integration tests for 'fullPostFeaturedImagePosition'
[MAILPOET-2491]
2020-02-25 08:08:23 +00:00
8b4537676a Fix featured image display for existing products with display type 'full'
[MAILPOET-2491]
2020-02-25 08:08:23 +00:00
26d8d7213b Fix wrong property in a condition
[MAILPOET-2491]
2020-02-25 08:08:23 +00:00
419a87b6c6 Alter JS tests for full post featured image setting
[MAILPOET-2491]
2020-02-25 08:08:23 +00:00
499c14e0a3 Set default for newly added blocks to 'left', for existing blocks to 'none'
[MAILPOET-2491]
2020-02-25 08:08:23 +00:00
15b166d188 Render featured image for full post display type
[MAILPOET-2491]
2020-02-25 08:08:23 +00:00
efb779e3e7 Add new 'fullPostFeaturedImagePosition' for full post image positioning
[MAILPOET-2491]
2020-02-25 08:08:23 +00:00
515131e55d Switch post display types using backbone views, instead of manually
[MAILPOET-2491]
2020-02-25 08:08:23 +00:00
d592e9e1a6 Show/hide display options using backbone views, instead of manually
[MAILPOET-2491]
2020-02-25 08:08:23 +00:00
97d888099b Display featured image settings also for full post display type
[MAILPOET-2491]
2020-02-25 08:08:23 +00:00
1c0112ab28 Move error message bellow form
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
20a3e6cac4 Add preview class
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
5f2effbaf8 Use a better className
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
c6d6db6726 Remove disabled, it would affect the look of the button
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
646b75c5db Disable warning
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
8bdb64a97b Disable submit on preview
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
8885003b41 Use flexbox to center modal window
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
afd7087112 Display preview on the whole screen
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
8cf8c6004c Display preview border
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
e534997d48 Display preview modes switches
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
bf9ddc10cb Prevent closing modal on click inside
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
91bce97ab4 Make modal spinner centered
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
fce212ec19 Display preview
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
b6c2e4554d Use our modal instead of Gutenberg one
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
38a62850fc Add modal component
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
176ecef4f7 Add Form preview rudimentary component
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
8439b8cb2e Create action to show preview
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
0b41af44f2 Add preview button
[MAILPOET-2602]
2020-02-24 22:42:53 +00:00
wxa
9e587bf770 Update the 'Subscribe in registration form' setitng description [MAILPOET-2700] 2020-02-24 18:59:05 +00:00
2d3919d2e3 Display 'Subscribe in registration form' even if registration is disabled
[MAILPOET-2700] & [MAILPOET-2565]
2020-02-24 18:59:05 +00:00
81531116e7 Fix signup confirmation email for WP users trigger
[MAILPOET-2700]
2020-02-24 18:59:05 +00:00
ecc1d68b5b Check if bounce sync is scheduled within 42 hours for all emails when sending
[MAILPOET-2705]
2020-02-20 17:34:07 +00:00
024ac52fb9 Add phpstan-doctrine extension
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
f980cb00d8 Update PHPStan
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
c7de47b822 Fix class/interface/trait opening brace on the same line
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
f56cd6934f Add CodeSniffer rule for opening brace of class/interface/trait
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
1774b48666 Autofix unused "use" statements
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
707eb399a8 Add CodeSniffer rule for unused "use" statements
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
e185121f43 Fix properties with trailing underscore
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
ec6ecdb79e Add CodeSniffer rules for parameter, property, and return typehint spacing
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
eae5c5010d Fix properties with missing visibility
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
53f2614c02 Add CodeSniffer rule for declaring class properties
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
153c72cd77 Autofix long scalar typehints to short ones
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
56286bfd11 Add CodeSniffer rule enforcing short scalar typehint variants
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
b39dac75d6 Autofix number of newlines between methods
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
73963bd37a Add CodeSniffer rule for empty lines between methods
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
e640395589 Move indentation rules to a custom section
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
4e538cbcf7 Move other class/interface related rules to their section
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
b160df9ea7 Add CodeSniffer rule to check for duplicate class name
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
30f461a95c Add CodeSniffer rule to enforce lowercase 'class' keyword
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
3a9f806641 Add rule to disable inline HTML in PHP (exclude Widget.php)
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
36e25621e6 Move other file-related sniffs to the same section
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
0dcdf6e9f1 Autofix line endings
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
d9db919651 Add CodeSniffer rule to enforce newline at end of file
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
feec59e581 Fix deprecated usage of join() parameters order
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
f6a993f731 Update Code Sniffer packages
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
70f05590ce Release 3.46.0 2020-02-18 12:48:39 +01:00
ffc9a89c55 Use serialized_array type in form entity
[MAILPOET-2710]
2020-02-18 08:11:59 +00:00
7568d57757 Introduce serialized_array type
[MAILPOET-2710]
2020-02-18 08:11:59 +00:00
ede14fc661 Exclude deleted form from display below post/page check
[MAILPOET-2710]
2020-02-18 08:11:59 +00:00
c396d74d90 Refactor form block assets enqueuing to use proper hook
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
01d54a085d Fix imports for mailpoet block icon
This import caused that whole components package was bundeled into block js asset and was causing various issues.
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
0fd954184d Create a new form for the user
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
3443f082ef Fixes after I messed up rebase :( sorry
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
fd2c13a2e3 Refactor block registering
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
f4b9836332 Use subscription in the block name
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
4da5b2e5c4 Add type hints
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
55da20c8ce Make the order stable
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
62c5a8cc84 Rename block attribute
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
831a865c9e Use explicit code instead of PHP magic
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
8da7330a8d Use wp class intead of calling functions directly
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
5ad6016a60 Add KB link
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
43f628e580 Add translations
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
7f2f4e0296 Render form on frontend
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
8b878e98d2 Add settings
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
1dbf4714b1 Add link to the new form
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
9877fed216 Add icon
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
6befd09423 Render form after it is added to the page
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
9fcb189295 Save form selection
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
eb4ea14744 Add forms select
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
5b84c0cfad Add block icon
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
261624c2bb Create basic block
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
f11102ab34 Use DOMNodeList length property of DOMNodeList::count
DOMNodeList::count was added it php7.2
[MAILPOET-2712]
2020-02-17 17:54:11 +00:00
7f631a1166 Fix rendering and assets loading for forms below page/post
[MAILPOET-2706]
2020-02-17 17:49:16 +00:00
dc6e2009b0 Update readme
[MAILPOET-2670]
2020-02-13 19:04:09 +00:00
4c86b5468a Reduce beamer frequency
[MAILPOET-2704]
2020-02-13 19:01:46 +00:00
064a83ed9b Offer concierge migration to users with large list
[MAILPOET-2629]
2020-02-13 19:00:42 +00:00
c7d7d88028 Remove freemail override on MSS activation
[MAILPOET-2594]
2020-02-13 18:57:44 +00:00
490a72aed3 Allow but ignore not string content in MailPoet\Form\DisplayFormInWPContent
[MAILPOET-2699]
2020-02-13 18:51:24 +00:00
57d480c6e4 Disable duplication for email and submit blocks 2020-02-13 18:49:06 +00:00
3868baf126 Fix block editor keyboard shortcuts support
[MAILPOET-2571]
2020-02-13 18:49:06 +00:00
866167b597 Rename Base to BlockRendererHelper
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
314ce6ed8a Remove renderer render method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
92fade57e4 Remove unnecessary inheritance in test helper
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
6f3ebc5791 Fix and unify formatting in php doc for mocks
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
d5bf33c49a Move dateConverter to common utils namespace
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
4afc47463f Add form renderer integration test
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
f8a86bc877 Set FromRenderer service as public
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
f959be13dd Add typehints to form block renderers
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
268fe0f2ad Add date input renderer test
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
0e6a894977 Add submit button renderer test
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
204af78a56 Add radio buttons input renderer test
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
9238f3fd68 Add test for segments renderer
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
778576e674 Add divider and custom html tests
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
4460a802db Add text and textarea renderers tests
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
072c6e48a0 Add basic checkbox test
[MAILPOET-265]
2020-02-13 18:42:55 +00:00
c8663c3b79 Add test for base renderer
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
c6ca749cdc Refactor form blocks to use composition instead of inheritance
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
20926d56b7 Inject form renderer into DisplayFormInWPContent
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
b38bd63bc5 Add unit test for form renderer
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
2e5fd69658 Remove unused variable from form select block
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
f0c1c3e424 Move select block integration test to unit test
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
c1180cd0aa Inject dependencies into form blocks parent
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
d0acad5c3b Inject WPFunctions to FieldNameObfuscator using DI
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
7d596e3407 Extract unrelated date conversion functionality from date block
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
dc5a296133 Inject dateBlock to services which use it
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
6827eb93e6 Add block renderers to DI container
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
d9b9e13a04 Extract rendering of a single block to extra class
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
a759530b9d Refactor recatcha and honeypot rendering to extra private methods
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
73281f0851 Inject settings and style utils to renderer using constructor
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
f559d5f479 Add typehints to form renderer
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
5193d4641c Refactor getBlocks and getBlock methods from static to instance methods
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
37423908d7 Refactor getStyles method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
087a610be5 Refactor renderHTML method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
b8dd243ec1 Refactor renderStyles method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
8e9c41145d Mark renderer method which is not used out of renderer as private
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
2306be6b16 Register form renderer to DI container
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
e72b1ec71d Remove unused public method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
fb7e87706b Remove unnecessary usages of $subscriber for preview links
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
b22198f599 Use only one preview link in preview modal
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
369675626c Make endpoint response method private, fix naming
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
4c4a0e4caa Fix and refactor ViewInBrowserRendererTest
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
ce21cc2085 Move Newsletter\ViewInBrowserTest to ViewInBrowserRendererTest
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
4be306230b Fix findOne() method annotation
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
e3cc5a0ec0 Fix and refactor ViewInBrowserControllerTest
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
216341d5f6 Move ViewInBrowserTest to ViewInBrowserControllerTest
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
a3b8aa78a5 Refactor ViewInBrowserController to use methods and descriptive exceptions
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
88d76d5efa Rename Newsletters\ViewInBrowser to ViewInBrowserRenderer
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
edb18399a1 Extract view-in-browser logic to a controller
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
077591ae3c Use DI for Newsletter\ViewInBrowser
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
3cd5af448e Rewrite view-in-browser to always require newsletter ID and hash, refactor
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
ddfc9647dd Use array instead of \stdClass, fix coding style
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
923dc0d1dd Simplify and unify getViewInBroserUrl calls
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
e5fcf5819d Remove 'type' parameter for view-in-browser, always include hash
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
eb1c7673e3 Make $preview = true default for view-in-broser URL
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
2f59ab4c50 Add new tab link to newsletter preview
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
wxa
d41eca48b2 Fix captcha case in comparison [MAILPOET-2698] 2020-02-12 18:11:06 +00:00
931447e050 Update react-tooltip library
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
d00c690252 Update codemirror editor
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
f31f46d049 Allow drag and drop reordering of blocks in form editor
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
73854a20c5 Update form editor layout to work with new version of Gutenberg post editor css
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
42723592e2 Update Gutenberg packages for form editor
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
675df7a4a6 Update babel plugins
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
368883eeb6 Update babel packages except plugins
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
19f2716138 Update react related libs
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
09bf2584df Update react and react-dom
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
ea3fc7d5d3 Increase test timeout
[MAILPOET-2694]
2020-02-12 13:43:31 +01:00
wxa
42278347cc Import missing functions from polyfill-mbstring [MAILPOET-2695] 2020-02-11 18:21:48 +00:00
wxa
6f5581e1f2 Release 3.45.1 2020-02-11 17:25:01 +03:00
4516a44d9e Add test for newsletter stats
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
22b9103460 Fix statistics
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
0069380da6 Add getChildrenCount()
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
a92af3095b Add constructor to entity
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
a5679a5dbf Fix code style and small bugs
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
4fe760f4b1 Improve NewslettersResponseBuilder
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
65c8ddf6c2 Add WC revenues to NewsletterStatistics
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
efc2342190 Create StatisticsWooCommercePurchase entity
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
fd33a53d50 Fix display under pages
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
1a1099013e Rename function
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
f001542b3e Use underscore to unify naming
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
1c1f0313f0 Add code comment
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
fd1e8ee915 Display forms only on default post types
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
bdfd488ae4 Add acceptance test for form placement
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
c6aa1311ad Refactor
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
e644675046 Use cache for forms rendering to
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
d06fc2d00d Append form bellow content
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
d667ad916e Add wp functions
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
492f30c073 Add ability to mock settings in unit tests
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
5917582f46 Create form entity and repository
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
5baf21a644 Remove shortcode section
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
dce8d12942 Save form position settings
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
99286ec064 Display switch to display form bellow posts
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
645e1a825d Redo the form placement page according the spec
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
353a16fcb5 Remove unnecessary expose of html2canvas
[MAILPOET-2683]
2020-02-05 18:33:42 +00:00
8dbbb91518 Add code mirror css
[MAILPOET-2685]
2020-02-05 18:32:36 +00:00
ede4928702 Release 3.45.0 2020-02-04 11:16:58 +01:00
775 changed files with 17769 additions and 6831 deletions

View File

@ -1,9 +1,11 @@
{
"presets": [
"@babel/preset-typescript",
"@babel/preset-react",
"@babel/preset-env"
],
"plugins": [
"babel-plugin-typescript-to-proptypes",
"@babel/plugin-proposal-class-properties",
[
"@babel/plugin-transform-runtime", {

137
.eslintrc.ts.json Normal file
View File

@ -0,0 +1,137 @@
{
"extends": [
"airbnb",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"env": {
"amd": true,
"browser": true,
"mocha": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"tsconfigRootDir": ".",
"project": ["./tsconfig.json"],
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react-hooks",
"no-only-tests",
"@typescript-eslint"
],
"settings": {
"import/resolver": "webpack"
},
"rules": {
// Typrescript Rules
"@typescript-eslint/adjacent-overload-signatures": "off",
"@typescript-eslint/array-type": "off",
"@typescript-eslint/await-thenable": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-dynamic-delete": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-extra-non-null-assertion": "off",
"@typescript-eslint/no-extraneous-class": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-for-in-array": "off",
"@typescript-eslint/no-implied-eval": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-misused-new": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-throw-literal": "off",
"@typescript-eslint/no-type-alias": "off",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-unnecessary-qualifier": "off",
"@typescript-eslint/no-unnecessary-type-arguments": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
"@typescript-eslint/no-unused-vars-experimental": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/prefer-as-const": "off",
"@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/prefer-function-type": "off",
"@typescript-eslint/prefer-includes": "off",
"@typescript-eslint/prefer-namespace-keyword": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/prefer-optional-chain": "off",
"@typescript-eslint/prefer-readonly": "off",
"@typescript-eslint/prefer-regexp-exec": "off",
"@typescript-eslint/prefer-string-starts-ends-with": "off",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/require-array-sort-compare": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/switch-exhaustiveness-check": "off",
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/type-annotation-spacing": "off",
"@typescript-eslint/typedef": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/unified-signatures": "off",
// ESlint recommended rules adjusted for Typescript
"@typescript-eslint/brace-style": "off",
"@typescript-eslint/comma-spacing": "off",
"@typescript-eslint/default-param-last": "off",
"@typescript-eslint/func-call-spacing": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-array-constructor": "off",
"@typescript-eslint/no-dupe-class-members": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-extra-parens": "off",
"@typescript-eslint/no-extra-semi": "off",
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-useless-constructor": "off",
"@typescript-eslint/quotes": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/return-await": "off",
"@typescript-eslint/semi": "off",
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/camelcase": "off",
// PropTypes
"react/prop-types": 0,
// Hooks
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
// Exceptions
"react/jsx-filename-extension": 0,
"arrow-parens": ["error", "always"],
"comma-dangle": ["error", "always-multiline"],
"no-only-tests/no-only-tests": 2,
"no-script-url": 0,
"import/extensions": 0, // we wouldn't be able to import jQuery without this line
"react/destructuring-assignment": 0, // that would be too many changes to fix this one
"prefer-destructuring": 0, // that would be too many changes to fix this one
"jsx-a11y/label-has-for": [2, {
"required": {"some": ["nesting", "id"]} // some of our labels are hidden and we cannot nest those
}],
"jsx-a11y/anchor-is-valid": 0, // cannot fix this one, it would break wprdpress themes
"jsx-a11y/label-has-associated-control": [ 2, {
"either": "either" // control has to be either nested or associated via htmlFor
}]
}
}

View File

@ -363,7 +363,7 @@ class RoboFile extends \Robo\Tasks {
}
public function qaLintJavascript() {
return $this->_exec('npm run lint');
return $this->_exec('npm run check-types && npm run lint');
}
public function qaLintCss() {
@ -445,11 +445,22 @@ class RoboFile extends \Robo\Tasks {
)
->run();
}
if (substr($filePath, -4) === '.tsx' || substr($filePath, -3) === '.ts') {
// fix ESLint using TS rules
return $this->collectionBuilder()
->taskExec(
'npx eslint -c .eslintrc.ts.json ' .
'--max-warnings 0 ' .
'--fix ' .
$filePath
)
->run();
}
if (substr($filePath, -8) === '.spec.js') {
// fix ESLint using tests rules
return $this->collectionBuilder()
->taskExec(
'npx eslint -c .eslintrc.tests.json ' .
'npx eslint -c .eslintrc.tests_newsletter_editor.json ' .
'--max-warnings 0 ' .
'--fix ' .
$filePath
@ -883,7 +894,7 @@ class RoboFile extends \Robo\Tasks {
$dir = new RecursiveDirectoryIterator($folder);
$iterator = new RecursiveIteratorIterator($dir);
$pattern = '/^.+\.(' . join($extensions, '|') . ')$/i';
$pattern = '/^.+\.(' . join('|', $extensions) . ')$/i';
$files = new RegexIterator(
$iterator,

View File

@ -30,7 +30,7 @@
.tox {
/* Small style changes to better fit TinyMCE to our editor */
&.tox-tinymce-inline {
border: 1px solid $content-border-color;
border: 1px solid $color-editor-border-content;
border-radius: 3px;
box-shadow: 0 0 3px 1px rgba(0, 0, 0, .05);
@ -44,7 +44,7 @@
}
.tox-toolbar {
background-color: $primary-background-color;
background-color: $color-primary-background;
/* Fix double border on top of TineMCE popup */
&:first-child {
@ -87,9 +87,9 @@
}
&.auto-fold #wpcontent {
@media only screen and (max-width: 960px) { margin-left: 36px; }
@include breakpoint-max-width(960px) { margin-left: 36px; }
@media only screen and (max-width: 782px) { margin-left: 0; }
@include breakpoint-max-width(782px) { margin-left: 0; }
}
.wrap {
@ -129,7 +129,7 @@
.sp-replacer {
border: 0;
border-radius: 3px;
box-shadow: 1px 2px darken($primary-background-color, 13%);
box-shadow: 1px 2px darken($color-primary-background, 13%);
padding: 0;
}
@ -155,8 +155,8 @@
}
.mailpoet_panel_wrapper {
background-color: $primary-background-color;
border: 1px solid $content-border-color;
background-color: $color-primary-background;
border: 1px solid $color-editor-border-content;
}
.wrap > .mailpoet_notice,

View File

@ -0,0 +1,45 @@
.mailpoet_button {
background-color: $color-primary-background;
border: 1px solid $color-editor-border-structure;
border-radius: 3px;
color: $color-primary-inactive;
line-height: normal;
margin: 0;
padding: 6px 20px;
vertical-align: top;
}
.mailpoet_button_full {
box-sizing: border-box;
width: 100%;
}
.mailpoet_button_primary {
background-color: $color-primary-button;
border-color: $color-primary;
color: $color-white;
&:hover {
background-color: $color-primary-highlight;
}
}
.mailpoet_button_group {
display: inline;
.mailpoet_button:first-child {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
margin-right: 0;
padding: 6px 12px;
}
.mailpoet_button:last-child {
border-bottom-left-radius: 0;
border-left: 0;
border-top-left-radius: 0;
margin-left: 0;
padding-left: 10px;
padding-right: 10px;
}
}

View File

@ -0,0 +1,101 @@
.admin_page_mailpoet-newsletter-editor {
a {
color: $color-primary-button;
text-decoration: none;
}
.mailpoet_hidden {
display: none !important;
}
.mailpoet_form_narrow_select2 span.select2-container {
width: 103px !important;
}
span.select2-container--open > span.select2-dropdown {
min-width: 150px;
}
span.select2-container--open > span.select2-dropdown li.select2-results__option {
font-size: 13px;
margin: 0 !important;
.select2-results__group {
color: #bfbfbf;
font-weight: normal;
}
.select2-results__option {
font-size: 13px;
padding-left: 15px;
&[aria-selected=true] {
background-color: #eee;
color: #444;
}
}
}
.mailpoet_settings_notice {
color: #999;
}
}
#mailpoet_editor_content ol,
#mailpoet_editor_content ul {
padding-left: 40px;
}
#mailpoet_editor_content ul {
list-style-type: disc;
ul {
list-style-type: circle;
ul { list-style-type: square; }
}
}
.tooltip-help-designer-subject-line div,
.tooltip-help-designer-preheader div {
z-index: 100001;
}
.tooltip-help-send-preview {
color: #fff;
margin-top: -10px;
position: absolute;
right: 4px;
top: 50%;
}
.tooltip-help-designer-ideal-width {
color: #656565;
font-weight: normal;
margin-left: 5px;
text-transform: none;
}
.tooltip-help-designer-full-width .dashicons {
line-height: 34px;
}
.tooltip-help-designer-full-width span {
line-height: 1.4em;
}
.mailpoet_text_content p {
margin: 1em 0;
}
.mailpoet_separator {
margin: 17px 20px;
}
.mailpoet_option_offset_left_small {
margin-left: 10px;
}
input.mailpoet_option_offset_left_small {
margin-left: 10px !important;
}

View File

@ -0,0 +1,170 @@
input.mailpoet_color {
width: 5em;
}
select.mailpoet_font-family {
width: 8em;
}
select.mailpoet_font-size {
width: 5em;
}
.mailpoet_input,
.mailpoet_select {
$form-control-padding: 3px;
appearance: none;
border-radius: 1px;
box-shadow: none !important;
line-height: 28px - $form-control-padding * 2;
padding: $form-control-padding;
}
.mailpoet_input {
border: 1px solid $color-editor-border-content;
width: 283px;
}
.mailpoet_input_small {
width: 58px;
}
.mailpoet_input_medium {
width: 150px;
}
.mailpoet_input_full {
box-sizing: border-box;
margin: 0;
width: 100%;
}
.mailpoet_range {
-webkit-appearance: none;
padding: 0;
vertical-align: middle;
width: 283px;
&:focus {
outline: none;
}
&::-webkit-slider-runnable-track {
background: $range-track-background-color;
border: 1px solid $range-track-border-color;
border-radius: $range-border-radius;
cursor: pointer;
height: $range-track-height;
width: 100%;
}
&::-webkit-slider-thumb {
-webkit-appearance: none;
background: $range-thumb-background-color;
border: 1px solid $range-thumb-border-color;
border-radius: $range-border-radius;
cursor: pointer;
height: $range-thumb-height;
margin-top: -1 * $range-thumb-height / 3;
width: $range-thumb-width;
}
&:hover::-webkit-slider-thumb {
background: $range-thumb-hover-background-color;
}
&::-moz-range-track {
background: $range-track-background-color;
border: 1px solid $range-track-border-color;
border-radius: $range-border-radius;
cursor: pointer;
height: $range-track-height;
width: 100%;
}
&::-moz-range-thumb {
background: $range-thumb-background-color;
border: 1px solid $range-thumb-border-color;
border-radius: $range-border-radius;
cursor: pointer;
height: $range-thumb-height;
width: $range-thumb-width;
}
&:hover::-moz-range-thumb {
background: $range-thumb-hover-background-color;
}
&::-ms-fill-lower {
background: $range-track-background-color;
border: 1px solid $range-track-border-color;
}
&::-ms-fill-upper {
background: $range-track-background-color;
border: 1px solid $range-track-border-color;
}
&::-ms-track {
background: transparent;
border-color: transparent;
border-width: $range-track-height * 2 0;
color: transparent;
cursor: pointer;
height: $range-track-height;
width: 100%;
}
&::-ms-thumb {
background: $range-thumb-background-color;
border: 1px solid $range-thumb-border-color;
border-radius: $range-border-radius;
cursor: pointer;
height: $range-thumb-height;
width: $range-thumb-width;
}
&:hover::-ms-thumb {
background: $range-thumb-hover-background-color;
}
&:focus::-ms-fill-lower {
background: $range-track-background-color;
border: 1px solid $range-track-border-color;
}
&:focus::-ms-fill-upper {
background: $range-track-background-color;
border: 1px solid $range-track-border-color;
}
}
.mailpoet_range_small {
width: 100px;
}
.mailpoet_range_medium {
width: 180px;
}
.mailpoet_select {
border-color: $color-editor-border-content;
color: $color-primary-text;
margin: 0;
}
.mailpoet_select_large {
width: 139px;
}
.mailpoet_select_medium {
width: 103px;
}
.mailpoet_select_small {
width: 68px;
}
.mailpoet_select_half_width {
width: 50%;
}

View File

@ -1,6 +1,3 @@
$sidebar-width: 330px;
$content-border-color: $structure-border-color;
#mailpoet_editor {
clear: both;
width: 100%;
@ -22,7 +19,7 @@ $content-border-color: $structure-border-color;
}
#mailpoet_editor_main_wrapper {
border: 1px solid $content-border-color;
border: 1px solid $color-editor-border-structure;
border-left: 0;
min-width: 1050px;
position: relative;
@ -30,19 +27,19 @@ $content-border-color: $structure-border-color;
#mailpoet_editor_content_container {
box-sizing: border-box;
padding-right: $sidebar-width;
padding-right: $editor-sidebar-width;
width: 100%;
}
#mailpoet_editor_sidebar {
box-sizing: border-box;
float: right;
width: $sidebar-width;
width: $editor-sidebar-width;
}
.mailpoet_newsletter_wrapper {
margin: auto;
max-width: $newsletter-width;
max-width: $grid-editor-width;
position: relative;
width: $newsletter-width;
width: $grid-editor-width;
}

View File

@ -1,15 +1,3 @@
$tool-inactive-color: #333;
$tool-inactive-secondary-color: #fff;
$tool-hover-color: #bbb;
$tool-hover-secondary-color: #fff;
$tool-active-color: #d2d2d4;
$tool-active-secondary-color: #fff;
$content-icon-size: 14px;
$content-icon-size-with-padding: 24px;
$column-icon-size: 15px;
$column-icon-size-with-padding: 27px;
.mailpoet_tools {
bottom: 100%;
left: 50%;
@ -23,7 +11,7 @@ $column-icon-size-with-padding: 27px;
z-index: 20;
.mailpoet_tools_slider {
background: $editor-content-color;
background: $color-editor-background-content;
border-radius: 10px 10px 0 0;
display: flex;
flex-direction: row;
@ -51,7 +39,7 @@ $column-icon-size-with-padding: 27px;
transform: none;
.mailpoet_tools_slider {
background: $editor-column-color;
background: $color-editor-background-column;
border-radius: 0 10px 10px 0;
flex-direction: column;
padding: 7px 3px;
@ -69,13 +57,13 @@ $column-icon-size-with-padding: 27px;
.mailpoet_tool {
display: block;
height: $column-icon-size-with-padding;
width: $column-icon-size-with-padding;
height: $editor-tool-column-size-with-padding;
width: $editor-tool-column-size-with-padding;
svg {
height: $column-icon-size;
height: $editor-tool-column-size;
padding: 6px;
width: $column-icon-size;
width: $editor-tool-column-size;
}
}
@ -85,7 +73,7 @@ $column-icon-size-with-padding: 27px;
.mailpoet_delete_block_activate {
display: block;
max-height: $column-icon-size-with-padding;
max-height: $editor-tool-column-size-with-padding;
max-width: none;
opacity: 1;
}
@ -118,15 +106,15 @@ $column-icon-size-with-padding: 27px;
.mailpoet_tool {
display: inline-block;
height: $content-icon-size-with-padding;
width: $content-icon-size-with-padding;
height: $editor-tool-size-with-padding;
width: $editor-tool-size-with-padding;
svg {
fill: #fff;
height: $content-icon-size;
height: $editor-tool-size;
padding: 5px;
vertical-align: top;
width: $content-icon-size;
width: $editor-tool-size;
}
&:hover svg,
@ -158,7 +146,7 @@ $column-icon-size-with-padding: 27px;
.mailpoet_delete_block_activate {
display: inline-block;
max-width: $content-icon-size-with-padding;
max-width: $editor-tool-size-with-padding;
opacity: 1;
@include animation-fade-in-and-scale-horizontally();
@ -174,10 +162,28 @@ $column-icon-size-with-padding: 27px;
@include animation-fade-in-and-scale-horizontally();
}
.mailpoet_delete_block_confirm {
color: $color-editor-warning-text;
&:hover {
color: $color-editor-warning-text;
text-decoration: underline;
}
}
.mailpoet_delete_block_cancel {
color: $color-editor-warning-alternate;
&:hover {
color: $color-editor-warning-alternate;
text-decoration: underline;
}
}
}
.mailpoet_delete_block_activated {
background-color: $warning-background-color;
background-color: $color-editor-warning;
height: auto;
padding: 0 5px;
width: auto;
@ -199,21 +205,3 @@ $column-icon-size-with-padding: 27px;
margin-left: 3px;
}
}
.mailpoet_delete_block_confirm {
color: $warning-text-color;
&:hover {
color: $warning-text-color;
text-decoration: underline;
}
}
.mailpoet_delete_block_cancel {
color: $warning-alternate-text-color;
&:hover {
color: $warning-alternate-text-color;
text-decoration: underline;
}
}

View File

@ -1,21 +1,14 @@
$drop-active-color: $primary-active-color;
$marker-width: 2px;
$marker-z-index: 1;
$draggable-widget-z-index: 2;
.mailpoet_drop_marker {
background-color: $primary-active-color;
box-shadow: 0 0 1px 0 $primary-active-color;
min-height: $marker-width;
min-width: $marker-width;
background-color: $color-primary;
box-shadow: 0 0 1px 0 $color-primary;
min-height: $editor-dnd-drop-size;
min-width: $editor-dnd-drop-size;
position: absolute;
z-index: $marker-z-index;
z-index: $editor-dnd-drop-zindex;
&:before,
&:after {
color: $primary-active-color;
color: $color-primary;
font: 400 40px / 1 dashicons;
margin-top: -18px;
position: absolute;
@ -35,11 +28,11 @@ $draggable-widget-z-index: 2;
.mailpoet_drop_marker.mailpoet_drop_marker_middle,
.mailpoet_drop_marker.mailpoet_drop_marker_first.mailpoet_drop_marker_after,
.mailpoet_drop_marker.mailpoet_drop_marker_last.mailpoet_drop_marker_before {
margin-top: -1 * ($marker-width / 2);
margin-top: -1 * ($editor-dnd-drop-size / 2);
}
.mailpoet_drop_marker.mailpoet_drop_marker_last.mailpoet_drop_marker_after {
margin-top: -1 * $marker-width;
margin-top: -1 * $editor-dnd-drop-size;
}
#mailpoet_editor .mailpoet_droppable_active {
@ -47,8 +40,8 @@ $draggable-widget-z-index: 2;
}
.mailpoet_block.mailpoet_droppable_active {
border: 1px dashed $drop-active-color !important;
width: $newsletter-width;
border: 1px dashed $color-primary !important;
width: $grid-editor-width;
.mailpoet_tools {
display: none !important;
@ -58,7 +51,7 @@ $draggable-widget-z-index: 2;
.mailpoet_widget.mailpoet_droppable_active {
margin: 0;
padding: 0;
z-index: $draggable-widget-z-index;
z-index: $editor-dnd-drag-zindex;
@include animation-fade-in();
@ -69,9 +62,9 @@ $draggable-widget-z-index: 2;
}
.mailpoet_drop_active > .mailpoet_container > div > .mailpoet_container_empty {
background-color: $primary-active-color;
box-shadow: inset 1px 2px 1px $primary-inset-shadow-color;
color: $white-color;
background-color: $color-primary;
box-shadow: inset 1px 2px 1px $color-primary-shadow-inset;
color: $color-white;
}
.mailpoet_droppable_block {

View File

@ -20,7 +20,7 @@
}
.mailpoet_form_field_optional {
color: $primary-inactive-color;
color: $color-primary-inactive;
font-size: .8em;
}

View File

@ -10,7 +10,7 @@
svg {
display: inline-block;
height: 26px;
stroke: $primary-active-color;
stroke: $color-primary;
vertical-align: top;
width: 26px;
}
@ -19,5 +19,5 @@
.mailpoet_history_arrow_inactive {
cursor: not-allowed;
svg { stroke: $primary-inactive-color; }
svg { stroke: $color-primary-inactive; }
}

View File

@ -1,26 +1,22 @@
$resize-active-color: $editor-content-color;
$resize-handle-font-color: $white-color;
$resize-handle-z-index: 2;
.mailpoet_resize_handle_container {
left: 50%;
margin-top: -16px;
position: absolute;
top: 100%;
transform: translateX(-50%);
z-index: $resize-handle-z-index;
z-index: $editor-resize-handle-zindex;
}
.mailpoet_resize_handle {
align-items: center;
background: $editor-content-color;
background: $color-editor-background-content;
border-radius: 10px;
cursor: ns-resize;
display: none;
justify-content: space-between;
min-width: 60px;
padding: 7px 10px;
z-index: $resize-handle-z-index;
z-index: $editor-resize-handle-zindex;
.mailpoet_resize_handle_text,
.mailpoet_resize_handle_icon {
@ -33,7 +29,7 @@ $resize-handle-z-index: 2;
}
.mailpoet_resize_handle_text {
color: $resize-handle-font-color;
color: $editor-resize-handle-color;
font-size: 11px;
font-weight: bold;
line-height: 1.5em;
@ -45,7 +41,7 @@ $resize-handle-z-index: 2;
margin-left: 5px;
> svg {
fill: $resize-handle-font-color;
fill: $editor-resize-handle-color;
height: 15px;
vertical-align: top;
width: 15px;
@ -67,14 +63,14 @@ $resize-handle-z-index: 2;
}
.mailpoet_image_resize_handle {
background: $editor-content-color;
background: $color-editor-background-content;
border-radius: 6px 0 0;
cursor: nwse-resize;
display: none;
height: 24px;
position: relative;
width: 24px;
z-index: $resize-handle-z-index;
z-index: $editor-resize-handle-zindex;
.mailpoet_resizable_block.mailpoet_highlight & {
display: inline-block;
@ -96,7 +92,7 @@ $resize-handle-z-index: 2;
padding: 1px;
> svg {
fill: $resize-handle-font-color;
fill: $editor-resize-handle-color;
height: 22px;
vertical-align: top;
width: 22px;
@ -104,7 +100,7 @@ $resize-handle-z-index: 2;
}
.mailpoet_block.mailpoet_image_resize_active > .mailpoet_block_highlight {
border: 2px solid $resize-active-color;
border: 2px solid $editor-resize-color;
.mailpoet_image_resize_handle {
display: inline-block;

View File

@ -14,8 +14,8 @@
}
.mailpoet_save_options {
background: $white-color;
border: 1px solid $content-border-color;
background: $color-white;
border: 1px solid $color-editor-border-content;
border-radius: 3px;
clear: both;
margin: 5px 0;
@ -39,11 +39,11 @@
}
.mailpoet_save_option:hover {
background-color: $primary-active-background-color;
color: $white-color;
background-color: $color-primary-button;
color: $color-white;
> a {
color: $white-color;
color: $color-white;
}
}
@ -59,8 +59,8 @@
.mailpoet_save_as_template_container,
.mailpoet_export_template_container {
background-color: $white-color;
border: 1px solid $structure-border-color;
background-color: $color-white;
border: 1px solid $color-editor-border-structure;
border-radius: 3px;
clear: both;
display: inline-block;
@ -82,7 +82,7 @@
}
.mailpoet_editor_last_saved {
color: $primary-inactive-color;
color: $color-primary-inactive;
font-size: .9em;
margin-top: 10px;
text-align: right;
@ -93,16 +93,16 @@
}
.mailpoet_save_woocommerce_error {
color: $error-text-color;
color: $color-editor-warning;
margin-top: 10px;
text-align: right;
}
.mailpoet_save_error {
color: $error-text-color;
color: $color-editor-warning;
margin-top: 10px;
text-align: right;
width: $sidebar-width;
width: $editor-sidebar-width;
}
.mailpoet_save_dropdown_down {

View File

@ -0,0 +1,152 @@
#mailpoet_editor_sidebar {
border-bottom: $color-editor-border-content;
border-left: $color-editor-border-content;
color: $editor-sidebar-color;
font-size: $editor-sidebar-font-size;
.mailpoet_sidebar_region {
border-bottom: 1px solid $color-editor-border-content;
border-left: 1px solid $color-editor-border-content;
border-right: 0;
border-top: 0;
margin-bottom: 0;
&.closed .mailpoet_region_content {
display: none;
}
}
.mailpoet_region_content {
margin-top: 12px;
padding: 0 20px;
}
&,
.postbox {
background-color: $editor-sidebar-background;
}
.postbox {
padding-bottom: 20px;
&.closed {
padding-bottom: 0;
}
&.closed h3 {
color: $color-primary-inactive;
cursor: pointer;
}
h3,
&:hover h3 {
color: $color-primary;
margin: 0;
padding: 17px 20px;
text-transform: uppercase;
}
h3,
.handlediv {
border: 0;
cursor: auto;
}
.handlediv:before {
color: $color-primary;
content: '\f142';
display: inline-block;
font: 400 20px / 1 dashicons;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
position: relative;
right: 18px;
speak: none;
text-decoration: none !important;
top: 18px;
}
&.closed .handlediv:before {
color: $color-primary-inactive;
content: '\f140';
}
&.closed:hover .handlediv:before {
color: $color-primary;
}
}
}
.mailpoet_widget {
display: inline-block;
float: left;
padding: 0 13px 15px;
text-align: center;
width: $editor-widget-size;
&:nth-child(3n+1) {
clear: left;
}
.mailpoet_widget_icon {
background-color: $color-white;
border-radius: 3px;
box-shadow: 1px 2px $editor-widget-shadow-color;
box-sizing: border-box;
color: $editor-widget-icon-color;
fill: $editor-widget-icon-color;
height: $editor-widget-size;
line-height: $editor-widget-size;
margin-bottom: 9px;
text-align: center;
width: $editor-widget-size;
/* Vertically align widget icon glyphs */
> * {
font-size: $editor-widget-icon-size;
height: $editor-widget-icon-size;
vertical-align: middle;
width: $editor-widget-icon-size;
}
&:hover {
border: 1px solid $editor-widget-icon-color-hover;
color: $editor-widget-icon-color-hover;
fill: $editor-widget-icon-color-hover;
}
}
&.mailpoet_droppable_active {
color: $editor-widget-icon-color-hover;
fill: $editor-widget-icon-color-hover;
.mailpoet_widget_icon {
border: 1px solid $editor-widget-icon-color-hover;
box-shadow: none;
color: $editor-widget-icon-color-hover;
fill: $editor-widget-icon-color-hover;
}
.mailpoet_widget_title {
display: none;
}
}
}
/* Browser preview modal */
.mailpoet_browser_preview_wrapper {
display: flex;
flex-direction: column;
height: 100%;
position: absolute;
width: 100%;
}
.mailpoet_browser_preview_link {
position: absolute;
top: -25px;
}
.mailpoet_popup .mailpoet_browser_preview_toggle {
top: -30px;
}

View File

@ -1,16 +1,14 @@
$sidepanel-active-heading-color: $primary-active-color;
/* Sidepanel */
.mailpoet_editor_settings {
color: $sidebar-text-color;
font-size: $sidebar-text-size;
color: $editor-sidebar-color;
font-size: $editor-sidebar-font-size;
p {
font-size: 1em;
}
h3 {
color: $sidepanel-active-heading-color;
color: $color-primary;
font-size: 1.4em;
text-transform: uppercase;
}
@ -38,7 +36,7 @@ $sidepanel-active-heading-color: $primary-active-color;
}
.mailpoet_sidepanel_field_optional {
color: $primary-inactive-color;
color: $color-primary-inactive;
font-size: .8em;
}

View File

@ -1,5 +1,3 @@
$block-text-line-height: $text-line-height;
.mailpoet_block {
background-color: inherit;
box-sizing: border-box;
@ -8,7 +6,7 @@ $block-text-line-height: $text-line-height;
position: relative;
> .mailpoet_block_highlight {
border: 2px solid $transparent-color;
border: 2px solid $color-transparent;
bottom: 0;
left: 0;
pointer-events: none;
@ -20,7 +18,7 @@ $block-text-line-height: $text-line-height;
}
&.mailpoet_highlight > .mailpoet_block_highlight {
border: 2px solid $editor-content-color !important;
border: 2px solid $color-editor-background-content !important;
}
> .mailpoet_container_horizontal ~ .mailpoet_block_highlight {
@ -31,12 +29,12 @@ $block-text-line-height: $text-line-height;
}
&.mailpoet_highlight > .mailpoet_container_horizontal ~ .mailpoet_block_highlight {
border: 2px solid $editor-column-color !important;
border: 2px solid $color-editor-background-column !important;
}
}
.mailpoet_content {
line-height: $block-text-line-height;
line-height: $editor-line-height;
position: relative;
h1,
@ -47,7 +45,7 @@ $block-text-line-height: $text-line-height;
h6 {
font-style: normal;
font-weight: normal;
line-height: $block-text-line-height;
line-height: $editor-line-height;
margin: 0 0 .3em;
padding: 0;
}
@ -62,7 +60,7 @@ $block-text-line-height: $text-line-height;
p {
font-style: normal;
font-weight: normal;
line-height: $block-text-line-height;
line-height: $editor-line-height;
}
ul {
@ -79,7 +77,7 @@ $block-text-line-height: $text-line-height;
blockquote {
border-left: 2px #565656 solid;
margin: 0 0 $block-text-line-height;
margin: 0 0 $editor-line-height;
padding-left: 10px;
}
}

View File

@ -1,9 +1,3 @@
$column-margin: 20px;
$one-column-width: $newsletter-width - (2 * $column-margin);
$two-column-width: $newsletter-width / 2 - (2 * $column-margin);
$three-column-width: $newsletter-width / 3 - (2 * $column-margin);
$two-column-wider-column-width: (($newsletter-width / 3) - $column-margin) * 2;
.mailpoet_container {
min-height: 15px;
position: relative;
@ -37,7 +31,7 @@ $two-column-wider-column-width: (($newsletter-width / 3) - $column-margin) * 2;
> .mailpoet_container_block {
border: 0;
width: $newsletter-width;
width: $grid-editor-width;
}
> .mailpoet_container_block > .mailpoet_container > .mailpoet_container_block {
@ -48,7 +42,7 @@ $two-column-wider-column-width: (($newsletter-width / 3) - $column-margin) * 2;
.mailpoet_container_horizontal > .mailpoet_container_block {
padding-bottom: 0;
padding-top: 0;
width: $column-margin + $one-column-width + $column-margin;
width: $editor-column-margin + $editor-column-width-one + $editor-column-margin;
}
> .mailpoet_container_block > .mailpoet_container > .mailpoet_container_block > .mailpoet_container_horizontal,
@ -58,30 +52,30 @@ $two-column-wider-column-width: (($newsletter-width / 3) - $column-margin) * 2;
> .mailpoet_container_block > .mailpoet_container .mailpoet_automated_latest_content_block_products .mailpoet_container_horizontal {
> .mailpoet_block:first-child:nth-last-child(2),
> .mailpoet_block:first-child:nth-last-child(2) ~ .mailpoet_block {
width: $column-margin + $two-column-width + $column-margin;
width: $editor-column-margin + $editor-column-width-two + $editor-column-margin;
}
> .mailpoet_block:first-child:nth-last-child(3),
> .mailpoet_block:first-child:nth-last-child(3) ~ .mailpoet_block {
width: $column-margin + $three-column-width + $column-margin;
width: $editor-column-margin + $editor-column-width-three + $editor-column-margin;
}
}
> .mailpoet_container_block > .mailpoet_container > .mailpoet_container_block > .mailpoet_container_horizontal.mailpoet_irregular_width_contents_container.column_layout_1_2 > .mailpoet_container_block:first-child,
> .mailpoet_container_block > .mailpoet_container > .mailpoet_container_block > .mailpoet_container_horizontal.mailpoet_irregular_width_contents_container.column_layout_2_1 > .mailpoet_container_block:nth-child(2) {
width: $column-margin + $three-column-width + $column-margin;
width: $editor-column-margin + $editor-column-width-three + $editor-column-margin;
}
> .mailpoet_container_block > .mailpoet_container > .mailpoet_container_block > .mailpoet_container_horizontal.mailpoet_irregular_width_contents_container.column_layout_2_1 > .mailpoet_container_block:first-child,
> .mailpoet_container_block > .mailpoet_container > .mailpoet_container_block > .mailpoet_container_horizontal.mailpoet_irregular_width_contents_container.column_layout_1_2 > .mailpoet_container_block:nth-child(2) {
width: $column-margin + $two-column-wider-column-width + $column-margin;
width: $editor-column-margin + $editor-column-width-two-wider + $editor-column-margin;
}
}
.mailpoet_container_empty {
background-color: #f2f2f2;
border-radius: 3px;
box-shadow: inset 1px 2px 1px $primary-inactive-color;
box-shadow: inset 1px 2px 1px $color-primary-inactive;
color: #656565;
margin: 20px;
padding: 15px;

View File

@ -1,7 +1,3 @@
$active-divider-border-color: #adadad;
$active-divider-background-color: #daebf2;
$divider-hover-border-color: $primary-active-color;
.mailpoet_divider_block {
cursor: all-scroll;
padding: 0;
@ -16,18 +12,18 @@ $divider-hover-border-color: $primary-active-color;
border: 1px solid transparent;
display: block;
margin: auto;
max-width: $newsletter-width;
max-width: $grid-editor-width;
padding: 10px 0;
width: 100%;
&:hover {
border: 1px solid $divider-hover-border-color;
border: 1px solid $editor-divider-border-color-hover;
}
}
.mailpoet_active_divider_style {
background: $active-divider-background-color;
border: 1px solid $active-divider-border-color;
background: $editor-divider-background-color;
border: 1px solid $editor-divider-border-color;
}
.mailpoet_divider_selector img {

View File

@ -44,8 +44,8 @@
}
.mailpoet_settings_posts_single_post {
background-color: $white-color;
border: 1px solid $content-border-color;
background-color: $color-white;
border: 1px solid $color-editor-border-content;
border-radius: 1px;
box-sizing: border-box;
height: 38px;
@ -56,7 +56,7 @@
width: 100%;
&:hover {
border-color: $primary-active-color;
border-color: $color-primary;
}
.mailpoet_select_post_checkbox {

View File

@ -44,8 +44,8 @@
}
.mailpoet_settings_products_single_product {
background-color: $white-color;
border: 1px solid $content-border-color;
background-color: $color-white;
border: 1px solid $color-editor-border-content;
border-radius: 1px;
box-sizing: border-box;
height: 38px;
@ -56,7 +56,7 @@
width: 100%;
&:hover {
border-color: $primary-active-color;
border-color: $color-primary;
}
.mailpoet_select_product_checkbox {

View File

@ -1,14 +1,3 @@
$social-icon-width: 32px;
$active-social-icon-set-border-color: #adadad;
$active-social-icon-set-background-color: #daebf2;
$social-icon-set-hover-border-color: $primary-active-color;
$tool-inactive-color: #333;
$tool-hover-color: #bbb;
$tool-active-color: #d2d2d4;
$tool-width: 16px;
.mailpoet_social_block {
.mailpoet_social {
text-align: center;
@ -38,25 +27,25 @@ $tool-width: 16px;
padding: 5px;
&:hover {
border: 1px solid $social-icon-set-hover-border-color;
border: 1px solid $editor-social-icon-border-color-hover;
}
img {
height: $social-icon-width;
height: $editor-social-icon-width;
padding: 2px 3px;
vertical-align: middle;
width: $social-icon-width;
width: $editor-social-icon-width;
}
}
.mailpoet_active_icon_set {
background-color: $active-social-icon-set-background-color;
border: 1px dashed $active-social-icon-set-border-color;
background-color: $editor-social-icon-background-color;
border: 1px dashed $editor-social-icon-border-color;
}
.mailpoet_social_icon_settings {
background: $white-color;
border: 1px solid $content-border-color;
background: $color-white;
border: 1px solid $color-editor-border-content;
margin-bottom: 9px;
padding: 28px 9px (18px - 10px) 9px;
position: relative;
@ -103,16 +92,16 @@ $tool-width: 16px;
top: 10px;
.mailpoet_tool_icon {
fill: $tool-inactive-color;
height: $tool-width;
width: $tool-width;
fill: $editor-tool-social-color;
height: $editor-tool-social-width;
width: $editor-tool-social-width;
&:hover {
fill: $tool-hover-color;
fill: $editor-tool-social-hover;
}
&:active {
fill: $primary-active-color;
fill: $color-primary;
}
}
}
@ -122,5 +111,5 @@ $tool-width: 16px;
}
.mailpoet_social_icon_settings_delete_icon {
right: 5px + 5px + $tool-width;
right: 5px + 5px + $editor-tool-social-width;
}

View File

@ -0,0 +1,47 @@
// We don't want to allow user to remove Submit or Email + we hide core/column toolbar because it is empty
// There is no way to hide the delete button programmatically so we hide last toolbar that contains the delete option
// There is a feature request for adding that into Gutenberg https://github.com/WordPress/gutenberg/issues/16364
// We also hide options to prevent removing Email or Submit when they are in multi-select
.block-editor-block-contextual-toolbar[data-type='mailpoet-form/email-input'],
.block-editor-block-contextual-toolbar[data-type='mailpoet-form/submit-button'],
.block-editor-block-contextual-toolbar[data-type='core/column'],
.is-multi-selected {
.block-editor-block-toolbar > .components-toolbar:last-child {
display: none;
}
}
// Drag and drop library we use for custom fields does not support nested scrollable
// https://github.com/atlassian/react-beautiful-dnd/issues/131
.block-editor-editor-skeleton__body,
.is-sidebar-opened .block-editor-editor-skeleton__sidebar {
overflow: hidden;
}
// Fix for settings toolbar placement in header
.edit-post-header {
flex-direction: row-reverse;
justify-content: space-between;
}
// Html blocks contains iframe which captures clicks and in some cases prevents selecting block.
// This adds an transparent overlay over the iframe.
.mailpoet-html-block-editor-content-wrapper {
position: relative;
&:after {
background: transparent;
content: ' ';
display: block;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
}
// Wordpress displays h3 and h2 the same size by default. To make it less confusing we need to make h2 different size.
h2 {
font-size: 1.7em;
}

View File

@ -1,4 +1,3 @@
.mailpoet_custom_select {
.mailpoet_select {
padding: 0 24px 0 8px;

View File

@ -0,0 +1,9 @@
.mailpoet-editor-header-button {
padding-left: 8px;
padding-right: 8px;
@media (min-width: 600px) {
margin-right: 12px;
padding: 0 12px;
}
}

View File

@ -0,0 +1,6 @@
.mailpoet_spinner_wrapper {
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
}

View File

@ -0,0 +1,261 @@
.components-panel {
.select2-container {
width: 100% !important;
input.select2-search__field:focus {
border: 0;
box-shadow: none;
}
.select2-selection {
border-color: $gutenberg-control-border-color;
}
&.select2-container--focus {
.select2-selection {
border-color: $gutenberg-control-border-color-focus;
box-shadow: 0 0 0 1px $gutenberg-control-border-color-focus;
}
}
}
.mailpoet-form-missing-lists {
.select2-selection {
border-color: red;
}
.mailpoet-form-lists-error {
color: red;
}
}
}
.components-base-control.mailpoet-form-success-types__control {
margin-bottom: 0;
.components-base-control__label {
display: block;
}
.components-radio-control__option {
display: inline-block;
margin-right: 1em;
input {
margin-right: 6px;
}
}
}
.button-on-top,
.button-on-top.components-button.is-link {
margin-bottom: 12px;
max-height: 30px;
}
.mailpoet-dnd-items-list > div {
display: flex;
flex-direction: column;
> * {
margin-bottom: 12px
}
}
.mailpoet-form-segments-settings-list {
align-items: center;
display: flex;
flex-direction: row;
.components-base-control {
flex-grow: 1;
margin: 8px 0;
.components-base-control__field {
margin: 0;
}
}
.mailpoet-form-segments-segment-remove {
cursor: pointer;
flex-grow: 0;
margin: 8px 0;
}
}
.mailpoet-styles-settings {
display: grid;
grid-auto-flow: row;
grid-row-gap: 20px;
.components-base-control {
margin-bottom: 0;
}
}
.mailpoet-styles-settings-heading {
font-size: 15px;
.component-color-indicator {
vertical-align: text-bottom;
}
}
.CodeMirror {
border: 1px solid #eee;
}
.form-placement-option {
background-color: #fff;
border: solid $form-placement-option-border $form-placement-option-base-color;
border-radius: 4px;
box-shadow: 0 1px 2px 0 $form-placement-option-base-color;
cursor: pointer;
display: flex;
flex-direction: column;
height: $form-placement-option-height;
justify-content: space-between;
margin: 0 16px 16px 0;
padding: 6px;
pointer-events: auto;
position: relative;
text-align: center;
width: $form-placement-option-width;
}
.form-placement-settings-overlay {
background-color: rgba(0, 0, 0, .3);
border-radius: 2px;
height: $form-placement-option-height - (2 * $form-placement-option-border);
left: 0;
pointer-events: none;
position: absolute;
top: 0;
width: $form-placement-option-width - (2 * $form-placement-option-border);
z-index: 3;
}
.form-placement-option-active {
border: solid $form-placement-option-active-border $gutenberg-control-active-color;
box-shadow: 0 4px 8px 0 rgba(156, 166, 204, .5);
.form-placement-settings-overlay {
height: $form-placement-option-height - (2 * $form-placement-option-active-border);
width: $form-placement-option-width - (2 * $form-placement-option-active-border);
}
}
.form-placement-settings {
width: 400px;
}
.form-placement-option-label {
align-items: center;
color: $form-placement-option-text-color;
display: flex;
font-size: 14px;
height: 40px;
justify-content: center;
pointer-events: none;
width: 100%;
z-index: 2;
p {
margin-bottom: 0;
}
}
.form-placement-option-settings {
display: flex;
flex-direction: row;
height: 25px;
justify-content: space-between;
pointer-events: none;
width: 100%;
z-index: 4;
}
.form-placement-settings-oval {
background-color: $form-placement-option-oval;
border: solid 1px $form-placement-option-oval-border;
border-radius: 7px;
height: 13px;
pointer-events: none;
width: 13px;
}
.form-placement-settings-check {
height: 13px;
pointer-events: none;
width: 13px;
z-index: 4;
}
.form-placement-settings-icon {
height: 14px;
pointer-events: none;
width: 14px;
z-index: 4;
svg {
fill: $form-placement-option-base-color;
}
}
.form-placement-settings-icon-hover {
svg {
fill: white;
}
}
.form-placement-option-icon {
background-color: #fff;
box-shadow: 0 4px 18px 0 rgba(68, 75, 102, .15);
height: 63px;
margin: 0 auto;
object-fit: contain;
pointer-events: none;
width: 76px;
z-index: 2;
svg {
height: 63px;
width: 76px;
}
}
.mailpoet-toggle-list {
display: grid;
grid-row-gap: 20px;
grid-template-columns: 1fr 45px;
margin-bottom: 40px;
}
.components-button.mailpoet-save-button {
background-color: #ff5301;
border-radius: 4px;
color: #fff;
display: block;
font-size: 16px;
font-stretch: normal;
font-style: normal;
font-weight: bold;
height: 48px;
letter-spacing: normal;
line-height: 1.25;
margin-left: auto;
padding-left: 16px;
padding-right: 16px;
text-align: center;
&:hover {
background-color: #fff !important;
color: #ff5301 !important;
}
}
.mailpoet-form-placement-save {
display: flex;
flex-direction: row;
justify-content: flex-end;
}

View File

@ -1,16 +1,3 @@
$box-width: 425px;
$box-height: 150px;
$thumbnail-height: $box-height * 2;
$box-margin-big: 40px;
$box-margin-small: 20px;
$box-description-space-between-heading-and-paragraph: 5px;
$box-description-height: 110px;
$box-description-text-height: $box-description-height - $box-description-space-between-heading-and-paragraph;
$box-heading-line-height: $box-description-text-height / 4;
$box-heading-font-size: $box-heading-line-height * 5 / 7;
$box-description-line-height: $box-heading-line-height / 2;
$box-description-font-size: $box-description-line-height;
.mailpoet_boxes.mailpoet_boxes_loading {
opacity: .2;
}
@ -27,7 +14,7 @@ ul.mailpoet_boxes {
display: flex;
margin: 15px 25px 0 0;
padding: 15px;
width: $box-width;
width: $newsletter-box-width;
}
.mailpoet_boxes .mailpoet_boxes_content {
@ -40,7 +27,7 @@ ul.mailpoet_boxes {
box-sizing: border-box;
flex-direction: column;
height: auto;
margin: 0 0 $box-margin-big;
margin: 0 0 $newsletter-box-margin-big;
padding: 0;
width: 30.5%;
@ -63,7 +50,7 @@ ul.mailpoet_boxes {
padding: 8px 16px;
right: 0;
@media screen and (max-width: 782px) {
@include breakpoint-max-width(782px) {
padding: 6px 16px 2px;
}
}
@ -84,36 +71,36 @@ ul.mailpoet_boxes {
}
}
@media screen and (max-width: 1178px) {
@include breakpoint-max-width(1178px) {
width: 47%;
}
@media screen and (max-width: 520px) {
@include breakpoint-max-width(520px) {
width: 90%;
}
}
@media screen and (min-width: 1179px) {
@include breakpoint-min-width(1179px) {
.mailpoet_boxes .mailpoet_template_boxes:nth-child(3n-1) {
margin: 0 $box-margin-big $box-margin-big $box-margin-big;
margin: 0 $newsletter-box-margin-big $newsletter-box-margin-big $newsletter-box-margin-big;
}
}
@media screen and (max-width: 1178px) {
@include breakpoint-max-width(1178px) {
.mailpoet_boxes .mailpoet_template_boxes:nth-child(2n-1) {
margin: 0 $box-margin-big $box-margin-big 0;
margin: 0 $newsletter-box-margin-big $newsletter-box-margin-big 0;
}
}
@media screen and (max-width: 782px) {
@include breakpoint-max-width(782px) {
.mailpoet_boxes .mailpoet_template_boxes:nth-child(2n-1) {
margin: 0 $box-margin-small $box-margin-small 0;
margin: 0 $newsletter-box-margin-small $newsletter-box-margin-small 0;
}
}
@media screen and (max-width: 520px) {
@include breakpoint-max-width(520px) {
.mailpoet_boxes .mailpoet_template_boxes:nth-child(1n) {
margin: 0 0 $box-margin-small $box-margin-small;
margin: 0 0 $newsletter-box-margin-small $newsletter-box-margin-small;
}
}
@ -122,27 +109,27 @@ ul.mailpoet_boxes {
background-repeat: no-repeat;
background-size: 100% 100%;
border: 0;
height: $thumbnail-height;
height: $newsletter-thumbnail-height;
overflow: hidden;
position: relative;
width: 100%;
img {
height: auto;
min-width: $thumbnail-height;
min-width: $newsletter-thumbnail-height;
width: 100%;
}
}
.woocommerce .mailpoet_thumbnail,
.mailpoet_boxes .mailpoet_newsletter_types .mailpoet_thumbnail {
height: $box-height;
height: $newsletter-box-height;
margin-right: 15px;
overflow: hidden;
width: $box-height;
width: $newsletter-box-height;
img {
min-width: $box-height;
min-width: $newsletter-box-height;
transform: translate(-50%, -50%);
width: 110%;
}
@ -199,15 +186,15 @@ ul.mailpoet_boxes {
word-wrap: break-word;
h3 {
font-size: $box-heading-font-size;
font-size: $newsletter-box-heading-font-size;
font-weight: 700;
line-height: $box-heading-line-height;
margin: 0 0 $box-description-space-between-heading-and-paragraph 0;
line-height: $newsletter-box-heading-line-height;
margin: 0 0 $newsletter-box-description-space-between-heading-and-paragraph 0;
max-width: 223px;
}
p {
font-size: $box-description-font-size;
font-size: $newsletter-box-description-font-size;
margin: 0;
}
}

View File

@ -0,0 +1,47 @@
.mailpoet_browser_preview_toggle {
flex: 0 1 auto;
height: 30px;
padding-bottom: 10px;
text-align: center;
width: 100%;
}
.mailpoet_browser_preview_toggle > label {
display: inline-block;
margin: 0 5px;
}
.mailpoet_browser_preview_container {
border: 1px solid #979797;
border-radius: 20px;
box-sizing: border-box;
display: flex;
flex: 1 1 auto;
flex-direction: column;
height: 100%;
margin: auto;
padding: 20px;
transition: width .5s;
}
.mailpoet_browser_preview_container_desktop {
width: 100%;
}
.mailpoet_browser_preview_container_mobile {
width: 350px;
}
.mailpoet_browser_preview_border {
border: 1px solid #c3c3c3;
box-sizing: border-box;
height: 100%;
padding: 30px;
width: 100%;
}
.mailpoet_browser_preview_iframe {
display: block;
margin: auto;
width: calc(100% - 1px);
}

View File

@ -0,0 +1,50 @@
.clearfix {
@include clearfix();
}
.relative-holder {
position: relative;
}
a:focus {
outline: 0 none !important;
}
.mailpoet_success {
color: #090;
}
.mailpoet_error {
color: #900;
}
.mailpoet_hidden {
display: none;
}
.mailpoet_spaced_block {
margin: 1em 0;
}
.mailpoet_centered {
text-align: center;
}
/* double class is intentional here, we need to be very specific here to
something wrapping our warning message could override its style */
p.sender_email_address_warning.sender_email_address_warning,
p.sender_email_address_warning.sender_email_address_warning a {
align-self: flex-start;
color: #900;
text-align: left;
}
p.sender_email_address_warning:first-child {
margin-top: 1em;
}
.button.mailpoet-button-bigger {
font-size: 1.5em;
height: 46px;
padding: 10px 18px;
}

View File

@ -0,0 +1,62 @@
.mailpoet_form {
margin: 0 0 20px;
}
.mailpoet_form td {
vertical-align: top !important;
}
.select2-container {
width: 25em !important;
}
input.select2-search__field::-webkit-input-placeholder {
color: $color-placeholder-select2;
}
input.select2-search__field:-moz-placeholder {
color: $color-placeholder-select2;
}
input.select2-search__field::-moz-placeholder {
color: $color-placeholder-select2;
}
input.select2-search__field:-ms-input-placeholder {
color: $color-placeholder-select2;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
border: 1px solid #aaa; /* default Select2 border for single dropdown */
}
textarea.regular-text {
width: 25em !important;
}
@include breakpoint-max-width(782px) {
.select2-container {
width: 100% !important;
}
}
progress {
background-color: $progress-background;
border: 0;
height: 2em;
width: 100%;
}
progress::-webkit-progress-bar {
background-color: $progress-background;
}
progress::-webkit-progress-value {
background-color: $progress-foreground;
border-radius: $progress-border-radius;
}
progress::-moz-progress-bar {
background-color: $progress-foreground;
border-radius: $progress-border-radius;
}

View File

@ -240,3 +240,13 @@ tr {
}
}
}
.mailpoet_offer_migration {
margin-top: 40px;
}
.default-list {
font-size: 13px;
list-style-type: disc;
margin-left: 40px;
}

View File

@ -1,20 +1,10 @@
$modal_title_color: #cfcfcf;
$modal_highlight_background_color: #f1f1f1;
$modal_background_color: #fff;
$modal_popup_margin: 30px;
$modal_popup_margin_mobile: 10px;
$modal_popup_padding: 30px;
$modal_popup_padding_mobile: 12px;
$modal_close_button_size: 23px;
$overlay_background_color: rgba(0, 0, 0, .6);
body.mailpoet_modal_opened {
overflow: hidden;
}
.mailpoet_modal_overlay {
align-items: center;
background-color: $overlay_background_color;
background-color: $legacy-modal-overlay-background-color;
box-sizing: border-box;
display: flex;
height: 100%;
@ -22,7 +12,7 @@ body.mailpoet_modal_opened {
left: 0;
overflow-x: hidden;
overflow-y: auto;
padding: $modal_popup_margin;
padding: $legacy-modal-popup-margin;
position: fixed;
top: 0;
width: 100%;
@ -30,7 +20,7 @@ body.mailpoet_modal_opened {
}
.mailpoet_modal_highlight {
background-color: $modal_highlight_background_color;
background-color: $legacy-modal-highlight-background-color;
box-shadow: 0 0 20px 2px rgba(#fff, 75%);
pointer-events: none;
position: relative;
@ -42,7 +32,7 @@ body.mailpoet_modal_opened {
}
.mailpoet_modal_overlay.mailpoet_overlay_loading {
background-color: $overlay_background_color !important;
background-color: $legacy-modal-overlay-background-color !important;
display: flex !important;
}
@ -59,7 +49,7 @@ body.mailpoet_modal_opened {
}
.mailpoet_popup_wrapper {
background-color: $modal_background_color;
background-color: $legacy-modal-background-color;
border-radius: 4px;
box-shadow: 1px 2px 4px #343434;
box-sizing: border-box;
@ -67,7 +57,7 @@ body.mailpoet_modal_opened {
flex-flow: column;
height: 100%;
overflow: hidden;
padding: $modal_popup_padding;
padding: $legacy-modal-popup-padding;
position: relative;
width: 100%;
z-index: 0;
@ -81,7 +71,7 @@ body.mailpoet_modal_opened {
font-size: 23px;
font-weight: 600;
line-height: 29px;
margin: 0 ($modal_close_button_size + 20) 0 0;
margin: 0 ($legacy-modal-close-button-size + 20) 0 0;
}
.mailpoet_popup_body {
@ -137,7 +127,7 @@ body.mailpoet_modal_opened {
.mailpoet_panel_title h2 {
border-left: 1px solid #444;
border-right: 1px solid #444;
color: $modal_title_color;
color: $legacy-modal-title-color;
font-family: 'Lucida Grande', Verdana, Arial, sans-serif;
font-size: 1em;
font-weight: normal;
@ -169,11 +159,11 @@ body.mailpoet_modal_opened {
}
.mailpoet_popup .mailpoet_modal_close {
height: $modal_close_button_size;
height: $legacy-modal-close-button-size;
padding: 3px 0;
right: $modal_popup_padding;
top: $modal_popup_padding;
width: $modal_close_button_size;
right: $legacy-modal-popup-padding;
top: $legacy-modal-popup-padding;
width: $legacy-modal-close-button-size;
}
.mailpoet_panel .mailpoet_modal_close {
@ -203,9 +193,9 @@ body.mailpoet_modal_opened {
text-align: right;
}
@media screen and (max-width: 782px) {
@include breakpoint-max-width(782px) {
.mailpoet_modal_overlay {
padding: $modal_popup_margin_mobile;
padding: $legacy-modal-popup-margin-mobile;
}
.mailpoet_popup {
@ -214,16 +204,16 @@ body.mailpoet_modal_opened {
}
.mailpoet_popup_wrapper {
padding: $modal_popup_padding_mobile;
padding: $legacy-modal-popup-padding-mobile;
}
.mailpoet_popup_title h2 {
margin-right: $modal_close_button_size + 10;
margin-right: $legacy-modal-close-button-size + 10;
}
.mailpoet_popup .mailpoet_modal_close {
right: $modal_popup_padding_mobile;
top: $modal_popup_padding_mobile;
right: $legacy-modal-popup-padding-mobile;
top: $legacy-modal-popup-padding-mobile;
}
.mailpoet_modal_overlay.mailpoet_panel_overlay {

View File

@ -38,7 +38,7 @@
}
}
@media screen and (max-width: 782px) {
@include breakpoint-max-width(782px) {
thead th.column-primary,
tfoot th.column-primary {
width: 100% !important;

View File

@ -0,0 +1,144 @@
#mailpoet_modal {
display: block !important;
}
.mailpoet-modal-screen-overlay {
align-items: center;
animation: edit-post__fade-in-animation .2s ease-out 0s;
animation-duration: 100ms;
animation-fill-mode: forwards;
background-color: rgba(#000, .7);
bottom: 0;
display: flex;
justify-content: center;
left: 0;
position: fixed;
right: 0;
top: 0;
z-index: $modal-screen-overlay-z-index;
}
// Full-screen on mobiles
.mailpoet-modal-frame {
background: white;
border: $modal-border-width solid $modal-light-gray-500;
box-shadow: $modal-shadow-modal;
box-sizing: border-box;
height: 100%;
overflow: auto;
width: 100%;
// Centered on desktops
@include breakpoint-min-width(600px) {
// Animate the modal frame/contents appearing on the page.
animation: mailpoet-modal-appear-animation .1s ease-out;
animation-duration: 100ms;
animation-fill-mode: forwards;
height: auto;
max-height: calc(100% - #{ $modal-header-height } - #{ $modal-header-height });
max-width: calc(100% - #{ $modal-grid-size-large } - #{ $modal-grid-size-large });
min-width: $modal-min-width;
width: auto;
}
}
@keyframes mailpoet-modal-appear-animation {
from {
margin-top: $modal-grid-size * 4;
}
to {
margin-top: 0;
}
}
// Fix header to the top so it is always there to provide context to the modal
// if the content needs to be scrolled (for example, on the keyboard shortcuts
// modal screen).
.mailpoet-modal-header {
align-items: center;
background: white;
box-sizing: border-box;
display: flex;
flex-direction: row;
height: $modal-header-height;
justify-content: space-between;
margin: 0 -#{$modal-grid-size-xlarge} $modal-grid-size-xlarge;
padding: 0 $modal-grid-size-xlarge;
// For z-index to take effect, the element must be positioned. A "sticky"
// element is positioned, but since this is not supported in IE11,
// "relative" is used as a fallback.
position: relative;
position: sticky;
top: 0;
z-index: $modal-header-z-index;
// Rules inside this query are only run by Microsoft Edge.
// Edge has bugs around position: sticky;, so it needs a separate top rule.
// See also https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/17555420/.
@supports (-ms-ime-align:auto) {
position: fixed;
width: 100%;
}
.mailpoet-modal-header-heading {
font-size: 1rem;
font-weight: 600;
}
h1 {
line-height: 1;
margin: 0;
}
.components-button {
left: $modal-grid-size;
position: relative;
}
.mailpoet-modal-close svg {
opacity: .5;
stroke: $modal-dark-gray-900;
}
}
.mailpoet-modal-header-heading-container {
align-items: center;
display: flex;
flex-direction: row;
flex-grow: 1;
justify-content: left;
}
.mailpoet-modal-header-icon-container {
display: inline-block;
svg {
max-height: $modal-icon-button-size;
max-width: $modal-icon-button-size;
padding: $modal-grid-size;
}
}
// Modal contents.
.mailpoet-modal-content {
box-sizing: border-box;
height: 100%;
padding: 0 $modal-grid-size-xlarge $modal-grid-size-xlarge;
// Rules inside this query are only run by Microsoft Edge.
// This is a companion top padding to the fixed rule in line 77.
@supports (-ms-ime-align:auto) {
padding-top: $modal-header-height;
}
}
.mailpoet-modal-full-screen {
height: 100%;
margin: 30px;
max-width: 100%;
min-width: 95%;
}

View File

@ -0,0 +1,8 @@
.mailpoet_template_iframe {
left: 0;
max-width: $grid-editor-width;
position: absolute;
top: 0;
width: $grid-editor-width;
z-index: -9999;
}

View File

@ -1,7 +1,6 @@
/*
Custom styles for MailPoet pages.
*/
.mailpoet-about-wrap {
.videoWrapper {
/* padding-top: 25px */

View File

@ -4,7 +4,6 @@ This is to make MailPoet pages independent of the WordPress
About page styles that may differ across WP versions.
Please add custom styles to pages_custom.styl
*/
.mailpoet-about-wrap {
font-size: 15px;
margin: 25px 40px 0 20px;
@ -238,7 +237,7 @@ Please add custom styles to pages_custom.styl
}
}
@media screen and (max-width: 782px) {
@include breakpoint-max-width(782px) {
.two-col-text {
column-count: 1;
}
@ -249,7 +248,7 @@ Please add custom styles to pages_custom.styl
}
}
@media screen and (max-width: 500px) {
@include breakpoint-max-width(500px) {
margin-left: 10px;
margin-right: 20px;

View File

@ -1,11 +1,10 @@
.mailpoet-about-wrap.mailpoet-premium-page {
display: flex;
flex-direction: column;
margin: 25px auto 0;
padding: 0 150px;
@media screen and (max-width: 1500px) {
@include breakpoint-max-width(1500px) {
padding: 0;
}
@ -36,27 +35,27 @@
flex-direction: row;
margin-bottom: 3em;
@media screen and (max-width: 500px) {
@include breakpoint-max-width(500px) {
flex-wrap: wrap;
}
img {
margin-right: 100px;
@media screen and (max-width: 1100px) {
@include breakpoint-max-width(1100px) {
height: 50%;
margin-right: 75px;
width: 50%;
}
@media screen and (max-width: 500px) {
@include breakpoint-max-width(500px) {
height: 40%;
margin: 0 auto;
width: 40%;
}
}
@media screen and (max-width: 500px) {
@include breakpoint-max-width(500px) {
.mailpoet-premium-page-intro-link-wrap {
text-align: center;
}
@ -101,11 +100,11 @@
.mailpoet-premium-page-feature {
width: 29%;
@media screen and (max-width: 640px) {
@include breakpoint-max-width(640px) {
width: 49%;
}
@media screen and (max-width: 500px) {
@include breakpoint-max-width(500px) {
width: 100%;
}
@ -129,12 +128,12 @@
justify-content: space-between;
margin: 0 20px;
@media screen and (max-width: 500px) {
@include breakpoint-max-width(500px) {
width: 100%;
}
}
@media screen and (max-width: 880px) {
@include breakpoint-max-width(880px) {
display: block;
> div { display: block; }
@ -155,7 +154,7 @@
flex-grow: 100;
}
@media screen and (max-width: 1100px) {
@include breakpoint-max-width(1100px) {
h2 {
font-size: 2em; // The text WooCommerce is too long and so on smaller displays it overflows. This helps.
}

View File

@ -145,7 +145,7 @@
margin-top: 10px;
}
@media screen and (max-width: 782px) {
@include breakpoint-max-width(782px) {
.form-table th {
width: auto;
}

View File

@ -30,12 +30,12 @@
}
.mailpoet_stats_premium_banner {
background-color: $info-message-background-color;
background-color: #fed2bf;
padding: 10px;
text-align: center;
}
@media screen and (max-width: 520px) {
@include breakpoint-max-width(520px) {
.mailpoet_stat_info {
display: none;
}

View File

@ -0,0 +1,82 @@
input[type=checkbox].mailpoet-toggle {
display: none;
// add default box-sizing for this scope
&,
&:after,
&:before,
*,
*:after,
*:before,
+ .mailpoet-toggle-button {
box-sizing: border-box;
&::selection {
background: none;
}
}
+ .mailpoet-toggle-button {
cursor: pointer;
display: block;
height: 24px;
outline: 0;
position: relative;
user-select: none;
width: 40px;
&:after,
&:before {
content: '';
display: block;
height: 22px;
position: relative;
width: 22px;
}
&:after {
left: -3px;
top: -3px;
}
&:before {
display: none;
}
}
&:checked + .mailpoet-toggle-button:after {
left: 14px;
}
}
$very-light-blue: #e5e9f8;
$apricot: #f5a278;
$pale-grey: #fdfdff;
// themes
.mailpoet-toggle-light {
+ .mailpoet-toggle-button {
background: $pale-grey;
border: solid 1px $very-light-blue;
border-radius: 2em;
padding: 2px;
transition: all .4s ease;
&:after {
background-color: #fff;
border: solid 1px $very-light-blue;
border-radius: 50%;
box-shadow: 0 4px 8px 0 rgba(220, 220, 220, .5);
transition: all .2s ease;
}
}
&:checked + .mailpoet-toggle-button {
background: $apricot;
border: solid 1px $apricot;
&:after {
border: solid 1px $apricot;
}
}
}

View File

@ -29,7 +29,7 @@
max-width: 100%;
}
@media screen and (max-width: 782px) {
@include breakpoint-max-width(782px) {
display: none;
}
}
@ -46,7 +46,7 @@
text-align: left;
width: 50%;
@media screen and (max-width: 782px) {
@include breakpoint-max-width(782px) {
padding: 30px;
width: 100%;
}

View File

@ -0,0 +1,10 @@
.mailpoet-block-div {
padding: 20px;
}
.mailpoet-block-create-new-content {
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 60px;
}

View File

@ -0,0 +1,159 @@
/* labels */
.mailpoet_text_label,
.mailpoet_textarea_label,
.mailpoet_select_label,
.mailpoet_radio_label,
.mailpoet_checkbox_label,
.mailpoet_list_label,
.mailpoet_date_label {
display: block;
}
.mailpoet_textarea {
height: auto;
}
/* form loading */
.mailpoet_form_sending {
.mailpoet_form_loading {
display: block;
}
.mailpoet_submit {
display: none;
}
}
.mailpoet_form_loading {
display: none;
text-align: center;
width: 30px;
}
.mailpoet_form_loading > span {
animation: mailpoet-bouncedelay 1.4s infinite ease-in-out both;
background-color: #5b5b5b;
border-radius: 100%;
display: inline-block;
height: 5px;
width: 5px;
}
.mailpoet_form_loading .mailpoet_bounce1 {
animation-delay: -.32s;
}
.mailpoet_form_loading .mailpoet_bounce2 {
animation-delay: -.16s;
margin: 0 7px;
}
.mailpoet_captcha_form {
.mailpoet_validate_success { color: #468847; }
.mailpoet_validate_error { color: #b94a48; }
}
.mailpoet_captcha_update {
cursor: pointer;
}
@keyframes mailpoet-bouncedelay {
0%,
80%,
100% { transform: scale(0); }
40% { transform: scale(1); }
}
// Form columns
$form-break-small-width: 500px;
$form-block-margin: 20px;
$form-columns-with-background-padding: 10px;
$form-columns-space-between: 20px;
.mailpoet_form .mailpoet_paragraph {
margin-bottom: $form-block-margin;
}
// Default value for users who don't have the value in Custom CSS
.mailpoet_column_with_background {
padding: $form-columns-with-background-padding;
}
// Default value for users who don't have the value in Custom CSS
.mailpoet_form_column:not(:first-child) {
margin-left: $form-columns-space-between;
}
@mixin maxWidthColumns() {
flex-wrap: wrap;
&.mailpoet_column_with_background .mailpoet_form_column:last-child .mailpoet_paragraph:last-child {
margin-bottom: 0 !important;
}
}
@mixin maxWidthColumn() {
// This must be important since the Column assigns its own width as an inline style.
flex-basis: 100% !important;
&:not(:first-child) {
margin-left: 0 !important;
}
}
.mailpoet_form_columns {
display: flex;
flex-wrap: nowrap;
// Alignment settings
&.mailpoet_vertically_align_top {
align-items: flex-start;
}
&.mailpoet_vertically_align_center {
align-items: flex-start;
}
&.mailpoet_vertically_align_bottom {
align-items: flex-start;
}
@include breakpoint-max-width(#{ ($form-break-small-width - 1) }) {
@include maxWidthColumns;
}
.mailpoet_form_tight_container & {
@include maxWidthColumns;
}
}
.mailpoet_form_column {
display: flex;
flex-direction: column;
// Alignment
&.mailpoet_vertically_align_top {
align-self: flex-start;
}
&.mailpoet_vertically_align_center {
align-self: center;
}
&.mailpoet_vertically_align_bottom {
align-self: flex-end;
}
@include breakpoint-min-width($form-break-small-width) {
.mailpoet_form_form:not(.mailpoet_form_tight_container) .mailpoet_column_with_background & .mailpoet_paragraph:last-child {
margin-bottom: 0 !important;
}
}
@include breakpoint-max-width(#{ ($form-break-small-width - 1) }) {
@include maxWidthColumn;
}
.mailpoet_form_tight_container & {
@include maxWidthColumn;
}
}

View File

@ -1,111 +0,0 @@
.clearfix {
@include clearfix();
}
.relative-holder {
position: relative;
}
a:focus {
outline: 0 none !important;
}
.mailpoet_success {
color: #090;
}
.mailpoet_error {
color: #900;
}
.mailpoet_hidden {
display: none;
}
.mailpoet_spaced_block {
margin: 1em 0;
}
.mailpoet_centered {
text-align: center;
}
.select2-container {
width: 25em !important;
}
$placeholder-color: #999; /* default Select2 placeholder color for single dropdown */
input.select2-search__field::-webkit-input-placeholder {
color: $placeholder-color;
}
input.select2-search__field:-moz-placeholder {
color: $placeholder-color;
}
input.select2-search__field::-moz-placeholder {
color: $placeholder-color;
}
input.select2-search__field:-ms-input-placeholder {
color: $placeholder-color;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
border: 1px solid #aaa; /* default Select2 border for single dropdown */
}
textarea.regular-text {
width: 25em !important;
}
@media screen and (max-width: 782px) {
.select2-container {
width: 100% !important;
}
}
$progress-border-radius: 5px;
$progress-background: #efefef;
$progress-foreground: #69b1e9;
progress {
background-color: $progress-background;
border: 0;
height: 2em;
width: 100%;
}
progress::-webkit-progress-bar {
background-color: $progress-background;
}
progress::-webkit-progress-value {
background-color: $progress-foreground;
border-radius: $progress-border-radius;
}
progress::-moz-progress-bar {
background-color: $progress-foreground;
border-radius: $progress-border-radius;
}
/* double class is intentional here, we need to be very specific here to
something wrapping our warning message could override its style */
p.sender_email_address_warning.sender_email_address_warning,
p.sender_email_address_warning.sender_email_address_warning a {
align-self: flex-start;
color: #900;
text-align: left;
}
p.sender_email_address_warning:first-child {
margin-top: 1em;
}
.button.mailpoet-button-bigger {
font-size: 1.5em;
height: 46px;
padding: 10px 18px;
}

View File

@ -1,7 +0,0 @@
.mailpoet_form {
margin: 0 0 20px;
}
.mailpoet_form td {
vertical-align: top !important;
}

View File

@ -1,8 +0,0 @@
.parsley-errors-list {
margin-top: 8px;
}
.parsley-required,
.parsley-custom-error-message {
color: #b94a48;
}

View File

@ -1,10 +0,0 @@
@import 'newsletterEditor/variables';
.mailpoet_template_iframe {
left: 0;
max-width: $newsletter-width;
position: absolute;
top: 0;
width: $newsletter-width;
z-index: -9999;
}

View File

@ -19,7 +19,7 @@ textarea.parsley-error {
font-size: .9em;
line-height: .9em;
list-style-type: none;
margin: 2px 0 3px;
margin: 8px 0 3px;
opacity: 0;
padding: 0;
transition: all .3s ease-in;
@ -28,3 +28,8 @@ textarea.parsley-error {
opacity: 1;
}
}
.parsley-required,
.parsley-custom-error-message {
color: #b94a48;
}

View File

@ -1,61 +0,0 @@
/* labels */
.mailpoet_text_label,
.mailpoet_textarea_label,
.mailpoet_select_label,
.mailpoet_radio_label,
.mailpoet_checkbox_label,
.mailpoet_list_label,
.mailpoet_date_label {
display: block;
}
/* form loading */
.mailpoet_form_sending {
.mailpoet_form_loading {
display: block;
}
.mailpoet_submit {
display: none;
}
}
.mailpoet_form_loading {
display: none;
text-align: center;
width: 30px;
}
.mailpoet_form_loading > span {
animation: mailpoet-bouncedelay 1.4s infinite ease-in-out both;
background-color: #5b5b5b;
border-radius: 100%;
display: inline-block;
height: 5px;
width: 5px;
}
.mailpoet_form_loading .mailpoet_bounce1 {
animation-delay: -.32s;
}
.mailpoet_form_loading .mailpoet_bounce2 {
animation-delay: -.16s;
margin: 0 7px;
}
.mailpoet_captcha_form {
.mailpoet_validate_success { color: #468847; }
.mailpoet_validate_error { color: #b94a48; }
}
.mailpoet_captcha_update {
cursor: pointer;
}
@keyframes mailpoet-bouncedelay {
0%,
80%,
100% { transform: scale(0); }
40% { transform: scale(1); }
}

View File

@ -1,28 +0,0 @@
// Fix for broken drag and drop for blocks
// This should had been fixed in Gutenberg's master branch
// https://github.com/WordPress/gutenberg/pull/15054
// It doesn't work even after upgrading to package version with the fix.
// It needs further investigation
.edit-post-editor-regions__content {
.block-editor-block-mover__control-drag-handle {
display: none !important;
}
}
// We don't want to allow user to remove Submit or Email.
// There is no way to hide the delete button programmatically so we hide last toolbar that contains the delete option
// There is a feature request for adding that into Gutenberg https://github.com/WordPress/gutenberg/issues/16364
// We also hide options to prevent removing Email or Submit when they are in multi-select
.block-editor-block-contextual-toolbar[data-type='mailpoet-form/email-input'],
.block-editor-block-contextual-toolbar[data-type='mailpoet-form/submit-button'],
.is-multi-selected {
.components-toolbar:last-child {
display: none;
}
}
// Drag and drop library we use for custom fields does not support nested scrollable
// https://github.com/atlassian/react-beautiful-dnd/issues/131
.edit-post-editor-regions__body {
overflow: hidden;
}

View File

@ -1,91 +0,0 @@
$gutenberg-control-border-color: #7e8993;
$gutenberg-control-border-color-focus: #007cba;
.components-panel {
.select2-container {
width: 100% !important;
input.select2-search__field:focus {
border: 0;
box-shadow: none;
}
.select2-selection {
border-color: $gutenberg-control-border-color;
}
&.select2-container--focus {
.select2-selection {
border-color: $gutenberg-control-border-color-focus;
box-shadow: 0 0 0 1px $gutenberg-control-border-color-focus;
}
}
}
.mailpoet-form-missing-lists {
.select2-selection {
border-color: red;
}
.mailpoet-form-lists-error {
color: red;
}
}
}
.components-base-control.mailpoet-form-success-types__control {
margin-bottom: 0;
.components-base-control__label {
display: block;
}
.components-radio-control__option {
display: inline-block;
margin-right: 1em;
input {
margin-right: 6px;
}
}
}
.button-on-top,
.button-on-top.components-button.is-link {
margin-bottom: 12px;
max-height: 30px;
}
.mailpoet-dnd-items-list > div {
display: flex;
flex-direction: column;
> * {
margin-bottom: 12px
}
}
.mailpoet-form-segments-settings-list {
align-items: center;
display: flex;
flex-direction: row;
.components-base-control {
flex-grow: 1;
margin: 8px 0;
.components-base-control__field {
margin: 0;
}
}
.mailpoet-form-segments-segment-remove {
cursor: pointer;
flex-grow: 0;
margin: 8px 0;
}
}
.mailpoet_sidebar_note {
padding: 16px;
}

View File

@ -1,94 +0,0 @@
$excellent-badge-color: #2993ab;
$good-badge-color: #f0b849;
$bad-badge-color: #d54e21;
$green-badge-color: #55bd56;
$video-guide-badge-color: #46b450;
#newsletters_container {
h2.nav-tab-wrapper {
margin-bottom: 1rem;
}
}
.mailpoet_stats_text {
font-size: 14px;
font-weight: 600;
}
.mailpoet_stat_excellent {
color: $excellent-badge-color;
}
.mailpoet_stat_good {
color: $good-badge-color;
}
.mailpoet_stat_bad {
color: $bad-badge-color;
}
.mailpoet_stat_hidden {
display: none;
}
.mailpoet_stat_link_small {
font-size: .75rem;
text-decoration: underline !important;
}
.mailpoet_badge {
border-radius: 3px;
color: white;
cursor: pointer;
font-size: .5625rem;
font-weight: 500;
letter-spacing: 1px;
margin-right: 4px;
padding: 4px 6px 3px;
text-transform: uppercase;
vertical-align: middle;
}
.mailpoet_badge_excellent,
.mailpoet_badge_teal {
background: $excellent-badge-color;
}
.mailpoet_badge_good,
.mailpoet_badge_yellow {
background: $good-badge-color;
}
.mailpoet_badge_bad,
.mailpoet_badge_red {
background: $bad-badge-color;
}
.mailpoet_badge_green {
background: $green-badge-color;
}
.mailpoet_badge_video {
background: $video-guide-badge-color;
display: inline-block;
line-height: 20px;
padding: 3px 6px;
text-decoration: none;
vertical-align: top;
&:hover,
&:active,
&:focus {
background: $green-badge-color;
color: #fff;
}
.dashicons {
font-size: 14px;
line-height: 20px;
}
}
.mailpoet_badge_video_grey {
background: #c3c3c3;
}

View File

@ -1,342 +0,0 @@
$link-color: $primary-active-background-color;
$select-border-color: $content-border-color;
$select-text-color: $primary-text-color;
$button-default-border-color: $structure-border-color;
$button-default-background-color: $primary-background-color;
$button-default-text-color: $primary-inactive-color;
$button-primary-border-color: $primary-active-color;
$button-primary-background-color: $primary-active-background-color;
$button-primary-hover-background-color: $primary-active-color-highlight;
$button-primary-text-color: $white-color;
$range-track-background-color: $white-color;
$range-track-border-color: $structure-border-color;
$range-track-height: 12px;
$range-thumb-background-color: $primary-inactive-color;
$range-thumb-border-color: #333;
$range-thumb-width: 13px;
$range-thumb-height: 26px;
$range-border-radius: 3px;
$range-thumb-hover-background-color: $primary-active-color;
.admin_page_mailpoet-newsletter-editor {
a {
color: $link-color;
text-decoration: none;
}
.mailpoet_hidden {
display: none !important;
}
.mailpoet_form_narrow_select2 span.select2-container {
width: 103px !important;
}
span.select2-container--open > span.select2-dropdown {
min-width: 150px;
}
span.select2-container--open > span.select2-dropdown li.select2-results__option {
font-size: 13px;
margin: 0 !important;
.select2-results__group {
color: #bfbfbf;
font-weight: normal;
}
.select2-results__option {
font-size: 13px;
padding-left: 15px;
&[aria-selected=true] {
background-color: #eee;
color: #444;
}
}
}
.mailpoet_settings_notice {
color: #999;
}
}
input.mailpoet_color {
width: 5em;
}
select.mailpoet_font-family {
width: 8em;
}
select.mailpoet_font-size {
width: 5em;
}
.mailpoet_input,
.mailpoet_select {
$form-control-padding: 3px;
appearance: none;
border-radius: 1px;
box-shadow: none !important;
line-height: 28px - $form-control-padding * 2;
padding: $form-control-padding;
}
.mailpoet_input {
border: 1px solid $select-border-color;
width: 283px;
}
.mailpoet_input_small {
width: 58px;
}
.mailpoet_input_medium {
width: 150px;
}
.mailpoet_input_full {
box-sizing: border-box;
margin: 0;
width: 100%;
}
.mailpoet_range {
-webkit-appearance: none;
padding: 0;
vertical-align: middle;
width: 283px;
&:focus {
outline: none;
}
&::-webkit-slider-runnable-track {
background: $range-track-background-color;
border: 1px solid $range-track-border-color;
border-radius: $range-border-radius;
cursor: pointer;
height: $range-track-height;
width: 100%;
}
&::-webkit-slider-thumb {
-webkit-appearance: none;
background: $range-thumb-background-color;
border: 1px solid $range-thumb-border-color;
border-radius: $range-border-radius;
cursor: pointer;
height: $range-thumb-height;
margin-top: -1 * $range-thumb-height / 3;
width: $range-thumb-width;
}
&:hover::-webkit-slider-thumb {
background: $range-thumb-hover-background-color;
}
&::-moz-range-track {
background: $range-track-background-color;
border: 1px solid $range-track-border-color;
border-radius: $range-border-radius;
cursor: pointer;
height: $range-track-height;
width: 100%;
}
&::-moz-range-thumb {
background: $range-thumb-background-color;
border: 1px solid $range-thumb-border-color;
border-radius: $range-border-radius;
cursor: pointer;
height: $range-thumb-height;
width: $range-thumb-width;
}
&:hover::-moz-range-thumb {
background: $range-thumb-hover-background-color;
}
&::-ms-fill-lower {
background: $range-track-background-color;
border: 1px solid $range-track-border-color;
}
&::-ms-fill-upper {
background: $range-track-background-color;
border: 1px solid $range-track-border-color;
}
&::-ms-track {
background: transparent;
border-color: transparent;
border-width: $range-track-height * 2 0;
color: transparent;
cursor: pointer;
height: $range-track-height;
width: 100%;
}
&::-ms-thumb {
background: $range-thumb-background-color;
border: 1px solid $range-thumb-border-color;
border-radius: $range-border-radius;
cursor: pointer;
height: $range-thumb-height;
width: $range-thumb-width;
}
&:hover::-ms-thumb {
background: $range-thumb-hover-background-color;
}
&:focus::-ms-fill-lower {
background: $range-track-background-color;
border: 1px solid $range-track-border-color;
}
&:focus::-ms-fill-upper {
background: $range-track-background-color;
border: 1px solid $range-track-border-color;
}
}
.mailpoet_range_small {
width: 100px;
}
.mailpoet_range_medium {
width: 180px;
}
.mailpoet_select {
border-color: $select-border-color;
color: $select-text-color;
margin: 0;
}
.mailpoet_select_large {
width: 139px;
}
.mailpoet_select_medium {
width: 103px;
}
.mailpoet_select_small {
width: 68px;
}
.mailpoet_select_half_width {
width: 50%;
}
#mailpoet_editor_content ol,
#mailpoet_editor_content ul {
padding-left: 40px;
}
#mailpoet_editor_content ul {
list-style-type: disc;
ul {
list-style-type: circle;
ul { list-style-type: square; }
}
}
.mailpoet_button {
background-color: $button-default-background-color;
border: 1px solid $button-default-border-color;
border-radius: 3px;
color: $button-default-text-color;
line-height: normal;
margin: 0;
padding: 6px 20px;
vertical-align: top;
}
.mailpoet_button_full {
box-sizing: border-box;
width: 100%;
}
.tooltip-help-designer-subject-line div,
.tooltip-help-designer-preheader div {
z-index: 100001;
}
.tooltip-help-send-preview {
color: #fff;
margin-top: -10px;
position: absolute;
right: 4px;
top: 50%;
}
.tooltip-help-designer-ideal-width {
color: #656565;
font-weight: normal;
margin-left: 5px;
text-transform: none;
}
.tooltip-help-designer-full-width .dashicons {
line-height: 34px;
}
.tooltip-help-designer-full-width span {
line-height: 1.4em;
}
.mailpoet_button_primary {
background-color: $button-primary-background-color;
border-color: $button-primary-border-color;
color: $button-primary-text-color;
&:hover {
background-color: $button-primary-hover-background-color;
}
}
.mailpoet_button_group {
display: inline;
.mailpoet_button:first-child {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
margin-right: 0;
padding: 6px 12px;
}
.mailpoet_button:last-child {
border-bottom-left-radius: 0;
border-left: 0;
border-top-left-radius: 0;
margin-left: 0;
padding-left: 10px;
padding-right: 10px;
}
}
.mailpoet_text_content p {
margin: 1em 0;
}
.mailpoet_separator {
margin: 17px 20px;
}
.mailpoet_option_offset_left_small {
margin-left: 10px;
}
input.mailpoet_option_offset_left_small {
margin-left: 10px !important;
}

View File

@ -1,33 +0,0 @@
$transparent-color: rgba(255, 255, 255, 0);
$white-color: rgb(255, 255, 255);
$black-color: rgb(0, 0, 0);
$structure-border-color: #ddd;
$content-border-color: #e5e5e5;
$primary-active-color: #0074a2;
$primary-active-color-highlight: #1e8cbe;
$primary-inactive-color: #a4a4a4;
$primary-active-background-color: #2ea1cd;
$primary-background-color: #f8f8f8;
$primary-text-color: #656565;
$primary-inset-shadow-color: #025c80;
$warning-background-color: #e64047;
$warning-text-color: $white-color;
$warning-alternate-text-color: #f4c6c8;
$error-text-color: #d54e21;
$editor-column-color: #7fbbd0;
$editor-content-color: #0078a2;
$newsletter-width: 660px;
$text-line-height: 1.6em;
$sidebar-text-size: 13px;
$info-message-background-color: #fed2bf;

View File

@ -1,207 +0,0 @@
$select-border-color: $content-border-color;
$select-text-color: $primary-text-color;
$sidebar-background-color: $primary-background-color;
$sidebar-active-heading-color: $primary-active-color;
$sidebar-inactive-heading-color: $primary-inactive-color;
$sidebar-text-color: $primary-text-color;
$widget-width: 70px;
$widget-background-color: $white-color;
$widget-shadow-color: darken($primary-background-color, 13%);
$widget-icon-color: darken($primary-background-color, 31.5%);
$widget-icon-hover-color: $primary-active-color;
$widget-icon-width: 30px;
#mailpoet_editor_sidebar {
border-bottom: $content-border-color;
border-left: $content-border-color;
color: $sidebar-text-color;
font-size: $sidebar-text-size;
.mailpoet_sidebar_region {
border-bottom: 1px solid $content-border-color;
border-left: 1px solid $content-border-color;
border-right: 0;
border-top: 0;
margin-bottom: 0;
&.closed .mailpoet_region_content {
display: none;
}
}
.mailpoet_region_content {
margin-top: 12px;
padding: 0 20px;
}
&,
.postbox {
background-color: $sidebar-background-color;
}
.postbox {
padding-bottom: 20px;
&.closed {
padding-bottom: 0;
}
&.closed h3 {
color: $sidebar-inactive-heading-color;
cursor: pointer;
}
h3,
&:hover h3 {
color: $sidebar-active-heading-color;
margin: 0;
padding: 17px 20px;
text-transform: uppercase;
}
h3,
.handlediv {
border: 0;
cursor: auto;
}
.handlediv:before {
color: $sidebar-active-heading-color;
content: '\f142';
display: inline-block;
font: 400 20px / 1 dashicons;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
position: relative;
right: 18px;
speak: none;
text-decoration: none !important;
top: 18px;
}
&.closed .handlediv:before {
color: $sidebar-inactive-heading-color;
content: '\f140';
}
&.closed:hover .handlediv:before {
color: $sidebar-active-heading-color;
}
}
}
.mailpoet_widget {
display: inline-block;
float: left;
padding: 0 13px 15px;
text-align: center;
width: $widget-width;
&:nth-child(3n+1) {
clear: left;
}
.mailpoet_widget_icon {
background-color: $widget-background-color;
border-radius: 3px;
box-shadow: 1px 2px $widget-shadow-color;
box-sizing: border-box;
color: $widget-icon-color;
fill: $widget-icon-color;
height: $widget-width;
line-height: $widget-width;
margin-bottom: 9px;
text-align: center;
width: $widget-width;
/* Vertically align widget icon glyphs */
> * {
font-size: $widget-icon-width;
height: $widget-icon-width;
vertical-align: middle;
width: $widget-icon-width;
}
&:hover {
border: 1px solid $widget-icon-hover-color;
color: $widget-icon-hover-color;
fill: $widget-icon-hover-color;
}
}
&.mailpoet_droppable_active {
color: $widget-icon-hover-color;
fill: $widget-icon-hover-color;
.mailpoet_widget_icon {
border: 1px solid $widget-icon-hover-color;
box-shadow: none;
color: $widget-icon-hover-color;
fill: $widget-icon-hover-color;
}
.mailpoet_widget_title {
display: none;
}
}
}
/* Browser preview modal */
.mailpoet_browser_preview_wrapper {
display: flex;
flex-direction: column;
height: 100%;
position: absolute;
width: 100%;
}
.mailpoet_browser_preview_toggle {
flex: 0 1 auto;
height: 30px;
padding: 10px 0;
position: absolute;
text-align: center;
top: -30px;
width: 100%;
}
.mailpoet_browser_preview_toggle > label {
display: inline-block;
margin: 0 5px;
}
.mailpoet_browser_preview_container {
border: 1px solid #979797;
border-radius: 20px;
box-sizing: border-box;
display: flex;
flex: 1 1 auto;
flex-direction: column;
height: 100%;
margin: 15px auto 0;
padding: 20px;
transition: width .5s;
}
.mailpoet_browser_preview_container_desktop {
width: 100%;
}
.mailpoet_browser_preview_container_mobile {
width: 350px;
}
.mailpoet_browser_preview_border {
border: 1px solid #c3c3c3;
box-sizing: border-box;
height: 100%;
width: 100%;
}
.mailpoet_browser_preview_iframe {
display: block;
margin: auto;
width: calc(100% - 1px);
}

View File

@ -1,11 +0,0 @@
@import '../../../node_modules/@wordpress/edit-post/build-style/style';
@import '../../../node_modules/@wordpress/editor/build-style/style';
@import '../../../node_modules/@wordpress/components/build-style/style';
@import '../../../node_modules/@wordpress/block-editor/build-style/style';
@import '../../../node_modules/@wordpress/block-library/build-style/style';
@import '../../../node_modules/@wordpress/block-library/build-style/theme';
@import '../../../node_modules/@wordpress/block-library/build-style/editor';
@import './components/formEditor/components/form_title';
@import './components/formEditor/components/sidebar';
@import './components/formEditor/components/block_editor';
@import './components/formEditor/components/custom_field';

View File

@ -1,2 +1,4 @@
@import 'components/globals';
@import 'components/plugins/members';
// Utilities
// Helpers and overrides.
@import 'components-admin/menu';
@import 'components-admin/3rd-party-plugins/members';

View File

@ -0,0 +1,51 @@
// Settings
// Global variables, config switches. Not producing any CSS.
@import 'settings/grid';
@import 'settings/colors';
@import 'settings/editor';
@import 'settings/range';
// Tools
// Default mixins and functions. Still not producing any CSS.
@import 'mixins/animations';
@import 'mixins/breakpoints';
// Generic
// 3rd-party styles, can be overwritten.
@import '../../../node_modules/spectrum-colorpicker/spectrum';
// Components
// Actual UI components.
@import 'components-editor/buttons';
@import 'components-editor/common';
@import 'components-editor/forms';
@import 'components-editor/layout';
@import 'components-editor/components/forms';
@import 'components-editor/components/heading';
@import 'components-editor/components/history';
@import 'components-editor/components/sidebar';
@import 'components-editor/components/sidepanel';
@import 'components-editor/components/save';
@import 'components-editor/components/block-tools';
@import 'components-editor/components/layers';
@import 'components-editor/components/drag-and-drop';
@import 'components-editor/components/resize';
@import 'components-editor/content-blocks/base';
@import 'components-editor/content-blocks/container';
@import 'components-editor/content-blocks/automated-latest-content';
@import 'components-editor/content-blocks/posts';
@import 'components-editor/content-blocks/products';
@import 'components-editor/content-blocks/button';
@import 'components-editor/content-blocks/divider';
@import 'components-editor/content-blocks/image';
@import 'components-editor/content-blocks/social';
@import 'components-editor/content-blocks/spacer';
@import 'components-editor/content-blocks/text';
@import 'components-editor/content-blocks/header';
@import 'components-editor/content-blocks/footer';
@import 'components-editor/content-blocks/woocommerce-heading';
@import 'components-editor/content-blocks/woocommerce-content';
// Utilities
// Helpers and overrides.
@import 'components-editor/3rd-party-overrides/overrides';

View File

@ -0,0 +1,24 @@
// Settings
// Global variables, config switches. Not producing any CSS.
@import 'settings/form-editor';
// Generic
// 3rd-party styles, can be overwritten.
@import '../../../node_modules/@wordpress/edit-post/build-style/style';
@import '../../../node_modules/@wordpress/editor/build-style/style';
@import '../../../node_modules/@wordpress/components/build-style/style';
@import '../../../node_modules/@wordpress/block-editor/build-style/style';
@import '../../../node_modules/@wordpress/block-library/build-style/style';
@import '../../../node_modules/@wordpress/block-library/build-style/theme';
@import '../../../node_modules/@wordpress/block-library/build-style/editor';
@import '../../../node_modules/codemirror/lib/codemirror';
@import '../../../node_modules/codemirror/theme/neo';
// Components
// Actual UI components.
@import './components-form-editor/form-title';
@import './components-form-editor/header';
@import './components-form-editor/sidebar';
@import './components-form-editor/preview';
@import './components-form-editor/block-editor';
@import './components-form-editor/custom-field';

View File

@ -1,61 +1,50 @@
@import 'components/mixins';
// Settings
// Global variables, config switches. Not producing any CSS.
@import 'settings/grid';
@import 'settings/badge';
@import 'settings/colors';
@import 'settings/legacy-modal';
@import 'settings/modal';
@import 'settings/newsletter';
@import 'settings/progress';
// Tools
// Default mixins and functions. Still not producing any CSS.
@import 'mixins/breakpoints';
@import 'mixins/clearfix';
// Generic
// 3rd-party styles, can be overwritten.
@import '../../../node_modules/select2/dist/css/select2';
@import '../../../node_modules/spectrum-colorpicker/spectrum';
@import 'components/automaticEmails';
@import 'components/datepicker/datepicker';
@import 'components/dynamicSegments';
@import 'components/common';
@import 'components/modal';
@import 'components/notice';
@import 'components/listing';
@import 'components/listing/newsletters';
@import 'components/box';
@import 'components/breadcrumb';
@import 'components/form';
@import 'components-plugin/3rd-party-plugins/datepicker';
// Components
// Actual UI components.
@import 'components/parsley';
@import 'components/formValidation';
@import 'components/settings';
@import 'components/progressBar';
@import 'components/subscribers';
@import 'components/pages';
@import 'components/pagesCustom';
@import 'components/premiumPage';
@import 'components/mp2migrator';
@import 'components/newsletterTemplates';
@import 'components/welcomeWizard';
@import 'components/featureAnnouncement';
@import 'components/newsletterCongratulate.scss';
@import 'components/discounts';
@import 'components/reviewRequest';
@import 'components/stats';
@import 'components/importExport';
@import 'components/newsletterEditor/mixins/transitions';
@import 'components/newsletterEditor/variables';
@import 'components/newsletterEditor/common';
@import 'components/newsletterEditor/layout';
@import 'components/newsletterEditor/components/forms';
@import 'components/newsletterEditor/components/heading';
@import 'components/newsletterEditor/components/history';
@import 'components/newsletterEditor/components/sidebar';
@import 'components/newsletterEditor/components/sidepanel';
@import 'components/newsletterEditor/components/save';
@import 'components/newsletterEditor/components/blockTools';
@import 'components/newsletterEditor/components/layers';
@import 'components/newsletterEditor/components/dragAndDrop';
@import 'components/newsletterEditor/components/resize';
@import 'components/newsletterEditor/contentBlocks/base';
@import 'components/newsletterEditor/contentBlocks/container';
@import 'components/newsletterEditor/contentBlocks/automatedLatestContent';
@import 'components/newsletterEditor/contentBlocks/posts';
@import 'components/newsletterEditor/contentBlocks/products';
@import 'components/newsletterEditor/contentBlocks/button';
@import 'components/newsletterEditor/contentBlocks/divider';
@import 'components/newsletterEditor/contentBlocks/image';
@import 'components/newsletterEditor/contentBlocks/social';
@import 'components/newsletterEditor/contentBlocks/spacer';
@import 'components/newsletterEditor/contentBlocks/text';
@import 'components/newsletterEditor/contentBlocks/header';
@import 'components/newsletterEditor/contentBlocks/footer';
@import 'components/newsletterEditor/contentBlocks/woocommerceHeading';
@import 'components/newsletterEditor/contentBlocks/woocommerceContent';
@import 'components/newsletterEditor/libraryOverrides';
@import 'components-plugin/automatic-emails';
@import 'components-plugin/browser-preview';
@import 'components-plugin/dynamic-segments';
@import 'components-plugin/common';
@import 'components-plugin/legacy-modal';
@import 'components-plugin/modal';
@import 'components-plugin/notice';
@import 'components-plugin/listing';
@import 'components-plugin/box';
@import 'components-plugin/breadcrumb';
@import 'components-plugin/forms';
@import 'components-plugin/settings';
@import 'components-plugin/progress-bar';
@import 'components-plugin/subscribers';
@import 'components-plugin/pages';
@import 'components-plugin/pages-custom';
@import 'components-plugin/premium-page';
@import 'components-plugin/mp2-migrator';
@import 'components-plugin/newsletter-templates';
@import 'components-plugin/welcome-wizard';
@import 'components-plugin/feature-announcement';
@import 'components-plugin/newsletter-congratulate';
@import 'components-plugin/discounts';
@import 'components-plugin/review-request';
@import 'components-plugin/stats';
@import 'components-plugin/import-export';
@import 'components-plugin/toggle';

View File

@ -0,0 +1,3 @@
// Components
// Actual UI components.
@import 'components-post-editor-block/post-editor-block';

View File

@ -1,4 +1,9 @@
@import 'components/mixins';
// Tools
// Default mixins and functions. Not producing any CSS.
@import 'mixins/breakpoints';
@import 'mixins/clearfix';
// Components
// Actual UI components.
@import 'components/parsley';
@import 'components/formValidation';
@import 'components/public';
@import 'components-public/public';

View File

@ -0,0 +1,11 @@
@mixin breakpoint-max-width($width) {
@media screen and (max-width: $width) {
@content;
}
}
@mixin breakpoint-min-width($width) {
@media screen and (min-width: $width) {
@content;
}
}

View File

@ -0,0 +1,5 @@
$badge-color-bad: #d54e21;
$badge-color-excellent: #2993ab;
$badge-color-good: #f0b849;
$badge-color-green: #55bd56;
$badge-color-video-guide: #46b450;

View File

@ -0,0 +1,26 @@
// General colors
$color-placeholder-select2: #999; /* default Select2 placeholder color for single dropdown */
$color-transparent: rgba(#fff, 0);
$color-white: rgb(255, 255, 255);
// Primary (blueish) color
$color-primary: #0074a2;
$color-primary-background: #f8f8f8;
$color-primary-button: #2ea1cd;
$color-primary-highlight: #1e8cbe;
$color-primary-inactive: #a4a4a4;
$color-primary-shadow-inset: #025c80;
$color-primary-text: #656565;
// Newsletter editor colors
$color-editor-background-column: #7fbbd0;
$color-editor-background-content: #0078a2;
$color-editor-border-content: #e5e5e5;
$color-editor-border-structure: #ddd;
$color-editor-warning: #d54e21;
$color-editor-warning-alternate: #f4c6c8;
$color-editor-warning-text: $color-white;

View File

@ -0,0 +1,44 @@
$editor-line-height: 1.6em;
$editor-column-margin: 20px;
$editor-column-width-one: $grid-editor-width - (2 * $editor-column-margin);
$editor-column-width-two: $grid-editor-width / 2 - (2 * $editor-column-margin);
$editor-column-width-two-wider: (($grid-editor-width / 3) - $editor-column-margin) * 2;
$editor-column-width-three: $grid-editor-width / 3 - (2 * $editor-column-margin);
$editor-divider-background-color: #daebf2;
$editor-divider-border-color: #adadad;
$editor-divider-border-color-hover: $color-primary;
$editor-dnd-drag-zindex: 2;
$editor-dnd-drop-size: 2px;
$editor-dnd-drop-zindex: 1;
$editor-resize-color: $color-editor-background-content;
$editor-resize-handle-color: $color-white;
$editor-resize-handle-zindex: 2;
$editor-sidebar-background: $color-primary-background;
$editor-sidebar-color: $color-primary-text;
$editor-sidebar-font-size: 13px;
$editor-sidebar-width: 330px;
$editor-social-icon-background-color: #daebf2;
$editor-social-icon-border-color: #adadad;
$editor-social-icon-border-color-hover: $color-primary;
$editor-social-icon-width: 32px;
$editor-tool-size: 14px;
$editor-tool-size-with-padding: 24px;
$editor-tool-column-size: 15px;
$editor-tool-column-size-with-padding: 27px;
$editor-tool-social-color: #333;
$editor-tool-social-hover: #bbb;
$editor-tool-social-width: 16px;
$editor-widget-icon-color-hover: $color-primary;
$editor-widget-icon-color: darken($color-primary-background, 31.5%);
$editor-widget-icon-size: 30px;
$editor-widget-shadow-color: darken($color-primary-background, 13%);
$editor-widget-size: 70px;

View File

@ -0,0 +1,11 @@
$gutenberg-control-border-color: #7e8993;
$gutenberg-control-active-color: #ff5301;
$gutenberg-control-border-color-focus: #007cba;
$form-placement-option-base-color: #e5e9f8;
$form-placement-option-text-color: #23282d;
$form-placement-option-oval: #dcdcdc;
$form-placement-option-oval-border: #969ca1;
$form-placement-option-height: 142px;
$form-placement-option-width: 116px;
$form-placement-option-border: 1px;
$form-placement-option-active-border: 2px;

View File

@ -0,0 +1 @@
$grid-editor-width: 660px;

Some files were not shown because too many files have changed in this diff Show More