All Projects → cassidoo → parsesize

cassidoo / parsesize

Licence: other
A tiny CSS preprocessor that converts the `size` property to `width` and `height`.

Programming Languages

javascript
184084 projects - #8 most used programming language

parsesize

A tiny CSS preprocessor that converts the size property to width and height.

How to use it

npm install -g parsesize
sizecss testfile.size

Example

testfile.size input file:

.never {
  color: blue;
  size: 20% 12rem;
}

.gonna {
  size: 50px;
}

.give {
  size: 300em 1px;
}

.you {
  size: 13%;
}

.up {
  border-radius: 30px;
  size: 80em;
}

Outputted testfile.css file:

.never {
  color: blue;
  height: 20%;
  width: 12rem;
}

.gonna {
  height: 50px;
  width: 50px;
}

.give {
  height: 300em;
  width: 1px;
}

.you {
  height: 13%;
  width: 13%;
}

.up {
  border-radius: 30px;
  height: 80em;
  width: 80em;
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].