No commit activity in last 3 years
No release in over 3 years
Simple css to make select2 widgets fit in with foundation
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 4.2
>= 0

Runtime

>= 3.1.0
< 3.5, >= 3.3.0
 Project Readme

Select2-Foundation

select2 (v4) Theme for Zurb Foundation (v6)

Examples

Installation

Manual Install

In order to apply select2-foundation theme to your project, add the following files:

<link rel="stylesheet" href="select2.css">
<link rel="stylesheet" href="select2-foundation-theme.css">

Bower

"dependencies": {
    "foundation-sites" : "^6.0.0",
    "select2" : "latest",
    "select2-foundation" : "https://github.com/egemensarica/select2-foundation.git#v6"
  }

Rails (ruby gem)

Installation is similar to installing foundation-rails.

Add to your application's Gemfile:

  gem 'select2-foundation'

Configuration from generator

Run the generator for installation

  rails g select2_foundation:install

Manual configuration

Create a sass partial app/assets/stylesheets/_settings_select2.scss

Add to your app/assets/stylesheets/application.css:

  *= require select2/select2-foundation

Apply the theme

Configure select2 To apply the theme by passing foundation to the theme option when initializing:

$( "#dropdown" ).select2({
    theme: "foundation"
});

Development

Styleguide rails app

Run the styleguide application found under test/

  bundle

  bundle exec rails s

Navigate to the root path to view the demo page.

Building dist

Install build tools:

  • npm
  • grunt-cli

Run grunt tasks. See grunt help for available tasks.

  grunt sass

Changelog

0.1.1

  • Release to ruby gems

0.0.1

  • Initial sass

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request