Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/syaifulsz/bootstrap-helper-blocks

A Bootstrap 3 responsive helper for adding width to inline block. The widths are calculated based on element parent container and are based on 12 grid columns.
https://github.com/syaifulsz/bootstrap-helper-blocks

block bootstrap bootstrap-helpers bootstrap3 css css-framework width

Last synced: about 1 month ago
JSON representation

A Bootstrap 3 responsive helper for adding width to inline block. The widths are calculated based on element parent container and are based on 12 grid columns.

Awesome Lists containing this project

README

        

# Bootstrap Helper: Blocks

This is a responsive helper for adding width to inline block. The widths are calculated based on element parent container and are based on 12 grid columns.

These helper supports Bootstrap 3 responsive utilities (xs, sm, md, lg). Additional media queries is configurable and can be extended depending on your project requirements.

## Getting Started

[Download](https://github.com/syaifulsz/bootstrap-helper-blocks/releases) latest version or install by bower:

```sh
bower install bootstrap-helper-blocks
```

Include this stylesheet code into your site:

```html

```

If you want to have a responsive margin-padding helper, include this stylesheet too:

```html

```

## Example usage:

```html


```

## Example usage with responsive media query:

```html



Box 1


Box 2


Box 3


Box 4


```

## Extends and compile with Bootstrap 3 SASS

You're required to install these in order to extends this helper:

- NodeJS
- Grunt CLI
- Ruby
- SASS

### Installation

Run:

```sh
npm install
```

### Compile

Run:

```sh
grunt
```

### Enable Bootstrap 3's responsive utilities for this helper

Change these variables to `true`.

```sass
$helper-block--xs: false
$helper-block--sm: false
$helper-block--md: false
$helper-block--lg: false
```

### Adjust grid columns

Adjust grid column here:

```sass
$grid: 12
```