The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Mixin within Mixin

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #38410

    I know this may be a stupid question but is there a way to reference one Mixin within another.

    Here is an example of what I am trying. I’m trying to use the first mix within the second as the line height.

    @remValue: @sizeValue;
    @pxValue: (@sizeValue * 10);
    line-height: ~"@{pxValue}px";
    line-height: ~"@{remValue}rem";
    	.baseFont(@weight: normal, @size: 14px, @lineHeight: (.lineHeight(2.1)) {
    font-family: @fontFamily;
    font-size: @size;
    font-weight: @weight;
    line-height: @lineHeight;
Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.