added neutral skin 'Loopz'

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1776 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-06-07 16:47:41 +00:00
parent 18f641e6b1
commit f913b0d063
8 changed files with 103 additions and 0 deletions

View file

@ -664,4 +664,6 @@
provides="cybertools.browser.configurator.IViewConfigurator"
/>
<include package=".skin" />
</configure>

4
browser/skin/__init__.py Normal file
View file

@ -0,0 +1,4 @@
"""
$Id$
"""

20
browser/skin/body.pt Normal file
View file

@ -0,0 +1,20 @@
<tal:block i18n:domain="loops">
<div metal:use-macro="views/cybertools.body_macros/body">
<a href="#" name="top" metal:fill-slot="logo"
tal:attributes="href view/topMenu/url"><img
src="logo.png" border="0"
alt="loops Site"
tal:attributes="src string:${resourceBase}logo.png" /></a>
<metal:footer fill-slot="footer">
Powered by <b><a href="http://www.python.org">Python</a></b> &middot;
<b><a href="http://wiki.zope.org/zope3">Zope 3</a></b> &middot;
<b><a href="http://loops.cy55.de">loops</a></b>.
</metal:footer>
</div>
</tal:block>

31
browser/skin/browser.py Normal file
View file

@ -0,0 +1,31 @@
#
# Copyright (c) 2006 Helmut Merz helmutm@cy55.de
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
"""
Dummy view class for providing the body template.
$Id$
"""
from cybertools.browser.view import UnboundTemplateFile
class View(object):
bodyTemplate = UnboundTemplateFile('body.pt')

View file

@ -0,0 +1,26 @@
<!-- $Id$ -->
<configure
xmlns:zope="http://namespaces.zope.org/zope"
xmlns="http://namespaces.zope.org/browser"
i18n_domain="zope"
>
<layer name="loopz" />
<skin name="Loopz"
layers="loopz
cybertools.browser.liquid.liquid
rotterdam default" />
<page for="*"
name="body.html"
class="loops.browser.skin.browser.View"
permission="zope.View"
layer="loopz" />
<resource name="custom.css" file="custom.css" layer="loopz" />
<resource name="favicon.png" file="loops_favicon.png" layer="loopz" />
<resource name="logo.png" file="loops_logo.png" layer="loopz" />
</configure>

20
browser/skin/custom.css Normal file
View file

@ -0,0 +1,20 @@
/*
$Id$
*/
body {
color: #242424;
}
a {
text-decoration: none;
color: #344080;
background-color: transparent;
}
.top {
border-bottom: 1px solid #d0d0d0;
padding: 2px 0 2px 5px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

BIN
browser/skin/loops_logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB