Mercurial > moin-heat
changeset 0:7df9d26e3220
initial commit
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/common.css Tue Feb 16 21:39:18 2010 +0100 @@ -0,0 +1,586 @@ +/* common.css - MoinMoin Default Styles + +Copyright (c) 2001, 2002, 2003 by Juergen Hermann +*/ + +/* content styles */ + +html { + background-color: white; + color: black; + font-family: sans-serif; + font-size: 1em; +} + +body { + margin: 0; + line-height: 1.3; +} + +/* Links */ + + +a:link {color: #2a7ab2;} +a:visited {color: #6b4268;} +a {color: #2a7ab2;} + +#content a { + text-decoration: none; + border-bottom: 1px dashed #ddd; +} +a:hover, a:visited:hover { + color: #000; +} + +a.nonexistent:visited, a.nonexistent, +a.badinterwiki:visited, a.badinterwiki {color: gray;} + +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, a.ssh:before {content: url(../img/moin-telnet.png); margin: 0 0.2em;} +a.irc:before, a.ircs: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;} + +li p { + margin: .25em 0; +} + +li.gap { + margin-top: 0.5em; +} + +dt { + margin-top: 0.5em; + font-weight: bold; +} + +dd { + margin-top: 0; + margin-bottom: 0; +} + +dd p { + margin: 0.25em 0; +} + +a, img, img.drawing { + border: 0; +} + +pre { + border: 1pt solid #AEBDCC; + background-color: #F3F5F7; + padding: 5pt; + font-family: courier, monospace; + white-space: pre; + /* begin css 3 or browser specific rules - do not remove! + 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 */ +} + +pre.comment { + background-color: #CCCCCC; + color: red; + padding: 0; + margin: 0; + border: 0; +} + +pre.comment:before { + content: url(../img/attention.png); +} + + +/* .comment css definition must be top of .red/.green/.blue or it won't work */ +.comment { color: #555555; background-color: #DDDDFF; } + +.red { background-color: #FFCCCC; border: 1px solid #daa; padding: 0 1em; } +.green { background-color: #CCFFCC; border: 1px solid #ada; padding: 0 1em; } +.blue { background-color: #CCCCFF; border: 1px solid #aad; padding: 0 1em; } +.yellow { background-color: #FFF29F; border: 1px solid #dd7; padding: 0 1em; } +.orange { background-color: #FFD59B; border: 1px solid #dc7; padding: 0 1em; } + +.solid { border: 2px solid #000000; padding: 2px; } +.dashed { border: 2px dashed #000000; padding: 2px; } +.dotted { border: 2px dotted #000000; padding: 2px; } + +.left { text-align: left; } +.center { text-align: center; } +.right { text-align: right; } +.justify { text-align: justify; } + +table +{ + margin: 0.5em 0 0 0.5em; + border-collapse: collapse; +} + +th, td +{ + padding: 0.25em 0.5em 0.25em 0.5em; + border: 1pt solid #ADB9CC; +} + +td p { + margin: 0; + padding: 0; +} +/* TableOfContents macro */ +div.table-of-contents { + border: 1px solid #b7becc; + color: black; + background-color: #f7f6f0; + font-size: 80%; + text-align: left; + margin: 0.5em 0 0.5em 1em; + padding: 0.5em 0.75em 1em 0.5em; + max-width: 50%; + display: inline-table; + -moz-border-radius: 9px 0 9px 0; + overflow: hidden; +} +div.table-of-contents ol { + margin: 0; + padding: 0 0 0 2em; +} +div.table-of-contents ul { + margin: 0; + list-style:none; +} +div.table-of-contents li { + margin:0; + padding: 0; +} +p.table-of-contents-heading { + font-weight:bold; + padding:0; + margin: 0 0 0.5em 0; + letter-spacing: 0.075em; + color: #fff; + background: #376a94; + border-bottom: 3px solid #ffbc29; + padding: 0.25em 0.25em 0.25em 1em; + margin: -0.5em -0.75em 1em -0.5em; + -moz-border-radius: 7px 0 0px 0; +} + +/* Navigation macro */ +table.navigation { + background: #fff; + margin: 0; +} + +.footnotes div { + width: 5em; + border-top: 1pt solid gray; +} + +.footnotes ol { + padding: 0 2em; + margin: 0 0 1em; +} + +.footnotes li { +} + +.info { + float: right; + font-size: 0.7em; + color: gray; +} + +#pageinfo { + margin-top: 2em; +} + +.seperator { + color: gray; +} + +#pagebottom {clear: both;} + +/* standard rule ---- */ +hr { + height: 1pt; + background-color: #9C9C9C; + border: 0; +} + +/* custom rules ----- to ---------- */ +.hr1 {height: 2pt;} +.hr2 {height: 3pt;} +.hr3 {height: 4pt;} +.hr4 {height: 5pt;} +.hr5 {height: 6pt;} +.hr6 {height: 7pt;} + +/* Replacement for deprecated html 3 <u> element and html 4 <strike> */ +.u {text-decoration: underline;} +.strike {text-decoration: line-through;} + +/* eye catchers */ +.warning +{ + color: red; +} + +.error +{ + color: red; +} + +strong.highlight +{ + background-color: #CCE0FF; + padding: 1pt; +} + + +/* Recent changes */ + +.rcrss { + float: right; + margin: 0 7px 0 14px; + height: 0; + position: relative; + top: 9px; +} +*[div="rtl"] .rcrss { + float: left; +} +.recentchanges[dir="rtl"] .rcrss { + float: left; +} + +.recentchanges table { + clear: right; + border-collapse: collapse; + border: 1px solid #ddd; +} + +.recentchanges td { + vertical-align: top; + border: none; + background: #fff; +} + + +.recentchanges .rcdaybreak td { + background: #eee; + border: none; + border: 1px solid #ddd; +} + +.rcdaybreak td a { + font-size: 0.88em; +} + +.rcicon1, .rcicon2 { + text-align: center; +} + +.rcpagelink { + width: 33%; +} + +.rctime { + font-size: 0.88em; + white-space: nowrap; +} + +.rceditor { + white-space: nowrap; + font-size: 0.88em; +} + +.rccomment { + width: 50%; + color: gray; + font-size: 0.88em; +} + + +/* 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; + border: 1pt solid #AEBDCC; + background-color: #F3F5F7; + color: black; +} + +div.codearea pre { /* the pre has no border and is inside the div */ + margin: 0; + padding: 10pt; + border: 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;} +div.codearea pre span.Comment {color: #008000;} +div.codearea pre span.Number {color: #0080C0;} +div.codearea pre span.String {color: #004080;} +div.codearea pre span.SPChar {color: #0000C0;} +div.codearea pre span.ResWord {color: #A00000;} +div.codearea pre span.ConsWord {color: #008080; font-weight: bold;} +div.codearea pre span.Error {color: #FF8080; border: solid 1.5pt #FF0000;} +div.codearea pre span.ResWord2 {color: #0080ff; font-weight: bold;} +div.codearea pre span.Special {color: #0000ff;} +div.codearea pre span.Preprc {color: #803999;} + +/* for diff parser */ +table.diff .diff-added span, +div.codearea pre span.DiffAdded {background: #b4ddff; font-weight: bold} +table.diff .diff-removed span, +div.codearea pre span.DiffRemoved {background: #ffeca1; font-weight: bold;} +table.diff .diff-changed span, +div.codearea pre span.DiffChanged {background: #bcde9e; font-weight: bold} +table.diff .diff-header, +div.codearea pre span.DiffSeparator {color: #228B22; font-weight: bold} + +/* Search results */ +.advancedsearch { + border: 1pt solid #ADB9CC; +} + +.advancedsearch td { + vertical-align: top; + background-color: #E7E7E7; + border: 0px; +} + +.advancedsearch td.searchfor { + font-weight: bold; +} + +.advancedsearch input { + border: 1px solid #ADB9CC; + background-color: #fff; +} + +.advancedsearch input[disabled] { + background-color: #eee; +} + +.advancedsearch td.submit { + border-top: 1px solid #ADB9CC; + background-color: #fff; + text-align: right; +} + +.advancedsearch optioni, +.advancedsearch select { + border: 1px solid #ADB9CC; + background-color: #fff; +} + + +.searchresults dt { + margin-top: 1em; + font-weight: normal; +} + +.searchresults dd, .searchresults p { + font-size: 0.85em; +} + +.searchresults .searchhitinfobar { + color: #008000; + margin-left: 15px; + margin-top: 0; +} + +p.searchstats { + font-size: 0.8em; + text-align: right; + width: 100%; + background-color: #E6EAF0; + border-top: 1px solid #9088DC; + padding: 2px; +} + +p.searchhint { + background-color: #E6EAF0; + border: 1px solid #9088DC; + padding: 2px; +} + +.searchpages { + margin-left: auto; + margin-right: auto; +} + +.searchpages tr, .searchpages td { + border: 0; + padding: 5px; + margin: 0; + text-align: center; + vertical-align: middle; + color: #b93a58; + font-weight: bold; + font-size: 1.05em; +} + +.searchpages td a, .searchpages td a:link { + text-decoration: underline; +} + +/* MonthCalendar css */ + +/* days without and with pages linked to them */ +a.cal-emptyday { + color: #777777; + text-align: center; +} +a.cal-usedday { + color: #000000; + font-weight: bold; + text-align: center; +} +/* general stuff: workdays, weekend, today */ +td.cal-workday { + background-color: #DDDDFF; + text-align: center; +} +td.cal-weekend { + background-color: #FFDDDD; + text-align: center; +} +td.cal-today { + background-color: #CCFFCC; + border-style: solid; + border-width: 2pt; + text-align: center; +} +/* invalid places on the monthly calendar sheet */ +td.cal-invalidday { + background-color: #CCCCCC; +} +/* links to prev/next month/year */ +a.cal-link { + color: #000000; + text-decoration: none; +} +th.cal-header { + background-color: #DDBBFF; + text-align: center; +} + +/* for MonthCalendar mouseover info boxes */ +TABLE.tip { + color: black; + background-color: #FF8888; + font-size: small; + font-weight: normal; + border-style: solid; + border-width: 1px; +} + +TH.tip { + background-color: #FF4444; + font-weight: bold; + text-align: center; +} + +TD.tip { + text-align: left; +} +*[dir="rtl"] TD.tip { + text-align: right; +} + +/* end MonthCalendar stuff */ + +#message .hint {font-style: italic;} +#message .info { + float: none; + font-size: 1em; + color: black; +} +#message .info:before {content: url('../img/icon-info.png'); margin: 0 0.2em;} +#message .warning:before {content: url('../img/alert.png'); margin: 0 0.2em;} +#message .error:before {content: url('../img/icon-error.png'); margin: 0 0.2em;} + + +/* admonition start */ +#content div.caution, +#content div.important, +#content div.note, +#content div.tip, +#content div.warning { + border: 1pt solid #E5E5E5; + background-color: #F9F9FF; + color: black; + + margin: 10pt 30pt 10pt 30pt; + background-repeat: no-repeat; + background-position: 8px 8px; + min-height: 64px; /*64=48+8+8 but doesn't work with IE*/ + padding-left: 64px; +} + +#content div.caution p, +#content div.important p, +#content div.note p, +#content div.tip p, +#content div.warning p { + margin-top: 8px; /*to align text with bg graphic*/ +} + +#content div.tip { background-image: url("../img/admon-tip.png"); } +#content div.note { background-image: url("../img/admon-note.png"); } +#content div.important { background-image: url("../img/admon-important.png"); } +#content div.caution { background-image: url("../img/admon-caution.png"); } +#content div.warning { background-image: url("../img/admon-warning.png"); } + +/* admonition end */ + +h1, h2, h3, h4, h5 { + letter-spacing: 0.05em; + color: #544d87; + border-bottom: 1px solid #aaa; +} +h1 { + font-size: 150%; + color: #882f68; +} +h2 { + font-size: 125%; + color: #66427c; +} + +ul li { + list-style: url(../img/bullet.gif); +} +ol li { + list-style: decimal; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/screen.css Tue Feb 16 21:39:18 2010 +0100 @@ -0,0 +1,252 @@ +html { + color: #222; + font: 92% sans-serif; + height: 100%; + background: #fff; + margin: 0; + padding: 0; +} +body { + margin: 0 auto; + padding: 0 0 2.5em 0; + width: 60em; + position: relative; + min-height: 100%; + background: #fff; +/* box-shadow: #333 0 0 1em; + -moz-box-shadow: #333 0 0 1em; + -webkit-box-shadow: #333 0 0 1em; + border-radius: 0 0 1em 1em; + -moz-border-radius: 0 0 1em 1em; */ +} +a img { border: none } +a { color: #2a7ab2; text-decoration: none; } + +#header { + background: #c90b42 url(../img/header-back.png) repeat-y 0 0; + color: #eee; + border-radius: 0 0 1em 1em; + -moz-border-radius: 0 0 1em 1em; + padding: 0.25em 0.5em 2em 0.5em; + position: relative; +/* box-shadow: inset #333 0 0 0.4em; + -moz-box-shadow: inset #333 0 0 0.4em; + -webkit-box-shadow: inset #333 0 0 0.4em; */ +} +#header a { + color: #fff; + text-decoration: none; +} +#header a:hover { + text-shadow: #ffb7d7 0 0 0.75em; +} +#searchform { + padding: 0; + margin: 2em 0 0 0; + float: right; +} +#searchform input { + font-size: 90%; + border: 1px solid #6d2d45; + vertical-align: middle; + color: #6e133c; +} +#searchform input:hover { + box-shadow: #ffb7d7 0 0 0.75em; + -moz-box-shadow: #ffb7d7 0 0 0.75em; + -webkit-box-shadow: #ffb7d7 0 0 0.75em; +} +#searchinput { + background: #ebacc8; +} +#titlesearch, #fullsearch { + background: #ba5a85; +} +#username { + position: absolute; + top: 0.25em; + right: 1em; +} +#username a { + font-size: 90%; +} +#logo { + margin: 0.25em 0 0 1.5em; +} +#header h1 { + margin: 0 0 0.25em 1em; + letter-spacing: 0; + font: 100% sans-serif; + position: absolute; + bottom: -2em; + left: 0; + border: none; +} +#header h1 a { + color: #333; +} +#header h1 a:hover { + text-decoration: underline; + text-shadow: none; +} + +#navibar { + margin: 0; + padding: 0; + position: absolute; + bottom: 0; + left: 0.5em; +} +#navibar li { + margin: 0 1em; + padding: 0; + list-style: none; + float: left; +} +#navibar a { + display: block; + padding: 0.25em 0.5em 0 0.5em; + font-weight: bold; + border-radius: 0.5em 0.5em 0 0; + -moz-border-radius: 0.5em 0.5em 0 0; +} +#navibar li.current a { + background: #fff; + color: #333; + box-shadow: #30436e 0 -0.2em 0.3em; + -moz-box-shadow: #30436e 0 -0.2em 0.3em; + -webkit-box-shadow: #30436e 0 -0.2em 0.3em; +} +#navibar li.current a:hover { + text-shadow: none; + color: #000; +} + +ul.editbar { + clear: both; + float: right; + margin: 2.5em 0 0.25em 0; + padding: 0; +} +#footer ul.editbar { + margin: 0.35em 1em 0 0; +} +ul.editbar li { + display: block; + float: left; + list-style: none; + margin: 0; + padding: 0; + font-size: 75%; +} +#header ul.editbar a, +ul.editbar a, +ul.editbar span { + display: block; + padding: 0.25em 0.5em; + color: #2a7ab2; +} +ul.editbar span { + color: #999; +} +ul.editbar form { + padding: 0; + margin: 0; + display: inline; +} +ul.editbar select { + margin: 0; + font-size: 100%; + padding: 0; + vertical-align: baseline; +} + +#content { + padding: 2.25em 1.5em; + line-height: 1.4em; +} + + + + +#message { + margin: 0.5em; + background: #fff; + border-radius: 0.5em; + -moz-border-radius: 0.5em; + padding: 0.5em; + box-shadow: #333 0 0.05em 0.4em; + -moz-box-shadow: #333 0 0.05em 0.4em; + -webkit-box-shadow: #333 0 0.05em 0.4em; + font-size: 90%; + color: #000; +} +#message a { + color: #2a7ab2; + text-shadow: none; +} + + +#message table { + max-width: 100%; + border: none; +} +#message table td { + border: none; +} +#message p { + margin: 0; +} + +#message input { + width: 100%; +} +#message .buttons input { + width: auto; +} +#editor { + padding: 0.5em 0 0 0; + margin: 0.5em; +} +#editor textarea { + display: block; + font-size: 100%; + width: 100%; +} +#editor-comment { + display: block; + width: 100%; +} +div#textcha { + padding: 0.25em 1em; + background: #fff29f; + border: 1px solid #eee18e; + margin: 0.25em 0; + color: #630; +} + +#pageinfo { + margin: 2em 2em 0.25em 0; +} + +#footer { + position: absolute; + bottom: 0; + background: #eee; + border: 1px solid #aaa; + border-radius: 0 0 1em 1em; + -moz-border-radius: 0 0 1em 1em; + height: 2em; + width: 100%; +} +#credits { + margin: 0.25em 0 0 1em; + padding: 0; +} +#credits li { + display: inline; + padding: 0; + margin: 0 0.5em; + list-style: none; + font-size: 75%; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/heat.py Tue Feb 16 21:39:18 2010 +0100 @@ -0,0 +1,72 @@ +from MoinMoin.theme import modernized + +class Theme(modernized.Theme): + name = "heat" + + _ = lambda x: x # We don't have gettext at this moment, so we fake it + icons = { + # key alt icon filename w h + # FileAttach + 'attach': ("%(attach_count)s", "moin-attach.png", 16, 16), + 'info': ("[INFO]", "moin-info.png", 16, 16), + 'attachimg': (_("[ATTACH]"), "attach.png", 32, 32), + # RecentChanges + 'rss': (_("[RSS]"), "moin-rss.png", 16, 16), + 'deleted': (_("[DELETED]"), "moin-deleted.png",16, 16), + 'updated': (_("[UPDATED]"), "moin-updated.png",16, 16), + 'renamed': (_("[RENAMED]"), "moin-renamed.png",16, 16), + 'conflict': (_("[CONFLICT]"), "moin-conflict.png", 16, 16), + 'new': (_("[NEW]"), "moin-new.png", 16, 16), + 'diffrc': (_("[DIFF]"), "moin-diff.png", 16, 16), + # General + 'bottom': (_("[BOTTOM]"), "moin-bottom.png", 16, 16), + 'top': (_("[TOP]"), "moin-top.png", 16, 16), + 'www': ("[WWW]", "moin-www.png", 16, 16), + 'mailto': ("[MAILTO]", "moin-email.png", 16, 16), + 'news': ("[NEWS]", "moin-news.png", 16, 16), + 'telnet': ("[TELNET]", "moin-telnet.png", 16, 16), + 'ftp': ("[FTP]", "moin-ftp.png", 16, 16), + 'file': ("[FILE]", "moin-ftp.png", 16, 16), + # search forms + 'searchbutton': ("[?]", "moin-search.png", 16, 16), + 'interwiki': ("[%(wikitag)s]", "moin-inter.png", 16, 16), + + # smileys (this is CONTENT, but good looking smileys depend on looking + # adapted to the theme background color and theme style in general) + #vvv == vvv this must be the same for GUI editor converter + 'X-(': ("X-(", 'angry.png', 16, 16), + ':D': (":D", 'biggrin.png', 16, 16), + '<:(': ("<:(", 'frown.png', 16, 16), + ':o': (":o", 'redface.png', 16, 16), + ':(': (":(", 'sad.png', 16, 16), + ':)': (":)", 'smile.png', 16, 16), + 'B)': ("B)", 'smile2.png', 16, 16), + ':))': (":))", 'smile3.png', 16, 16), + ';)': (";)", 'smile4.png', 16, 16), + '/!\\': ("/!\\", 'alert.png', 16, 16), + '<!>': ("<!>", 'attention.png', 16, 16), + '(!)': ("(!)", 'idea.png', 16, 16), + ':-?': (":-?", 'tongue.png', 16, 16), + ':\\': (":\\", 'ohwell.png', 16, 16), + '>:>': (">:>", 'devil.png', 16, 16), + '|)': ("|)", 'tired.png', 16, 16), + ':-(': (":-(", 'sad.png', 16, 16), + ':-)': (":-)", 'smile.png', 16, 16), + 'B-)': ("B-)", 'smile2.png', 16, 16), + ':-))': (":-))", 'smile3.png', 16, 16), + ';-)': (";-)", 'smile4.png', 16, 16), + '|-)': ("|-)", 'tired.png', 16, 16), + '(./)': ("(./)", 'checkmark.png', 16, 16), + '{OK}': ("{OK}", 'thumbs-up.png', 16, 16), + '{X}': ("{X}", 'icon-error.png', 16, 16), + '{i}': ("{i}", 'icon-info.png', 16, 16), + '{1}': ("{1}", 'prio1.png', 15, 13), + '{2}': ("{2}", 'prio2.png', 15, 13), + '{3}': ("{3}", 'prio3.png', 15, 13), + '{*}': ("{*}", 'star_on.png', 16, 16), + '{o}': ("{o}", 'star_off.png', 16, 16), + } + del _ + +def execute(request): + return Theme(request)
