Author: jvloothuis
Date: Sat Jun 30 09:25:35 2007
New Revision: 44640
Added:
kukit/KSSPylonsWiki/trunk/ksspylonswiki/public/edit-delete.png (contents,
props changed)
Modified:
kukit/KSSPylonsWiki/trunk/ksspylonswiki/controllers/ksspage.py
kukit/KSSPylonsWiki/trunk/ksspylonswiki/public/quick.css
kukit/KSSPylonsWiki/trunk/ksspylonswiki/templates/titles.myt
Log:
Made the wiki look more like the presentation
Changed the save animation
Modified: kukit/KSSPylonsWiki/trunk/ksspylonswiki/controllers/ksspage.py
==============================================================================
--- kukit/KSSPylonsWiki/trunk/ksspylonswiki/controllers/ksspage.py
(original)
+++ kukit/KSSPylonsWiki/trunk/ksspylonswiki/controllers/ksspage.py Sat Jun
30 09:25:35 2007
@@ -13,7 +13,7 @@
form = render('/edit.myt', fragment=True)
commands = KSSCommands()
- core = commands.get_command_set('core')
+ core = commands.get('core')
core.replace_inner_html(CSS('div.content'), form)
return render_kss_response(commands)
@@ -33,14 +33,15 @@
html = render('/page.myt', fragment=True)
commands = KSSCommands()
- core = commands.get_command_set('core')
+ core = commands.get('core')
core.replace_inner_html(CSS('div.content'), html)
core.insert_html_as_first_child(
- CSS('div.content'), '<div class="message">Page saved</div>')
+ CSS('div.content'), '<div class="message" style="display:
none;">Page saved</div>')
- effects = commands.get_command_set('effects')
- effects.effect(CSS('div.message'), 'fade', delay=2)
+ effects = commands.get('effects')
+ effects.effect(CSS('div.message'), 'blinddown')
+ effects.effect(CSS('div.message'), 'blindup', delay=2)
return render_kss_response(commands)
@@ -52,7 +53,7 @@
c.content = page.get_wiki_content()
commands = KSSCommands()
- core = commands.get_command_set('core')
+ core = commands.get('core')
content_html = render('/page.myt', fragment=True)
core.replace_inner_html(CSS('div.content'), content_html)
@@ -67,7 +68,7 @@
html = render('/titles.myt', fragment=True)
commands = KSSCommands()
- core = commands.get_command_set('core')
+ core = commands.get('core')
core.replace_inner_html(CSS('div.content'), html)
footer_html = render('/footer.myt', fragment=True)
@@ -83,7 +84,7 @@
commands = KSSCommands()
- effects = commands.get_command_set('effects')
+ effects = commands.get('effects')
effects.effect(CSS('li.kssattr-title-%s' % title), 'fade')
return render_kss_response(commands)
Added: kukit/KSSPylonsWiki/trunk/ksspylonswiki/public/edit-delete.png
==============================================================================
Binary file. No diff available.
Modified: kukit/KSSPylonsWiki/trunk/ksspylonswiki/public/quick.css
==============================================================================
--- kukit/KSSPylonsWiki/trunk/ksspylonswiki/public/quick.css (original)
+++ kukit/KSSPylonsWiki/trunk/ksspylonswiki/public/quick.css Sat Jun 30
09:25:35 2007
@@ -1,39 +1,48 @@
body{
- background-color: #888;
+ background-color:#300;
+ color:#ffffff;
margin: 25px;
}
div.content{
- margin-top: 0;
+ margin-top: 4em;
margin-bottom: 10px;
margin-left: auto;
margin-right: auto;
width: 60em;
- background-color: #d3e0ea;
- border: 5px solid #333;
- padding: 5px 25px 25px 25px;
}
h1.main{
width: 100%;
- border-bottom: 1px solid #000;
+ border-bottom: 1px solid white;
}
p.footer{
width: 60em;
margin-left: auto;
margin-right: auto;
padding-top: 3px;
- border-top: 1px solid #000;
+ border-top: 1px solid white;
}
div#message{
color: red;
}
+a, a.visited, a.active { color: #739494; text-decoration: none }
+
.message {
background-color: yellow;
font-size: 120%;
font-weight: bold;
padding: 0.2em;
text-align: center;
+ width: 20em;
+ position: absolute;
+ top: 0px;
+ z-index: 4;
}
+.delete-link {
+ background: transparent url(/edit-delete.png) no-repeat;
+ padding-left: 20px;
+ margin-left: 4em;
+}
Modified: kukit/KSSPylonsWiki/trunk/ksspylonswiki/templates/titles.myt
==============================================================================
--- kukit/KSSPylonsWiki/trunk/ksspylonswiki/templates/titles.myt
(original)
+++ kukit/KSSPylonsWiki/trunk/ksspylonswiki/templates/titles.myt Sat Jun
30 09:25:35 2007
@@ -7,7 +7,7 @@
<% h.link_to(title, h.url_for(title=title, action="index")) %>
</span>
<span class="delete-link">
- [<% h.link_to("delete", h.url_for(title=title, action="delete")) %>]
+ <% h.link_to("delete", h.url_for(title=title, action="delete")) %>
</span>
</li>
% #end for
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins