Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.

Releases: sergeysova/postcss-define-units

v1.1.2 🌝

02 Jun 13:19
v1.1.2
b8b5d72

Choose a tag to compare

Update lockfile for npm@5

v1.1.1 🍀

02 Jun 13:09

Choose a tag to compare

Rebase fork. Thanks @preusx

Support expression in unit definition:

.bar {
  --define: demo (Math.pow(1.618, value))rem;
  width: 2demo;
}

Result:

.bar {
  width: 2.617924rem;
}

0.0.3

07 Feb 00:43

Choose a tag to compare

Add support to write float units:

a {
  --define: unit 10px;
  line-height: 3.5px;
}

Result:

a {
  line-height: 35px
}

Project needs your ideas!

0.0.2

07 Feb 00:41

Choose a tag to compare

0.0.2 Pre-release
Pre-release

Added simple define:

body {
  --define: unit 10px;
  padding: 2unit;
}

Result:

body {
  padding: 20px
}