frag-sass-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.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +43 -0
- data/Rakefile +1 -0
- data/frag-sass-rails.gemspec +25 -0
- data/lib/frag/sass/rails.rb +10 -0
- data/lib/frag/sass/rails/version.rb +7 -0
- data/vendor/assets/stylesheets/frag-sass-rails/frag.scss +149 -0
- metadata +95 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b2f870b85c7f49ca7deefb2a38548b1c269c9e7d
|
4
|
+
data.tar.gz: daac548df6af0f188d837e6eb6dddc6513fbdc47
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 664e020eb46935e17569754d6ceb4d31efc0864a6d3d50be4d9eadc575f30429676b8e0bd3ba2af8bb0c0588554b8d52b56101fb0723a722e587323440afc45c
|
7
|
+
data.tar.gz: 335ea9d8c3a1a91a99b5208631b07b8eede9c5f6bf791b06cc4056b78914fc77438952fb7607c421ba4b1ab1c552a2511358d812f1ed4946f27b86e7d3547070
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 endenis
|
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,43 @@
|
|
1
|
+
# frag-sass-rails
|
2
|
+
|
3
|
+
*frag-sass-rails* is a Ruby on Rails gem for [Frag](https://github.com/rowanmanning/frag), a grid system for CSS written in [Sass](http://sass-lang.com/).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'frag-sass-rails'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
|
16
|
+
In order to use Frag in your application, assuming you're already using Sass, you should import it in your sass-file like this:
|
17
|
+
|
18
|
+
```scss
|
19
|
+
@import "frag-sass-rails/frag";
|
20
|
+
```
|
21
|
+
|
22
|
+
If you want to customize Frag, you can do it by setting the [variables](http://fragcss.com/docs/config/):
|
23
|
+
|
24
|
+
```scss
|
25
|
+
$frag-max-width: 980px;
|
26
|
+
$frag-gutter-width: 0px;
|
27
|
+
|
28
|
+
@import "frag-sass-rails/frag";
|
29
|
+
```
|
30
|
+
|
31
|
+
Or in case you want to use Frag as-it-is, you can include this line in application.css:
|
32
|
+
|
33
|
+
```css
|
34
|
+
*= require frag-sass-rails/frag
|
35
|
+
```
|
36
|
+
|
37
|
+
## Contributing
|
38
|
+
|
39
|
+
1. Fork it ( http://github.com/endenis/frag-sass-rails/fork )
|
40
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
41
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
42
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
43
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'frag/sass/rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "frag-sass-rails"
|
8
|
+
spec.version = Frag::Sass::Rails::VERSION
|
9
|
+
spec.authors = ["endenis"]
|
10
|
+
spec.email = ["public.endenis@gmail.com"]
|
11
|
+
spec.summary = %q{Frag-grid gem for Ruby on Rails}
|
12
|
+
spec.description = %q{A ruby on rails gem for frag, a grid system for css written in sass.}
|
13
|
+
spec.homepage = "https://github.com/endenis/frag-sass-rails"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.5"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
|
24
|
+
spec.add_dependency "sass-rails"
|
25
|
+
end
|
@@ -0,0 +1,149 @@
|
|
1
|
+
/*!
|
2
|
+
* Frag 2.1.1
|
3
|
+
*
|
4
|
+
* Frag is a fluid, responsive, simple grid system for
|
5
|
+
* CSS written in Sass. http://fragcss.com/
|
6
|
+
*
|
7
|
+
* Copyright 2013, Rowan Manning.
|
8
|
+
* Licensed under the MIT license.
|
9
|
+
*
|
10
|
+
*/
|
11
|
+
|
12
|
+
// Maximum widths
|
13
|
+
$frag-max-width: 1200px !default;
|
14
|
+
$frag-oldie-width: 980px !default;
|
15
|
+
|
16
|
+
// Break-points
|
17
|
+
$frag-break-tablet: 1000px !default;
|
18
|
+
$frag-break-mobile: 640px !default;
|
19
|
+
|
20
|
+
// Columns and gutters
|
21
|
+
$frag-column-count: 12 !default;
|
22
|
+
$frag-gutter-width: 20px !default;
|
23
|
+
|
24
|
+
// Support old IE? (6–7)
|
25
|
+
$frag-oldie-support: true !default;
|
26
|
+
|
27
|
+
|
28
|
+
/* Util: Box for grid/column display */
|
29
|
+
.frag-box {
|
30
|
+
display: block;
|
31
|
+
-webkit-box-sizing: border-box; // Safari 3.1–5.0
|
32
|
+
-moz-box-sizing: border-box; // Firefox 2+
|
33
|
+
box-sizing: border-box; // W3C standard
|
34
|
+
}
|
35
|
+
|
36
|
+
/* Util: Clearfix */
|
37
|
+
.frag-clearfix {
|
38
|
+
*zoom: 1;
|
39
|
+
&:before, &:after {
|
40
|
+
display: table;
|
41
|
+
content: '';
|
42
|
+
}
|
43
|
+
&:after {
|
44
|
+
clear: both;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
// Util: Define column classes
|
49
|
+
@mixin frag-cols ($prefix, $oldie: false) {
|
50
|
+
|
51
|
+
// Output column widths
|
52
|
+
@for $i from 1 through $frag-column-count {
|
53
|
+
.#{$prefix}#{$i} {
|
54
|
+
width: (100% / $frag-column-count) * $i;
|
55
|
+
|
56
|
+
// Old-IE column styles
|
57
|
+
@if $oldie {
|
58
|
+
*width: (floor($frag-oldie-width / $frag-column-count) * $i) - ($frag-gutter-width * 2);
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
// Column hiding
|
64
|
+
.#{$prefix}hide {
|
65
|
+
display: none;
|
66
|
+
}
|
67
|
+
.#{$prefix}show {
|
68
|
+
display: block;
|
69
|
+
}
|
70
|
+
|
71
|
+
// Column clearing
|
72
|
+
.#{$prefix}clear {
|
73
|
+
clear: left;
|
74
|
+
}
|
75
|
+
[dir=rtl] .#{$prefix}clear {
|
76
|
+
clear: right;
|
77
|
+
}
|
78
|
+
.#{$prefix}unclear {
|
79
|
+
clear: none;
|
80
|
+
}
|
81
|
+
|
82
|
+
// Old-IE column clearing
|
83
|
+
@if $oldie {
|
84
|
+
.oldie-clear {
|
85
|
+
display: none;
|
86
|
+
*display: block;
|
87
|
+
*clear: both;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
/* Grid: Base styles */
|
94
|
+
.grid {
|
95
|
+
@extend .frag-box;
|
96
|
+
@extend .frag-clearfix;
|
97
|
+
width: auto;
|
98
|
+
max-width: $frag-max-width;
|
99
|
+
|
100
|
+
// Old-IE grid styles
|
101
|
+
@if $frag-oldie-support {
|
102
|
+
*width: $frag-oldie-width;
|
103
|
+
|
104
|
+
// Flatten nested grids
|
105
|
+
.grid {
|
106
|
+
*width: auto;
|
107
|
+
.col {
|
108
|
+
*width: auto;
|
109
|
+
*float: none;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
/* Grid: Column styles */
|
116
|
+
.col {
|
117
|
+
@extend .frag-box;
|
118
|
+
float: left;
|
119
|
+
padding-left: $frag-gutter-width;
|
120
|
+
padding-right: $frag-gutter-width;
|
121
|
+
}
|
122
|
+
[dir=rtl] .col {
|
123
|
+
float: right;
|
124
|
+
}
|
125
|
+
|
126
|
+
/* Grid: Remove column gutter */
|
127
|
+
.col-degutter {
|
128
|
+
padding-left: 0;
|
129
|
+
padding-right: 0;
|
130
|
+
|
131
|
+
// Re-add padding for Old IE. Sorry.
|
132
|
+
@if $frag-oldie-support {
|
133
|
+
*padding-left: $frag-gutter-width;
|
134
|
+
*padding-right: $frag-gutter-width;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
/* Grid: Base columns */
|
139
|
+
@include frag-cols("dsk-", $frag-oldie-support);
|
140
|
+
|
141
|
+
// Tablet break-point
|
142
|
+
@media all and (max-width: $frag-break-tablet) {
|
143
|
+
@include frag-cols("tab-");
|
144
|
+
}
|
145
|
+
|
146
|
+
// Mobile break-point
|
147
|
+
@media all and (max-width: $frag-break-mobile) {
|
148
|
+
@include frag-cols("mob-");
|
149
|
+
}
|
metadata
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: frag-sass-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- endenis
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-10-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.5'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
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: sass-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: A ruby on rails gem for frag, a grid system for css written in sass.
|
56
|
+
email:
|
57
|
+
- public.endenis@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- Gemfile
|
64
|
+
- LICENSE.txt
|
65
|
+
- README.md
|
66
|
+
- Rakefile
|
67
|
+
- frag-sass-rails.gemspec
|
68
|
+
- lib/frag/sass/rails.rb
|
69
|
+
- lib/frag/sass/rails/version.rb
|
70
|
+
- vendor/assets/stylesheets/frag-sass-rails/frag.scss
|
71
|
+
homepage: https://github.com/endenis/frag-sass-rails
|
72
|
+
licenses:
|
73
|
+
- MIT
|
74
|
+
metadata: {}
|
75
|
+
post_install_message:
|
76
|
+
rdoc_options: []
|
77
|
+
require_paths:
|
78
|
+
- lib
|
79
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
requirements: []
|
90
|
+
rubyforge_project:
|
91
|
+
rubygems_version: 2.2.2
|
92
|
+
signing_key:
|
93
|
+
specification_version: 4
|
94
|
+
summary: Frag-grid gem for Ruby on Rails
|
95
|
+
test_files: []
|