compass-slickmap 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Rakefile +20 -0
- data/VERSION +1 -0
- data/compass-slickmap.gemspec +50 -0
- data/lib/slickmap.rb +1 -0
- data/lib/slickmap/compass_plugin.rb +5 -0
- data/sass/slickmap.sass +194 -0
- data/templates/project/L1-center.png +0 -0
- data/templates/project/L1-left.png +0 -0
- data/templates/project/L1-right.png +0 -0
- data/templates/project/L3-bottom.png +0 -0
- data/templates/project/L3-center.png +0 -0
- data/templates/project/L3-li-top.png +0 -0
- data/templates/project/L3-ul-top.png +0 -0
- data/templates/project/manifest.rb +10 -0
- data/templates/project/sitemap.sass +3 -0
- data/templates/project/vertical-line.png +0 -0
- data/templates/project/white-highlight.png +0 -0
- metadata +81 -0
data/.gitignore
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "compass-slickmap"
|
8
|
+
gem.summary = %Q{An implementation of SlickmapCSS sitemap in Sass}
|
9
|
+
gem.email = "tdreyno@gmail.com"
|
10
|
+
gem.homepage = "http://github.com/tdreyno/compass-slickmap"
|
11
|
+
gem.authors = ["Thomas Reynolds"]
|
12
|
+
gem.rubyforge_project = "compassslickmap"
|
13
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
14
|
+
gem.add_dependency("chriseppstein-compass")
|
15
|
+
end
|
16
|
+
|
17
|
+
Jeweler::RubyforgeTasks.new
|
18
|
+
rescue LoadError
|
19
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
20
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{compass-slickmap}
|
5
|
+
s.version = "0.0.1"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Thomas Reynolds"]
|
9
|
+
s.date = %q{2009-08-03}
|
10
|
+
s.email = %q{tdreyno@gmail.com}
|
11
|
+
s.files = [
|
12
|
+
".gitignore",
|
13
|
+
"Rakefile",
|
14
|
+
"VERSION",
|
15
|
+
"compass-slickmap.gemspec",
|
16
|
+
"lib/slickmap.rb",
|
17
|
+
"lib/slickmap/compass_plugin.rb",
|
18
|
+
"sass/slickmap.sass",
|
19
|
+
"templates/project/L1-center.png",
|
20
|
+
"templates/project/L1-left.png",
|
21
|
+
"templates/project/L1-right.png",
|
22
|
+
"templates/project/L3-bottom.png",
|
23
|
+
"templates/project/L3-center.png",
|
24
|
+
"templates/project/L3-li-top.png",
|
25
|
+
"templates/project/L3-ul-top.png",
|
26
|
+
"templates/project/manifest.rb",
|
27
|
+
"templates/project/sitemap.sass",
|
28
|
+
"templates/project/vertical-line.png",
|
29
|
+
"templates/project/white-highlight.png"
|
30
|
+
]
|
31
|
+
s.homepage = %q{http://github.com/tdreyno/compass-slickmap}
|
32
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
33
|
+
s.require_paths = ["lib"]
|
34
|
+
s.rubyforge_project = %q{compassslickmap}
|
35
|
+
s.rubygems_version = %q{1.3.5}
|
36
|
+
s.summary = %q{An implementation of SlickmapCSS sitemap in Sass}
|
37
|
+
|
38
|
+
if s.respond_to? :specification_version then
|
39
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
40
|
+
s.specification_version = 3
|
41
|
+
|
42
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
43
|
+
s.add_runtime_dependency(%q<chriseppstein-compass>, [">= 0"])
|
44
|
+
else
|
45
|
+
s.add_dependency(%q<chriseppstein-compass>, [">= 0"])
|
46
|
+
end
|
47
|
+
else
|
48
|
+
s.add_dependency(%q<chriseppstein-compass>, [">= 0"])
|
49
|
+
end
|
50
|
+
end
|
data/lib/slickmap.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'slickmap', 'compass_plugin')
|
@@ -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('slickmap', options)
|
data/sass/slickmap.sass
ADDED
@@ -0,0 +1,194 @@
|
|
1
|
+
=slickmap(!body_selector = "body")
|
2
|
+
#{!body_selector}
|
3
|
+
+slickmap-body
|
4
|
+
@if !body_selector != "body"
|
5
|
+
+slickmap-defaults
|
6
|
+
@if !body_selector == "body"
|
7
|
+
+slickmap-defaults
|
8
|
+
|
9
|
+
//
|
10
|
+
NUMBER OF COLUMNS: Adjust #primaryNav li to set the number
|
11
|
+
of columns required in your site map. The default is
|
12
|
+
4 columns (25%). 5 columns would be 20%, 6 columns would
|
13
|
+
be 16.6%, etc.
|
14
|
+
#primaryNav
|
15
|
+
margin: 0
|
16
|
+
float: left
|
17
|
+
width: 100%
|
18
|
+
li
|
19
|
+
width: 25%
|
20
|
+
&.col1 li
|
21
|
+
width: 99.9%
|
22
|
+
&.col2 li
|
23
|
+
width: 50.0%
|
24
|
+
&.col3 li
|
25
|
+
width: 33.3%
|
26
|
+
&.col4 li
|
27
|
+
width: 25.0%
|
28
|
+
&.col5 li
|
29
|
+
width: 20.0%
|
30
|
+
&.col6 li
|
31
|
+
width: 16.6%
|
32
|
+
&.col7 li
|
33
|
+
width: 14.2%
|
34
|
+
&.col8 li
|
35
|
+
width: 12.5%
|
36
|
+
&.col9 li
|
37
|
+
width: 11.1%
|
38
|
+
&.col10 li
|
39
|
+
width: 10.0%
|
40
|
+
|
41
|
+
ul li
|
42
|
+
width: 100% !important
|
43
|
+
|
44
|
+
a:link:before, a:visited:before
|
45
|
+
color: #78a9c0
|
46
|
+
|
47
|
+
// Second Level
|
48
|
+
li
|
49
|
+
width: 100%
|
50
|
+
clear: left
|
51
|
+
margin-top: 0
|
52
|
+
padding: 10px 0 0 0
|
53
|
+
background= image_url('vertical-line.png') "center" "bottom" "repeat-y"
|
54
|
+
a
|
55
|
+
background-color: #cee3ac
|
56
|
+
border-color: #b8da83
|
57
|
+
&:hover
|
58
|
+
border-color: #94b75f
|
59
|
+
background-color: #e7f1d7
|
60
|
+
&:first-child
|
61
|
+
padding-top: 30px
|
62
|
+
&:last-child
|
63
|
+
background= image_url('vertical-line.png') "center" "bottom" "repeat-y"
|
64
|
+
|
65
|
+
a:link:before, a:visited:before
|
66
|
+
color: #8faf5c
|
67
|
+
|
68
|
+
// Third Level
|
69
|
+
ul
|
70
|
+
margin: 10px 0 0 0
|
71
|
+
width: 100%
|
72
|
+
float: right
|
73
|
+
padding: 9px 0 10px 0
|
74
|
+
background= #fff url('L3-ul-top.png') "center" "top" "no-repeat"
|
75
|
+
|
76
|
+
li
|
77
|
+
background= image_url('L3-center.png') "left" "center" "no-repeat"
|
78
|
+
padding: 5px 0
|
79
|
+
a
|
80
|
+
background-color: #fff7aa
|
81
|
+
border-color: #e3ca4b
|
82
|
+
font-size: 12px
|
83
|
+
padding: 5px 0
|
84
|
+
width: 80%
|
85
|
+
float: right
|
86
|
+
&:hover
|
87
|
+
background-color: #fffce5
|
88
|
+
border-color: #d1b62c
|
89
|
+
&:first-child
|
90
|
+
padding: 15px 0 5px 0
|
91
|
+
background= image_url('L3-li-top.png') "left" "center" "no-repeat"
|
92
|
+
&:last-child
|
93
|
+
background= image_url('L3-bottom.png') "left" "center" "no-repeat"
|
94
|
+
a:link:before, a:visited:before
|
95
|
+
color: #ccae14
|
96
|
+
font-size: 9px
|
97
|
+
|
98
|
+
#home
|
99
|
+
display: block
|
100
|
+
float: none
|
101
|
+
background= #fff image_url('L1-left.png') "center" "bottom" "no-repeat"
|
102
|
+
position: relative
|
103
|
+
z-index: 2
|
104
|
+
padding: 0 0 30px 0
|
105
|
+
li
|
106
|
+
float: left
|
107
|
+
background= image_url('L1-center.png') "center" "top" "no-repeat"
|
108
|
+
padding: 30px 0
|
109
|
+
margin-top: -30px
|
110
|
+
&:last-child
|
111
|
+
background= image_url('L1-right.png') "center" "top" "no-repeat"
|
112
|
+
a
|
113
|
+
margin: 0 20px 0 0
|
114
|
+
padding: 10px 0
|
115
|
+
display: block
|
116
|
+
font-size: 14px
|
117
|
+
font-weight: bold
|
118
|
+
text-align: center
|
119
|
+
color: black
|
120
|
+
background= #c3eafb image_url('white-highlight.png') "top" "left" "repeat-x"
|
121
|
+
border: 2px solid #b5d9ea
|
122
|
+
-moz-border-radius: 5px
|
123
|
+
-webkit-border-radius: 5px
|
124
|
+
-webkit-box-shadow: rgba(0,0,0,0.5) 2px 2px 2px
|
125
|
+
-moz-box-shadow: rgba(0,0,0,0.5) 2px 2px 2px
|
126
|
+
&:hover
|
127
|
+
background-color: #e2f4fd
|
128
|
+
border-color: #97bdcf
|
129
|
+
|
130
|
+
// Utility Navigation
|
131
|
+
#utilityNav
|
132
|
+
float: right
|
133
|
+
max-width: 50%
|
134
|
+
margin-right: 10px
|
135
|
+
li
|
136
|
+
float: left
|
137
|
+
margin-bottom: 10px
|
138
|
+
a
|
139
|
+
margin: 0 10px 0 0
|
140
|
+
padding: 5px 10px
|
141
|
+
display: block
|
142
|
+
border: 2px solid #e3ca4b
|
143
|
+
font-size: 12px
|
144
|
+
font-weight: bold
|
145
|
+
text-align: center
|
146
|
+
color: black
|
147
|
+
background= #fff7aa image_url('white-highlight.png') "top" "left" "repeat-x"
|
148
|
+
-moz-border-radius: 5px
|
149
|
+
-webkit-border-radius: 5px
|
150
|
+
-webkit-box-shadow: rgba(0,0,0,0.5) 2px 2px 2px
|
151
|
+
-moz-box-shadow: rgba(0,0,0,0.5) 2px 2px 2px
|
152
|
+
&:hover
|
153
|
+
background-color: #fffce5
|
154
|
+
border-color: #d1b62c
|
155
|
+
&:link:before, &:visited:before
|
156
|
+
color: #ccae14
|
157
|
+
font-size: 9px
|
158
|
+
margin-bottom: 3px
|
159
|
+
|
160
|
+
// General Styles
|
161
|
+
=slickmap-body
|
162
|
+
background: white
|
163
|
+
color: black
|
164
|
+
padding: 40px
|
165
|
+
font-family: Gotham, Helvetica, Arial, sans-serif
|
166
|
+
font-size: 12px
|
167
|
+
line-height: 1
|
168
|
+
|
169
|
+
=slickmap-defaults
|
170
|
+
.sitemap
|
171
|
+
margin: 0 0 40px 0
|
172
|
+
float: left
|
173
|
+
width: 100%
|
174
|
+
h1
|
175
|
+
font-weight: bold
|
176
|
+
text-transform: uppercase
|
177
|
+
font-size: 20px
|
178
|
+
margin: 0 0 5px 0
|
179
|
+
h2
|
180
|
+
font-family: "Lucida Grande", Verdana, sans-serif
|
181
|
+
font-size: 10px
|
182
|
+
color: #777777
|
183
|
+
margin: 0 0 20px 0
|
184
|
+
a
|
185
|
+
text-decoration: none
|
186
|
+
&:link:before, &:visited:before
|
187
|
+
content: " "attr(href)" "
|
188
|
+
display: block
|
189
|
+
text-transform: uppercase
|
190
|
+
font-size: 10px
|
191
|
+
margin-bottom: 5px
|
192
|
+
word-wrap: break-word
|
193
|
+
ol, ul
|
194
|
+
list-style: none
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,10 @@
|
|
1
|
+
image 'L1-center.png'
|
2
|
+
image 'L1-left.png'
|
3
|
+
image 'L1-right.png'
|
4
|
+
image 'L3-bottom.png'
|
5
|
+
image 'L3-center.png'
|
6
|
+
image 'L3-li-top.png'
|
7
|
+
image 'L3-ul-top.png'
|
8
|
+
image 'vertical-line.png'
|
9
|
+
image 'white-highlight.png'
|
10
|
+
stylesheet 'sitemap.sass', :media => "screen, projection"
|
Binary file
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: compass-slickmap
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Thomas Reynolds
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-08-03 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: tdreyno@gmail.com
|
27
|
+
executables: []
|
28
|
+
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files: []
|
32
|
+
|
33
|
+
files:
|
34
|
+
- .gitignore
|
35
|
+
- Rakefile
|
36
|
+
- VERSION
|
37
|
+
- compass-slickmap.gemspec
|
38
|
+
- lib/slickmap.rb
|
39
|
+
- lib/slickmap/compass_plugin.rb
|
40
|
+
- sass/slickmap.sass
|
41
|
+
- templates/project/L1-center.png
|
42
|
+
- templates/project/L1-left.png
|
43
|
+
- templates/project/L1-right.png
|
44
|
+
- templates/project/L3-bottom.png
|
45
|
+
- templates/project/L3-center.png
|
46
|
+
- templates/project/L3-li-top.png
|
47
|
+
- templates/project/L3-ul-top.png
|
48
|
+
- templates/project/manifest.rb
|
49
|
+
- templates/project/sitemap.sass
|
50
|
+
- templates/project/vertical-line.png
|
51
|
+
- templates/project/white-highlight.png
|
52
|
+
has_rdoc: true
|
53
|
+
homepage: http://github.com/tdreyno/compass-slickmap
|
54
|
+
licenses: []
|
55
|
+
|
56
|
+
post_install_message:
|
57
|
+
rdoc_options:
|
58
|
+
- --charset=UTF-8
|
59
|
+
require_paths:
|
60
|
+
- lib
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: "0"
|
66
|
+
version:
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: "0"
|
72
|
+
version:
|
73
|
+
requirements: []
|
74
|
+
|
75
|
+
rubyforge_project: compassslickmap
|
76
|
+
rubygems_version: 1.3.5
|
77
|
+
signing_key:
|
78
|
+
specification_version: 3
|
79
|
+
summary: An implementation of SlickmapCSS sitemap in Sass
|
80
|
+
test_files: []
|
81
|
+
|