Я хотел бы additively строить фоны в 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
я упускаю что-то очевидное? Заранее спасибо.