resgrid 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/lib/resgrid.rb +60 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 81d9b564257f692aa82ea152626493d272d1b95c
|
4
|
+
data.tar.gz: 254e61737d60fab3fd27e02dd7a17f21f2d49da1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 68159a610decb3cdfe008bdfc5f253a6a8c9ee7868cd1fd36f2409e607a0bcec7ff082ac38fd15a9a90ba0af46f25a84791d3c1073ab61788ac775d756930d95
|
7
|
+
data.tar.gz: dfa2819cd3b57a760fb389438fe3f5674cc88693990fa4282c3390c64f77fa2ab5a72d3aaf595862841660360bff9e1427fbce3cac8ab7855702d69471916dcf
|
data/lib/resgrid.rb
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
|
2
|
+
Compass::Configuration::add_configuration_property(:grid)
|
3
|
+
Compass::Configuration::add_configuration_property(:resolutions)
|
4
|
+
|
5
|
+
module Resgrid
|
6
|
+
|
7
|
+
module MEASURES
|
8
|
+
em = :em
|
9
|
+
px = :px
|
10
|
+
pt = :pt
|
11
|
+
end
|
12
|
+
|
13
|
+
module TYPES
|
14
|
+
static = :static
|
15
|
+
fluid = :fluid
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
module Compass::Configuration::Defaults
|
22
|
+
def default_grid
|
23
|
+
{
|
24
|
+
:measure => :px,
|
25
|
+
:columns => 12,
|
26
|
+
:type => :static,
|
27
|
+
:width => "100%",
|
28
|
+
:min => nil,
|
29
|
+
:max => nil,
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
def default_resolutions
|
34
|
+
{
|
35
|
+
:tiny => { :max => 480, :type => :fluid },
|
36
|
+
:small => { :min => 481, :max => 767, :type => :fluid },
|
37
|
+
:medium => { :min => 768, :max => 979, :width => 740 },
|
38
|
+
:large => { :min => 980, :max => 1199, :width => 960 },
|
39
|
+
:huge => { :min => 1200, :width => 1170 }
|
40
|
+
}
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
|
45
|
+
"""
|
46
|
+
config_path = File.join(Compass.configuration.project_path, 'config.rb')
|
47
|
+
|
48
|
+
a = Compass::Configuration::FileData.new_from_file config_path
|
49
|
+
|
50
|
+
if a.resolutions
|
51
|
+
puts a.resolutions
|
52
|
+
else
|
53
|
+
puts Compass.configuration.resolutions
|
54
|
+
end
|
55
|
+
|
56
|
+
|
57
|
+
module Compass::Configuration::Inheritance::ClassMethods
|
58
|
+
# puts nada
|
59
|
+
end
|
60
|
+
"""
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: resgrid
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andre Farzat
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-02-02 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Responsive grid framework
|
14
|
+
email: andrefarzat@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/resgrid.rb
|
20
|
+
homepage: https://github.com/andrefarzat/resgrid
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.0.3
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: Responsive Grid
|
44
|
+
test_files: []
|