dojo / dijit-themes

Dojo 1 - modern themes
Other
29 stars 21 forks source link

refs #7, initial dgrid flat theme #14

Closed dylans closed 8 years ago

dylans commented 8 years ago

Initial dgrid flat theme commit. Main challenge at this point is how to make the path to dgrid/css/skins/skin.styl work as expected. @kfranqueiro any suggestions or thoughts on this?

kfranqueiro commented 8 years ago

It is possible to use variables within Stylus @import statements, so it should be feasible to define a variable at the top of flat.styl with a default presumed path to dgrid (e.g. ../../../dgrid if we were to assume that dgrid is a sibling to themes), then concatenate the path to dgrid's skin stylus file (e.g. @import $path + '/css/skins/skin').

If we define the variable first thing in flat.styl, it should be easy enough to direct people to find and change if they need to.

bryanforbes commented 8 years ago

Or define it with a ?= within flat.styl so it can be overridden before @importing the flat theme:

$flat_path_to_dgrid = '../../dgrid';
@import '../themes/flat/flat.styl';
dylans commented 8 years ago

Closed via 3fb4714.