Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/olrtg/bulma-fab-button

FAB (Floating Action Buttons) for Bulma
https://github.com/olrtg/bulma-fab-button

bulma css sass

Last synced: 2 months ago
JSON representation

FAB (Floating Action Buttons) for Bulma

Awesome Lists containing this project

README

        

![Example in the playground](./screenshot.png)


bulma-fab-button


A Bulma's extension for FABs (Floating Action Buttons).

## Quick start

```shell
npm i bulma-fab-button
```

## Import

You can import the .css or .sass file into your project after importing Bulma:

```scss
@import '../node_modules/bulma-fab-button/src/bulma-fab-button.sass';
```

## Usage

Basic usage:

```html



```

You can use colors like any other Bulma component:

```html













```

Also size modifiers (`.is-large`, `.is-small`):

```html





```

And position modifiers (`.is-left`, `.is-centered`, `.is-right`):

```html







```

## Customize

> For options available, take a look at the `_initial-variables.sass` file.

```scss
// Customize
$fab-circle-size: 4rem; // default: 3.75rem
$fab-h-space: 1rem; // default: 1.25rem
$fab-v-space: 1rem; // default: 1.25rem

// Then import
@import '../node_modules/bulma-fab-button/src/bulma-fab-button.sass';
```

## Copyright and license

Code copyright 2020 José Olórtegui. Code released under [the MIT license](https://github.com/olrtg/bulma-fab-button/blob/master/LICENSE).