# lesses

> Useful less mixin

Latest version **0.2.0** (published 2015-08-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install lesses
pnpm add lesses
yarn add lesses
bun add lesses
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2015-08-24 |
| First published | 2015-03-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | chunpu |
| Maintainers | ftft1885 |

## Links

- npm: https://www.npmjs.com/package/lesses
- npm.io page: https://npm.io/package/lesses

## Dependencies (1)

- [jade-gist](https://npm.io/package/jade-gist.md) ^1.0.5

## Recent versions

- 0.2.0 (latest) — 2015-08-24
- 0.1.0 — 2015-05-29
- 0.0.9 — 2015-04-08
- 0.0.8 — 2015-04-08
- 0.0.7 — 2015-04-08
- 0.0.6 — 2015-04-08
- 0.0.5 — 2015-04-07
- 0.0.4 — 2015-04-07
- 0.0.3 — 2015-04-07
- 0.0.2 — 2015-04-01
- 0.0.1 — 2015-03-31

## README

lesses
===

[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][downloads-url]
[![Dependency Status][david-image]][david-url]
[npm-image]: https://img.shields.io/npm/v/lesses.svg?style=flat-square
[npm-url]: https://npmjs.org/package/lesses
[downloads-image]: http://img.shields.io/npm/dm/lesses.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/lesses
[david-image]: http://img.shields.io/david/chunpu/lesses.svg?style=flat-square
[david-url]: https://david-dm.org/chunpu/lesses


Useful less mixin

Installation
---

```sh
npm i lesses
```

Usage
---

Only use the mixin less

```less
@import "mixin/all";
```

Also use the ripe less by class

```less
@import "ripe/all";
```

Check the [example](http://chunpu.github.io/lesses/example/) page


Mixin
---

#### util

- `.clearfix`
- `.size(width[, height])`
- `.color(color[, background-color])`
- `.color-reverse(color[, background-color])`
- `.opacity(value)`
- `.border(color[, border-radius])` border always use `1px solid @color`

#### grid

TODO

#### gradient

- `.horizontal(start, end)` end default equals to start
- `.vertical(start, end)`
- `.reset-filter` only need when reset old ie

#### position

- `.center` horizontal center
- `.middle(height)` vertical middle, but it needs a height

#### text

- `.text-size(font-size[, line-height: 1])`
- `.text-line(line-height[, count: 1])` limit text lines
- `.text-left`
- `.text-right`
- `.text-center`

#### shadow

- `.shadow([value])`
- `.inset-shadow([value])`

> default value is `1px 2px 8px 1px rgba(0, 0, 0, 0.25)`, can use in most situation


#### transition

- `.transition([value])`

>  default value is `all 0.4s ease-in-out`

#### global var

- `ie-compat` default is true to support ie6+ as possible as it can


Handful class
---

- `.clearfix`
- `.left`
- `.right`
- `.block`
- `.inline`
- `.inline-block`
- `.text-left`
- `.text-right`
- `.text-center`
- `.hidden` display none and visibility hidden
- `.invisible` only visibility hidden
- `.circle`
- `.round`
- `.fixed`
- `.absolute`
- `.relative`

Notice
---

lesses do nothing about compat prefix, only old ie and w3c

use [autoprefixer](https://github.com/postcss/autoprefixer) to add vendor prefixes

e.g.

```sh
npm i -g less-plugin-autoprefix
lessc style.less --autoprefix="> 1%"

# if you are from China, then use
lessc style.less --autoprefix="> 0%" # all browser(IE6+) prefix
```

License
---

[![License][license-image]][license-url]

[license-image]: http://img.shields.io/npm/l/lesses.svg?style=flat-square
[license-url]: #

---
_Source: https://npm.io/package/lesses · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
