diff --git a/assets/css/src/modal.styl b/assets/css/src/modal.styl index a379ccf0a5..ae61715bac 100644 --- a/assets/css/src/modal.styl +++ b/assets/css/src/modal.styl @@ -9,7 +9,7 @@ body.mailpoet_modal_opened overflow: hidden // overlay -#mailpoet_modal_overlay +.mailpoet_modal_overlay height: 100% left: 0 overflow-y: auto @@ -28,24 +28,21 @@ body.mailpoet_modal_opened box-shadow(0px 0px 20px 2px alpha(#fff, 75%)) // overlay: state -#mailpoet_modal_overlay.mailpoet_overlay_hidden +.mailpoet_modal_overlay.mailpoet_overlay_hidden background-color: transparent // overlay: state -#mailpoet_modal_overlay.mailpoet_overlay_loading +.mailpoet_modal_overlay.mailpoet_overlay_loading background-color: overlay_background_color !important display: block !important -.mailpoet_modal_opened #mailpoet_modal_overlay +.mailpoet_modal_opened .mailpoet_modal_overlay display: block // modal popup -#mailpoet_popup - display: none - position: absolute +.mailpoet_popup z-index: 25 - top: 48px - margin: 0 + margin: auto .mailpoet_popup_wrapper background-color: modal_content_background_color @@ -58,14 +55,14 @@ body.mailpoet_modal_opened .mailpoet_overlay_hidden .mailpoet_popup_wrapper border: 1px solid #333 -#mailpoet_popup_title +.mailpoet_popup_title background-color: modal_title_background_color border: 1px solid #333 height: 27px margin: 0 padding: 0 30px 0 0 -#mailpoet_popup_title h2 +.mailpoet_popup_title h2 color: modal_title_color font-size: 12px font-weight: normal @@ -78,11 +75,11 @@ body.mailpoet_modal_opened height: 92% // modal panel -#mailpoet_modal_overlay.mailpoet_panel_overlay +.mailpoet_modal_overlay.mailpoet_panel_overlay top: 32px overflow: hidden -#mailpoet_panel +.mailpoet_panel display: none position: fixed z-index: 100002 @@ -104,13 +101,13 @@ body.mailpoet_modal_opened top: 0 z-index: 0 -#mailpoet_panel_title +.mailpoet_panel_title margin: 0 padding: 0 position: relative height: 0 -#mailpoet_panel_title h2 +.mailpoet_panel_title h2 color: modal_title_color background-color: modal_title_background_color border-left: 1px solid #444 @@ -126,7 +123,7 @@ body.mailpoet_modal_opened padding: 10px 10px 36px 10px // modal button -#mailpoet_modal_close +.mailpoet_modal_close background: url(../img/modal_close_button.png) 7px 7px no-repeat height: 30px overflow: hidden @@ -136,15 +133,15 @@ body.mailpoet_modal_opened z-index: 2 outline: 0 none -#mailpoet_popup #mailpoet_modal_close +.mailpoet_popup .mailpoet_modal_close right: 0 top: 0 -#mailpoet_panel #mailpoet_modal_close +.mailpoet_panel .mailpoet_modal_close right: 10px top: 7px -#mailpoet_modal_close:focus +.mailpoet_modal_close:focus outline: 0 none // buttons @@ -161,7 +158,7 @@ body.mailpoet_modal_opened text-align: right @media screen and (max-width: 782px) - #mailpoet_modal_overlay.mailpoet_panel_overlay + .mailpoet_modal_overlay.mailpoet_panel_overlay top: 46px .mailpoet_panel_body @@ -191,13 +188,13 @@ body.mailpoet_modal_opened margin-left: 17px width: 32px -#mailpoet_modal_loading_1, .mailpoet_modal_loading_1 +.mailpoet_modal_loading_1, .mailpoet_modal_loading_1 animation-delay(0.39s) -#mailpoet_modal_loading_2, .mailpoet_modal_loading_2 +.mailpoet_modal_loading_2, .mailpoet_modal_loading_2 animation-delay(0.9099999999999999s) -#mailpoet_modal_loading_3, .mailpoet_modal_loading_3 +.mailpoet_modal_loading_3, .mailpoet_modal_loading_3 animation-delay(1.1700000000000002s) @keyframes bounce_mailpoet_modal_loading diff --git a/assets/css/src/settings.styl b/assets/css/src/settings.styl index de8f889b30..bd00275e74 100644 --- a/assets/css/src/settings.styl +++ b/assets/css/src/settings.styl @@ -1,6 +1,6 @@ #mailpoet_settings // common - .mailpoet_panel + .mailpoet_tab_panel display none .form-table th diff --git a/assets/js/src/modal.js b/assets/js/src/modal.js index 00f6102a44..018a2b9704 100644 --- a/assets/js/src/modal.js +++ b/assets/js/src/modal.js @@ -79,21 +79,21 @@ define('modal', ['mailpoet', 'jquery'], renderer: 'html', options: {}, templates: { - overlay: '', - popup: '
' + + overlay: '', + popup: '
' + '
' + - '' + - '

' + + '' + + '

' + '
' + '
' + '
', loading: '', - panel: '
' + - '' + + panel: '
' + + '' + '
' + '
' + '
' + diff --git a/assets/js/src/settings/tabs.js b/assets/js/src/settings/tabs.js index ec9662105b..69f4cb2fd9 100644 --- a/assets/js/src/settings/tabs.js +++ b/assets/js/src/settings/tabs.js @@ -60,14 +60,14 @@ define( jQuery('.nav-tab-wrapper a').removeClass('nav-tab-active'); // hide panels & sections - jQuery('.mailpoet_panel, .mailpoet_section').hide(); + jQuery('.mailpoet_tab_panel, .mailpoet_section').hide(); // set active tab jQuery('a.nav-tab[href="#' + tab + '"]').addClass('nav-tab-active').blur(); // show selected panel - if (jQuery('.mailpoet_panel[data-tab="' + tab + '"]').length > 0) { - jQuery('.mailpoet_panel[data-tab="' + tab + '"]').show(); + if (jQuery('.mailpoet_tab_panel[data-tab="' + tab + '"]').length > 0) { + jQuery('.mailpoet_tab_panel[data-tab="' + tab + '"]').show(); } // show "save settings" button diff --git a/views/settings.html b/views/settings.html index ca11be0347..9c77cd9762 100644 --- a/views/settings.html +++ b/views/settings.html @@ -23,27 +23,27 @@ -
+
<% include 'settings/mta.html' %>
-
+
<% include 'settings/basics.html' %>
-
+
<% include 'settings/signup.html' %>
-
+
<% include 'settings/advanced.html' %>
-
+
<% include 'settings/premium.html' %>