Răsfoiți Sursa

Ticket #255 - changeable menu item addons.

AntonLV 8 ani în urmă
părinte
comite
06e0698327

+ 1 - 1
inc/classes/BxDolTemplate.php

@@ -247,7 +247,7 @@ class BxDolTemplate extends BxDolFactory implements iBxDolSingleton
         $this->_sFolderCss = 'css/';
         $this->_sFolderCss = 'css/';
         $this->_sFolderImages = 'images/';
         $this->_sFolderImages = 'images/';
         $this->_sFolderIcons = 'images/icons/';
         $this->_sFolderIcons = 'images/icons/';
-        $this->_aTemplates = array('html_tags', 'menu_item_addon');
+        $this->_aTemplates = array('html_tags', 'menu_item_addon', 'menu_item_addon_small', 'menu_item_addon_middle');
 
 
         $this->addLocation('system', $this->_sRootPath, $this->_sRootUrl);
         $this->addLocation('system', $this->_sRootPath, $this->_sRootUrl);
 
 

+ 0 - 3
template/css/cmts.css

@@ -185,9 +185,6 @@
 		height: 64px;
 		height: 64px;
     	height: 4rem;
     	height: 4rem;
     }
     }
-    form.cmt-post-reply .bx-form-input-submit {
-    	text-transform: uppercase;
-    }
     form.cmt-post-reply div#bx-form-element-cmt_image,
     form.cmt-post-reply div#bx-form-element-cmt_image,
     form.cmt-post-reply .bx-form-input-files-uploaders {
     form.cmt-post-reply .bx-form-input-files-uploaders {
 		margin-top: 0px;
 		margin-top: 0px;

+ 17 - 5
template/css/default.less

@@ -554,20 +554,32 @@ h3,
     text-overflow:ellipsis;
     text-overflow:ellipsis;
     overflow:hidden;
     overflow:hidden;
 }
 }
-.bx-def-unit-alert-middle,
-.bx-def-unit-alert {
+
+.bx-def-unit-alert,
+.bx-def-unit-alert-small,
+.bx-def-unit-alert-middle {
     display:block;
     display:block;
     position:absolute;
     position:absolute;
     right:0;
     right:0;
     bottom:0;
     bottom:0;
-    .min-width(@bx-font-size-small + 5);
+    text-align:center;
+    color:white;
+}
+.bx-def-unit-alert {
+	.min-width(@bx-font-size-default + 2);
+    .height(@bx-font-size-default + 2);
+    .line-height(@bx-font-size-default + 2);
+    .radius(@bx-font-size-default);
+    .font-size(@bx-font-size-default);
+    .padding(3px);
+}
+.bx-def-unit-alert-small {
+	.min-width(@bx-font-size-small + 5);
     .height(@bx-font-size-small + 5);
     .height(@bx-font-size-small + 5);
     .line-height(@bx-font-size-small + 5);
     .line-height(@bx-font-size-small + 5);
     .radius(@bx-font-size-small);
     .radius(@bx-font-size-small);
     .border (1px, solid, #fff);
     .border (1px, solid, #fff);
     .font-size(@bx-font-size-small);
     .font-size(@bx-font-size-small);
-    text-align:center;
-    color:white;
 }
 }
 .bx-def-unit-alert-middle {
 .bx-def-unit-alert-middle {
     .min-width(@bx-font-size-middle + 2);
     .min-width(@bx-font-size-middle + 2);

+ 1 - 1
template/menu_item_addon.html

@@ -1 +1 @@
-<span class="bx-menu-item-addon bx-def-unit-alert-middle bg-col-red2">__content__</span>
+<span class="bx-menu-item-addon bx-def-unit-alert bg-col-red2">__content__</span>

+ 1 - 0
template/menu_item_addon_middle.html

@@ -0,0 +1 @@
+<span class="bx-menu-item-addon bx-def-unit-alert-middle bg-col-red2">__content__</span>

+ 1 - 0
template/menu_item_addon_small.html

@@ -0,0 +1 @@
+<span class="bx-menu-item-addon bx-def-unit-alert-small bg-col-red2">__content__</span>