Is it possible to get the value of a property defined through a mixin for a selector within another selector. For example:
@mixin mymixin($mywidth) {
width: $mywidth;
}
div {
@include mymixin(90%);
}
p {
width: (20 / (([GET_SOMEWAY_DIV_WIDTH] * 960) / 100)) * 100;
}
Use a variable:
Edit re: OP edit. AFAICS, when using mixin arguments, those values are only accessible within the scope of the mixin, when the mixin is included. Refactor so that you pass a variable to the included mixin: