2012-04-30 5 views
0

기존 배경 문자열을 모르는 상태에서 SASS/Compass에 배경을 추가하여 추가하고 싶습니다. 나는 글로벌 var에 쓰는 것으로 성취 할 수있다. 그러나 그것은 지저분 해 보인다.SASS : 기존 배경 문자열의 값을 가져 와서 추가 하시겠습니까?

의사 : 내가 뭔가를 분명 실종

=mixin-add-icon 
    // add a background icon 
=mixin-add-gradient-from-color($color: blue !default) 
    // add a background gradient 
=mixin-add-texture-bg 
    // add a bg texture 

a 
    background: blue 
    +mixin-add-texture-bg 
    // this should take the existing bg and add texture to it 
    &.selected 
    +mixin-add-gradient-from-color() 
    +mixin-add-icon 
     // these two should take the existing bgs strings from <a> and add to them 

건가요? 미리 감사드립니다.

답변

1

현재 Sass를 통해 객체의 속성에 액세스하는 방법은 없지만 Sass는 열려있는 프로젝트이므로 언제든지 개발자가 Github repo에서 이러한 기능을 사용할 수 있는지 물어볼 수 있습니다.

관련 문제