compass-slickmap 0.2.1 → 0.2.2

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{compass-slickmap}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Thomas Reynolds"]
12
- s.date = %q{2009-10-09}
12
+ s.date = %q{2009-12-03}
13
13
  s.email = %q{tdreyno@gmail.com}
14
14
  s.files = [
15
15
  ".gitignore",
@@ -51,3 +51,4 @@ Gem::Specification.new do |s|
51
51
  s.add_dependency(%q<compass>, [">= 0"])
52
52
  end
53
53
  end
54
+
data/sass/_slickmap.sass CHANGED
@@ -1,20 +1,25 @@
1
1
  @import compass/utilities/general/reset.sass
2
2
 
3
- =slickmap(!body_selector = "body")
4
- +global-reset
3
+ // Override !column_default with the number of top-level navigation columns you need
4
+ // - not including your home page
5
+ !column_default ||= 4
6
+
7
+ =slickmap(!body_selector = "body", !columns = !column_default)
5
8
  #{!body_selector}
9
+ +nested-reset
6
10
  +slickmap-body
7
11
  @if !body_selector != "body"
8
- +slickmap-defaults
12
+ +slickmap-defaults(!columns)
9
13
  @if !body_selector == "body"
10
- +slickmap-defaults
14
+ +slickmap-defaults(!columns)
11
15
 
12
- =slickmap-primary-nav
16
+ =slickmap-primary-nav(!columns = !column_default)
13
17
  margin: 0
14
18
  float: left
15
19
  width: 100%
16
20
  li
17
- width: 25%
21
+ width= 100/!columns + "%"
22
+
18
23
  &.col1 li
19
24
  width: 99.9%
20
25
  &.col2 li
@@ -34,12 +39,13 @@
34
39
  &.col9 li
35
40
  width: 11.1%
36
41
  &.col10 li
37
- width: 10.0%
42
+ width: 10.0%
43
+
38
44
  li
39
45
  ul li
40
46
  width: 100% !important
41
47
 
42
- a:link:before, a:visited:before
48
+ a:link:before, a:visited:before, span:before
43
49
  color: #78a9c0
44
50
 
45
51
  // Second Level
@@ -49,7 +55,7 @@
49
55
  margin-top: 0
50
56
  padding: 10px 0 0 0
51
57
  background= slickmap_image("vertical-line.png") "center" "bottom" "repeat-y"
52
- a
58
+ a, span
53
59
  background-color: #cee3ac
54
60
  border-color: #b8da83
55
61
  &:hover
@@ -60,7 +66,7 @@
60
66
  &:last-child
61
67
  background= slickmap_image("vertical-line.png") "center" "bottom" "repeat-y"
62
68
 
63
- a:link:before, a:visited:before
69
+ a:link:before, a:visited:before, span:before
64
70
  color: #8faf5c
65
71
 
66
72
  // Third Level
@@ -74,7 +80,7 @@
74
80
  li
75
81
  background= slickmap_image("L3-center.png") "left" "center" "no-repeat"
76
82
  padding: 5px 0
77
- a
83
+ a, span
78
84
  background-color: #fff7aa
79
85
  border-color: #e3ca4b
80
86
  font-size: 12px
@@ -89,7 +95,7 @@
89
95
  background= slickmap_image("L3-li-top.png") "left" "center" "no-repeat"
90
96
  &:last-child
91
97
  background= slickmap_image("L3-bottom.png") "left" "center" "no-repeat"
92
- a:link:before, a:visited:before
98
+ a:link:before, a:visited:before, span:before
93
99
  color: #ccae14
94
100
  font-size: 9px
95
101
 
@@ -100,7 +106,7 @@
100
106
  margin-top: -30px
101
107
  &:last-child
102
108
  background= slickmap_image("L1-right.png") "center" "top" "no-repeat"
103
- a
109
+ a, span
104
110
  margin: 0 20px 0 0
105
111
  padding: 10px 0
106
112
  display: block
@@ -114,7 +120,7 @@
114
120
  -webkit-border-radius: 5px
115
121
  -webkit-box-shadow: rgba(0,0,0,0.5) 2px 2px 2px
116
122
  -moz-box-shadow: rgba(0,0,0,0.5) 2px 2px 2px
117
- &:hover
123
+ &:hover, span
118
124
  background-color: #e2f4fd
119
125
  border-color: #97bdcf
120
126
 
@@ -133,7 +139,7 @@
133
139
  li
134
140
  float: left
135
141
  margin-bottom: 10px
136
- a
142
+ a, span
137
143
  margin: 0 10px 0 0
138
144
  padding: 5px 10px
139
145
  display: block
@@ -150,10 +156,10 @@
150
156
  &:hover
151
157
  background-color: #fffce5
152
158
  border-color: #d1b62c
153
- &:link:before, &:visited:before
154
- color: #ccae14
155
- font-size: 9px
156
- margin-bottom: 3px
159
+ a:link:before, a:visited:before, span:before
160
+ color: #ccae14
161
+ font-size: 9px
162
+ margin-bottom: 3px
157
163
 
158
164
  // General Styles
159
165
  =slickmap-body
@@ -164,7 +170,7 @@
164
170
  font-size: 12px
165
171
  line-height: 1
166
172
 
167
- =slickmap-defaults
173
+ =slickmap-defaults(!columns = !column_default)
168
174
  .sitemap
169
175
  margin: 0 0 40px 0
170
176
  float: left
@@ -179,25 +185,23 @@
179
185
  font-size: 10px
180
186
  color: #777777
181
187
  margin: 0 0 20px 0
182
- a
188
+ a, span
183
189
  text-decoration: none
184
- &:link:before, &:visited:before
185
- content: " "attr(href)" "
186
- display: block
187
- text-transform: uppercase
188
- font-size: 10px
189
- margin-bottom: 5px
190
- word-wrap: break-word
190
+ a:link:before, a:visited:before, span:before
191
+ display: block
192
+ text-transform: uppercase
193
+ font-size: 10px
194
+ margin-bottom: 5px
195
+ word-wrap: break-word
196
+ a:link:before, a:visited:before
197
+ content: " "attr(href)" "
198
+ span:before
199
+ content: " "attr(title)" "
191
200
  ol, ul
192
201
  list-style: none
193
202
 
194
- //
195
- NUMBER OF COLUMNS: Adjust #primaryNav li to set the number
196
- of columns required in your site map. The default is
197
- 4 columns (25%). 5 columns would be 20%, 6 columns would
198
- be 16.6%, etc.
199
203
  #primaryNav
200
- +slickmap-primary-nav
204
+ +slickmap-primary-nav(!columns)
201
205
  li#home
202
206
  +slickmap-primary-nav-home
203
207
 
@@ -1,3 +1,7 @@
1
+ // Override with the number of top level naigation columns you need.
2
+ // - not including your home page
3
+ !column_default ||= 4
4
+
1
5
  @import slickmap.sass
2
6
 
3
7
  +slickmap
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-slickmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-09 00:00:00 -07:00
12
+ date: 2009-12-03 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency