@import "theme.config";


/*******************************
        Import Directives
*******************************/

/*------------------
       Theme
-------------------*/

@theme: @@element;

/*--------------------
   Site Variables
---------------------*/

/* Default site.variables */
@import (optional) "@{default-assets-less-lib-path}/semantic/@{themesFolder}/default/globals/site.variables";
@import (optional) "@{default-assets-less-lib-path}/semantic-custom/@{themesFolder}/default/globals/site.variables";
@import (optional) "@{themesFolder}/default/globals/site.variables";

/* Packaged site.variables */
@import (optional) "@{default-assets-less-lib-path}/semantic/@{themesFolder}/@{site}/globals/site.variables";
@import (optional) "@{default-assets-less-lib-path}/semantic-custom/@{themesFolder}/@{site}/globals/site.variables";
@import (optional) "@{themesFolder}/@{site}/globals/site.variables";

/* Component's site.variables */
@import (optional) "@{default-assets-less-lib-path}/semantic/@{themesFolder}/@{theme}/globals/site.variables";
@import (optional) "@{default-assets-less-lib-path}/semantic-custom/@{themesFolder}/@{theme}/globals/site.variables";
@import (optional) "@{themesFolder}/@{theme}/globals/site.variables";

/* Site theme site.variables */
@import (optional) "@{default-assets-less-lib-path}/semantic/@{siteFolder}/globals/site.variables";
@import (optional) "@{default-assets-less-lib-path}/semantic-custom/@{siteFolder}/globals/site.variables";
@import (optional) "@{siteFolder}/globals/site.variables";


/*-------------------
 Component Variables
---------------------*/

/* Default */
@import (optional) "@{default-assets-less-lib-path}/semantic/@{themesFolder}/default/@{type}s/@{element}.variables";
@import (optional) "@{default-assets-less-lib-path}/semantic-custom/@{themesFolder}/default/@{type}s/@{element}.variables";
@import (optional) "@{themesFolder}/default/@{type}s/@{element}.variables";

/* Packaged Theme */
@import (optional) "@{default-assets-less-lib-path}/semantic/@{themesFolder}/@{theme}/@{type}s/@{element}.variables";
@import (optional) "@{default-assets-less-lib-path}/semantic-custom/@{themesFolder}/@{theme}/@{type}s/@{element}.variables";
@import (optional) "@{themesFolder}/@{theme}/@{type}s/@{element}.variables";

/* Site Theme */
@import (optional) "@{default-assets-less-lib-path}/semantic/@{siteFolder}/@{type}s/@{element}.variables";
@import (optional) "@{default-assets-less-lib-path}/semantic-custom/@{siteFolder}/@{type}s/@{element}.variables";
@import (optional) "@{siteFolder}/@{type}s/@{element}.variables";


/*******************************
             Mix-ins
*******************************/

/*------------------
       Fonts
-------------------*/

.loadFonts() when (@importGoogleFonts) {
    @import url('@{googleProtocol}fonts.googleapis.com/css?family=@{googleFontRequest}');
}

/*------------------
     Overrides
-------------------*/

.loadUIOverrides() {

    @import (optional) "@{default-assets-less-lib-path}/semantic/@{themesFolder}/@{theme}/@{type}s/@{element}.overrides";
    @import (optional) "@{default-assets-less-lib-path}/semantic-custom/@{themesFolder}/@{theme}/@{type}s/@{element}.overrides";
    @import (optional) "@{themesFolder}/@{theme}/@{type}s/@{element}.overrides";

    @import (optional) "@{default-assets-less-lib-path}/semantic/@{siteFolder}/@{type}s/@{element}.overrides";
    @import (optional) "@{default-assets-less-lib-path}/semantic-custom/@{siteFolder}/@{type}s/@{element}.overrides";
    @import (optional) "@{siteFolder}/@{type}s/@{element}.overrides";
}
