webgen 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/ChangeLog +300 -0
  2. data/Rakefile +149 -27
  3. data/TODO +3 -4
  4. data/VERSION +1 -1
  5. data/data/webgen/gallery_styles/slides/collage.rb +7 -4
  6. data/data/webgen/sipttra_styles/default/README +7 -0
  7. data/data/webgen/sipttra_styles/default/css/sipttra.rcss +71 -0
  8. data/data/webgen/sipttra_styles/default/js/sipttra.js +7 -0
  9. data/data/webgen/sipttra_styles/default/sipttra.template +105 -0
  10. data/data/webgen/website_styles/1024px/README +3 -0
  11. data/data/webgen/website_styles/1024px/default.css +3 -3
  12. data/data/webgen/website_styles/andreas00/README +4 -1
  13. data/data/webgen/website_styles/andreas00/default.css +2 -2
  14. data/data/webgen/website_styles/andreas01/README +3 -0
  15. data/data/webgen/website_styles/andreas01/default.css +3 -3
  16. data/data/webgen/website_styles/andreas03/README +4 -1
  17. data/data/webgen/website_styles/andreas03/default.css +2 -2
  18. data/data/webgen/website_styles/andreas04/README +3 -0
  19. data/data/webgen/website_styles/andreas04/default.css +2 -2
  20. data/data/webgen/website_styles/andreas05/README +3 -0
  21. data/data/webgen/website_styles/andreas05/default.css +2 -2
  22. data/data/webgen/website_styles/andreas06/README +3 -0
  23. data/data/webgen/website_styles/andreas06/default.css +3 -2
  24. data/data/webgen/website_styles/andreas07/README +3 -0
  25. data/data/webgen/website_styles/andreas07/default.css +4 -4
  26. data/data/webgen/website_styles/andreas08/README +4 -1
  27. data/data/webgen/website_styles/andreas08/default.css +2 -2
  28. data/data/webgen/website_styles/andreas08/default.template +1 -1
  29. data/data/webgen/website_styles/andreas09/README +3 -0
  30. data/data/webgen/website_styles/andreas09/default.css +2 -2
  31. data/data/webgen/website_styles/default/README +1 -1
  32. data/data/webgen/website_styles/default/default.css +1 -1
  33. data/data/webgen/website_styles/plain/README +7 -2
  34. data/data/webgen/website_styles/plain/default.css +2 -2
  35. data/doc/config.yaml +3 -0
  36. data/doc/metainfo.yaml +20 -3
  37. data/doc/src/css/sipttra.rcss +71 -0
  38. data/doc/src/default.template +10 -5
  39. data/doc/src/documentation/howto.page +221 -0
  40. data/doc/src/documentation/plugins/contentconverter/default.page +1 -0
  41. data/doc/src/documentation/plugins/contentconverter/xmlbuilder.page +2 -2
  42. data/doc/src/documentation/plugins/core/configuration.page +6 -0
  43. data/doc/src/documentation/plugins/core/resourcemanager.page +4 -10
  44. data/doc/src/documentation/plugins/file/defaulthandler.page +1 -0
  45. data/doc/src/documentation/plugins/file/sipttrahandler.page +18 -0
  46. data/doc/src/documentation/plugins/file/templatehandler.page +27 -10
  47. data/doc/src/documentation/plugins/file/thumbnailwriter.page +5 -2
  48. data/doc/src/documentation/plugins/htmlvalidator/default.page +1 -0
  49. data/doc/src/documentation/plugins/index.page +2 -2
  50. data/doc/src/documentation/plugins/menustyle/default.page +1 -0
  51. data/doc/src/documentation/plugins/tag/breadcrumbtrail.page +12 -0
  52. data/doc/src/documentation/plugins/tag/customvar.page +11 -0
  53. data/doc/src/documentation/plugins/tag/default.page +1 -0
  54. data/doc/src/documentation/references/index.page +8 -0
  55. data/doc/src/documentation/references/meta_info_reference.page +35 -16
  56. data/doc/src/documentation/references/resource_reference.page +18 -0
  57. data/doc/src/documentation/references/sipttra_format.page +241 -0
  58. data/doc/src/documentation/references/webpage_format.page +4 -0
  59. data/doc/src/examples/example_sites/index.page +41 -0
  60. data/doc/src/examples/example_sites/personal.zip +0 -0
  61. data/doc/src/examples/example_sites/photo_gallery.zip +0 -0
  62. data/doc/src/examples/index.page +2 -1
  63. data/doc/src/js/sipttra.js +7 -0
  64. data/doc/src/news.page +25 -0
  65. data/doc/src/project.todo +91 -0
  66. data/doc/src/sipttra.template +105 -0
  67. data/lib/webgen/cli.rb +31 -1
  68. data/lib/webgen/config.rb +2 -2
  69. data/lib/webgen/plugin.rb +7 -3
  70. data/lib/webgen/plugins/coreplugins/configuration.rb +3 -1
  71. data/lib/webgen/plugins/filehandlers/filehandler.rb +6 -5
  72. data/lib/webgen/plugins/filehandlers/sipttra.rb +73 -0
  73. data/lib/webgen/plugins/filehandlers/template.rb +2 -1
  74. data/lib/webgen/plugins/miscplugins/treewalker.rb +40 -4
  75. data/lib/webgen/plugins/tags/breadcrumbtrail.rb +14 -1
  76. data/lib/webgen/plugins/tags/customvar.rb +54 -0
  77. data/lib/webgen/sipttra_format.rb +343 -0
  78. data/lib/webgen/website.rb +25 -1
  79. data/man/man1/webgen.1 +75 -0
  80. data/setup.rb +861 -607
  81. data/test/fixtures/sample_site/src/test.todo +7 -0
  82. data/test/fixtures/tc_plugin/plugin1.rb +2 -0
  83. data/test/fixtures/tc_sipttra_format/test.sipttra +46 -0
  84. data/test/unittests/tc_filehandler_sipttra.rb +26 -0
  85. data/test/unittests/tc_filehandler_template.rb +2 -1
  86. data/test/unittests/tc_plugin.rb +8 -1
  87. data/test/unittests/tc_sipttra_format.rb +58 -0
  88. data/test/unittests/tc_tags_breadcrumbtrail.rb +34 -0
  89. data/test/unittests/tc_tags_customvar.rb +24 -0
  90. data/test/unittests/tc_tags_date.rb +1 -0
  91. data/test/unittests/tc_tags_includefile.rb +6 -13
  92. data/test/unittests/tc_treewalker.rb +8 -1
  93. metadata +37 -3
