Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryanve/border.css

Opensource functional CSS border classes
https://github.com/ryanve/border.css

atomic-css border css functional-css

Last synced: about 1 month ago
JSON representation

Opensource functional CSS border classes

Awesome Lists containing this project

README

        

# border.css
[Opensource functional CSS border classes](#classes). Available [on npm](https://www.npmjs.com/package/border.css) for production and [unpkg](https://unpkg.com/border.css/) for [prototyping online](https://codepen.io/ryanve/pen/RZQqNX).

```
npm install border.css
```

### `@import` all

```css
@import 'node_modules/border.css/border';
```

### `@import` incrementally

```css
@import 'node_modules/border.css/border-collapse';
@import 'node_modules/border.css/border-color';
@import 'node_modules/border.css/border-context';
@import 'node_modules/border.css/border-style';
@import 'node_modules/border.css/border-width';
```

## [Classes](border.css)

### [`border-collapse`](border-collapse.css)
- `.border-separate`
- `.border-collapse`

### [`border-color`](border-color.css)
- `.border-current`
- `.border-transparent`
- `.top-transparent`
- `.left-transparent`
- `.right-transparent`
- `.bottom-transparent`

### [`border-context`](border-context.css)
- `.first-top-none`
- `.first-left-none`
- `.last-right-none`
- `.last-bottom-none`

### [`border-style`](border-style.css)
- `.border-none`
- `.top-none`
- `.left-none`
- `.right-none`
- `.bottom-none`
- `.border-inset`
- `.border-groove`
- `.border-outset`
- `.border-ridge`
- `.border-dotted`
- `.border-dashed`
- `.border-solid`
- `.top-solid`
- `.left-solid`
- `.right-solid`
- `.bottom-solid`
- `.border-double`
- `.border-hidden`
- `.top-hidden`
- `.left-hidden`
- `.right-hidden`
- `.bottom-hidden`

### [`border-width`](border-width.css)
- `.border-trim`
- `.top-trim`
- `.left-trim`
- `.right-trim`
- `.bottom-trim`
- `.border-thin`
- `.border-medium`
- `.border-thick`

### Precedence

- `border` < `top`|`left`|`right`|`bottom` < `first`|`last`
- [`none` < style < `hidden`](https://github.com/ryanve/border.css/pull/10)