kwiki-openpkg.pm 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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. <img src="http://www.openpkg.org/openpkg.gif" alt="OpenPKG">
  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. height: 100%;
  81. }
  82. body {
  83. background-color: #c0c0c0;
  84. color: #333333;
  85. margin: 0 0 0 0;
  86. padding: 0 0 0 0;
  87. border: 10px solid #c0c0c0;
  88. height: 100%;
  89. }
  90. body > div {
  91. background-color: #ffffff;
  92. background: url(http://www.openpkg.org/bg.jpg);
  93. border-top: 1px solid #000000;
  94. border-left: 1px solid #000000;
  95. border-right: 1px solid #000000;
  96. border-bottom: 1px solid #000000;
  97. padding: 20px 100px 60px 100px;
  98. font-family: serif,times,palatino,tahoma;
  99. height: 100%;
  100. }
  101. @media print {
  102. body {
  103. background-color: #ffffff;
  104. color: #000000;
  105. margin: 0 0 0 0;
  106. padding: 0 0 0 0;
  107. border: 0;
  108. }
  109. body > div {
  110. background-color: #ffffff;
  111. border: 0;
  112. padding: 20px 80px 20px 80px;
  113. }
  114. }
  115. h1,h2,h3,h4,h5,h6 {
  116. font-family: tahoma,helvetica,serif;
  117. margin: 0px;
  118. }
  119. h1 { font-size: 200%; }
  120. h2 { font-size: 180%; }
  121. h3 { font-size: 160%; }
  122. h4 { font-size: 140%; }
  123. h5 { font-size: 120%; }
  124. h6 { font-size: 100%; }
  125. #content_pane {
  126. font-family: sans-serif;
  127. }
  128. #canvas {
  129. width: 100%;
  130. }
  131. #toolbar {
  132. width: 100%;
  133. border: 1px solid #cccccc;
  134. padding: 0px 20px 0px 20px;
  135. font-family: sans-serif;
  136. }
  137. #toolbar td.mid {
  138. text-align: left;
  139. vertical-align: middle;
  140. }
  141. #toolbar td.right {
  142. text-align: right;
  143. }
  144. .title {
  145. font-weight: bold;
  146. font-family: tahoma,arial,sans-serif;
  147. font-size: 200%;
  148. }
  149. hr {
  150. color: #999999;
  151. background-color: #999999;
  152. border-style: none;
  153. height: 1px;
  154. width: 100%;
  155. }
  156. A { text-decoration: none; font-weight: bold; }
  157. A:link { text-decoration: none; font-weight: bold; color: #a09080; }
  158. A:visited { text-decoration: none; font-weight: bold; color: #a09080; }
  159. A:hover { text-decoration: none; font-weight: bold; color: #a09080; text-decoration: underline; }
  160. PRE.formatter_pre {
  161. background: none !important;
  162. border: 1px solid #cccccc;
  163. }
  164. /* style: Kwiki messages */
  165. .error, .empty {
  166. color: #cc3333;
  167. }
  168. /* style Kwiki::Search Button */
  169. form.search input {
  170. background: #ffffff;
  171. }
  172. /* style Kwiki::Display "Changed by..." */
  173. .changedby {
  174. color: #666666;
  175. border: 1px solid #cccccc;
  176. padding: 2px 20px 2px 20px;
  177. }
  178. /* style Kwiki::UserName text */
  179. div#user_name_title {
  180. float: none !important;
  181. }
  182. /* style Kwiki::Favorite */
  183. input.favorite {
  184. background: #f5f0e5;
  185. }
  186. /* style Kwiki::Diff */
  187. .diff-added {
  188. background: #bbbbee !important;
  189. }
  190. .diff-removed {
  191. background: #ff6666 !important;
  192. }
  193. .diff-unmodified {
  194. background: inherit;
  195. }
  196. .diff-changed {
  197. background: #e5e0d5 !important;
  198. }
  199. table.diff {
  200. border: 1px solid #cccccc !important;
  201. }
  202. table th {
  203. border-bottom: 1px solid #cccccc !important;
  204. }
  205. th.lhs, td.lhs {
  206. padding-left: 1em;
  207. padding-right: 1em;
  208. }
  209. th.rhs, td.rhs {
  210. padding-left: 1em;
  211. padding-right: 1em;
  212. border-left: 1px solid #cccccc !important;
  213. }