Просмотр исходного кода

#31 - Page Builder updates and fixes.

AntonLV 12 лет назад
Родитель
Сommit
04fd3483e3

+ 1 - 1
studio/template/bp_add_block.html

@@ -1,4 +1,4 @@
-<div class="adm-bp-create-block-form bx-def-color-bg-block">
+<div class="adm-bp-create-block-form bx-def-margin-top-neg bx-def-color-bg-block">
     <div class="adm-bp-create-block-form-cnt">
         __form__
         <script type="text/javascript">

+ 1 - 1
studio/template/bp_edit_page.html

@@ -1,4 +1,4 @@
-<div class="adm-bp-edit-form bx-def-color-bg-block">
+<div class="adm-bp-edit-form bx-def-margin-top-neg bx-def-color-bg-block">
     <div class="adm-bp-edit-form-cnt">
         __form__
         <script type="text/javascript">

+ 2 - 6
studio/template/css/builder_page.css

@@ -118,9 +118,7 @@ div#adm-bp-create-block-popup div.bx-popup-content {
 }
 
 div.adm-bp-create-block-form {}
-div#adm-bp-create-block-popup div.adm-bp-create-block-form {
-	margin-top:-20px;
-}
+
 div.adm-bp-create-block-form-cnt {}
 
 div.adm-bp-create-block-form fieldset.bx-form-section {
@@ -170,9 +168,7 @@ div#adm-bp-edit-popup div.bx-popup-content {
     padding-right: 0px; 
 }
 
-div.adm-bp-edit-form {
-	margin-top:-20px;
-}
+div.adm-bp-edit-form {}
 div.adm-bp-edit-form-cnt {}
 
 div.adm-bp-edit-form fieldset.bx-form-section {

+ 6 - 0
studio/template/css/default.less

@@ -1,5 +1,11 @@
 @import url(../../../template/css/default.less);
 
+/* margins */
+.bx-def-margin-top-neg {
+    .margin-top(-@bx-margin);
+}
+
+/* widget */
 .bx-def-widget-size {
     .width(@bx-size-widget);
     .height(@bx-size-widget);

+ 1 - 0
studio/template/scripts/BxBaseStudioBuilderPage.php

@@ -648,6 +648,7 @@ class BxBaseStudioBuilderPage extends BxDolStudioBuilderPage
                 $aBlock['cell_id'] = 1;
                 $aBlock['module'] = $this->getBlockModule($aBlock);
                 $aBlock['title'] = $sTitleKey;
+				$aBlock['copyable'] = 0;
                 $aBlock['deletable'] = 1;
 
                 //--- Process Lang copy