Browse Source

#159 site tours: different button colors for different templates

Alex Trofimov 11 years ago
parent
commit
3151035cab

+ 5 - 0
modules/boonex/lagoon/data/template/studio/css/launcher.css

@@ -0,0 +1,5 @@
+@import url(../../../../../../../studio/template/css/launcher.css);
+
+html .shepherd-step.shepherd-theme-default .shepherd-content footer .shepherd-buttons li .shepherd-button {
+    background: #55a892; 
+}

+ 5 - 0
modules/boonex/lagoon/data/template/system/css/homepage.css

@@ -0,0 +1,5 @@
+@import url(../../../../../../../template/css/homepage.css);
+
+html .shepherd-step.shepherd-theme-default .shepherd-content footer .shepherd-buttons li .shepherd-button {
+    background: #55a892; 
+}

+ 0 - 4
studio/template/css/launcher.css

@@ -254,10 +254,6 @@ div.bx-std-widget-caption a {
 /**
  * Tour
  */
-html .shepherd-step.shepherd-theme-default .shepherd-content footer .shepherd-buttons li .shepherd-button {
-    background: #55a892; 
-}
-
 body.shepherd-active #bx-std-menu-top-center,
 body.shepherd-active .bx-menu-toolbar li,
 body.shepherd-active .bx-std-widget-cont {

+ 2 - 2
studio/template/launcher_tour.html

@@ -86,14 +86,14 @@
             aBtns.push({
                 text: 0 == i ? '<bx_text_js:_sys_exit />' : '<bx_text_js:_sys_done />',
                 action: glTour.cancel,
-                classes: 0 == i ? 'shepherd-button-secondary' : 'shepherd-button-example-primary'
+                classes: 0 == i ? 'shepherd-button-secondary' : 'shepherd-button-primary'
             });
 
         if (i != (a.length - 1))
             aBtns.push({
                 text: '<bx_text_js:_sys_next />',
                 action: glTour.next,
-                classes: 'shepherd-button-example-primary'
+                classes: 'shepherd-button-primary'
             });
 
         glTour.addStep(a[i].id, {

+ 4 - 1
template/scripts/BxBasePageHome.php

@@ -33,7 +33,10 @@ class BxBasePageHome extends BxTemplPage
         parent::_addJsCss();
         if (isAdmin()) {
             $this->_oTemplate->addJs('shepherd/shepherd.min.js');
-            $this->_oTemplate->addCss(BX_DIRECTORY_PATH_PLUGINS_PUBLIC . 'shepherd/css/|shepherd-theme-' . $this->_sTourTheme . '.css');
+            $this->_oTemplate->addCss(array(
+                'homepage.css',
+                BX_DIRECTORY_PATH_PLUGINS_PUBLIC . 'shepherd/css/|shepherd-theme-' . $this->_sTourTheme . '.css'
+            ));
         }
     }
 }