bullrico-compass-facebook 0.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/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Bobby Santiago
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.mkdn ADDED
@@ -0,0 +1,7 @@
1
+ = compass-facebook
2
+
3
+ Description goes here.
4
+
5
+ == Copyright
6
+
7
+ Copyright (c) 2009 Bobby Santiago. See LICENSE for details.
@@ -0,0 +1,2 @@
1
+ require File.join(File.dirname(__FILE__), 'compass_facebook', 'compass_plugin')
2
+ require File.join(File.dirname(__FILE__), 'compass_facebook', 'sass_extensions')
@@ -0,0 +1,5 @@
1
+ options = Hash.new
2
+ options[:stylesheets_directory] = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'sass'))
3
+ options[:templates_directory] = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'templates'))
4
+
5
+ Compass::Frameworks.register('760', options)
@@ -0,0 +1,7 @@
1
+ require 'sass'
2
+
3
+ module Sass::Script::Functions
4
+ def enumerate(prefix, from_index, to_index)
5
+ Sass::Script::String.new(((from_index.value)..(to_index.value)).map{|i| "#{prefix}#{i}"}.join(", "))
6
+ end
7
+ end
@@ -0,0 +1,64 @@
1
+ !sevensixty_gutter_width = 10px
2
+ !sevensixty_container_width = 760px
3
+ !sevensixty_columns = 20
4
+ !sevensixty_grid-width = 28px
5
+
6
+ =grid-container
7
+ :margin-left auto
8
+ :margin-right auto
9
+ :width = !sevensixty_container_width
10
+
11
+ =grid-width(!n, !cols, !gutter_width = !sevensixty_gutter_width)
12
+ :width= (!sevensixty_container_width / !cols) * !n - !gutter_width
13
+
14
+ =grid-unit-base(!gutter_width = !sevensixty_gutter_width)
15
+ :display inline
16
+ :float left
17
+ :margin
18
+ :left= !gutter_width / 2
19
+ :right= !gutter_width / 2
20
+
21
+ =grid(!n, !cols, !gutter_width = !sevensixty_gutter_width)
22
+ +grid-unit-base(!gutter_width)
23
+ +grid-width(!n, !cols, !gutter_width)
24
+
25
+ =alpha
26
+ :margin-left 0
27
+
28
+ =omega
29
+ :margin-right 0
30
+
31
+ =grids(!cols, !gutter_width = !sevensixty_gutter_width)
32
+ #{enumerate(".grid_",1,!cols)}
33
+ +grid-unit-base
34
+ @for !n from 1 through !cols
35
+ .grid_#{!n}
36
+ +grid-width(!n, !cols, !gutter_width)
37
+
38
+ =grid-prefix(!n, !cols)
39
+ :padding-left= (!sevensixty_container_width / !cols) * !n
40
+
41
+ =grid-prefixes(!cols)
42
+ @for !n from 1 through !cols - 1
43
+ .prefix_#{!n}
44
+ +grid-prefix(!n, !cols)
45
+
46
+ =grid-suffix(!n, !cols)
47
+ :padding-right= (!sevensixty_container_width / !cols) * !n
48
+
49
+ =grid-suffixes(!cols)
50
+ @for !n from 1 through !cols - 1
51
+ .suffix_#{!n}
52
+ +grid-suffix(!n, !cols)
53
+
54
+ =grid-children
55
+ .alpha
56
+ +alpha
57
+ .omega
58
+ +omega
59
+
60
+ =grid-system(!cols = !sevensixty_columns)
61
+ +grid-container
62
+ +grids(!sevensixty_columns)
63
+ +grid-prefixes(!sevensixty_columns)
64
+ +grid-suffixes(!sevensixty_columns)
@@ -0,0 +1,59 @@
1
+ !sevensixty_font_family ||= "lucida grande",tahoma,verdana,arial,sans-serif
2
+
3
+ =typography(!font_family = !sevensixty_font_family)
4
+ body
5
+ :font= 11px/1.4 !sevensixty_font_family
6
+
7
+ a:focus
8
+ :outline 1px dotted invert
9
+
10
+ hr
11
+ :border-color #ccc
12
+ :border-style solid
13
+ :border-width 1px 0 0
14
+ :clear both
15
+ :height 0
16
+
17
+ h1
18
+ :font-size 25px
19
+
20
+ h2
21
+ :font-size 23px
22
+
23
+ h3
24
+ :font-size 21px
25
+
26
+ h4
27
+ :font-size 19px
28
+
29
+ h5
30
+ :font-size 17px
31
+
32
+ h6
33
+ :font-size 15px
34
+
35
+ ol
36
+ :list-style decimal
37
+
38
+ ul
39
+ :list-style square
40
+
41
+ li
42
+ :margin-left 30px
43
+
44
+ p,
45
+ dl,
46
+ hr,
47
+ h1,
48
+ h2,
49
+ h3,
50
+ h4,
51
+ h5,
52
+ h6,
53
+ ol,
54
+ ul,
55
+ pre,
56
+ table,
57
+ address,
58
+ fieldset
59
+ :margin-bottom 20px
@@ -0,0 +1 @@
1
+ require 'compass_facebook'
@@ -0,0 +1,7 @@
1
+ /*
2
+ Revised version of the 960 Grid System for use in Facebook apps
3
+
4
+ @import compass/utilities/general/reset.sass
5
+ @import 760/grid.sass
6
+
7
+ +grid-system
@@ -0,0 +1,3 @@
1
+ stylesheet 'grid.sass', :media => "screen, projection"
2
+ stylesheet 'typography.sass', :media => "screen, projection"
3
+ file 'config.rb'
@@ -0,0 +1,6 @@
1
+ /*
2
+ Revised version of the 960 Grid System for use in Facebook apps
3
+
4
+ @import 760/typography.sass
5
+
6
+ +typography
metadata ADDED
@@ -0,0 +1,73 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bullrico-compass-facebook
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Bobby Santiago
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-04-29 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: chriseppstein-compass
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ description:
26
+ email: bobby.santiago@gmail.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - LICENSE
33
+ - README.mkdn
34
+ files:
35
+ - lib/compass_facebook.rb
36
+ - lib/compass_facebook/compass_plugin.rb
37
+ - lib/compass_facebook/sass_extensions.rb
38
+ - sass/760/_grid.sass
39
+ - sass/760/_typography.sass
40
+ - templates/project/config.rb
41
+ - templates/project/grid.sass
42
+ - templates/project/manifest.rb
43
+ - templates/project/typography.sass
44
+ - LICENSE
45
+ - README.mkdn
46
+ has_rdoc: true
47
+ homepage: http://github.com/bullrico/compass-facebook
48
+ post_install_message:
49
+ rdoc_options:
50
+ - --charset=UTF-8
51
+ require_paths:
52
+ - lib
53
+ required_ruby_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: "0"
58
+ version:
59
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ version:
65
+ requirements: []
66
+
67
+ rubyforge_project:
68
+ rubygems_version: 1.2.0
69
+ signing_key:
70
+ specification_version: 2
71
+ summary: Compass-compatible Sass port of 960.gs, for Facebook apps.
72
+ test_files: []
73
+