data/TODO CHANGED
@@ -1,13 +1,10 @@
1
1
  ---- CURRENT ----
2
2
 
3
3
  * modify WebSite to allow better use (factor out loading of plugins into own method, do not call init in #render method, ...)
4
- * fix TreeWalker (call it!)
5
4
  * show error message when configuration file is invalid (Webgen::WebSite)
6
- * fix website styles menus to have a style for current menu item with <span> instead of <a>
7
5
  * add a common class to the menu element (either a or span, depending on Fil/DefaultFileHandler:linkToCurrentPage) for easier referencing in CSS styles (update menu CSS style afterwards for horiz-dd, vert-dd, ...)
8
6
  * add parameters startLevel, minLevels, maxLevels to horizontal menu style
9
7
  * make linking to image galleries possible by specifing the gallery file
10
- * change namespace of tag plugins from tags to tag
11
8
  * send bug report to rdoc maintainer (rdoc does not handle nested method defintions correctly)
12
9
  * make source installation work again (because of help forum entry)?
13
10
  * rethink plugin config handling (maybe all in a list which is traversed and stopped when one item returns a value)
@@ -24,7 +21,6 @@
24
21
  * document how to create gallery styles
25
22
  * documentation: add info about what webgen does during a run (read files, create nodes, write nodes)
26
23
  * documentation: add a page about YAML and basic use
27
- * documentation: add a resource reference file with the table of resources
28
24
  * document: check for consistent naming (page files, tags,...)
29
25
  * document homepage structure (where is plugin docu, api docu,...)
30
26
  * document tag @processOutput changed to @process_output
@@ -374,3 +370,6 @@ W do not allow two or more page files in the same language, print warn
374
370
  * create a rake task for running webgen (like the rdoc task)
375
371
  * documentation: split getting started into basics and tutorial pages
376
372
  * make it possible to set meta information template to nil
373
+ * check styles for correct selected menu items (due to new <span> element, e.g. andreas07)
374
+ * change namespace of tag plugins from tags to tag
375
+ * fix website styles menus to have a style for current menu item with <span> instead of <a>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
@@ -1,10 +1,12 @@
1
- load_plugin 'webgen/plugins/filehandlers/filehandler'
2
-
3
1
  require 'rubygems'
4
2
  require 'RMagick'
5
3
 
4
+ REF = self
5
+
6
6
  module Collage
7
7
 
8
+ include REF
9
+
8
10
  class Layouter < Webgen::Plugin
9
11
 
10
12
  infos( :name => 'GalleryLayouter/slides',
@@ -61,8 +63,7 @@ module Collage
61
63
  .thumb-#{collage_title(ginfo)} img:hover {
62
64
  border: 1px solid black;
63
65
  }
64
-
65
- }")
66
+ ")
66
67
  end
67
68
 
68
69
  #######
@@ -226,6 +227,7 @@ module Collage
226
227
 
227
228
  def write_node( node )
228
229
  return if File.exists?( node.full_path ) #TODO always create? what settings to check?
230
+ return if node.node_info[:data][:ginfo].galleries.length == 1
229
231
  create_collage( node )
230
232
  node.node_info[:collage].write( node.full_path )
231
233
  end
@@ -321,6 +323,7 @@ module Collage
321
323
 
322
324
  def write_node( node )
323
325
  return if File.exists?( node.full_path ) #TODO always create? what settings to check?
326
+ return if node.node_info[:data][:ginfo].galleries.length == 1
324
327
  ginfo = node.node_info[:data][:ginfo]
325
328
  ginfo[:collage_node].create_collage
326
329
  collage = ginfo[:collage_node].node_info[:collage]
@@ -0,0 +1,7 @@
1
+ description:
2
+ This is the default style for layouting sipttra files. The design is similar
3
+ to the design of roadmap pages on trac installations. Make sure that
4
+ you have linked to the .css and .js files in your default.template!
5
+
6
+ author:
7
+ Thomas Leitner
@@ -0,0 +1,71 @@
1
+ <%
2
+ copen = "#e0baba"
3
+ cclosed = "#bae0ba"
4
+ %>
5
+
6
+ div.milestone h2.milestone-name {
7
+ padding-bottom: 0px;
8
+ margin-bottom: 0px;
9
+ border-bottom: 1px solid gray;
10
+ }
11
+
12
+ div.milestone h2.milestone-name span {
13
+ font-size: 110%;
14
+ }
15
+
16
+ div.milestone p.milestone-info {
17
+ padding-top: 0px;
18
+ margin-top: 0px;
19
+ }
20
+
21
+ div.milestone div.milestone-summary {
22
+ }
23
+
24
+ div.milestone div.milestone-description {
25
+ padding-left: 20px;
26
+ }
27
+
28
+ div.milestone div.progress-info {
29
+ padding-left: 20px;
30
+ }
31
+
32
+ div.milestone div.progress-bar {
33
+ margin-top: 10px;
34
+ height: 20px;
35
+ width: 400px;
36
+ background-color: <%= copen %>;
37
+ }
38
+
39
+ div.milestone div.progress-indicator {
40
+ background-color: <%= cclosed %>;
41
+ height: 100%;
42
+ width: 0px;
43
+ }
44
+
45
+ div.milestone p.progress-text {
46
+ font-size: 60%;
47
+ }
48
+
49
+ div.milestone ul.assigned-tickets, div.milestone ul.sub-milestones {
50
+ display: none;
51
+ }
52
+
53
+ div.ticket table.tickets {
54
+ width: 100%;
55
+ }
56
+
57
+ div.ticket table.tickets tr {
58
+ background-color: <%= copen %>;
59
+ }
60
+
61
+ div.ticket table.tickets tr.header {
62
+ background-color: inherit;
63
+ }
64
+
65
+ div.ticket table.tickets tr.closed {
66
+ background-color: <%= cclosed %>;
67
+ }
68
+
69
+ div.ticket table.tickets div.ticket-description {
70
+ display: none;
71
+ }
@@ -0,0 +1,7 @@
1
+ function toogle( element ) {
2
+ if (document.getElementById(element).style.display == "block") {
3
+ document.getElementById(element).style.display = "none";
4
+ } else {
5
+ document.getElementById(element).style.display = "block";
6
+ }
7
+ }
@@ -0,0 +1,105 @@
1
+ --- content, html
2
+ <% sipttra = node.node_info[:sipttra] %>
3
+
4
+ <div class="sipttra">
5
+
6
+
7
+ <h1>Milestones</h1>
8
+
9
+ <% sipttra.milestones.each do |ms| %>
10
+
11
+ <div class="milestone">
12
+
13
+ <h2 class="milestone-name" id="ticket-<%= ms.name %>">Milestone: <span><%= ms.name %></span></h2>
14
+ <p class="milestone-info">
15
+ <% if ms.due_date %>Due on: <span class="date"><%= ms.due_date %></span><% else %>No due date<% end %>
16
+ <% if ms.belongs_to %> | <% end %>
17
+ <% if ms.belongs_to %>Belongs to milestone: <span class="belongs-to"><%= ms.belongs_to %></span><% end %>
18
+ </p>
19
+
20
+
21
+ <%
22
+ if ms.all_assigned_tickets.length > 0
23
+ closed = ms.all_assigned_tickets( :closed ).length
24
+ all = ms.all_assigned_tickets.length
25
+ percent = "%.2f" % (100 * closed.to_f / all)
26
+ %>
27
+ <div class="progress-info">
28
+ <div class="progress-bar">
29
+ <div class="progress-indicator" style="width: <%= percent %>%"></div>
30
+ </div>
31
+ <p class="progress-text"><%= closed %> out of <%= all %> tickets (= <%= percent %>%) closed (including tickets in sub milestones)</p>
32
+ </div>
33
+ <% end %>
34
+
35
+
36
+ <div class="milestone-summary"><%= CGI.escapeHTML(ms.summary) %></div>
37
+ <% if !ms.description.to_s.empty? %>
38
+ <p><b>Detailed description:</b></p>
39
+ <div class="milestone-description"><%= sipttra.htmlize(ms.description) %></div>
40
+ <% end %>
41
+
42
+ <% if ms.assigned_tickets.length > 0 %>
43
+ <p>Tickets directly assigned to milestone (<a href="javascript: toogle('assigned-tickets_<%= ms.name %>')">show/hide</a>):</p>
44
+ <ul id="assigned-tickets_<%= ms.name %>" class="assigned-tickets">
45
+ <% ms.assigned_tickets.each do |ticket| %>
46
+ <li>
47
+ <% if ticket.name.to_s.empty? %>
48
+ <a href='#category-<%= ticket.category.name %>'><%= CGI.escapeHTML(ticket.summary) %></a>
49
+ <% else %>
50
+ <a href='#ticket-<%= ticket.name %>'><%= ticket.name %>: <%= CGI.escapeHTML(ticket.summary) %></a>
51
+ <% end %>
52
+ <% if ticket.closed? %>(closed)<% end %>
53
+ </li>
54
+ <% end %>
55
+ </ul>
56
+ <% end %>
57
+
58
+
59
+ <% if ms.sub_milestones.length > 0 %>
60
+ <p>Sub milestones (<a href="javascript: toogle('sub-milestones-<%= ms.name %>')">show/hide</a>):</p>
61
+ <ul id="sub-milestones_<%= ms.name %>" class="sub-milestones">
62
+ <% ms.sub_milestones.each do |sms| %>
63
+ <li><a href='#ticket-<%= sms.name %>'><%= sms.name %></a> <% if sms.closed? %>(closed)<% end %></li>
64
+ <% end %>
65
+ </ul>
66
+ <% end %>
67
+
68
+ </div>
69
+
70
+ <% end %>
71
+
72
+
73
+ <h1>Tickets</h1>
74
+
75
+ <% sipttra.category_names.each do |cat_name| %>
76
+
77
+ <div class="ticket">
78
+
79
+ <h2 id="category-<%= cat_name %>">Category: <%= cat_name %></h2>
80
+
81
+ <table class='tickets'>
82
+ <tr class='header'><th>Name</th><th>Due&nbsp;Date</th><th>Belongs&nbsp;To</th><th>Text</th><th>Type</th></tr>
83
+
84
+ <% sipttra.tickets_for_category( cat_name ).each do |ticket| %>
85
+ <tr class='<%= ticket.category.type %>'>
86
+ <td class='name'<%= ticket.name ? ' id="ticket-' + ticket.name + '"' : '' %>><%= ticket.name %></td>
87
+ <td class='due_date'><%= ticket.due_date %></td>
88
+ <td class='belongs_to'><a href='#ticket-<%= ticket.belongs_to %>'><%= ticket.belongs_to %></a></td>
89
+ <td class='text'>
90
+ <% if !ticket.description.empty? %><span style="float:right">(<a href="javascript: toogle('ticket-description-<%= ticket.hash.abs %>')">details</a>)</span><% end %>
91
+ <%= CGI.escapeHTML(ticket.summary) %>
92
+ <% if !ticket.description.empty? %><div class="ticket-description" id="ticket-description-<%= ticket.hash.abs %>"><%= BlueCloth.new(ticket.description).to_html %></div><% end %>
93
+ </td>
94
+ <td class='type'><%= ticket.category.type %></td>
95
+ </tr>
96
+ <% end %>
97
+
98
+ </table>
99
+
100
+ </div>
101
+
102
+ <% end %>
103
+
104
+
105
+ </div>
@@ -6,5 +6,8 @@ description:
6
6
  author:
