Browse Source

Working on inheritance flow for themes

pull/636/head
jlukic 11 years ago
parent
commit
c0863a2a9c
5 changed files with 23 additions and 16 deletions
  1. 3
      src/elements/icon.less
  2. 15
      src/semantic.config
  3. 16
      src/theme.less
  4. 3
      src/theme/semantic/icon.overrides
  5. 2
      src/theme/semantic/icon.variables

3
src/elements/icon.less

@ -29,9 +29,6 @@
@element: 'icon';
@import '../semantic.config';
.importVariables(@element);
.importOverrides(@element);
/*******************************
Icon
*******************************/

15
src/semantic.config

@ -1,17 +1,8 @@
/*-------------------
Theme
Theme
--------------------*/
@theme : 'semantic';
@buttonTheme : 'github';
.importVariables(element) {
// check if child theme exists
@import "theme/semantic/@{element}.variables";
}
.importOverrides(element) {
// check if child theme exists
@import "theme/semantic/@{element}.overrides";
}
@import "theme/semantic/global.variables";
@import "theme.less";

16
src/theme.less

@ -0,0 +1,16 @@
.loadUIVariables() {
@import "theme/semantic/@{element}.variables";
@import "theme/@{theme}/@{element}.overrides";
}
.loadUIOverrides() {
@import "theme/semantic/@{element}.variables";
@import "theme/@{theme}/@{element}.overrides";
}
.loadGlobal() {
@import "theme/semantic/@{element}.variables";
@import "theme/@{theme}/@{element}.overrides";
}
.loadGlobal();
.loadUIVariables();
.loadUIOverrides();

3
src/theme/semantic/icon.overrides

@ -0,0 +1,3 @@
/*******************************
Overrides
*******************************/

2
src/theme/semantic/icon.variables

@ -4,7 +4,7 @@
--------------------*/
/*
@disabledOpacity
@disabledOpacity
*/
/*-------------------

Loading…
Cancel
Save