gsass 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b35263006371cf43134f3aaebb4724f9f6b15705
4
+ data.tar.gz: a3ca2cddf1239f427f880f97b79d5687478c5b1d
5
+ SHA512:
6
+ metadata.gz: 530f4500e6402c428b01863fda736f6c703422a34a242ec8457e9c96c90ab703d6631ff31bc9939438b11c036d3bb1a258c7ace8104ed755c49d9ba5daa190ef
7
+ data.tar.gz: 49a3c222e21f8088c56b0a34d3c2baf8d56a69dba32b9c71da78d352d1eba14cd6816d4c6b1faaec90edff4db89e6075d4c9b2dc4763526df79b5d2a3e4a0b3f
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in gsass.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Sebastian de Castelberg
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # Gsass
2
+
3
+ ## Installation
4
+
5
+ Add this line to your application's Gemfile:
6
+
7
+ gem 'gsass'
8
+
9
+ And then execute:
10
+
11
+ $ bundle
12
+
13
+ Or install it yourself as:
14
+
15
+ $ gem install gsass
16
+
17
+ Import gsass into your application sass file
18
+
19
+ @import "gsass";
20
+
21
+ ## Available mixins
22
+
23
+ ### gs-image
24
+
25
+ @mixin gs-image ($img, $raster-format: 'png', $svg: true, $height: false, $width: false)
26
+
27
+ ### gs-footer-logo
28
+
29
+ @mixin gs-footer-logo
30
+
31
+ ## Contributing
32
+
33
+ 1. Fork it
34
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
35
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
36
+ 4. Push to the branch (`git push origin my-new-feature`)
37
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,5 @@
1
+ # encoding: utf-8
2
+ require 'rubygems'
3
+ require 'bundler'
4
+
5
+ Bundler::GemHelper.install_tasks
Binary file
@@ -0,0 +1,106 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+ <svg
5
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
6
+ xmlns:cc="http://creativecommons.org/ns#"
7
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
+ xmlns:svg="http://www.w3.org/2000/svg"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+ width="64"
13
+ height="64"
14
+ id="svg4536"
15
+ version="1.1"
16
+ inkscape:version="0.48.2 r9819"
17
+ sodipodi:docname="gs.svg"
18
+ inkscape:export-filename="/Users/sdecaste/devel/gorillasoftware/gorillasoftware.ch/source/favicon_base.png"
19
+ inkscape:export-xdpi="90"
20
+ inkscape:export-ydpi="90">
21
+ <defs
22
+ id="defs4538">
23
+ <clipPath
24
+ clipPathUnits="userSpaceOnUse"
25
+ id="clipPath3813">
26
+ <rect
27
+ ry="10.194471"
28
+ y="413.84375"
29
+ x="337.41519"
30
+ height="144"
31
+ width="144"
32
+ id="rect3815"
33
+ style="fill:#29ffff;fill-opacity:1;stroke:none" />
34
+ </clipPath>
35
+ </defs>
36
+ <sodipodi:namedview
37
+ id="base"
38
+ pagecolor="#000000"
39
+ bordercolor="#666666"
40
+ borderopacity="1.0"
41
+ inkscape:pageopacity="0"
42
+ inkscape:pageshadow="2"
43
+ inkscape:zoom="0.99999999"
44
+ inkscape:cx="182.79586"
45
+ inkscape:cy="-6.1818808"
46
+ inkscape:document-units="px"
47
+ inkscape:current-layer="layer1"
48
+ showgrid="false"
49
+ fit-margin-top="0"
50
+ fit-margin-left="0"
51
+ fit-margin-right="0"
52
+ fit-margin-bottom="0"
53
+ inkscape:window-width="1366"
54
+ inkscape:window-height="720"
55
+ inkscape:window-x="1"
56
+ inkscape:window-y="0"
57
+ inkscape:window-maximized="0"
58
+ inkscape:snap-page="true"
59
+ inkscape:snap-bbox="true"
60
+ inkscape:bbox-nodes="true"
61
+ inkscape:bbox-paths="true"
62
+ inkscape:object-nodes="true"
63
+ inkscape:snap-bbox-edge-midpoints="true"
64
+ inkscape:snap-bbox-midpoints="true"
65
+ inkscape:snap-smooth-nodes="true" />
66
+ <metadata
67
+ id="metadata4541">
68
+ <rdf:RDF>
69
+ <cc:Work
70
+ rdf:about="">
71
+ <dc:format>image/svg+xml</dc:format>
72
+ <dc:type
73
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
74
+ <dc:title />
75
+ </cc:Work>
76
+ </rdf:RDF>
77
+ </metadata>
78
+ <g
79
+ inkscape:label="Layer 1"
80
+ inkscape:groupmode="layer"
81
+ id="layer1"
82
+ transform="translate(-337.4152,-493.84374)">
83
+ <g
84
+ id="g3777"
85
+ clip-path="url(#clipPath3813)"
86
+ style="fill:#cf706b;fill-opacity:1"
87
+ transform="matrix(0.44444447,0,0,0.44444447,187.45288,309.91317)">
88
+ <path
89
+ sodipodi:nodetypes="ccccccccccc"
90
+ inkscape:connector-curvature="0"
91
+ id="path4473"
92
+ d="m 337.4152,510.5117 c 12.89109,-21.256 28.64081,-33.93612 46.03959,-41.669 13.91789,-11.47807 31.97268,-18.40553 52.32872,-22.8016 -7.39735,4.82773 -13.29518,10.40522 -15.55327,17.80259 l 5.73304,0.87031 c 8.48443,-4.44497 17.99718,-6.31916 27.76033,-7.56735 -4.44152,4.70155 -9.86261,8.91331 -11.91423,14.8098 22.22567,14.07426 29.6871,26.54584 39.60582,39.38942 l 0,-97.50213 -144,0 z"
93
+ style="fill:#cf706b;fill-opacity:1;stroke:none" />
94
+ <g
95
+ style="fill:#cf706b;fill-opacity:1"
96
+ id="g3761">
97
+ <path
98
+ sodipodi:nodetypes="ccccccccccc"
99
+ inkscape:connector-curvature="0"
100
+ id="path2991"
101
+ d="m 337.4152,510.5117 c 12.89109,-21.256 28.64081,-33.93612 46.03959,-41.669 13.91789,-11.47807 31.97268,-18.40553 52.32872,-22.8016 -7.39735,4.82773 -13.29518,10.40522 -15.55327,17.80259 l 5.73304,0.87031 c 8.48443,-4.44497 17.99718,-6.31916 27.76033,-7.56735 -4.44152,4.70155 -9.86261,8.91331 -11.91423,14.8098 22.22567,14.07426 29.6871,26.54584 39.60582,39.38942 l 0,46.49787 -144,0 z"
102
+ style="fill:#453932;fill-opacity:1;stroke:none" />
103
+ </g>
104
+ </g>
105
+ </g>
106
+ </svg>
@@ -0,0 +1,32 @@
1
+ @mixin gs-image ($img, $raster-format: 'png', $svg: true, $height: false, $width: false) {
2
+ $img-raster: "#{$img}.#{$raster-format}";
3
+ background-image: image-url($img-raster);
4
+ @if $svg {
5
+ $img-svg: "#{$img}.svg";
6
+ background-image: none, inline-image($img-svg);
7
+ }
8
+ background-position: center;
9
+ background-repeat: no-repeat;
10
+ background-size: contain;
11
+ @if $width {
12
+ width: image-width($img-raster);
13
+ }
14
+ @if $height {
15
+ min-height: image-height($img-raster);
16
+ }
17
+ }
18
+
19
+ @mixin gs-footer-logo {
20
+ @include transition(all 0.3s);
21
+ display: block;
22
+ margin: 0 auto;
23
+ background-repeat: no-repeat;
24
+ @include gs-image('gs', $height: true, $width: true);
25
+ opacity: 0.5;
26
+ border-radius: 32px;
27
+ box-shadow: #666 0 0 20px;
28
+ border: 2px solid #999;
29
+ &:hover {
30
+ opacity: 1;
31
+ }
32
+ }
data/gsass.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'gsass/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "gsass"
8
+ spec.version = Gsass::VERSION
9
+ spec.platform = Gem::Platform::RUBY
10
+ spec.authors = ["Sebastian de Castelberg"]
11
+ spec.email = ["sebu@kpricorn.org"]
12
+ spec.description = %q{gorilla software sass mixins}
13
+ spec.summary = %q{gorilla software sass mixins}
14
+ spec.homepage = "https://github.com/gorillasoftware/gsass"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files`.split($/)
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency('sass', '>= 3.2.0')
23
+ spec.add_dependency('rails-sass-images')
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.3"
26
+ spec.add_development_dependency "rake"
27
+ end
@@ -0,0 +1,6 @@
1
+ module Gsass
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,3 @@
1
+ module Gsass
2
+ VERSION = "0.0.1"
3
+ end
data/lib/gsass.rb ADDED
@@ -0,0 +1,13 @@
1
+ # CodeKit needs relative paths
2
+ dir = File.dirname(__FILE__)
3
+ $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)
4
+
5
+ unless defined?(Sass)
6
+ require 'sass'
7
+ end
8
+
9
+ module Gsass
10
+ class Engine < ::Rails::Engine
11
+ require 'gsass/engine'
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,112 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gsass
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Sebastian de Castelberg
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-09-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sass
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails-sass-images
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: gorilla software sass mixins
70
+ email:
71
+ - sebu@kpricorn.org
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - .gitignore
77
+ - Gemfile
78
+ - LICENSE.txt
79
+ - README.md
80
+ - Rakefile
81
+ - app/assets/images/gs.png
82
+ - app/assets/images/gs.svg
83
+ - app/assets/stylesheets/_gsass.scss
84
+ - gsass.gemspec
85
+ - lib/gsass.rb
86
+ - lib/gsass/engine.rb
87
+ - lib/gsass/version.rb
88
+ homepage: https://github.com/gorillasoftware/gsass
89
+ licenses:
90
+ - MIT
91
+ metadata: {}
92
+ post_install_message:
93
+ rdoc_options: []
94
+ require_paths:
95
+ - lib
96
+ required_ruby_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - '>='
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ requirements: []
107
+ rubyforge_project:
108
+ rubygems_version: 2.0.5
109
+ signing_key:
110
+ specification_version: 4
111
+ summary: gorilla software sass mixins
112
+ test_files: []