0
Welcome Guest! Login
0 items Join Now

SOLVED .less variables not working

    • Codensapz's Avatar
    • Codensapz
    • Rocketeer
    • Posts: 61
    • Thanks: 0
    • Founder of Codesnapz

    SOLVED .less variables not working

    Posted 10 years 9 months ago
    • Hi i am building a new template using gantry framework for joomla. I have created some less files and they are working fine using a php file added to the features folder.


      <?php
          class GantryFeatureExtras extends GantryFeature {
              var $_feature_name = 'extras';
             
             
             function isEnabled()
             {
              return true;
             }
             
              function isInPosition($position) {
                  return false;
              }
              function isOrderable(){
                  return true;
              }
             
              function init() {
                  global $gantry;
      
      		   $gantry->addStyle('cs-variables.less');            
      		   $gantry->addStyle('cs-forms.less');
      		   $gantry->addStyle('cs-grid.less');
      		   $gantry->addStyle('cs-menu.less');
      		   $gantry->addStyle('cs-styles.less');
      		   $gantry->addStyle('cs-buttons.less');
      		   $gantry->addStyle('cs-template.less');
      		   $gantry->addStyle('cs-grid.less');
                 $gantry->addstyle('cs-typography.less');
              
      
              }
      }
      

      However none of my less variables are working.


      this is the variables file - name: cs-variables.less
      /*
          Name:           cs-variables
          Description: 	Main variables for CS-Hub
          Author: 		Codesnapz®
          Version: 		1.0
      */
      
      // Main Colours -----------------
      @cs-white:						#ffffff;
      
      @cs-black: 					#34495E;
      @cs-dark-black:             #39485B;
          
      @cs-green:				    #5DC560;
      @cs-light-green:            #6ECB70;
      @cs-dark-green:             #389D3B;
          
      @cs-lightgrey:              #F4F4F4;
          
      @cs-blue:                   #7BC0DC;  
      @cs-dark-blue:              #53add1;
          
      @cs-red:                    #E15258;
      @cs-light-red:              #E97C76;
      @cs-dark-red:               #c42229;
          
      @cs-orange:                 #FF7954;
      @cs-dark-orange:            #ff5121;
          
      @cs-aqua:                   #53BBB4;
      @cs-dark-aqua:              #3e9d97;
          
      @cs-darkgrey:               #637A91;
      @cs-dark-darkgrey:          #39485B;    
      
      // Font Colours -----------------
      @cs-fontcolor:              #676767;
      @cs-dimfontcolor:           #848C96;
      @cs-footer-text:            #687180;
      @cs-footer-bold:            #848C96;
      
      // Paddings -----------------
      @cs-pad15:                   15px;
      
      // Margins ------------------
      @cs-marg15:                  15px;
      
      // typography --------------
      @cs-FontFamily:	             Arial, Helvetica, sans-serif;
      @cs-hero:	                 50px;
      @cs-h1:	                     35px;
      @cs-h2:                      30px;
      @cs-h3:                      25px;
      @cs-h4:                      20px;
      @cs-p:		                 18px;
      
      // boxs --------------
      @cs-box1-bg:                 @cs-white;
      @cs-box1-radius:             5px;
      @cs-box1-width:              100%;
      @cs-box1-height:             100%;
      @cs-box1-border-size:        none;
      
      @cs-box2-bg:                 @cs-lightgrey;
      @cs-box2-radius:             5px;
      @cs-box2-width:              100%;
      @cs-box2-height:             100%;
      @cs-box2-border-size:        none;
      
      
      

      Any help would be greatly appreciated.
    • Flat design is the new BOSS.
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22268
    • Thanks: 3224
    • messin' with stuff

    Re: SOLVED .less variables not working

    Posted 10 years 9 months ago
    • I would suggest posting in the official Google groups for Gantry as well if you haven't already. It's more developer orientated there; break/fix here.

      www.gantry-framework.org/support

      This is generally outside the scope of support here, and over my head (currently) unfortunately... but someone else may be able to help eventually
    • The following users have thanked you: Codensapz

    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • Codensapz's Avatar
    • Codensapz
    • Rocketeer
    • Posts: 61
    • Thanks: 0
    • Founder of Codesnapz

    Re: SOLVED .less variables not working

    Posted 10 years 9 months ago
    • Thanks Matt,

      Just posted in the google group appreciate that never new about that group page.
    • Flat design is the new BOSS.

Time to create page: 0.051 seconds