chameleon-sass 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 402538c8bd48ed82f5bc5d8cb61c86786dc22b6f
4
+ data.tar.gz: 482d0d2242a5aa9e038ede8c3c34feb4026e3911
5
+ SHA512:
6
+ metadata.gz: cafa801abc257eb55cd19b3352ef75391a17cf47d2b5809d3fe66a06e3b909ce129c6b2f0ffe5016dc6e185fcba2deaaf2ecda70ae752f0ab02021ded037fbfe
7
+ data.tar.gz: a314e79a9005b6eca58a71f12f06ec92c5336f2bbb3528a7d3826de6eaa161ade11c0f50006e6fa085cebd418d55f6103787d7aea1a476a5e00ba43c9e8fac7f
data/README.md ADDED
@@ -0,0 +1,23 @@
1
+ Chameleon
2
+ =========
3
+
4
+
5
+ ### Getting started
6
+
7
+ From the command line:
8
+
9
+ `gem install sass-chameleon`
10
+
11
+
12
+ In your Sass project:
13
+
14
+ `@import "chameleon";`
15
+
16
+
17
+ Generate some responsive grid classes:
18
+
19
+ ```
20
+ @include grid-defaults();
21
+ @include classes("cols-spaced", $on: ("base" "fablet-up" "tablet-up" "desktop-up"))
22
+ @include classes("cols-to-rows", $on: ("base" "mobile" "fablet-down" "tablet-down"))
23
+ ```
File without changes
@@ -0,0 +1,57 @@
1
+ module ChameleonSass
2
+ VERSION = "0.0.1"
3
+ DATE = "2014-08-12"
4
+
5
+ class << self
6
+
7
+ def load
8
+ if compass?
9
+ register_compass
10
+ elsif sass?
11
+ add_sass_load_path
12
+ else
13
+ add_sass_load_path_to_env
14
+ end
15
+ end
16
+
17
+ def gem_path
18
+ File.expand_path(File.join(File.dirname(__FILE__), '..'))
19
+ end
20
+
21
+ def assets_path
22
+ File.join(gem_path, 'assets')
23
+ end
24
+
25
+ def stylesheets_path
26
+ File.join(assets_path, 'stylesheets')
27
+ end
28
+
29
+ def compass?
30
+ defined? ::Compass
31
+ end
32
+
33
+ def sass?
34
+ defined? ::Sass
35
+ end
36
+
37
+ def register_compass
38
+ ::Compass::Frameworks.register(
39
+ 'chameleon-sass',
40
+ :path => gem_path,
41
+ :stylesheets_directory => stylesheets_path
42
+ )
43
+ end
44
+
45
+ def add_sass_load_path
46
+ ::Sass.load_paths << stylesheets_path
47
+ end
48
+
49
+ def add_sass_load_path_to_env
50
+ ENV["SASS_PATH"] = [
51
+ ENV["SASS_PATH"],
52
+ stylesheets_path
53
+ ].join(File::PATH_SEPARATOR)
54
+ end
55
+
56
+ end
57
+ end
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: chameleon-sass
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Daniel Grant
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-08-12 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A styleless Sass framework for responsive user interfaces
14
+ email: hello@danielgrant.im
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - README.md
20
+ - assets/stylesheets/_chameleon.sass
21
+ - lib/chameleon-sass.rb
22
+ homepage: https://github.com/djgrant/chameleon
23
+ licenses:
24
+ - MIT
25
+ metadata: {}
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubyforge_project:
42
+ rubygems_version: 2.2.1
43
+ signing_key:
44
+ specification_version: 4
45
+ summary: Chameleon
46
+ test_files: []