diff --git a/mod_simplecallback/media/mod_simplecallback/css/simplecallback.css b/mod_simplecallback/media/mod_simplecallback/css/simplecallback.css index 9ef9367..bdd2548 100644 --- a/mod_simplecallback/media/mod_simplecallback/css/simplecallback.css +++ b/mod_simplecallback/media/mod_simplecallback/css/simplecallback.css @@ -42,13 +42,14 @@ input#customFile { position: absolute; left: 50%; top: 30px; - margin-left: -130px; + margin-left: -180px; z-index: 10010; background: #fff; padding: 30px; text-align: left; border-radius: 5px; box-shadow: 0 0 20px rgba(0,0,0, 0.5); + box-sizing: border-box; } .simplecallback-overlayed.simplecallback-loading::before { @@ -89,6 +90,7 @@ input#customFile { position: absolute; right: 10px; top: 10px; + text-align: center; } .simplecallback-close:hover { @@ -177,4 +179,32 @@ input#customFile { } .simplecallback label { width: 100%; +} + +.simplecallback-overlayed input, +.simplecallback-overlayed textarea, +.simplecallback-overlayed .form-cols:not(:last-child), +.simplecallback-overlayed .custom-select{ + margin-bottom: 10px; +} +@media only screen and (max-width: 992px){ + .simplecallback-overlayed { + width: 90%; + margin-left: -45%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + .simplecallback-close{ + right: 0; + top: 0; + width: 40px; + height: 40px; + line-height: 40px; + } +} +@media only screen and (max-width: 320px){ + .simplecallback-overlayed{ + padding: 20px; + } } \ No newline at end of file diff --git a/mod_simplecallback/media/mod_simplecallback/js/simplecallback.js b/mod_simplecallback/media/mod_simplecallback/js/simplecallback.js index 8c1d112..cb3364f 100644 --- a/mod_simplecallback/media/mod_simplecallback/js/simplecallback.js +++ b/mod_simplecallback/media/mod_simplecallback/js/simplecallback.js @@ -277,7 +277,7 @@ }); if ($('[data-simplecallback-form-overlayed]').length > 0) { - var overlay = $('
'); + var overlay = $('
'); $('body').prepend(overlay); } diff --git a/mod_simplecallback/mod_simplecallback.xml b/mod_simplecallback/mod_simplecallback.xml index 707e5f8..f417be9 100644 --- a/mod_simplecallback/mod_simplecallback.xml +++ b/mod_simplecallback/mod_simplecallback.xml @@ -101,7 +101,7 @@ name="simplecallback_phone_field_pattern" label="Паттерн проверки (RegExp)" description="" - default="(\+?\d[- .]*){6,14}"> + default="(\+?\d[- .()]*){6,14}"> JNO + + + +
diff --git a/mod_simplecallback/tmpl/default.php b/mod_simplecallback/tmpl/default.php index 8967a41..ad2666a 100644 --- a/mod_simplecallback/tmpl/default.php +++ b/mod_simplecallback/tmpl/default.php @@ -136,24 +136,21 @@
×
+ get('simplacallback_title_overlay', 0)) { + echo "<$header_tag class='$header_class'>$module->title"; + } ?> ".$my_text_before."
"; -} -?> - showtitle) { - echo "<$header_tag class='$header_class'>$module->title"; -} ?> - - - - ".$my_text_before.""; -} + if ($my_text_before_enabled == 1 && $overlayed == 1) { + echo "
".$my_text_before."
"; + } + ?> + -?> + ".$my_text_before.""; + } + ?>
@@ -314,25 +311,21 @@
display( 'captcha', 'captcha', 'captcha' ); ?>
-
- - - - - - - - -
- +
+ + + + + + + + +
+ ".$my_text_after."
"; + } + ?> - -".$my_text_after.""; -} - -?> \ No newline at end of file