瀏覽代碼

Ticket #1869 - Default styles.

AntonLV 7 年之前
父節點
當前提交
095cb5d4c3

+ 5 - 0
modules/boonex/protean/data/template/system/css/common.css

@@ -1,5 +1,10 @@
 @import url(../../../../../../../template/css/common.css);
 
+a {
+    -webkit-transition: color .1s ease;
+    transition: color .1s ease;
+}
+
 /* --- Buttons --- */
 .bx-btn i,
 .bx-btn u {

+ 10 - 0
modules/boonex/protean/data/template/system/css/default.less

@@ -809,3 +809,13 @@ a.bx-def-font-h3:hover {
 .bx-btn.bx-btn-small:active .sys-icon {
 	color: @bx-font-color-button-small-hover;
 }
+
+/* colors */
+.bx-def-color-bg-hl,
+.bx-def-color-bg-hl-even:nth-child(even),
+.bx-def-color-bg-hl-hover:hover {
+    -webkit-transition: background .1s ease,color .1s ease, -webkit-box-shadow .1s ease;
+    transition: background .1s ease, color .1s ease,-webkit-box-shadow .1s ease;
+    transition: background .1s ease, box-shadow .1s ease,color .1s ease;
+    transition: background .1s ease, box-shadow .1s ease,color .1s ease,-webkit-box-shadow .1s ease;
+}

+ 12 - 0
modules/boonex/protean/data/template/system/scripts/BxTemplConfig.php

@@ -18,6 +18,18 @@ class BxTemplConfig extends BxBaseConfig
         $sName = 'bx_protean';
         $this->_isModule = BxDolModuleQuery::getInstance()->isModuleByName($sName);
 
+        //--- Defaults
+        $this->_aConfig['aLessConfig'] = array_merge($this->_aConfig['aLessConfig'], array(
+            'bx-margin' => '16px',
+            'bx-margin-sec' => '8px',
+            'bx-margin-thd' => '4px',
+
+            'bx-padding' => '16px',
+            'bx-padding-sec' => '8px',
+            'bx-padding-thd' => '4px',
+
+            'bx-size-avatar' => '60px'
+        ));
 
         //--- Images
         $oStorage = BxDolStorage::getObjectInstance('sys_images_custom');