gintonic-rails 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.
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/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Victor Ortiz
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
+ # Gintonic::Rails
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'gintonic-rails'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install gintonic-rails
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 'Add 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 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,5 @@
1
+ @include "utils/normalize"
2
+ @include "utils/functions"
3
+ @include "mixins/blocks"
4
+ @include "mixins/css3"
5
+ @include "mixins/tipography"
@@ -0,0 +1,19 @@
1
+ @mixin clearfix {
2
+ *zoom: 1;
3
+ &:before,
4
+ &:after {
5
+ content: " ";
6
+ display: table;
7
+ }
8
+ &:after {
9
+ clear: both;
10
+ }
11
+ }
12
+
13
+ @mixin inline-block {
14
+ display: inline-block;
15
+ vertical-align: baseline;
16
+ zoom: 1;
17
+ *display: inline;
18
+ *vertical-align: auto;
19
+ }
@@ -0,0 +1,24 @@
1
+ @mixin border-radius ($values) {
2
+ @include prefixer(border-radius, $values, moz o webkit w3c);
3
+ }
4
+
5
+ @mixin box-shadow ($values...) {
6
+ @include prefixer(box-shadow, $values, webkit w3c);
7
+ -webkit-appearance: none;
8
+ }
9
+
10
+ @mixin transform ($values) {
11
+ @include prefixer(transform, $values, moz o webkit ms w3c);
12
+ }
13
+
14
+ @mixin transition ($values...) {
15
+ @include prefixer(transition, $values, moz o webkit ms w3c)
16
+ }
17
+
18
+ @mixin transition-delay ($values...) {
19
+ @include prefixer(transition-delay, $values, moz webkit w3c);
20
+ }
21
+
22
+ @mixin transition-duration ($values...) {
23
+ @include prefixer(transition-duration, $values, moz webkit w3c);
24
+ }
@@ -0,0 +1,19 @@
1
+ @mixin hover-link {
2
+ text-decoration: none;
3
+ &:hover {
4
+ text-decoration: underline;
5
+ }
6
+ }
7
+
8
+ @mixin font-face($font-family, $file-path, $weight: normal, $style: normal) {
9
+ @font-face {
10
+ font-family: $font-family;
11
+ font-weight: $weight;
12
+ font-style: $style;
13
+ src: font-url('#{$file-path}.eot');
14
+ src: font-url('#{$file-path}.eot?#iefix') format('embedded-opentype'),
15
+ font-url('#{$file-path}.woff') format('woff'),
16
+ font-url('#{$file-path}.ttf') format('truetype'),
17
+ font-url('#{$file-path}.svg##{$font-family}') format('svg');
18
+ }
19
+ }
@@ -0,0 +1,22 @@
1
+ @mixin prefixer ($property, $value, $prefixes) {
2
+ @each $prefix in $prefixes {
3
+ @if $prefix == webkit {
4
+ -webkit-#{$property}: $value;
5
+ }
6
+ @else if $prefix == moz {
7
+ -moz-#{$property}: $value;
8
+ }
9
+ @else if $prefix == ms {
10
+ -ms-#{$property}: $value;
11
+ }
12
+ @else if $prefix == o {
13
+ -o-#{$property}: $value;
14
+ }
15
+ @else if $prefix == w3c {
16
+ #{$property}: $value;
17
+ }
18
+ @else {
19
+ @warn "Unrecognized prefix: #{$prefix}";
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,220 @@
1
+ @mixin normalize {
2
+
3
+ article,
4
+ aside,
5
+ details,
6
+ figcaption,
7
+ figure,
8
+ footer,
9
+ header,
10
+ hgroup,
11
+ main,
12
+ nav,
13
+ section,
14
+ summary {
15
+ display: block;
16
+ }
17
+
18
+ audio,
19
+ canvas,
20
+ video {
21
+ display: inline-block;
22
+ }
23
+
24
+ audio:not([controls]) {
25
+ display: none;
26
+ height: 0;
27
+ }
28
+
29
+ [hidden] {
30
+ display: none;
31
+ }
32
+
33
+ html {
34
+ background: #fff;
35
+ color: #000;
36
+ font-family: sans-serif;
37
+ -ms-text-size-adjust: 100%;
38
+ -webkit-text-size-adjust: 100%;
39
+ }
40
+
41
+ body {
42
+ margin: 0;
43
+ }
44
+
45
+ /* ==========================================================================
46
+ Links
47
+ ========================================================================== */
48
+
49
+ a:focus {
50
+ outline: 0;
51
+ -webkit-shadow: inset 0 0 0 transparent;
52
+ -webkit-shadow: 0 0 0 transparent;
53
+ }
54
+
55
+ a:active,
56
+ a:hover {
57
+ outline: 0;
58
+ }
59
+
60
+ h1 {
61
+ font-size: 2em;
62
+ margin: 0.67em 0;
63
+ }
64
+
65
+ abbr[title] {
66
+ border-bottom: 1px dotted;
67
+ }
68
+
69
+ b,
70
+ strong {
71
+ font-weight: bold;
72
+ }
73
+
74
+ dfn {
75
+ font-style: italic;
76
+ }
77
+
78
+ hr {
79
+ -moz-box-sizing: content-box;
80
+ box-sizing: content-box;
81
+ height: 0;
82
+ }
83
+
84
+ mark {
85
+ background: #ff0;
86
+ color: #000;
87
+ }
88
+
89
+ code,
90
+ kbd,
91
+ pre,
92
+ samp {
93
+ font-family: monospace, serif;
94
+ font-size: 1em;
95
+ }
96
+
97
+ pre {
98
+ white-space: pre-wrap;
99
+ }
100
+
101
+ q {
102
+ quotes: "\201C" "\201D" "\2018" "\2019";
103
+ }
104
+
105
+ small {
106
+ font-size: 80%;
107
+ }
108
+
109
+ sub,
110
+ sup {
111
+ font-size: 75%;
112
+ line-height: 0;
113
+ position: relative;
114
+ vertical-align: baseline;
115
+ }
116
+
117
+ sup {
118
+ top: -0.5em;
119
+ }
120
+
121
+ sub {
122
+ bottom: -0.25em;
123
+ }
124
+
125
+ img {
126
+ border: 0;
127
+ }
128
+
129
+ svg:not(:root) {
130
+ overflow: hidden;
131
+ }
132
+
133
+ figure {
134
+ margin: 0;
135
+ }
136
+
137
+ fieldset {
138
+ border: 1px solid #c0c0c0;
139
+ margin: 0 2px;
140
+ padding: 0.35em 0.625em 0.75em;
141
+ }
142
+
143
+ legend {
144
+ border: 0;
145
+ padding: 0;
146
+ }
147
+
148
+ button,
149
+ input,
150
+ select,
151
+ textarea {
152
+ font-family: inherit;
153
+ font-size: 100%;
154
+ margin: 0;
155
+ }
156
+
157
+ button,
158
+ input {
159
+ line-height: normal;
160
+ }
161
+
162
+ button,
163
+ select {
164
+ text-transform: none;
165
+ }
166
+
167
+ button,
168
+ html input[type="button"],
169
+ input[type="reset"],
170
+ input[type="submit"] {
171
+ -webkit-appearance: button;
172
+ cursor: pointer;
173
+ }
174
+
175
+ button[disabled],
176
+ html input[disabled] {
177
+ cursor: default;
178
+ }
179
+
180
+ input[type="checkbox"],
181
+ input[type="radio"] {
182
+ box-sizing: border-box;
183
+ padding: 0;
184
+ }
185
+
186
+ input[type="search"] {
187
+ -webkit-appearance: textfield;
188
+ -moz-box-sizing: content-box;
189
+ -webkit-box-sizing: content-box;
190
+ box-sizing: content-box;
191
+ }
192
+
193
+ input[type="search"]::-webkit-search-cancel-button,
194
+ input[type="search"]::-webkit-search-decoration {
195
+ -webkit-appearance: none;
196
+ }
197
+
198
+ button::-moz-focus-inner,
199
+ input::-moz-focus-inner {
200
+ border: 0;
201
+ padding: 0;
202
+ }
203
+
204
+ textarea {
205
+ overflow: auto;
206
+ vertical-align: top;
207
+ }
208
+
209
+ table {
210
+ border-collapse: collapse;
211
+ border-spacing: 0;
212
+ }
213
+
214
+ ul {
215
+ padding-left: 0;
216
+ }
217
+
218
+ }
219
+
220
+ @include normalize;
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'gintonic-rails/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "gintonic-rails"
8
+ gem.version = Gintonic::Rails::VERSION
9
+ gem.authors = ["Victor Ortiz"]
10
+ gem.email = ["kespers@gmail.com"]
11
+ gem.homepage = ""
12
+ gem.summary = "Gintonic Front-End toolbox"
13
+ gem.description = <<-DESC
14
+ Gintonic is a Sass mixins collection, include normalize 2.1 modified, clearfix, font-face helper and CSS3 properties with vendor prefixes Webkit, Firefox > 3.5, Opera and IE > 8.
15
+ DESC
16
+
17
+ gem.files = `git ls-files`.split($/)
18
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
19
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
20
+ gem.require_paths = ["lib"]
21
+
22
+ gem.add_dependency "railties", "~> 3.1"
23
+ gem.add_dependency 'sass', '>= 3.2.0'
24
+ end
@@ -0,0 +1,5 @@
1
+ module Gintonic
2
+ module Rails
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,8 @@
1
+ require "gintonic-rails/version"
2
+
3
+ module Gintonic
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gintonic-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Victor Ortiz
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-04-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
30
+ - !ruby/object:Gem::Dependency
31
+ name: sass
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 3.2.0
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 3.2.0
46
+ description: ! ' Gintonic is a Sass mixins collection, include normalize 2.1 modified,
47
+ clearfix, font-face helper and CSS3 properties with vendor prefixes Webkit, Firefox
48
+ > 3.5, Opera and IE > 8.
49
+
50
+ '
51
+ email:
52
+ - kespers@gmail.com
53
+ executables: []
54
+ extensions: []
55
+ extra_rdoc_files: []
56
+ files:
57
+ - .gitignore
58
+ - LICENSE.txt
59
+ - README.md
60
+ - Rakefile
61
+ - app/assets/stylesheets/_gintonic.scss
62
+ - app/assets/stylesheets/mixins/_blocks.scss
63
+ - app/assets/stylesheets/mixins/_css3.scss
64
+ - app/assets/stylesheets/mixins/_tipography.scss
65
+ - app/assets/stylesheets/utils/_functions.scss
66
+ - app/assets/stylesheets/utils/_normalize.scss
67
+ - gintonic-rails.gemspec
68
+ - lib/gintonic-rails.rb
69
+ - lib/gintonic-rails/version.rb
70
+ homepage: ''
71
+ licenses: []
72
+ post_install_message:
73
+ rdoc_options: []
74
+ require_paths:
75
+ - lib
76
+ required_ruby_version: !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ! '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ requirements: []
89
+ rubyforge_project:
90
+ rubygems_version: 1.8.23
91
+ signing_key:
92
+ specification_version: 3
93
+ summary: Gintonic Front-End toolbox
94
+ test_files: []