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

https://github.com/jarvisniu/jol

a simple responsive css library
https://github.com/jarvisniu/jol

css library responsive

Last synced: about 1 month ago
JSON representation

a simple responsive css library

Awesome Lists containing this project

README

          

# jol
A simple responsive css library

# Usage
```html


A

B


A

apple

B

boy


```

# Content

Includes responsive:

- width
- gap
- visibility

Limitations:

- Mixing with fixed widths and percent widths is not supported. Use flex instead!

Attentions:

- Do not apply `padding` to the container and `margin` to the columns.

# Docs

## Containers (Rows):

``` css
.jol /* no gap */
.jol-gap /* with gap */
.jol-gap-2x /* doubled gap */
```

## Columns:

```css
.jol-3 /* a quarter width by default (12 based) */
.jol-tablet-1-2 /* but halt width on tablet (2 based) */
.jol-phone-12 /* and full width on phone */
.jol-watch-hide /* then hide on watch */
```

## Device Widths

![](device-width-chart.png)

```
desktop: default
laptop: < 1800px
tablet: < 1200px
phone: < 600px
watch: < 300px
```

## Width bases

- 12 (default)
- 6
- 5
- 4
- 3
- 2
- 1

## Visibility

- show
- hide

# License

MIT