No commit activity in last 3 years
No release in over 3 years
Simplified installation of facebox for Compass users
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.10.4.pre.1
 Project Readme

Compass Facebox Plugin

About Facebox

Facebox is a jQuery-based, Facebook-style lightbox which can display images, divs, or entire remote pages. It was developed by Chris Wanstrath and Kyle Neath.

The original code is available here. See it in action.

About Compass Facebox Plugin

This Compass plugin makes it easier for Compass users to integrate facebox into their project.

Installation

From the command line:

gem install compass-facebox-plugin
cd my_compass_project

Add the following to your compass configuration (config.rb):

require 'compass-facebox-plugin'

Then run from the command line:

compass install facebox

To one of your sass stylesheets to import the facebox styles add:

@import 'facebox';

In your HTML you need to do something like this:

<script src="/javascripts/facebox.js"></script>

If your project's images directory is not served at /images/ you need to tell facebox about that in your JS code:

$.facebox.settings.closeImage = '/my/path/to/images/facebox/closelabel.png';
$.facebox.settings.loadingImage = '/my/path/to/images/facebox/loading.gif';

Then you can do something like this:

jQuery(document).ready(function($) {
    $('a[rel*=facebox]').facebox();
});

For more usage information please refer to the original project.