scss_helpers 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
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 scss-helpers.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Andrew Jaswa
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,29 @@
1
+ # Scss Helpers
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'scss-helpers'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install scss-helpers
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,87 @@
1
+ /* @mixin css3pie {
2
+ // Turn this on and include if you want to use PIE
3
+ behavior: url(PIE.htc);
4
+ }
5
+ */
6
+ @mixin border-radius($r) {
7
+ // $r: radius, can use 5px 10px 10px 5px
8
+ -moz-border-radius: $r;
9
+ -webkit-border-radius: $r;
10
+ border-radius: $r;
11
+ }
12
+
13
+ @mixin box-shadow($args) {
14
+ // $args: standard CSS including inset
15
+ -webkit-box-shadow: $args;
16
+ -o-box-shadow: $args;
17
+ -moz-box-shadow: $args;
18
+ box-shadow: $args;
19
+ }
20
+
21
+ @mixin lin-gradient( $color: #ccc, $start: #000, $stop: #fff, $point: 'top' ) {
22
+ // $color: default bg color for non-complient browsers
23
+ // $start: hex of the start
24
+ // $stop: hex of the stop
25
+ // $point: top?
26
+ // TODO: figure out how to make old webkit use $point
27
+ background: $color;
28
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $start), color-stop(100%, $stop)); /* Safari 4+, old Chrome */
29
+ background: -webkit-linear-gradient($point, $start, $stop); /* Safari 5.1+, Chrome */
30
+ background: -moz-linear-gradient($point, $start, $stop); /* FF 3.6+ */
31
+ background: -ms-linear-gradient($point, $start, $stop); /* IE10 */
32
+ background: -o-linear-gradient($point, $start, $stop); /* Opera */
33
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$start}', endColorstr='#{$stop}'); /* IE6 & IE7 */
34
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$start}', endColorstr='#{$stop}')"; /* IE8+ */
35
+ background: linear-gradient($point, $start, $stop);
36
+ }
37
+
38
+ @mixin font( $font-name, $font-url ) {
39
+ // $font-name: The name of the font to use
40
+ // $font-url: The url to given font sans the ext.
41
+ @font-face {
42
+ font-family: '#{$font-name}';
43
+ src: url('#{$font-url}.eot?#iefix') format('embedded-opentype'),
44
+ url('#{$font-url}.woff') format('woff'),
45
+ url('#{$font-url}.ttf') format('truetype'),
46
+ url('#{$font-url}.svg#svg#{$font-name}') format('svg');
47
+ }
48
+ }
49
+
50
+ @mixin circle($r) {
51
+ // $r: radius
52
+ @include border-radius($r);
53
+ height: ($r * 2);
54
+ width: ($r * 2);
55
+ }
56
+
57
+ @mixin clear() {
58
+ clear: both;
59
+ display: block;
60
+ overflow: hidden;
61
+ visibility: hidden;
62
+ width: 0;
63
+ height: 0;
64
+ }
65
+
66
+ @mixin text-gradient($start, $stop) {
67
+ background:-webkit-linear-gradient(top,$start,$stop);
68
+ -webkit-text-fill-color: transparent;
69
+ -webkit-background-clip: text;
70
+ }
71
+ @mixin text-shadow($x, $y, $color, $b: 0) {
72
+ // $color: hex color of the shadow
73
+ // $x: x-offset
74
+ // $y: y-offset
75
+ // $b: blur
76
+ //filter: "progid:DXImageTransform.Microsoft.DropShadow(color='#{$color}', offx='#{$x}', offy='#{$y}')";
77
+ //-ms-filter: "progid:DXImageTransform.Microsoft.DropShadow(color='#{$color}', offx='#{$x}', offy='#{$y}')";
78
+ text-shadow: $x+px $y+px $b+px $color;
79
+ }
80
+ @mixin transition($args: all .6s linear) {
81
+ -webkit-transition: $args;
82
+ -moz-transition: $args;
83
+ -ms-transition: $args;
84
+ -o-transition: $args;
85
+ transition: $args;
86
+ }
87
+
@@ -0,0 +1,4 @@
1
+ module ScssHelpers
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ module ScssHelpers
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,7 @@
1
+ require "scss_helpers/version"
2
+
3
+ module ScssHelpers
4
+ # Your code goes here...
5
+ end
6
+
7
+ require 'scss_helpers/engine' if defined?(Rails)
@@ -0,0 +1,17 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/scss_helpers/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Andrew Jaswa"]
6
+ gem.email = ["ajaswa@gmail.com"]
7
+ gem.description = %q{Cross-broswer css mixins}
8
+ gem.summary = %q{Cross-broswer css mixins}
9
+ gem.homepage = ""
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "scss_helpers"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = ScssHelpers::VERSION
17
+ end
metadata ADDED
@@ -0,0 +1,55 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: scss_helpers
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Andrew Jaswa
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-15 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Cross-broswer css mixins
15
+ email:
16
+ - ajaswa@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - LICENSE
24
+ - README.md
25
+ - Rakefile
26
+ - lib/assets/stylesheets/helpers.scss
27
+ - lib/scss_helpers.rb
28
+ - lib/scss_helpers/engine.rb
29
+ - lib/scss_helpers/version.rb
30
+ - scss_helpers.gemspec
31
+ homepage: ''
32
+ licenses: []
33
+ post_install_message:
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ requirements: []
50
+ rubyforge_project:
51
+ rubygems_version: 1.8.15
52
+ signing_key:
53
+ specification_version: 3
54
+ summary: Cross-broswer css mixins
55
+ test_files: []