Browse Source

Move out theme loader from theme.config, use separate include

1.0
jlukic 10 years ago
parent
commit
99c80e3ca1
1 changed files with 48 additions and 0 deletions
  1. 48
      src/theme.less

48
src/theme.less

@ -0,0 +1,48 @@
/*******************************
Import Directives
*******************************/
@theme : @@element;
/*------------------
Default Theme
-------------------*/
@import "@{themesFolder}/default/globals/site.variables";
@import "@{themesFolder}/default/@{type}s/@{element}.variables";
/*------------------
Packaged Theme
-------------------*/
@import "@{themesFolder}/@{site}/globals/site.variables";
@import "@{themesFolder}/@{theme}/@{type}s/@{element}.variables";
/*------------------
Site Theme
-------------------*/
@import "@{siteFolder}/globals/site.variables";
@import "@{siteFolder}/@{type}s/@{element}.variables";
/*******************************
Import Mix-ins
*******************************/
/*------------------
Fonts
-------------------*/
.loadFonts() when (@importGoogleFonts) {
@import (css) 'http://fonts.googleapis.com/css?family=@{googleFontRequest}';
}
/*------------------
Overrides
-------------------*/
.loadUIOverrides() {
@import "@{themesFolder}/@{theme}/@{type}s/@{element}.overrides";
@import "@{siteFolder}/@{type}s/@{element}.overrides";
}
Loading…
Cancel
Save