1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/moinformat/themes/mercurial/__init__.py Mon Nov 26 22:18:04 2018 +0100
1.3 @@ -0,0 +1,22 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +"""
1.7 +A Mercurial-inspired theme.
1.8 +
1.9 +Copyright (C) 2018 Paul Boddie <paul@boddie.org.uk>
1.10 +
1.11 +This program is free software; you can redistribute it and/or modify it under
1.12 +the terms of the GNU General Public License as published by the Free Software
1.13 +Foundation; either version 3 of the License, or (at your option) any later
1.14 +version.
1.15 +
1.16 +This program is distributed in the hope that it will be useful, but WITHOUT
1.17 +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.18 +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
1.19 +details.
1.20 +
1.21 +You should have received a copy of the GNU General Public License along with
1.22 +this program. If not, see <http://www.gnu.org/licenses/>.
1.23 +"""
1.24 +
1.25 +# vim: tabstop=4 expandtab shiftwidth=4
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/moinformat/themes/mercurial/css/print.css Mon Nov 26 22:18:04 2018 +0100
3.3 @@ -0,0 +1,13 @@
3.4 +html {
3.5 + font-family: Times, serif;
3.6 + font-size: 12pt;
3.7 +}
3.8 +
3.9 +body {
3.10 + margin: 1.5cm;
3.11 +}
3.12 +
3.13 +a, a:visited {
3.14 + color: black;
3.15 + text-decoration: none;
3.16 +}
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/moinformat/themes/mercurial/css/screen.css Mon Nov 26 22:18:04 2018 +0100
4.3 @@ -0,0 +1,12 @@
4.4 +body {
4.5 + font-family: Helvetica, Verdana, Arial, sans-serif;
4.6 + color: #111;
4.7 +}
4.8 +
4.9 +a:link, a:visited { color: #00b5f1; text-decoration: none; }
4.10 +a:link:hover, a:link:active, a:link:focus,
4.11 +a:visited:hover, a:visited:active, a:visited:focus { text-decoration: underline; }
4.12 +
4.13 +h1 { font-size: 2em; }
4.14 +h2 { font-size: 1.6em; }
4.15 +h3 { font-size: 1.3em; }
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/moinformat/themes/mercurial/html.py Mon Nov 26 22:18:04 2018 +0100
5.3 @@ -0,0 +1,33 @@
5.4 +#!/usr/bin/env python
5.5 +
5.6 +"""
5.7 +A Mercurial-inspired theme for HTML output.
5.8 +
5.9 +Copyright (C) 2018 Paul Boddie <paul@boddie.org.uk>
5.10 +
5.11 +This program is free software; you can redistribute it and/or modify it under
5.12 +the terms of the GNU General Public License as published by the Free Software
5.13 +Foundation; either version 3 of the License, or (at your option) any later
5.14 +version.
5.15 +
5.16 +This program is distributed in the hope that it will be useful, but WITHOUT
5.17 +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
5.18 +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
5.19 +details.
5.20 +
5.21 +You should have received a copy of the GNU General Public License along with
5.22 +this program. If not, see <http://www.gnu.org/licenses/>.
5.23 +"""
5.24 +
5.25 +from moinformat.themes.html import HTMLTheme
5.26 +
5.27 +class MercurialHTMLTheme(HTMLTheme):
5.28 +
5.29 + "A Mercurial-inspired HTML theme."
5.30 +
5.31 + name = "html"
5.32 + origin = __file__
5.33 +
5.34 +theme = MercurialHTMLTheme
5.35 +
5.36 +# vim: tabstop=4 expandtab shiftwidth=4
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/moinformat/themes/mercurial/template.html Mon Nov 26 22:18:04 2018 +0100
6.3 @@ -0,0 +1,11 @@
6.4 +<!DOCTYPE html>
6.5 +<html>
6.6 +<head>
6.7 +<title>%(title)s</title>
6.8 +%(links)s
6.9 +<meta http-equiv="Content-Type" content="text/html;charset=%(encoding)s" />
6.10 +</head>
6.11 +<body>
6.12 +%(text)s
6.13 +</body>
6.14 +</html>