I'd like to store the current value of a property for later use. It's already been solved for jQuery.
The issue is that I'm using a @mixin
to apply a CSS hack in several places (Justified Block List) and I'd like to restore the font-size
property in .block-list *
(currently all text in sub-elements is just collapsed).
Unsatisfactory workarounds:
- Save the global default font size in a separate file and pass it to the
@mixin
on@import
. This is of course in the general case not the same font size as the objects which the mixin is applied to. - Save the font size whenever you change it, and pass that. This tangles up the files involved, since it's not very elegant to
@include
the typography stylesheet in several otherwise unrelated files. - Use more jQuery.
Possibly satisfactory workarounds:
- Override the font size with a stronger rule on the first ancestor which changes it. This could be tricky to determine.