Mercurial > moin-dev
changeset 0:4d8c01a28dd0
Initial import
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/common.css Wed May 14 10:21:39 2008 +0200 @@ -0,0 +1,250 @@ +/* common.css - MoinMoin Default Styles + +Copyright (c) 2001, 2002, 2003 by Juergen Hermann +*/ + +html, body { + font-size: medium; +} +a.www:before {content: url(../img/moin-www.png); margin: 0 0.2em;} +a.http:before {content: url(../img/moin-www.png); margin: 0 0.2em;} +a.https:before {content: url(../img/moin-www.png); margin: 0 0.2em;} +a.file:before {content: url(../img/moin-ftp.png); margin: 0 0.2em;} +a.ftp:before {content: url(../img/moin-ftp.png); margin: 0 0.2em;} +a.nntp:before {content: url(../img/moin-news.png); margin: 0 0.2em;} +a.news:before {content: url(../img/moin-news.png); margin: 0 0.2em;} +a.telnet:before {content: url(../img/moin-telnet.png); margin: 0 0.2em;} +a.irc:before {content: url(../img/moin-telnet.png); margin: 0 0.2em;} +a.mailto:before {content: url(../img/moin-email.png); margin: 0 0.2em;} +a.attachment:before {content: url(../img/moin-attach.png); margin: 0 0.2em;} +a.badinterwiki:before {content: url(../img/moin-inter.png); margin: 0 0.2em;} +a.interwiki:before {content: url(../img/moin-inter.png); margin: 0 0.2em;} + +blockquote { + clear: both; + margin: 0.25em 1.5em; +} + +/* Headings */ + +li p { + margin: .25em 0; +} + +ul li { + list-style: square outside; + margin: 0; + padding: 0; +} +ul, ol { + margin: 0.25em 0; + padding: 0 0 0 1em; +} +li.gap { margin-top: 0.5em; } + +a img, a img.drawing { border: none; } +dt { font-weight: bold; } + +pre { + clear: both; + padding: 0.5em; + font-family: monospace; + font-weight: normal; + font-size: medium; + white-space: pre; + /* begin css 3 or browser specific rules - do not remove! Forcing long lines to wrap. + see: http://forums.techguy.org/archive/index.php/t-249849.html */ + white-space: pre-wrap; + word-wrap: break-word; + white-space: -moz-pre-wrap; + white-space: -pre-wrap; + white-space: -o-pre-wrap; + /* end css 3 or browser specific rules */ +} + +table { + margin: 0.5em 0 0 0.5em; + border-collapse: collapse; + clear: both; +} + +td { + padding: 0.25em 0.5em 0.25em 0.5em; + border: 1px solid #666; +} + +td p { + margin: 0; + padding: 0; +} + +/* standard rule ---- */ +hr { + clear: both; + height: 0.18ex; + background: #790; + color: #790; + border: none; + margin: 0.5em auto; +} + +/* custom rules ----- to ---------- */ +.hr1 {height: 3px;} +.hr2 {height: 4px;} +.hr3 {height: 5px;} +.hr4 {height: 6px;} +.hr5 {height: 7px;} +.hr6 {height: 8px;} + +/* Replacement for html 3 u tag */ +.u {text-decoration: underline;} + +.footnotes ul { + padding: 0 2em; + margin: 0 0 1em; + list-style: none; +} + +.footnotes li { +} + + +/* eye catchers */ +.warning, .error { color: red; } + +strong.highlight +{ + background-color: #f0ffbb; + padding: 0 0.2em; + font-style: normal; + font-weight: bold; + font-variant: normal; +} + + +/* Recent changes */ + +div.recentchanges table { + border: 1px solid #e5e5e5; +} + +.recentchanges p { + margin: 0.25em; +} + +.recentchanges td { + border: none; + border-top: 1px solid #e5e5e5; + vertical-align: top; +} + +.rcdaybreak { + background-color: #f5f5f5; +} + +.rcdaybreak td a { + font-size: small; + border: none; +} + +.rcicon1, .rcicon2 { + text-align: center; +} + +.rcicon1 a, .rcicon2 a { + border: none !important; +} + +.rcpagelink { + width: 40%; +} + +.rctime { + font-size: small; + white-space: nowrap; +} + +.rceditor { + white-space: nowrap; + font-size: small; +} + +.recentchanges td.rccomment { + border-top: 1px dashed #e5e5e5; + background-color: #f5f5f5; + font-size: small; + font-family: Verdana, sans-serif; +} + +.rcrss { + float: right; +} +.rcrss a { + border: none !important; +} + +.recentchanges[dir="rtl"] .rcrss { + float: left; +} + +/* User Preferences */ + +.userpref table, .userpref td { + border: none; +} + +/* CSS for new code_area markup used by Colorizer and ParserBase */ + +div.codearea { /* the div makes the border */ + margin: 0.5em 0; + padding: 0; +/* background-color: #F3F5F7; + border: 1px dashed #ccc;*/ + color: black; + clear: both; +} + +div.codearea pre { /* the pre has no border and is inside the div */ + margin: 0; + padding: 0.5em; + border: none; + clear: none; +} + +a.codenumbers { /* format of the line numbering link */ + margin: 0 10pt; + font-size: 0.85em; + color: gray; +} + +/* format of certain syntax spans */ +div.codearea pre span.LineNumber {color: gray;} +div.codearea pre span.ID {color: #000000;} +div.codearea pre span.Operator {color: #0000C0;} +div.codearea pre span.Char {color: #004080; font-style: oblique;} +div.codearea pre span.Comment {color: #008000; font-style: oblique;} +div.codearea pre span.Number {color: #0080C0; font-style: oblique;} +div.codearea pre span.String {color: #004080; font-style: oblique;} +div.codearea pre span.SPChar {color: #0000C0;} +div.codearea pre span.ResWord {color: #A00000; font-weight: bold; } +div.codearea pre span.ConsWord {color: #008080; font-weight: bold;} +div.codearea pre span.Error {background: transparent url(../img/err.gif) repeat-x bottom center;} +div.codearea pre span.ResWord2 {color: #0080ff; font-weight: bold; font-style: oblique;} +div.codearea pre span.Special {color: #0000ff;} +div.codearea pre span.Preprc {color: #803999;} + + +/* Page info */ +#pageinfo { font-size: small; text-align: right; font-style: italic; display: block; float: right; } + +span.anchor { position: absolute; } + +/* Content Figures + +Default figure float to the end of the page. Left of right classes float to the left or right :-) +*/ +#content .figure { float: right; margin: 0 0 0 20px; padding: 0; font-size: 0.85em; clear: both;} +#content[dir="rtl"] .figure {float: left; margin: 0 20px 0 0;} +#content .figure.left {float: left; margin: 0 20px 0 0;} +#content .figure.right {float: right; margin: 0 0 0 20px;} +#content .figure p {margin: 0; text-align: center; font-weight: bold;}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/common.css~ Wed May 14 10:21:39 2008 +0200 @@ -0,0 +1,250 @@ +/* common.css - MoinMoin Default Styles + +Copyright (c) 2001, 2002, 2003 by Juergen Hermann +*/ + +html, body { + font-size: medium; +} +a.www:before {content: url(../img/moin-www.png); margin: 0 0.2em;} +a.http:before {content: url(../img/moin-www.png); margin: 0 0.2em;} +a.https:before {content: url(../img/moin-www.png); margin: 0 0.2em;} +a.file:before {content: url(../img/moin-ftp.png); margin: 0 0.2em;} +a.ftp:before {content: url(../img/moin-ftp.png); margin: 0 0.2em;} +a.nntp:before {content: url(../img/moin-news.png); margin: 0 0.2em;} +a.news:before {content: url(../img/moin-news.png); margin: 0 0.2em;} +a.telnet:before {content: url(../img/moin-telnet.png); margin: 0 0.2em;} +a.irc:before {content: url(../img/moin-telnet.png); margin: 0 0.2em;} +a.mailto:before {content: url(../img/moin-email.png); margin: 0 0.2em;} +a.attachment:before {content: url(../img/moin-attach.png); margin: 0 0.2em;} +a.badinterwiki:before {content: url(../img/moin-inter.png); margin: 0 0.2em;} +a.interwiki:before {content: url(../img/moin-inter.png); margin: 0 0.2em;} + +blockquote { + clear: both; + margin: 0.25em 1.5em; +} + +/* Headings */ + +li p { + margin: .25em 0; +} + +ul li { + list-style: square outside; + margin: 0; + padding: 0; +} +ul, ol { + margin: 0.25em 0; + padding: 0 0 0 1em; +} +li.gap { margin-top: 0.5em; } + +a img, a img.drawing { border: none; } +dt { font-weight: bold; } + +pre { + clear: both; + padding: 0.5em; + font-family: monospace; + font-weight: normal; + font-size: medium; + white-space: pre; + /* begin css 3 or browser specific rules - do not remove! Forcing long lines to wrap. + see: http://forums.techguy.org/archive/index.php/t-249849.html */ + white-space: pre-wrap; + word-wrap: break-word; + white-space: -moz-pre-wrap; + white-space: -pre-wrap; + white-space: -o-pre-wrap; + /* end css 3 or browser specific rules */ +} + +table { + margin: 0.5em 0 0 0.5em; + border-collapse: collapse; + clear: both; +} + +td { + padding: 0.25em 0.5em 0.25em 0.5em; + border: 1px solid #666; +} + +td p { + margin: 0; + padding: 0; +} + +/* standard rule ---- */ +hr { + clear: both; + height: 0.18ex; + background: #790; + color: #790; + border: none; + margin: 0.5em auto; +} + +/* custom rules ----- to ---------- */ +.hr1 {height: 3px;} +.hr2 {height: 4px;} +.hr3 {height: 5px;} +.hr4 {height: 6px;} +.hr5 {height: 7px;} +.hr6 {height: 8px;} + +/* Replacement for html 3 u tag */ +.u {text-decoration: underline;} + +.footnotes ul { + padding: 0 2em; + margin: 0 0 1em; + list-style: none; +} + +.footnotes li { +} + + +/* eye catchers */ +.warning, .error { color: red; } + +strong.highlight +{ + background-color: #f0ffbb; + padding: 0 0.2em; + font-style: normal; + font-weight: bold; + font-variant: normal; +} + + +/* Recent changes */ + +div.recentchanges table { + border: 1px solid #e5e5e5; +} + +.recentchanges p { + margin: 0.25em; +} + +.recentchanges td { + border: none; + border-top: 1px solid #e5e5e5; + vertical-align: top; +} + +.rcdaybreak { + background-color: #f5f5f5; +} + +.rcdaybreak td a { + font-size: small; + border: none; +} + +.rcicon1, .rcicon2 { + text-align: center; +} + +.rcicon1 a, .rcicon2 a { + border: none !important; +} + +.rcpagelink { + width: 40%; +} + +.rctime { + font-size: small; + white-space: nowrap; +} + +.rceditor { + white-space: nowrap; + font-size: small; +} + +.recentchanges td.rccomment { + border-top: 1px dashed #e5e5e5; + background-color: #f5f5f5; + font-size: small; + font-family: Verdana, sans-serif; +} + +.rcrss { + float: right; +} +.rcrss a { + border: none !important; +} + +.recentchanges[dir="rtl"] .rcrss { + float: left; +} + +/* User Preferences */ + +.userpref table, .userpref td { + border: none; +} + +/* CSS for new code_area markup used by Colorizer and ParserBase */ + +div.codearea { /* the div makes the border */ + margin: 0.5em 0; + padding: 0; +/* background-color: #F3F5F7; + border: 1px dashed #ccc;*/ + color: black; + clear: both; +} + +div.codearea pre { /* the pre has no border and is inside the div */ + margin: 0; + padding: 0.5em; + border: none; + clear: none; +} + +a.codenumbers { /* format of the line numbering link */ + margin: 0 10pt; + font-size: 0.85em; + color: gray; +} + +/* format of certain syntax spans */ +div.codearea pre span.LineNumber {color: gray;} +div.codearea pre span.ID {color: #000000;} +div.codearea pre span.Operator {color: #0000C0;} +div.codearea pre span.Char {color: #004080; font-style: oblique;} +div.codearea pre span.Comment {color: #008000; font-style: oblique;} +div.codearea pre span.Number {color: #0080C0; font-style: oblique;} +div.codearea pre span.String {color: #004080; font-style: oblique;} +div.codearea pre span.SPChar {color: #0000C0;} +div.codearea pre span.ResWord {color: #A00000; font-weight: bold; } +div.codearea pre span.ConsWord {color: #008080; font-weight: bold;} +div.codearea pre span.Error {background: transparent url(../img/err.gif) repeat-x bottom center;} +div.codearea pre span.ResWord2 {color: #0080ff; font-weight: bold; font-style: oblique;} +div.codearea pre span.Special {color: #0000ff;} +div.codearea pre span.Preprc {color: #803999;} + + +/* Page info */ +#pageinfo { font-size: small; text-align: right; font-style: italic; display: block; float: right; } + +span.anchor { position: absolute; } + +/* Content Figures + +Default figure float to the end of the page. Left of right classes float to the left or right :-) +*/ +#content .figure { float: right; margin: 0 0 0 20px; padding: 0; font-size: 0.85em; clear: both;} +#content[dir="rtl"] .figure {float: left; margin: 0 20px 0 0;} +#content .figure.left {float: left; margin: 0 20px 0 0;} +#content .figure.right {float: right; margin: 0 0 0 20px;} +#content .figure p {margin: 0; text-align: center; font-weight: bold;}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/print.css Wed May 14 10:21:39 2008 +0200 @@ -0,0 +1,84 @@ +/* print.css - MoinMoin Default Styles + +Copyright (c) 2001, 2002, 2003 by Juergen Hermann +*/ + +/* content styles */ + +html { + font-family: Times, serif; + font-size: 12pt; +} + +body { + /* Give about 3.4cm in Mozilla/Firefox and about 2.2cm in Safari */ + margin: 1.5cm; +} + +a, a:visited, a.nonexistent, a.badinterwiki { + color: black; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +pre { + font-size: 10pt; +} + +a.interwiki:before, a.badinterwiki:before { + content: attr(title) ":"; +} + +a.interwiki img, a.badinterwiki img { + display: none; +} + +.footnotes div { + width: 5em; + border-top: 1pt solid gray; +} + +/* user interface styles */ + +#header, #sidebar, #footer, #timings, #credits, #interwiki, #pagelocation { + display: none; +} + +#interwiki { + float: left; + margin: 0; + padding: 0; + font-size: 0.4em; + display: none; +} + +*[dir="rtl"] #interwiki { + float: right; +} + +#interwiki span:after { + content: ": "; +} + +#pagelocation { + clear: right; + display: block; + margin: 0; + padding: 0; + font-size: 0.4em; + display: none; +} + +*[dir="rtl"] #pagelocation { + clear: left; +} + +#pagelocation li { + display: inline; + padding: 0 0.3em; + margin: 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/projection.css Wed May 14 10:21:39 2008 +0200 @@ -0,0 +1,27 @@ +/* projection.css - MoinMoin Slide Styles + +Copyright (c) 2003 by Juergen Hermann +*/ + +@import url(screen.css); + +html { line-height: 1.8em; } + +body, b, em, a, span, div, p, td { font-size: 22pt; } + +h1 { font-size: 28pt; } +h2 { font-size: 24pt; } +h3 { font-size: 22pt; } +h4 { font-size: 20pt; } +h5 { font-size: 18pt; } +h6 { font-size: 16pt; } + +tt,pre { font-size: 18pt; } +sup, sub { font-size: 14pt; } + +.navigation { + font-size: 16pt; + padding-top: 8pt; + padding-bottom: 8pt; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/screen-old.css Wed May 14 10:21:39 2008 +0200 @@ -0,0 +1,106 @@ +@import url(acm.css) +/* Formatting of the content */ + +body { color: #000; background: #fff; } + +a { color: #d00; text-decoration: none; } +a.nonexistent, a.badinterwiki { color: #e80; } +a:visited { color: #d66; } +a:visited:hover, a:hover { color: #fff; background: #000; } + +h1, h2, h3, h4, h5, h6 { color: #666; } +#pagelocation { + color: #666; + font-size: xx-large; + margin: 0.25em 0 0 0; + font-weight: bold; +} + +#header, #page, #footer { + margin: 1em 2em; + border-bottom: 0.25em solid black; +/* width: 40em; + margin: 1em auto; */ +} + +.clear { + height: 0; + clear: both; +} + +#logo { display:block; float: right; padding: 0.25ex; } +#logo img { + vertical-align: middle; + border: none; + display: block; +} +#logo a { + color: black; + text-decoration: none; + white-space: nowrap; + border: none; + display: block; + margin: 0; + padding: 0; +} +#logo a:hover { + background: none; +} + + +#username form { display: inline; } +#username { margin: 0.25em 0; } + +#message, pre { + background: #eee; + padding: 0.25em; + margin: 1em 0; +} +#message .buttons { text-align: right; } + +#footer { + background: #eee; + padding: 0.25em; + margin-top: 0; +} +#footer a { white-space: nowrap; } +#footer p { text-align: left; } +#page { margin-bottom: 0; } + +.editbar { display: inline; padding: 0; margin: 0;} +.editbar li { display: inline; padding: 0; margin: 0;} + +/* Get rid of those stupid lists... */ +#pagetrail, #navibar, .editbar { display: inline; padding: 0; margin: 0; } +#iconbar li, #pagetrail li, #navibar li { display: inline; padding: 0; margin: 0; } +#navibar li { padding: 0 1ex 0 0; } +#iconbar { display block; float: right; width: 118px; } +#iconbar a:hover { background: none; } +#pagetrail li:after { content: " ยป "; } +#pagetrail li:last-child { font-weight: bold; } +#pagetrail li:last-child:after { content: ""; } +/*#pagetrail, #navibar { font-size: small; } */ +#navibar span a { padding: 0 0.25ex; } +#navibar .current { font-weight: bold; } +#navibar .userlink { font-style: italic; } + +.codenumbers { + display: block; + float: right; + font-size: small; +} + +abbr { cursor: help; } + +img { border: none; } + +textarea { + display: block; + width: 100%; +} + +#editor-help { + font-size: x-small; + font-family: monospace; + color: #666; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/screen.css Wed May 14 10:21:39 2008 +0200 @@ -0,0 +1,304 @@ +body, html { + margin: 0; + padding: 0; +} + +body { + font-family: "DejaVu Sans", "Verdana", sans-serif; + background: #8ea33a url(back.png) repeat top left; +} + +.cont1 { + margin: 0 auto; + padding: 0; + background: #8ea33a url(lshadow.png) repeat-y top left; + position: absolute; + left: 50%; + margin-left: -25em; +} + +.cont2 { + background: url(rshadow.png) repeat-y top right #8ea33a; + margin: 0; + padding: 0; + padding-right: 32px; + margin-left: 32px; +} + +.cont3 { + margin: 0; + padding: 0; + border-left: 1px solid #444; + border-right: 1px solid #444; + background: #fff; + width: 45em; + overflow: hidden; +} + +.bar { + background: #bc8; + color: #000; + border: none; + border-bottom: 1px solid #790; + border-top: 1px solid #790; + padding: 0.5em; +} + +.menu { + float: right; + overflow: hidden; + margin: 0; + background: #efb url(fade.png) bottom left repeat-x; + padding: 0 0.5em; + padding-bottom: 64px; + color: #790; + width: 9em; + margin-left: -10em; + margin-right: -1px; + position: relative; +} + + +.menu h1 { + font: inherit; + font-size: 1em; + margin: 0; + padding: 0; + color: #000; + margin-top: 1em; +} + +.menu ul { + display: block; + margin: 0 1ex; + padding: 0; +} + +.menu li { + list-style: none; + display: block; + margin: 0.25ex 0; + padding: 0; +} + +.menu li.current { + font-weight: bold; + text-decoration: inherit; +} + +.menu a, .menu a:link { + display: block; + color: #570; + font: inherit; + text-decoration: inherit; +} + +.menu a:visited { + color: #8a2; +} + +.menu a:hover, .menu a:link:hover, .menu a:visited:hover { + color: #000; + background: #de9; + text-decoration: inherit; +} + +* html .menu a { + display: inline; +} + +.menu a.status { + font-size: smaller; + padding-left: 1ex; +} +.menu .date { + font-style: italic; + font-size: smaller; + padding-left: 1ex; +} + +.ranking { + font-size: smaller; +} + +.footer { + clear: both; + background: #bc8; + padding: 0; + padding-bottom: 1em; + border-top: 1px solid #790; + margin: 0; + position: relative; + width: 100%; + background: #1f6a1a url(straw.png) repeat bottom right; + color: #fff; +} + + +.header { + height: 128px; + background: #1f6a1a url(straw.png) repeat top left; + color: #fff; +} + +.wynik { + color: #666; + margin: 1em 0; + border-top: 2px dashed #ddd; +} + +#rozwform, #przyklad { + margin: 0 -1em; + padding: 1em; + background: #fafff0 url(bshadow.png) bottom left repeat-x; + color: #563; + border-top: 1px solid #cda; +} + +.content { + border-left: 1px solid #444; + position: relative; + right: 1px; + float: left; + padding: 0; + color: #444; + background: #fff url(bshadow.png) top left repeat-x; + overflow: hidden; + width: 35em; + margin-right: -1px; +} + + + +#page { margin: 0; padding: 0; } + +#content { + border-right: 1px solid #cda; + padding: 1em; + min-height: 36em; +} +* html #content { height: 36em; } + +#content p { + margin: 0.4em 0; + padding: 0; + text-align: justify; +} + +.content h1, +.content h2, +.content h3, +.content h4 { + font: inherit; + color: #790; + margin: 0.25em 0; + margin-top: 1em; + padding: 0; +} + +.content h1 { font-size: 1.8em; font-weight: normal; } +.content h2 { font-size: 1.4em; font-weight: normal; } +.content h3 { font-size: 1em; font-weight: normal; } + +/* MoinMoin stuff */ + + +#credits { display: block; text-align: center; font-size: small; } +#credits li { display: inline; padding: 0 0.5ex; } + +#username li { display: inline; margin: 0.5em; } +#username form { display: inline; } +#username { display: block; margin: 0.125em 0; text-align: right; font-size: small; } +#username input { display: inline; background: transparent; border: none; font-family: inherit; color: #fff; cursor: pointer; font-size: inherit; padding: 0; } +#username input:hover { text-decoration: underline; } + +a { color: #fa0; text-decoration: none; } +a.nonexistent, a.badinterwiki { color: #a94; } +a:visited { color: #d80; } +a:visited:hover, a:hover { text-decoration: underline; } + +.footer a { color:#fff; } + +#pagetrail, .editbar { display: inline; padding: 0; margin: 0; } + +#iconbar li, #iconbar li a, #pagetrail li { display: inline; padding: 0; margin: 0; } +#iconbar { display: block; float: right; margin: 8px; position: absolute; top:0; right: 0; background: #fff; } +#iconbar a:hover { background: none; } + +#pagetrail li:after { content: " ยป "; } +* html #pagetrail li { margin-right: 1ex; } +#pagetrail li:last-child { font-weight: bold; } +#pagetrail li:last-child:after { content: ""; } +#pagetrail { font-size: small; } +.bar a, #pagetrail li a { color: #790; } + +.codenumbers { + display: block; + float: right; + font-size: small; +} + +#searchform { + margin: 0.5em auto; + padding: 0; +} + +#searchform input { + width: 3.5em; + margin: 0; + padding: 0; +} + +#searchform input#searchinput { + border: 1px solid #790; + background: #fff; + color: #000; + margin: 0.25em 0; + width: 8em; + cursor: text; + display: block; +} + +.menu select { + border: 1px solid #790; + margin: 0.5em 0; + font-size: small; + width: 8em; + color: #790; +} +.menu label { + font-size: small; +} + +.editor { + background-color: #bc8; + width: 100%; +} + +.editor textarea { + display: block; + width: 90%; + margin: 0.5em auto; +} + +span.anchor { position: absolute; } + +#logo { + padding: 16px; +} + +#logo img { + vertical-align: bottom; +} + +#logo a { + color: #fff; + font-size: 32px; + font-weight: bold; + text-decoration: none; + font-family: verdana, sans-serif; +} + +#content #content { border: none; padding: 0; margin: 0; min-height: 32em; } + +#content li p { text-align: left; }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/screen.css~ Wed May 14 10:21:39 2008 +0200 @@ -0,0 +1,276 @@ +body, html { + margin: 0; + padding: 0; +} + +body { + font-family: "DejaVu Sans", "Verdana", sans-serif; + background: #8ea33a url(back.png) repeat top left; +} + +.cont1 { + margin: 0 auto; + padding: 0; + background: #fff url(lshadow.png) repeat-y top left; + position: absolute; + left: 50%; + margin-left: -25em; +} + +.cont2 { + background: url(rshadow.png) repeat-y top right #fff; + margin: 0; + padding: 0; + padding-right: 32px; + margin-left: 32px; +} + +.cont3 { + margin: 0; + padding: 0; + border-left: 1px solid #444; + border-right: 1px solid #444; + background: #fff; + width: 45em; +} + +.bar { + background: #bc8; + color: #000; + border: none; + border-bottom: 1px solid #790; + border-top: 1px solid #790; + padding: 0.5em; +} + +.menu { + float: right; + overflow: hidden; + margin: 0; + background: #efb url(fade.png) bottom left repeat-x; + padding: 0 0.5em; + padding-bottom: 64px; + color: #790; + width: 9em; + margin-left: -10em; + margin-right: -1px; +} + + +.menu h1 { + font: inherit; + font-size: 1em; + margin: 0; + padding: 0; + color: #790; + margin-top: 1em; +} + +.menu ul { + display: block; + margin: 0 1ex; + padding: 0; +} + +.menu li { + list-style: none; + display: block; + margin: 0.25ex 0; + padding: 0; +} + +.menu li.current { + font-weight: bold; +} + +.menu a { + display: block; + color: #fa0; + font: inherit; + text-decoration: inherit; +} + +.menu a:hover { + color: #000; + background: #de9; +} +.menu a.status { + font-size: smaller; + padding-left: 1ex; +} +.menu .date { + font-style: italic; + font-size: smaller; + padding-left: 1ex; +} + +.ranking { + font-size: smaller; +} + +.footer { + clear: both; + background: #bc8; + padding: 0.125em; + border-top: 1px solid #790; + margin: 0; +} + +.header { + height: 128px; + background: #efb url(leaves.png) repeat center center; +} + +.wynik { + color: #666; + margin: 1em 0; + border-top: 2px dashed #ddd; +} + +#rozwform, #przyklad { + margin: 0 -1em; + padding: 1em; + background: #fafff0 url(bshadow.png) bottom left repeat-x; + color: #563; + border-top: 1px solid #cda; +} + +.content { + position: relative; + right: 1px; + float: left; + padding: 0; + color: #444; + background: #fff url(bshadow.png) top left repeat-x; + overflow: hidden; + width: 35em; + margin-right: 10em; +} + + + +#page { margin: 0; padding: 0; } + +#content { + border-right: 1px solid #cda; + padding: 1em; +} +* html #content { height: 36em; } + +#content p { + margin: 0.4em 0; + padding: 0; + text-align: justify; +} + +.content h1, +.content h2, +.content h3, +.content h4 { + font: inherit; + color: #790; + margin: 0.25em 0; + margin-top: 1em; + padding: 0; +} + +.content h1 { font-size: 1.8em;} +.content h2 { font-size: 1.4em;} +.content h3 { font-size: 1em;} + +/* MoinMoin stuff */ + + +#credits { display: block; text-align: center; font-size: small; } +#credits li { display: inline; padding: 0 0.5ex; } + +#username li { display: inline; margin: 0.5em; } +#username form { display: inline; } +#username { display: block; margin: 0.125em 0; text-align: right; font-size: small; } +#username input { display: inline; background: transparent; border: none; font-family: inherit; color: #790; cursor: pointer; font-size: inherit; padding: 0; } +#username input:hover { text-decoration: underline; } + +a { color: #fa0; text-decoration: none; } +a.nonexistent, a.badinterwiki { color: #a94; } +a:visited { color: #d80; } +a:visited:hover, a:hover { text-decoration: underline; } + +#pagetrail, .editbar { display: inline; padding: 0; margin: 0; } +#iconbar li, #iconbar li a, #pagetrail li { display: inline; padding: 0; margin: 0; } +#iconbar { display: block; float: right; margin: 8px; } +#iconbar a:hover { background: none; } +#pagetrail li:after { content: " ยป "; } +* html #pagetrail li { margin-right: 1ex; } +#pagetrail li:last-child { font-weight: bold; } +#pagetrail li:last-child:after { content: ""; } +#pagetrail { font-size: small; } +.bar a, #pagetrail li a, .footer a { color: #790; } + +.codenumbers { + display: block; + float: right; + font-size: small; +} + +#searchform { + margin: 0.5em auto; + padding: 0; + text-align: center; +} + +#searchform input { + width: 3.5em; + margin: 0; + padding: 0; +} + +#searchform input#searchinput { + border: 1px solid black; + background: #fff; + color: #000; + margin: 0.25em; + width: 8em; + cursor: text; + display: block; +} + +.menu select { + border: 1px solid #000; + font-size: small; + width: 8em; + color: #790; + background: #efb; +} +.menu label { + font-size: small; +} + +.editor { + background-color: #bc8; + width: 100%; +} + +.editor textarea { + display: block; + width: 90%; + margin: 0.5em auto; +} + + + +#logo { + padding: 16px; +} + +#logo img { + vertical-align: bottom; +} + +#logo a { + color: #fff; + font-size: 32px; + font-weight: bold; + text-decoration: none; + font-family: verdana, sans-serif; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dew.py Wed May 14 10:21:39 2008 +0200 @@ -0,0 +1,254 @@ +# -*- coding: iso-8859-1 -*- +""" + MoinMoin acm theme + + Based on the classic theme. + + @copyright: 2006 by RadomirDopieralski (moose@sheep.prv.pl) + @license: GNU GPL, see COPYING for details. +""" + +from MoinMoin import wikiutil, version +from MoinMoin import caching +from MoinMoin.theme import ThemeBase +from MoinMoin.theme import rightsidebar +from MoinMoin.Page import Page + +class Theme(rightsidebar.Theme): + """ here are the functions generating the html responsible for + the look and feel of your wiki site + """ + + name = "dew" + + # fake _ function to get gettext recognize those texts: + _ = lambda x: x + + # TODO: remove icons that are not used any more. + icons = { + # key alt icon filename w h + # ------------------------------------------------------------------ + # navibar + 'help': ("%(page_help_contents)s", "moin-help.gif", 24, 24), + 'find': ("%(page_find_page)s", "moin-search.gif", 24, 24), + 'diff': (_("Diffs"), "moin-diff.gif", 24, 24), + 'info': (_("Info"), "moin-info.gif", 24, 24), + 'edit': (_("Edit"), "moin-edit.gif", 24, 24), + 'unsubscribe':(_("Unsubscribe"), "moin-unsubscribe.gif", 24, 24), + 'subscribe': (_("Subscribe"), "moin-subscribe.gif", 24, 24), + 'raw': (_("Raw"), "moin-raw.gif", 24, 24), + 'xml': (_("XML"), "moin-xml.gif", 24, 24), + 'print': (_("Print"), "moin-print.gif", 24, 24), + 'view': (_("View"), "moin-show.gif", 24, 24), + 'home': (_("Home"), "moin-home.gif", 24, 24), + 'up': (_("Up"), "moin-parent.gif", 23, 23), + # FileAttach + 'attach': ("%(attach_count)s", "moin-attach.gif", 24, 24), + # RecentChanges + 'rss': (_("[RSS]"), "moin-rss.png", 36, 14), + 'deleted': (_("[DELETED]"), "moin-delete.gif", 24, 24), + 'updated': (_("[UPDATED]"), "moin-show.gif",24, 24), + 'new': (_("[NEW]"), "moin-edit.gif", 24, 24), + 'diffrc': (_("[DIFF]"), "moin-diff.gif", 24, 24), + # General + 'bottom': (_("[BOTTOM]"), "moin-bottom.gif", 14, 10), + 'top': (_("[TOP]"), "moin-top.gif", 14, 10), + 'www': ("[WWW]", "moin-www.gif", 11, 11), + 'mailto': ("[MAILTO]", "moin-email.gif", 14, 10), + 'news': ("[NEWS]", "moin-news.gif", 10, 11), + 'telnet': ("[TELNET]", "moin-telnet.gif", 10, 11), + 'ftp': ("[FTP]", "moin-ftp.gif", 11, 11), + 'file': ("[FILE]", "moin-ftp.gif", 11, 11), + # search forms + 'searchbutton': ("[?]", "moin-search.gif", 12, 12), + 'interwiki': ("[%(wikitag)s]", "moin-inter.gif", 16, 16), + } + del _ + + def footer(self, d, **keywords): + """ Assemble wiki footer + + @param d: parameter dictionary + @keyword ...:... + @rtype: unicode + @return: page footer html + """ + page = d['page'] + dict = { + 'username_html': self.username(d), + 'page_footer1': self.emit_custom_html(self.cfg.page_footer1), + 'page_footer2': self.emit_custom_html(self.cfg.page_footer2), + 'page_info': self.pageinfo(page), + 'end_page': self.endPage(), + 'credits': self.credits(d), + 'version': self.showversion(d, **keywords), + 'navibar_html': self.navibar(d), + 'search_form_html': self.searchform(d), + 'editbar': self.editbar(d), + } + if not self.in_editor: + return u''' +%(page_info)s%(end_page)s</div><div class="menu"> + <h1>Menu</h1> + %(navibar_html)s + %(search_form_html)s + %(editbar)s +</div><div class="footer"><div id="footer"> + %(page_footer1)s + %(username_html)s + %(page_footer2)s + %(credits)s + %(version)s +</div></div></div></div></div> +'''%dict + else: + return u''' +%(page_info)s +%(end_page)s +</div> +'''%dict + + def iconbar(self, d): + """ + Assemble the iconbar + + @param d: parameter dictionary + @rtype: string + @return: iconbar html + """ + iconbar = [] + if self.cfg.page_iconbar and self.request.user.show_toolbar and d['page_name']: + iconbar.append('<ul id="iconbar">\n') + icons = self.cfg.page_iconbar[:] + for icon in icons: + if icon == "up": + if d['page_parent_page']: + iconbar.append('<li>%s</li>\n' % self.make_iconlink(icon, d)) + elif icon == "subscribe" and self.cfg.mail_enabled: + iconbar.append('<li>%s</li>\n' % self.make_iconlink( + ["subscribe", "unsubscribe"][self.request.user.isSubscribedTo([d['page_name']])], d)) + else: + iconbar.append('<li>%s</li>\n' % self.make_iconlink(icon, d)) + iconbar.append('</ul>\n') + return ''.join(iconbar) + + def header(self, d): + """ + Assemble page header + + @param d: parameter dictionary + @rtype: string + @return: page header html + """ + self.in_editor = False; + + dict = { + 'config_header1_html': self.emit_custom_html(self.cfg.page_header1), + 'config_header2_html': self.emit_custom_html(self.cfg.page_header2), + 'logo_html': self.logo(), + 'title_html': self.title(d), + 'msg_html': self.msg(d), + 'trail_html': self.trail(d), + 'startpage_html': self.startPage(), + 'interwiki_html': self.interwiki(d), + 'iconbar_html': self.iconbar(d), + } + dict.update(d) + +#<div id="locationline">%(interwiki_html)s%(title_html)s</div> + html = """ +%(config_header1_html)s +<div class="cont1"><div class="cont2"><div class="cont3"> +<div id="header"><div class="header"> +%(logo_html)s +</div><div class="bar"> +<div id="traildiv">%(trail_html)s</div> +%(msg_html)s +</div></div>%(config_header2_html)s<div class="content">%(iconbar_html)s%(startpage_html)s +""" % dict + return html + + def editorheader(self, d): + """ + Assemble page header for editor + + @param d: parameter dictionary + @rtype: string + @return: page header html + """ + self.in_editor = True; + + dict = { + 'config_header1_html': self.emit_custom_html(self.cfg.page_header1), + 'config_header2_html': self.emit_custom_html(self.cfg.page_header2), + 'title_html': self.title(d), + 'msg_html': self.msg(d), + 'startpage_html': self.startPage(), + } + dict.update(d) + + html = """ +<div class="editor"> +%(config_header1_html)s + +%(title_html)s +%(msg_html)s + +%(config_header2_html)s + +%(startpage_html)s +""" % dict + return html + + def editbar(self, d): + if self.request.user.valid: + return rightsidebar.Theme.editbar(self, d) + else: + return '' + + def recentchanges_entry(self, d): + """ + Assemble a single recentchanges entry (table row) + + @param d: parameter dictionary + @rtype: string + @return: recentchanges entry html + """ + _ = self.request.getText + html = [] + html.append('<tr>\n') + + html.append('<td class="rcicon1">%(icon_html)s</td>\n' % d) + + html.append('<td class="rcpagelink">%(pagelink_html)s</td>\n' % d) + + html.append('<td class="rctime">') + if d['time_html']: + html.append("%(time_html)s" % d) + html.append('</td>\n') + + html.append('<td class="rcicon2">%(info_html)s</td>\n' % d) + + html.append('<td class="rceditor">') + if d['editors']: + html.append('<br>'.join(d['editors'])) + html.append('</td>\n') + + html.append('</tr><tr class="rccomment">') + html.append('<td class="rccomment" colspan="5">') + if d['comments']: + if d['changecount'] > 1: + notfirst = 0 + for comment in d['comments']: + html.append('%s<tt>#%02d</tt> %s' % ( + notfirst and '<br>' or '' , comment[0], comment[1])) + notfirst = 1 + else: + comment = d['comments'][0] + html.append('%s' % comment[1]) + html.append('</td>\n') + + html.append('</tr>\n') + + return ''.join(html) +
