moc_compass 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/lib/moc_compass.rb +3 -0
- data/stylesheets/_moc_compass.scss +3 -0
- data/stylesheets/moc_compass/_base.scss +0 -0
- data/stylesheets/moc_compass/_grid.scss +97 -0
- data/stylesheets/moc_compass/_reset.scss +24 -0
- data/templates/project/manifest.rb +17 -0
- data/templates/project/partials/_layout.scss +6 -0
- data/templates/project/screen.scss +7 -0
- metadata +85 -0
data/lib/moc_compass.rb
ADDED
File without changes
|
@@ -0,0 +1,97 @@
|
|
1
|
+
$mobile: false;
|
2
|
+
|
3
|
+
@mixin mc-container {
|
4
|
+
@if $mobile == true
|
5
|
+
{
|
6
|
+
@include mc-mobile-full;
|
7
|
+
}
|
8
|
+
@else
|
9
|
+
{
|
10
|
+
padding-left: 20px;
|
11
|
+
padding-right: 20px;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
@mixin mc-row {
|
16
|
+
@if $mobile == true
|
17
|
+
{
|
18
|
+
@include mc-mobile-full;
|
19
|
+
}
|
20
|
+
@else
|
21
|
+
{
|
22
|
+
width: 100%;
|
23
|
+
max-width: 1140px;
|
24
|
+
margin: 0 auto;
|
25
|
+
overflow: hidden;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
// $default-width should include the %
|
30
|
+
@mixin mc-subcolumn($default-width) {
|
31
|
+
@if $mobile == true
|
32
|
+
{
|
33
|
+
@include mc-mobile-column;
|
34
|
+
}
|
35
|
+
@else
|
36
|
+
{
|
37
|
+
width: $default-width;
|
38
|
+
margin-right: 3.8%;
|
39
|
+
float: left;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
@mixin mc-onecol {
|
44
|
+
@include mc-subcolumn(4.85%);
|
45
|
+
}
|
46
|
+
|
47
|
+
@mixin mc-twocol {
|
48
|
+
@include mc-subcolumn(13.5%);
|
49
|
+
}
|
50
|
+
|
51
|
+
@mixin mc-threecol {
|
52
|
+
@include mc-subcolumn(22.15%);
|
53
|
+
}
|
54
|
+
|
55
|
+
@mixin mc-fourcol {
|
56
|
+
@include mc-subcolumn(30.8%);
|
57
|
+
}
|
58
|
+
|
59
|
+
@mixin mc-fivecol {
|
60
|
+
@include mc-subcolumn(39.45%);
|
61
|
+
}
|
62
|
+
|
63
|
+
@mixin mc-sixcol {
|
64
|
+
@include mc-subcolumn(48.1%);
|
65
|
+
}
|
66
|
+
|
67
|
+
@mixin mc-sevencol {
|
68
|
+
@include mc-subcolumn(56.75%);
|
69
|
+
}
|
70
|
+
|
71
|
+
@mixin mc-eightcol {
|
72
|
+
@include mc-subcolumn(65.4%);
|
73
|
+
}
|
74
|
+
|
75
|
+
@mixin mc-ninecol {
|
76
|
+
@include mc-subcolumn(74.05%);
|
77
|
+
}
|
78
|
+
|
79
|
+
@mixin mc-tencol {
|
80
|
+
@include mc-subcolumn(82.7%);
|
81
|
+
}
|
82
|
+
|
83
|
+
@mixin mc-elevencol {
|
84
|
+
@include mc-subcolumn(91.35%);
|
85
|
+
}
|
86
|
+
|
87
|
+
@mixin mc-twelvecol {
|
88
|
+
@include mc-subcolumn(100%);
|
89
|
+
}
|
90
|
+
|
91
|
+
@mixin mc-first {
|
92
|
+
margin-left: 0px;
|
93
|
+
}
|
94
|
+
|
95
|
+
@mixin mc-last {
|
96
|
+
margin-right: 0px;
|
97
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,
|
2
|
+
address,cite,code,del,dfn,em,img,ins,q,small,strong,sub,sup,dl,dt,dd,ol,ul,li,
|
3
|
+
fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td {
|
4
|
+
border:0;
|
5
|
+
margin:0;
|
6
|
+
padding:0;
|
7
|
+
}
|
8
|
+
article,aside,figure,figure img,figcaption,hgroup,footer,header,nav,section,
|
9
|
+
video,object {
|
10
|
+
display:block
|
11
|
+
}
|
12
|
+
a img{
|
13
|
+
border:0;
|
14
|
+
}
|
15
|
+
figure {
|
16
|
+
position:relative;
|
17
|
+
}
|
18
|
+
figure img {
|
19
|
+
width:100%;
|
20
|
+
}
|
21
|
+
|
22
|
+
img, object, embed {
|
23
|
+
max-width: 100%;
|
24
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
description "moc_compass extension"
|
2
|
+
|
3
|
+
stylesheet 'screen.scss', :media => 'screen'
|
4
|
+
|
5
|
+
help %Q{
|
6
|
+
Please see the moc_compass page for documentation on how it works:
|
7
|
+
|
8
|
+
http://intra.moc.net/moc_compass/
|
9
|
+
}
|
10
|
+
|
11
|
+
welcome_message %Q{
|
12
|
+
Please see the moc_compass page for documentation on how it works:
|
13
|
+
|
14
|
+
http://intra.moc.net/moc_compass/
|
15
|
+
|
16
|
+
To get started, edit the grid.scss file and read the comments and code there.
|
17
|
+
}
|
metadata
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: moc_compass
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 9
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: "0.1"
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Ulrich Green [moc.net]
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2011-11-24 00:00:00 Z
|
18
|
+
dependencies:
|
19
|
+
- !ruby/object:Gem::Dependency
|
20
|
+
name: compass
|
21
|
+
prerelease: false
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 29
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 11
|
31
|
+
version: "0.11"
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
34
|
+
description: moc's compass extension
|
35
|
+
email: ulrich@moc.net
|
36
|
+
executables: []
|
37
|
+
|
38
|
+
extensions: []
|
39
|
+
|
40
|
+
extra_rdoc_files: []
|
41
|
+
|
42
|
+
files:
|
43
|
+
- lib/moc_compass.rb
|
44
|
+
- stylesheets/_moc_compass.scss
|
45
|
+
- stylesheets/moc_compass/_base.scss
|
46
|
+
- stylesheets/moc_compass/_grid.scss
|
47
|
+
- stylesheets/moc_compass/_reset.scss
|
48
|
+
- templates/project/manifest.rb
|
49
|
+
- templates/project/partials/_layout.scss
|
50
|
+
- templates/project/screen.scss
|
51
|
+
homepage: http://moc.net/
|
52
|
+
licenses: []
|
53
|
+
|
54
|
+
post_install_message:
|
55
|
+
rdoc_options: []
|
56
|
+
|
57
|
+
require_paths:
|
58
|
+
- lib
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
hash: 3
|
65
|
+
segments:
|
66
|
+
- 0
|
67
|
+
version: "0"
|
68
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
version: "0"
|
77
|
+
requirements: []
|
78
|
+
|
79
|
+
rubyforge_project:
|
80
|
+
rubygems_version: 1.8.6
|
81
|
+
signing_key:
|
82
|
+
specification_version: 3
|
83
|
+
summary: moc's compass extension
|
84
|
+
test_files: []
|
85
|
+
|