Skip to content
This repository was archived by the owner on Jan 9, 2019. It is now read-only.
This repository was archived by the owner on Jan 9, 2019. It is now read-only.

Mathematical operations do not work on rem units #33

Description

@robfletcher

I'm attempting to build a mixin for outputting rem units with a pixel fallback, basically:

.margin-top(@size: 1) {
    margin-top: @size * 16px;
    margin-top: @size * 1rem;
}

However the CSS output is:

margin-top: 16px;
margin-top: 1 rem;

Note the space between 1 and rem which makes the rule invalid.

I have tried a couple of other ways of achieving the same result such as @size + rem or ~"@{size}rem" with no success.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions