@mixin box($box-style:style-tx1 , $text-style:style-box1) {
@include {$box-style};
}
This is useful, if I have a mixin that wrap box propeties as the
following
@mixin style-tx1($border:false, $color:fase){
}
and you could use it by typing
@include box($box-style:style-tx1);
to apply style-tx1 mixin to the current element in a consitent way
The workaround I've found was to use short css properties to pass
style properties and to minimize the number of argument
But sometimes for text for example the declaration don't take all text
properties and I need to pass 2 or three argument
I want to have a sort of indesign style like where I can define in one
place text style, box style, paragrapher style...
Till now as I understood interpolation of variable name, mixin name,
extend class name don't work
$style = border-style
${$style}
don't work
$my-mixin = style-tx1
@include {$my-mixin}
don't work,
$my-class = .content
@extend {$my-class}
don't work,
I don't know if it's by design and would be always like this or if
there is a possibility to implement this feature in the future
As a reference the sass css framework that I'm trying to build to
design drupal theme.
https://github.com/sinsunsan/ia_mix
I'm using as base two sass framework twitter bootstrap and compass. Do
you know other intiative of this type ?
I've wanted the same thing myself. Haven't been able to figure out a way to do it.
To view this discussion on the web visit https://groups.google.com/d/msg/sass-lang/-/B3FJJGwI0P0J.--
You received this message because you are subscribed to the Google Groups "Sass" group.
To post to this group, send email to sass...@googlegroups.com.
To unsubscribe from this group, send email to sass-lang+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sass-lang?hl=en.
chris
To unsubscribe from this group, send email to sass-lang+unsubscribe@googlegroups.com.