compass-extension-mesh 1.0
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/lib/mesh.rb +1 -0
- data/stylesheets/_mesh.scss +83 -0
- data/templates/project/manifest.rb +4 -0
- data/templates/project/screen.scss +9 -0
- metadata +59 -0
data/lib/mesh.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Compass::Frameworks.register("mesh", :path => "#{File.dirname(__FILE__)}/..")
|
@@ -0,0 +1,83 @@
|
|
1
|
+
/*!
|
2
|
+
* Mesh v1.0.0
|
3
|
+
*
|
4
|
+
* Copyright 2011 Maxwell Barvian
|
5
|
+
* Licensed under the GNU General Public License
|
6
|
+
* http://www.gnu.org/licenses/gpl.html
|
7
|
+
*/
|
8
|
+
|
9
|
+
// Configuration
|
10
|
+
$number-of-columns: 12 !default; // the number of columns in your grid
|
11
|
+
$gutter-width: 3.8% !default; // The width of the gutters of your grid, in percentages
|
12
|
+
|
13
|
+
|
14
|
+
/* Mobile first */
|
15
|
+
|
16
|
+
body {
|
17
|
+
font-size: 90%;
|
18
|
+
}
|
19
|
+
|
20
|
+
.row {
|
21
|
+
zoom: 1;
|
22
|
+
|
23
|
+
&:before, &:after {
|
24
|
+
display: table;
|
25
|
+
content: "";
|
26
|
+
zoom: 1;
|
27
|
+
*display: inline;
|
28
|
+
}
|
29
|
+
|
30
|
+
&:after {
|
31
|
+
clear: both;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
// Create the columns
|
36
|
+
$_allColumns: "";
|
37
|
+
@for $col from 1 to ($number-of-columns + 1) {
|
38
|
+
@if $_allColumns == "" {
|
39
|
+
$_allColumns: ".colSpan#{$col}";
|
40
|
+
} @else {
|
41
|
+
$_allColumns: $_allColumns + ", .colSpan#{$col}";
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
#{$_allColumns} {
|
46
|
+
box-sizing: border-box;
|
47
|
+
-moz-box-sizing: border-box;
|
48
|
+
-webkit-box-sizing: border-box;
|
49
|
+
width: 100%;
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
@media handheld, only screen and (min-width: 48em) {
|
54
|
+
|
55
|
+
body {
|
56
|
+
font-size: 100%
|
57
|
+
}
|
58
|
+
|
59
|
+
#{$_allColumns} {
|
60
|
+
// The things we do for older browsers
|
61
|
+
display: block;
|
62
|
+
float: left;
|
63
|
+
|
64
|
+
margin-right: $gutter-width;
|
65
|
+
}
|
66
|
+
|
67
|
+
@for $col from 1 to ($number-of-columns + 1) {
|
68
|
+
.colSpan#{$col} {
|
69
|
+
width: ($col * ((100.0 - (($number-of-columns - 1) * $gutter-width)) / $number-of-columns)) + (($col - 1) * $gutter-width);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
.lastCol {
|
74
|
+
margin-right: 0;
|
75
|
+
}
|
76
|
+
|
77
|
+
@for $col from 1 to $number-of-columns {
|
78
|
+
.offset#{$col} {
|
79
|
+
margin-left: ($col * ((100.0 - (($number-of-columns - 1) * $gutter-width)) / $number-of-columns)) + (($col - 1) * $gutter-width) + $gutter-width;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
}
|
metadata
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: compass-extension-mesh
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.0'
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Maxwell Barvian
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-10-15 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: compass
|
16
|
+
requirement: &70361506601640 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.11'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70361506601640
|
25
|
+
description: a dynamic grid system for SASS (and Compass)
|
26
|
+
email: mbarvian@gmail.com
|
27
|
+
executables: []
|
28
|
+
extensions: []
|
29
|
+
extra_rdoc_files: []
|
30
|
+
files:
|
31
|
+
- lib/mesh.rb
|
32
|
+
- stylesheets/_mesh.scss
|
33
|
+
- templates/project/manifest.rb
|
34
|
+
- templates/project/screen.scss
|
35
|
+
homepage: http://maxwellbarvian.com/
|
36
|
+
licenses: []
|
37
|
+
post_install_message:
|
38
|
+
rdoc_options: []
|
39
|
+
require_paths:
|
40
|
+
- lib
|
41
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
|
+
none: false
|
49
|
+
requirements:
|
50
|
+
- - ! '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
requirements: []
|
54
|
+
rubyforge_project:
|
55
|
+
rubygems_version: 1.8.11
|
56
|
+
signing_key:
|
57
|
+
specification_version: 3
|
58
|
+
summary: a dynamic grid system for SASS (and Compass)
|
59
|
+
test_files: []
|