changeset 1712:84b4ba208e8d

Add ticket-specific stylesheet (stylus source and generated css).
author Cheer Xiao <xiaqqaix@gmail.com>
date Sun, 19 Aug 2012 01:25:31 +0800
parents 664f34873981
children c924af7f5230
files MoinMoin/templates/ticket.css MoinMoin/templates/ticket.html MoinMoin/templates/ticket.styl
diffstat 3 files changed, 19 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/templates/ticket.css	Sun Aug 19 01:25:31 2012 +0800
@@ -0,0 +1,4 @@
+#moin-ticket-form dd{width:80%;margin-top:.1em;}
+#moin-ticket-form dd input{width:auto}
+#moin-ticket-form dt{width:15%;margin-top:.1em}
+
--- a/MoinMoin/templates/ticket.html	Sat Aug 18 13:51:58 2012 +0800
+++ b/MoinMoin/templates/ticket.html	Sun Aug 19 01:25:31 2012 +0800
@@ -7,9 +7,14 @@
     {% set title = _("Ticket: %(item_name)s", item_name=item_name) %}
 {% endif %}
 
+{% block head %}
+    {{ super() }}
+    <link media="all" rel="stylesheet" href="{{ url_for('frontend.template', filename='ticket.css') }}" />
+{% endblock %}
+
 {% block content %}
 <h1>{{ title }}</h1>
-<div class="moin-form">
+<div class="moin-form" id="moin-ticket-form">
     {{ gen.form.open(form, method='post', enctype='multipart/form-data') }}
 
     {% if data_rendered %}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/templates/ticket.styl	Sun Aug 19 01:25:31 2012 +0800
@@ -0,0 +1,9 @@
+#moin-ticket-form
+    dd
+        width 80%
+        margin-top: 0.1em
+        input
+            width auto
+    dt
+        width 15%
+        margin-top: 0.1em