7
7
  Andreas Viklund (adapted for webgen by Thomas Leitner)
8
8
 
9
+ copyright:
10
+ http://andreasviklund.com/about/copyright/
11
+
9
12
  homepage:
10
13
  http://andreasviklund.com/templates
@@ -12,7 +12,7 @@ margin:0 auto;
12
12
  padding:0;
13
13
  }
14
14
 
15
- a{
15
+ a, #sidebar .webgen-menu span {
16
16
  text-decoration:none;
17
17
  color:#4088b8;
18
18
  font-weight:bold;
@@ -102,7 +102,7 @@ margin:0 0 4px 0;
102
102
  padding:0;
103
103
  }
104
104
 
105
- #sidebar li a{
105
+ #sidebar li a, #sidebar li span {
106
106
  font-size:1.2em;
107
107
  font-weight:bold;
108
108
  padding:2px;
@@ -114,7 +114,7 @@ line-height:1.2em;
114
114
  padding:0;
115
115
  }
116
116
 
117
- #sidebar ul ul li a{font-weight:normal;}
117
+ #sidebar ul ul li a, #sidebar ul ul li span {font-weight:normal;}
118
118
  #sidebar h2{margin:3px 0px 8px 0px;}
119
119
 
120
120
  /******** Content variations ********/
