如何使用sass更新引导主题?

时间:2015-02-24 00:48:25

标签: css django twitter-bootstrap sass

我想通过将自定义主题应用于bootstrap来更新我的Django应用程序主题。

目前我的静态文件夹结构如下所示:

static
   bootstrap
       fonts
       js
       scss
         bootstrap.scss
   mytheme
       theme.scss
       _variables.scss
   main.scss

mytheme文件夹包含覆盖bootstrap中样式的样式

我有一个main.scss,它将导入bootstrap.scss和mytheme scss文件:

@import "/bootstrap/scss/bootstrap";
@import "/mytheme/theme";
@import "/mytheme/variables";

当我运行" python manage.py compress"时,我没有看到mytheme文件夹中的变量覆盖引导程序的内容。

如果我把mytheme下的文件放到bootstrap文件夹中,一切正常。

我想知道我能否解释上面解释的内容?我的目标不是触摸引导文件夹,而是覆盖主题。

谢谢!

0 个答案:

没有答案