Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dhmgroup/bulmajs-rails

Ruby on rails wrapper for the unofficial javascript extension to the awesome Bulma CSS framework.
https://github.com/dhmgroup/bulmajs-rails

bulma bulmajs rails ruby

Last synced: 3 months ago
JSON representation

Ruby on rails wrapper for the unofficial javascript extension to the awesome Bulma CSS framework.

Awesome Lists containing this project

README

        

# Bulmajs::Rails

Bulmajs-rails is the implementation of [BulmaJS](https://github.com/VizuaaLOG/BulmaJS)

BulmaJS is an unofficial javascript extension to the awesome [Bulma CSS framework](https://bulma.io)

Source: [https://github.com/VizuaaLOG/BulmaJS](https://github.com/VizuaaLOG/BulmaJS)

Ruby Gem: [https://rubygems.org/gems/bulmajs-rails](https://rubygems.org/gems/bulmajs-rails)

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'bulmajs-rails'
```

And then execute:

$ bundle

Or install it yourself as:

$ gem install bulmajs-rails

Now you need to edit your `app/assets/javascripts/application.js` file and add the following line:

```javascript
//= require bulma
```

## Turbolinks is now required for this wrapper.

## Usage Examples

### Basic Tabs

```html





  • Pictures




  • Music




  • Videos




  • Documents






```

### Navbar Mobile Toggle

All you need to do is add `data-bulma="navbar"` to the main navbar div, and then add `data-trigger` and `data-target="navID"` to the navbar burger

```html


```

### Filename Updating

```html









Choose a file…





```

More examples and explanation are on available [https://vizuaalog.github.io/BulmaJS](https://vizuaalog.github.io/BulmaJS)

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/theeomm/bulmajs-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

## Special Thanks

[Thomas](https://github.com/VizuaaLOG) - Creator of BulmaJS

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).