@@ -1,10 +1,13 @@
1
1
  description:
2
2
  Open source web design template by Andreas Viklund. Features a one-, two- or three-column
3
- interface in white and grey with many predefined styles for menus, tables, forms, ... Have
3
+ interface in white and grey with many predefined styles for menus, tables, forms, ... Have
4
4
  a look at the homepage to see the original template and what can be done with it.
5
5
 
6
6
  author:
7
7
  Andreas Viklund (adapted for webgen by Thomas Leitner)
8
8
 
9
+ copyright:
10
+ http://andreasviklund.com/about/copyright/
11
+
9
12
  homepage:
10
13
  http://andreasviklund.com/templates
@@ -43,11 +43,11 @@ list-style:none;width:150px;margin:0 0 20px 0;padding:0;
43
43
  margin-bottom:5px;
44
44
  }
45
45
 
46
- #avmenu li a {
46
+ #avmenu li a, #avmenu li span {
47
47
  font-weight:bold;height:20px;text-decoration:none;color:#505050;display:block;padding:6px 0 0 10px;background:#f4f4f4 url(images/menubg.gif) bottom left repeat-x;border-top:1px solid #d8d8d8;border-right:1px solid #d8d8d8;border-bottom:1px solid #d8d8d8;border-left:4px solid #cccccc;
