2012-04-03 3 views
0

그러나Compass로 특정 청사진 구성 요소를 어떻게 가져올 수 있습니까? 내가 screen.scss에 다음 코드를 사용하여 내 프로젝트에 전체 청사진 CSS 프레임 워크를로드 할 수 있어요

@import "compass"; 
@import "blueprint"; 
@include blueprint; 

, 나는 그러한 "청사진/그리드 '와 같은 특정 구성 요소를 포함 할 것 "청사진/버튼"

@import "compass"; 
@import "blueprint/grid"; 
@import "blueprint/buttons"; 
@include blueprint; 

난 그냥 그 조각을 가져 오려고, 나는 다음과 같은 오류 얻을 :

error resources/sass/screen.scss (Line 12: Undefined mixin 'blueprint'.) 

어떤 하는가를 하나는 청사진의 일부를 포함하는 방법을 알고 있지만 전부는 아닙니다.

답변

1

청사진 mixin은 루트 스타일 시트에 있습니다. 당신이 한 일이 모두 정확하다는 것을 의미하지만 메인 믹스 인을 얻으려면 @import "청사진"을해야합니다.

@import "compass"; 
@import "blueprint"; 
@import "blueprint/grid"; 
@import "blueprint/buttons"; 
@include blueprint;