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

#1 - Comments: Minor fixes and improvements.

AntonLV 11 лет назад
Родитель
Сommit
59e0caa1bb
3 измененных файлов с 6 добавлено и 3 удалено
  1. 1 1
      template/comments_block.html
  2. 4 0
      template/css/default.less
  3. 1 2
      template/scripts/BxBaseCmts.php

+ 1 - 1
template/comments_block.html

@@ -1,4 +1,4 @@
-<div id="cmts-box-__system__-__id__">
+<div id="cmts-box-__system__-__id__" class="bx-def-margin-topbottom-neg">
 	__post_form_top__
 	<div id="cmt0" class="cmts">
 		<a class="bx-anchor-invisible" name="__list_anchor__"></a>

+ 4 - 0
template/css/default.less

@@ -40,6 +40,10 @@
     .margin-top(@bx-margin);
     .margin-bottom(@bx-margin);
 }
+.bx-def-margin-topbottom-neg {
+    .margin-top(-@bx-margin);
+    .margin-bottom(-@bx-margin);
+}
 .bx-def-margin-top {
     .margin-top(@bx-margin);
 }

+ 1 - 2
template/scripts/BxBaseCmts.php

@@ -100,10 +100,9 @@ class BxBaseCmts extends BxDolCmts
             'script' => $this->getJsScript()
         ));
 
-        return $bInDesignbox ? DesignBoxContent($sCaption, $sContent, BX_DB_PADDING_DEF, $this->_getControlsBox()) : array(
+        return $bInDesignbox ? DesignBoxContent($sCaption, $sContent, BX_DB_DEF, $this->_getControlsBox()) : array(
             'title' => $sCaption,
             'content' => $sContent,
-            'designbox_id' => BX_DB_PADDING_DEF,
             'menu' => $this->_getControlsBox(),
         );
     }