48
48
  }
49
49
 
50
- #avmenu li a:hover, #avmenu li a.current, #avmenu li.webgen-menu-item-selected a {
50
+ #avmenu li a:hover, #avmenu li a.current, #avmenu li.webgen-menu-item-selected a, #avmenu li.webgen-menu-item-selected span {
51
51
  background:#eaeaea url(images/menubg2.gif) bottom left repeat-x;color:#505050;border-top:1px solid #b0b0b0;border-right:1px solid #b0b0b0;border-bottom:1px solid #b0b0b0;border-left:4px solid #505050;
52
52
  }
53
53
 
@@ -7,5 +7,8 @@ description:
7
7
  author:
8
8
  Andreas Viklund (adapted for webgen by Thomas Leitner)
9
9
 
10
+ copyright:
11
+ http://andreasviklund.com/about/copyright/
12
+
10
13
  homepage:
11
14
  http://andreasviklund.com/templates
@@ -124,7 +124,7 @@ line-height:1.4em;
124
124
  display:inline;
125
125
  }
126
126
 
127
- .webgen-menu ul li a {
127
+ .webgen-menu ul li a, .webgen-menu ul li span {
128
128
  background-color:#f4f4f4;
129
129
  color:#505050;
130
130
  font-weight:bold;
@@ -136,7 +136,7 @@ border-left:4px solid #cccccc;
136
136
  text-decoration:none;
137
137
  }
138
138
 
139
- .webgen-menu ul li a:hover, .webgen-menu ul li.webgen-menu-item-selected a {
139
+ .webgen-menu ul li a:hover, .webgen-menu ul li.webgen-menu-item-selected a, .webgen-menu ul li.webgen-menu-item-selected span {
140
140
  background-color:#eaeaea;
141
141
  border-left:4px solid #286ea0;
142
142
  color:#505050;
@@ -149,7 +149,7 @@ font-size:0.9em;
149
149
  width:125px;
150
150
  }
151
151
 
152
- .webgen-menu ul ul a {
152
+ .webgen-menu ul ul a, .webgen-menu ul ul span {
153
153
  padding:3px 1px 3px 5px;
154
154
  width:115px;
155
155
  }
@@ -1,5 +1,5 @@
1
1
  description:
2
- Open source web design template by Andreas Viklund. An accessible 2-column template in blue, grey
2
+ Open source web design template by Andreas Viklund. An accessible 2-column template in blue, grey
3
3
  and white which loads fast and works in all common browsers. Would be a good one for a blog!
4
4
  Have a look at the available styles in the CSS file and visit the homepage to see the original
5
5
  template and what can be done with it.
@@ -7,5 +7,8 @@ description:
7
7
  author:
8
8
  Andreas Viklund (adapted for webgen by Thomas Leitner)
9
9
 
10
+ copyright:
11
+ http://andreasviklund.com/about/copyright/
12
+
10
13
  homepage:
11
14
  http://andreasviklund.com/templates
@@ -129,7 +129,7 @@ margin: 0px;
129
129
  padding: 0px;
130
130
  }
131
131
 
132
- #sidebar .webgen-menu li a, .sidelink{
132
+ #sidebar .webgen-menu li a, #sidebar .webgen-menu li span, .sidelink{
133
133
  display:block;
134
134
  width:140px;
135
135
  margin:3px 10px 2px 0;
@@ -145,7 +145,7 @@ border-bottom:1px solid #bbb;
145
145
  border-left:1px solid #ddd;
146
146
  }
147
147
 
148
- #sidebar .webgen-menu li a:hover, .sidelink:hover, .menuheader {
148
+ #sidebar .webgen-menu li a:hover, #sidebar li.webgen-menu-item-selected a, #sidebar li.webgen-menu-item-selected span, .sidelink:hover, .menuheader {
149
149
  background:#fff url(images/gradient2.png) repeat-x;
150
150
  color:#222;
151
151
  border-top:1px solid #ddd;
@@ -8,5 +8,8 @@ description:
8
8
  author:
9
9
  Andreas Viklund (adapted for webgen by Thomas Leitner)
10
10
 
11
+ copyright:
12
+ http://andreasviklund.com/about/copyright/
13
+
11
14
  homepage:
12
15
  http://andreasviklund.com/templates
@@ -101,7 +101,7 @@ margin: 0px;
101
101
  padding: 0px;
102
102
  }
