/*
- www.debian.org stylesheet proposal
-
- Kalle Soderman, 2008 debian.css
-
- Copyleft : This work is free, you can copy, spread, and modify it under
- the terms of the Free Art License http://artlibre.org/licence/lal/en/
-
+ http://www.debian.org Stylesheet
+
+ Copyright 2011 Kalle Söderman
+
+ This stylesheet is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License, version 2, as published by
+ the Free Software Foundation.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+ The license text can also be found at http://www.gnu.org/copyleft/gpl.html and
+ /usr/share/common-licenses/GPL-2 on Debian GNU/Linux.
+*/
+/*
Font size table (Browser default 16px)
pixels relative
10px 0.625em
9px 0.5625em
--------------------
- */
+*/
/* Reset */
background-position: 30px 9px;
*/
}
-#outer {
- margin: 0 10px 0 62px;
+#content {
+ margin: 0 10px 0 52px;
}
#inner {
position: relative;
#header {
margin:0;
- padding:0 10px 0 62px;
+ padding:0 10px 0 52px;
}
#header a:link
, #header a:visited
letter-spacing: 0.08em;
position:absolute;
top: 0px;
- left:62px;
+ left:52px;
background-color: #c70036;
}
+p.section a {
+ color: white;
+ text-decoration: none;
+}
+p.section a:hover {
+ color:white;
+ text-decoration: underline;
+}
#navbar {
background-color: transparent;
list-style:none;
}
#navbar a:link
, #navbar a:visited {
- padding: 1.75em 1em 0.25em 1em;
+ padding: 1.75em 0.5em 0.25em 0.5em;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
display: block;
}
#navbar a:hover
, #navbar a:visited:hover {
- background-color: #efefef;
+ background-color: #f5f6f7;
border-left: 1px solid #d2d3d7;
border-right: 1px solid #d2d3d7;
text-decoration: underline;
}
+ul.subnav {
+ list-style: none;
+ margin-left: 0;
+ padding-left: 0;
+ margin-top: 0;
+}
+ul.subnav li {
+ display: inline;
+ margin-right: 1em;
+}
#searchbox {
text-align:left;
line-height: 1;
background-color: transparent;
border: 1px solid transparent;
border-top: 0;
- width: 61px;
+ width: 50px;
height: 5.07em;
min-height: 65px;
}
#logo a {
display: block;
position: relative;
- padding: 0 5px 0 5px;
+ padding: 0;
height: 100%;
min-height: 65px;
}
#logo:hover {
border: 1px solid #d2d3d7 ;
border-top: 0;
- background-color: #eee;
+ background-color: #f5f6f7;
}
/* Links */
a img {
border:0;
}
+a.rss_logo {
+ font-size: 0.75em;
+ float: right;
+ width: 35px;
+ line-height: 10px;
+ color: #ffffff;
+ background-color: #ff6600;
+ font-weight: bold;
+ font-family: sans-serif;
+ text-align: center;
+ text-decoration: none;
+ padding: 0.25em;
+ margin-left: 0.25em;
+ border: 1px solid #ff6600;
+}
+
+a.rss_logo:hover {
+ background-color: white;
+ border: 1px solid #ff6600;
+ color: #ff6600;
+}
+
+a.rss_logo.generic {
+ background-color: #ff8800;
+}
+
+a.rss_logo.generic:hover {
+ background-color: #ee7700;
+}
+
/* Secondnav */
width: 16em;
font-size: 0.75em;
line-height: 1.5;
- position: absolute;
+ float: right;
top: 0;
right: 0;
margin: 3em 0 0 0;
white-space: pre;
color: black;
}
+dt {
+ margin: 1.5em 0 0 0;
+ font-weight: bold;
+}
dd {
margin: 0 0 0 1.5em;
}
background-color: #f0f0f4;
text-decoration: underline;
}
+.toc dt {
+ margin: 0;
+ background-image: url('Pics/greydot.png');
+ background-position: top left;
+ background-repeat: repeat-x;
+ padding: 0.0833em 0 0.0833em 0;
+}
/* Sitemap */
border: 1px solid #dfdfe0;
padding:1em;
background-color: #f5f6f7;
- margin: 0 0 0 0;
+ margin: 0 10px 0 52px;
line-height: 1.5em;
border-left: 0;
border-right: 0;
}
+#content #footer {
+ margin-left: 0;
+}
#footer p {
margin: 1em 0 1em 0;
}
}
#footermap li ul {
margin: 0;
- padding: 0:
+ padding: 0;
}
#footermap li li {
margin:0;
#maincol.with-toolbox {
margin-right: 14em;
}
-table.vendors {
+div.tabular table, table.tabular, table.vendors {
/* border-bottom: 1px solid #a9abb3;
border-top: 1px solid #a9abb3; */
border-bottom: 0.15em solid #666;
border-top: 0.15em solid #666;
- display: block;
width: auto;
font-size: 0.75em;
line-height: 2em;
table td {
padding-right: 1.5em;
}
-table.vendors tr {
+div.tabular table tr, table.tabular tr, table.vendors tr {
width: 100%;
}
table th {
padding-right: 1.5em;
}
-table.vendors td {
+div.tabular table td, table.tabular td, table.vendors td {
background-image: url(Pics/greydot.png);
background-position: top left;
background-repeat: repeat-x;
}
+div.tabular table > td:fist-child, table.tabular > td:fist-child, table.vendors > td:fist-child {
+ background-image: none;
+}
#pageLang p, #pageLang form {
display: inline;
}
# -*- coding: iso-8859-1 -*-
"""
- MoinMoin - Debian theme
+ MoinMoin - modern theme
@copyright: 2003-2005 Nir Soffer, Thomas Waldmann
@license: GNU GPL, see COPYING for details.
- theme modified by Kalle Soderman
"""
from MoinMoin.theme import ThemeBase
# Header
u'<div id="header">',
- self.searchform(d),
- #self.logo(),
- u'<div id="domaintools"><p class="section">Wiki</p>',
+ u'<div id="wikisection">',
+ u'<p class="section"><a href="/" title="Debian Wiki Homepage">Wiki</a></p>',
self.username(d),
- u'</div>',
- u'<div id="navbar">',
+ u'</div>',
+ u'<div id="navbar">',
self.navibar(d),
- u'</div>',
- u'<div id="breadcrumbs">',
- u'<a href="/" title="Wiki Homepage">Wiki</a><span class="sep">/</span>',
- #self.interwiki(d),
- self.title(d),
- u'</div>',
-
- #self.trail(d),
+ u'</div>',
+ self.searchform(d),
+ self.logo(),
+ self.interwiki(d),
+ #u'<a href="/" title="wiki home">Wiki</a> / ',
+ u'<div id="breadcrumbs"><a href="/" title="Debian Wiki Homepage">Wiki</a><span class="sep">/</span>',self.trail(d),
+ u'</div>',
#u'<hr id="pageline">',
+ #u'<div id="pageline"><hr style="display:none;"></div>',
self.msg(d),
+ self.editbar(d),
u'<h1 id="locationline">',
- self.title(d),
+ self.interwiki(d),
+ self.title_with_separators(d),
u'</h1>',
- u'<div id="pageline"><hr style="display:none;"></div>',
- #self.editbar(d),
u'</div>',
# Post header custom html (not recommended)
# Header
u'<div id="header">',
u'<h1 id="locationline">',
- self.title(d),
+ self.title_with_separators(d),
u'</h1>',
self.msg(d),
u'</div>',
page = d['page']
html = [
# End of page
- self.pageinfo(page),
self.endPage(),
# Pre footer custom html (not recommended!)
# Footer
u'<div id="footer">',
- self.editbar(d),
+ # self.editbar(d),
+ self.pageinfo(page),
self.credits(d),
self.showversion(d, **keywords),
u'</div>',
]
return u'\n'.join(html)
- def title(self, d):
- """ Assemble the title (now using breadcrumbs)
-
- @param d: parameter dictionary
- @rtype: string
- @return: title html
- """
- _ = self.request.getText
- content = []
- if d['title_text'] == d['page'].split_title(): # just showing a page, no action
- curpage = ''
- segments = d['page_name'].split('/') # was: title_text
- for s in segments[:-1]:
- curpage += s
- content.append(Page(self.request, curpage).link_to(self.request, s))
- curpage += '/'
- link_text = segments[-1]
- link_title = _('Click to do a full-text search for this title')
- link_query = {
- 'action': 'fullsearch',
- 'value': 'linkto:"%s"' % d['page_name'],
- 'context': '180',
- }
- # we dont use d['title_link'] any more, but make it ourselves:
- link = d['page'].link_to(self.request, link_text, querystr=link_query, title=link_title, css_class='backlink', rel='nofollow')
- content.append(link)
- else:
- content.append(wikiutil.escape(d['title_text']))
-
- location_html = u'<span class="sep">/</span>'.join(content)
- html = u'<span id="pagelocation">%s</span>' % location_html
- return html
-
def username(self, d):
""" Assemble the username / userprefs link
title = self.shortenPagename(title)
link = page.link_to(request, title)
items.append(link)
- html = u'<div id="pagetrail">%s</div>' % u'<span class="sep">/</span>'.join(items)
+ html = u'<div id="pagetrail">%s</div>'% u'<span class="sep">/</span>'.join(items)
return html
def interwiki(self, d):