Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9364f37

Browse files
committed
Added sass-globbing, allowing plugin stylesheets to be auto-imported from the assets/stylesheets/plugins directory
1 parent 05db158 commit 9364f37

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/*
2+
Add plugin stylesheets to this directory and they will be automatically
3+
Imported. Load order is alphabetical and styles can be overriden in
4+
custom/_style.scss which is loaded after all plugin stylesheets.
5+
*/
6+

.themes/classic/sass/screen.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
@import "custom/layout";
88
@import "base";
99
@import "partials";
10+
@import "plugins/**/*";
1011
@import "custom/styles";

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ group :development do
99
gem 'RedCloth', '~> 4.2.9'
1010
gem 'haml', '~> 3.1.7'
1111
gem 'compass', '~> 0.12.2'
12+
gem 'sass-globbing', '~> 1.0.0'
1213
gem 'rubypants', '~> 0.2.0'
1314
gem 'rb-fsevent', '~> 0.9'
1415
gem 'stringex', '~> 1.4.0'

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ GEM
3636
rdiscount (1.6.8)
3737
rubypants (0.2.0)
3838
sass (3.1.20)
39+
sass-globbing (1.0.0)
40+
sass (>= 3.1)
3941
sinatra (1.3.5)
4042
rack (~> 1.4)
4143
rack-protection (~> 1.3)
@@ -60,5 +62,6 @@ DEPENDENCIES
6062
rb-fsevent (~> 0.9)
6163
rdiscount (~> 1.6.8)
6264
rubypants (~> 0.2.0)
65+
sass-globbing (~> 1.0.0)
6366
sinatra (~> 1.3.5)
6467
stringex (~> 1.4.0)

config.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'sass-globbing'
2+
13
# Require any additional compass plugins here.
24
project_type = :stand_alone
35

0 commit comments

Comments
 (0)