kwiki-openpkg.pm 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. ##
  2. ## kwiki-openpkg.pm -- Kwiki OpenPKG Theme
  3. ##
  4. package Kwiki::Theme::OpenPKG;
  5. use strict;
  6. use warnings;
  7. use Kwiki::Theme '-Base';
  8. use mixin 'Kwiki::Installer';
  9. our $VERSION = '1.0';
  10. const theme_id => 'openpkg';
  11. const class_title => 'OpenPKG Wiki Theme';
  12. 1;
  13. __DATA__
  14. =head1 NAME
  15. Kwiki::Theme::OpenPKG - Kwiki OpenPKG Theme
  16. =head1 SYNOPSIS
  17. =head1 DESCRIPTION
  18. This is the Kwiki theme of the OpenPKG Wiki http://wiki.openpkg.org/
  19. =head1 AUTHOR
  20. Ralf S. Engelschall <rse@engelschall.com>
  21. =cut
  22. __theme/openpkg/template/tt2/kwiki_screen.html__
  23. [%- INCLUDE kwiki_doctype.html %]
  24. [% INCLUDE kwiki_begin.html %]
  25. <div>
  26. <table width=100%>
  27. <tr>
  28. <td align=left valign=bottom>
  29. <a href="http://www.openpkg.org/"><img src="http://www.openpkg.org/openpkg.gif" alt="OpenPKG" border="0"></a>
  30. </td>
  31. <td align=right valign=bottom>
  32. <table><tr><td>
  33. [% hub.widgets.html %]
  34. </td></tr></table>
  35. </td>
  36. </tr>
  37. </table>
  38. <p/>
  39. <table id="canvas">
  40. <tr>
  41. <td>
  42. <span class="title">
  43. OpenPKG Wiki: [% screen_title || self.class_title %]
  44. </span>
  45. <p/>
  46. <table id="toolbar">
  47. <tr>
  48. <td class="left">
  49. [% hub.toolbar.html %]
  50. </td>
  51. <td class="mid">
  52. </td>
  53. <td class="right">
  54. [% IF hub.have_plugin('user_name') %]
  55. [% INCLUDE user_name_title.html %]
  56. [% END %]
  57. </td>
  58. </tr>
  59. </table>
  60. <p/>
  61. <div id="content_pane">
  62. [% INCLUDE $content_pane %]
  63. </div>
  64. <p/>
  65. <div id="status_pane">
  66. [% hub.status.html %]
  67. </div>
  68. </td>
  69. </tr>
  70. </table>
  71. </div>
  72. [% INCLUDE kwiki_end.html -%]
  73. __theme/openpkg/css/kwiki.css__
  74. /* document canvas */
  75. html, body, body > div {
  76. width: 100%;
  77. height: auto;
  78. -moz-box-sizing: border-box;
  79. box-sizing: border-box;
  80. }
  81. body {
  82. background-color: #c0c0c0;
  83. color: #333333;
  84. margin: 0 0 0 0;
  85. padding: 0 0 0 0;
  86. border: 10px solid #c0c0c0;
  87. }
  88. body > div {
  89. background-color: #ffffff;
  90. background: url(http://www.openpkg.org/bg.jpg);
  91. border-top: 1px solid #000000;
  92. border-left: 1px solid #000000;
  93. border-right: 1px solid #000000;
  94. border-bottom: 1px solid #000000;
  95. padding: 20px 100px 60px 100px;
  96. font-family: serif,times,palatino,tahoma;
  97. }
  98. @media print {
  99. body {
  100. background-color: #ffffff;
  101. color: #000000;
  102. margin: 0 0 0 0;
  103. padding: 0 0 0 0;
  104. border: 0;
  105. }
  106. body > div {
  107. background-color: #ffffff;
  108. border: 0;
  109. padding: 20px 80px 20px 80px;
  110. }
  111. }
  112. h1,h2,h3,h4,h5,h6 {
  113. font-family: tahoma,helvetica,serif;
  114. margin: 0px;
  115. }
  116. h1 { font-size: 200%; }
  117. h2 { font-size: 180%; }
  118. h3 { font-size: 160%; }
  119. h4 { font-size: 140%; }
  120. h5 { font-size: 120%; }
  121. h6 { font-size: 100%; }
  122. #content_pane {
  123. font-family: sans-serif;
  124. }
  125. #canvas {
  126. width: 100%;
  127. }
  128. #toolbar {
  129. width: 100%;
  130. border: 1px solid #cccccc;
  131. padding: 0px 20px 0px 20px;
  132. font-family: sans-serif;
  133. }
  134. #toolbar td.mid {
  135. text-align: left;
  136. vertical-align: middle;
  137. }
  138. #toolbar td.right {
  139. text-align: right;
  140. }
  141. .title {
  142. font-weight: bold;
  143. font-family: tahoma,arial,sans-serif;
  144. font-size: 200%;
  145. }
  146. hr {
  147. color: #999999;
  148. background-color: #999999;
  149. border-style: none;
  150. height: 1px;
  151. width: 100%;
  152. }
  153. A { text-decoration: none; font-weight: bold; }
  154. A:link { text-decoration: none; font-weight: bold; color: #a09080; }
  155. A:visited { text-decoration: none; font-weight: bold; color: #a09080; }
  156. A:hover { text-decoration: none; font-weight: bold; color: #a09080; text-decoration: underline; }
  157. PRE.formatter_pre {
  158. background: none !important;
  159. border: 1px solid #cccccc;
  160. }
  161. /* style: Kwiki messages */
  162. .error, .empty {
  163. color: #cc3333;
  164. }
  165. /* style Kwiki::Search Button */
  166. form.search input {
  167. background: #ffffff;
  168. }
  169. /* style Kwiki::Display "Changed by..." */
  170. .changedby {
  171. color: #666666;
  172. border: 1px solid #cccccc;
  173. padding: 2px 20px 2px 20px;
  174. }
  175. /* style Kwiki::UserName text */
  176. div#user_name_title {
  177. float: none !important;
  178. }
  179. /* style Kwiki::Favorite */
  180. input.favorite {
  181. background: #f5f0e5;
  182. }
  183. /* style Kwiki::Diff */
  184. .diff-added {
  185. background: #bbbbee !important;
  186. }
  187. .diff-removed {
  188. background: #ff6666 !important;
  189. }
  190. .diff-unmodified {
  191. background: inherit;
  192. }
  193. .diff-changed {
  194. background: #e5e0d5 !important;
  195. }
  196. table.diff {
  197. border: 1px solid #cccccc !important;
  198. }
  199. table th {
  200. border-bottom: 1px solid #cccccc !important;
  201. }
  202. th.lhs, td.lhs {
  203. padding-left: 1em;
  204. padding-right: 1em;
  205. }
  206. th.rhs, td.rhs {
  207. padding-left: 1em;
  208. padding-right: 1em;
  209. border-left: 1px solid #cccccc !important;
  210. }
  211. /* style Kwiki::VimColor */
  212. pre.vim {
  213. padding: 10px 10px 10px 10px !important;
  214. border: 1px solid #e0e0e0 !important;
  215. }
  216. .synComment { color: #6666cc !important; }
  217. .synConstant { color: #cc3333 !important; }
  218. .synIdentifier { color: #000000 !important; }
  219. .synStatement { color: #333333 !important; font-weight: bold !important; }
  220. .synPreProc { color: #cc3333 !important; }
  221. .synType { color: #333333 !important; font-weight: bold !important; }
  222. .synSpecial { color: #cc3333 !important; }
  223. .synUnderlined { color: #000000 !important; text-decoration: underline !important; }
  224. .synError { color: #ffffff !important; background: #cc3333 none !important; }
  225. .synTodo { color: #ffffff !important; background: #cc3333 none !important; }