当前位置: 动力学知识库 > 问答 > 编程问答 >

css - Undefined mixing error in codekit

问题描述:

I can't figure out why I can't get mixins to work. Can you look at the info below and see if something's wrong. These are my sass pages and they include the relevant code.

**Style.sass**

@import "components/typography"

@import "components/tables"

**_typography.sass**

@mixin bold-caps

font-weight: 700

text-transform: capitalize

**_tables.sass**

p

@include bold-caps

网友答案:
// Style.sass
@import "components/typography";
@import "components/tables";

//_typography.sass
@mixin bold-caps() {
    font-weight: 700;
    text-transform: capitalize;
}

//_tables.sass
p {
    @include bold-caps();
}
分享给朋友:
您可能感兴趣的文章:
随机阅读: