ilscipio/scipio-erp

View on GitHub
themes/metro/includes/themeStyles.groovy

Summary

Maintainability
Test Coverage
/**
 * Master HTML templating variables include, Foundation Metro theme/framework.
 *
 * Overrides the default SCIPIO styles located in
 * htmlVariables.groovy - ofbiz_foundation/framework/common/webcommon/includes/scipio/lib/standard/
 *
 */

import java.lang.*;
import java.util.*;
import org.ofbiz.base.util.*;
 
/*
*************************************
* MAIN STYLES *
*************************************
*/

/* EXTENDS/MODIFIES the default foundation styles */
GroovyUtil.runScriptAtLocation("component://common/webcommon/includes/scipio/lib/standard/htmlVariables.groovy", null, context);

context.styles.putAll([
  /*Metro specific*/
    "customSideBar" : true,
    "menu_sidebar" : "side-nav topnav slicknav",
    "menu_sidebar_wrap" :"",
    "menu_sidebar_specialtype" : "sidebar",
    
  /* Specific display elements */
    /* Address picker */
    "address_list" : "address-list",
    "address_entry" : "address-entry",
    "address_entry_ownline" : "address-entry-ownline",
    
  /* Always declare last */
    "dummy" : ""
]);