• Stars
    star
    441
  • Rank 98,861 (Top 2 %)
  • Language
    CSS
  • License
    MIT License
  • Created over 13 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Adds glob-based imports to Sass

Sass Globbing Plugin

Sass globbing allows you to import many sass or scss files in a single import statement.

Stylesheet Syntax

Import a folder of files:

@import "library/mixins/*"

Import a tree of files:

@import "library/**/*"

Globbed files are sorted alphabetically before importing them.

Globs are always relative to the current file. The ruby glob file syntax is used, read the docs for more that you can do with it.

Installation

$ gem install sass-globbing

Use with the Sass command line

$ sass -r sass-globbing --watch sass_dir:css_dir

Use with compass

Add the following to your compass configuration:

require 'sass-globbing'

Use with Ruby on Rails

Ruby on Rails has this capability out of the box starting in Rails 3.1. Do not install this plugin if you use Rails 3.1 or greater.

Caveats

CSS is order dependent, as such, using this approach within your stylesheets to import styles that depend on the stylesheet's cascade creates an opportunity for styles to change more unpredictably than a manually asserted order. It is recommended that you only use globbing where order is unimportant; E.g. importing of library files.

More Repositories

1

sass-recipes

Sass mixin examples and recipes that you can use or modify to suit your needs. Send a request for commit access to add your own. Most of these mixins are now part of my Compass project
Ruby
374
star
2

sass-css-importer

Import CSS files as SCSS
Ruby
199
star
3

compass-colors

Color Tools and Theme Support for Compass and Sass
Ruby
183
star
4

compass-rails-sample-application

Demonstrates how to configure a rails application to use Compass
Ruby
59
star
5

SCSS.tmbundle

Don't use this. Go to http://github.com/kuroir/SCSS.tmbundle instead
46
star
6

freebase

Ruby API for Freebase.com
Ruby
37
star
7

blueprint-sass

The blueprint stylesheet framework in sass. Development has moved to my project named Compass.
Ruby
32
star
8

compass-style.org

The Compass Stylesheet Framework's Website
Ruby
24
star
9

Compass-Layouts

Some layouts for compass
Ruby
21
star
10

extract-sass-vars

Extracts global variables from a Sass file into a json object
Ruby
19
star
11

presentations

Code and Slide decks for my presentations
CSS
19
star
12

chriseppstein.github.com

My OSS Development Blog
CSS
18
star
13

compass-validator

A CSS Validator that is used by the Compass CSS Framework.
Ruby
17
star
14

yui-compass-plugin

The YUI CSS Framework 2.7.0 for Compass
Ruby
16
star
15

sassdoc

Emit documentation for sass files in easy to read formats
Ruby
15
star
16

lame_stats

Histograms, Linear Regression, Normal Distribution Analysis, Counting Occurances. I'm sure someone has made a better stats module than this one.
Ruby
11
star
17

sass-archive-importer

Import sass, scss, and css files directly from a zip file without needing to unpack it.
Ruby
10
star
18

has_overrides

Simple, Object-Oriented Attribute Overriding for ActiveRecord Models.
Ruby
9
star
19

rocssetta

Convert between any stylesheet syntax
8
star
20

pygments-sass-lexer

A Sass Lexer for the Pygments Syntax Highlighter
Python
7
star
21

pack-mule

Send code from your rails project on a long journey, monitor it's progress, and get results back when it's done. Built on Beanstalk, Memcached, AsyncObserver, and Elock.
Ruby
7
star
22

stylesheet-refactorings

6
star
23

ruby-freebase

A ruby client for freebase
5
star
24

compass-merb-sample-application

Basic Changes required to a Merb Application to work with the Compass Sass Stylesheet Meta Framework
Ruby
5
star
25

bohconf

Materials for BohConf
Ruby
5
star
26

pywebmvc

A MVC Web Framework written in python for use with mod_python. It's designed in the spirit of struts.
Python
4
star
27

extract_sass_dependencies

a script that extracts sass dependency information
Ruby
4
star
28

polywritingprompts

What should I write about?
2
star
29

reproduce-composite-build-issue

This repo reproduces a typescript compilation issue.
TypeScript
1
star
30

w00t

w00t
Ruby
1
star
31

mongoid_embedded_doc_update_issue

a simple project to reproduce a mongoid bug
Ruby
1
star