103
103
 
104
- #menu a {
104
+ #menu a, #menu span {
105
105
  margin:0;
106
106
  height:100px;
107
107
  padding:35px 6px 41px 6px;
@@ -111,7 +111,7 @@ letter-spacing:-1px;
111
111
  color: #888;
112
112
  }
113
113
 
114
- #menu a:hover {
114
+ #menu a:hover, #menu li.webgen-menu-item-selected span, #menu li.webgen-menu-item-selected a {
115
115
  color:#269;
116
116
  text-decoration:none;
117
117
  background: #fff url(images/menuhover.png) repeat-x;
@@ -7,5 +7,8 @@ description:
7
7
  author:
8
8
  Andreas Viklund (adapted for webgen by Thomas Leitner)
9
9
 
10
+ copyright:
11
+ http://andreasviklund.com/about/copyright/
12
+
10
13
  homepage:
11
14
  http://andreasviklund.com/templates
@@ -25,8 +25,8 @@ h2{font-size:1.6em; font-weight:normal; letter-spacing:-1px; margin:5px 0 10px;}
25
25
 
26
26
  /* Menu */
27
27
  #sidebar .webgen-menu ul {list-style-type: none; margin: 0px; padding: 0px;}
28
- #sidebar .webgen-menu a{border:1px solid #ffffff; color:#286ea0; display:block; font-size:1.1em; font-weight:bold; padding:4px 2px 4px 10px; width:110px;}
29
- #sidebar .webgen-menu a:hover{background-color:#f8f8f8; border:1px solid #dadada; color:#286ea0; text-decoration:none;}
28
+ #sidebar .webgen-menu a, #sidebar .webgen-menu span {border:1px solid #ffffff; color:#286ea0; display:block; font-size:1.1em; font-weight:bold; padding:4px 2px 4px 10px; width:110px;}
29
+ #sidebar .webgen-menu a:hover, #sidebar .webgen-menu-item-selected a, #sidebar .webgen-menu-item-selected span {background-color:#f8f8f8; border:1px solid #dadada; color:#286ea0; text-decoration:none;}
30
30
 
31
31
  /* Various classes */
32
32
  .credits{color:#888; font-size:0.9em; margin-bottom:0;}