changeset 1721:1df0320ae4c4

Move blog styles to separate css/styl files (modernized theme).
author Pavel Sviderski <pavel@psviderski.name>
date Tue, 21 Aug 2012 15:30:45 +0200
parents ea19b98d4f94
children 02c0e90cbb0b
files MoinMoin/templates/blog_layout.html MoinMoin/themes/modernized/static/css/blog.css MoinMoin/themes/modernized/static/css/common.css MoinMoin/themes/modernized/static/css/stylus/blog.styl MoinMoin/themes/modernized/static/css/stylus/main.styl
diffstat 5 files changed, 69 insertions(+), 60 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/blog_layout.html	Mon Aug 20 02:14:18 2012 +0530
+++ b/MoinMoin/templates/blog_layout.html	Tue Aug 21 15:30:45 2012 +0200
@@ -81,6 +81,11 @@
     {% endmacro %}
 {% endif %}
 
+{% block theme_stylesheets %}
+    {{ super() }}
+    <link media="all" rel="stylesheet" href="{{ theme_static('css/blog.css') }}" />
+{% endblock %}
+
 {% block header_itemviews %}
     {{ itemviews }}
 {% endblock %}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/modernized/static/css/blog.css	Tue Aug 21 15:30:45 2012 +0200
@@ -0,0 +1,13 @@
+#moin-blog-header{margin:1em 0 -1em 0}
+#moin-blog-body{display:table;width:100%}
+#moin-blog-content{padding:0 2em 0 0;display:table-cell;width:80%}
+#moin-blog-sidebar{display:table-cell;width:20%}
+.moin-blog-icon{font-size:1.6em}
+.moin-blog-entry-info{font-size:.8em;color:#737373}
+.moin-blog-entry-bottominfo{font-size:.8em;color:#737373;padding:0 1em;border:1px solid #4e7da9}
+.moin-blog-entry-modify{font-size:.8em;margin:0;float:right}
+ul.moin-blog-entry-tags{list-style:none;display:inline;margin:0;}
+ul.moin-blog-entry-tags li{display:inline;}
+ul.moin-blog-entry-tags li:after{content:","}
+ul.moin-blog-entry-tags li:last-child:after{content:""}
+
--- a/MoinMoin/themes/modernized/static/css/common.css	Mon Aug 20 02:14:18 2012 +0530
+++ b/MoinMoin/themes/modernized/static/css/common.css	Tue Aug 21 15:30:45 2012 +0200
@@ -307,18 +307,6 @@
 #preview{border:1px solid #4e7da9;padding:10px 30px 20px 30px;background:url("../img/draft.png");margin-top:.5em}
 .moin-hist-rev input{float:left}
 .moin-hist-rev{margin:0}
-#moin-blog-header{margin:1em 0 -1em 0}
-#moin-blog-body{display:table;width:100%}
-#moin-blog-content{padding:0 2em 0 0;display:table-cell;width:80%}
-#moin-blog-sidebar{display:table-cell;width:20%}
-.moin-blog-icon{font-size:1.6em}
-.moin-blog-entry-info{font-size:.8em;color:#737373}
-.moin-blog-entry-bottominfo{font-size:.8em;color:#737373;padding:0 1em;border:1px solid #4e7da9}
-.moin-blog-entry-modify{font-size:.8em;margin:0;float:right}
-ul.moin-blog-entry-tags{list-style:none;display:inline;margin:0;}
-ul.moin-blog-entry-tags li{display:inline;}
-ul.moin-blog-entry-tags li:after{content:","}
-ul.moin-blog-entry-tags li:last-child:after{content:""}
 #moin-global-history,#moin-page-history{font-size:75%}
 #moin-page-history table{border:1px solid #4e7da9;border-radius:5px;}
 #moin-page-history table thead{border-top-left-radius:5px;border-top-right-radius:5px;}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/modernized/static/css/stylus/blog.styl	Tue Aug 21 15:30:45 2012 +0200
@@ -0,0 +1,51 @@
+//moin2 modernized theme - blog css
+
+// color have been used from the color palette
+@import "color_palette"
+
+#moin-blog-header
+    margin 1em 0 -1em 0
+
+#moin-blog-body
+    display table
+    width 100%
+
+#moin-blog-content
+    padding 0 2em 0 0
+    display table-cell
+    width 80%
+
+#moin-blog-sidebar
+    display table-cell
+    width 20%
+
+.moin-blog-icon
+    font-size 1.6em
+
+.moin-blog-entry-info
+    font-size 0.8em
+    color footer_color
+
+.moin-blog-entry-bottominfo
+    font-size 0.8em
+    color footer_color
+    padding 0em 1em
+    border border_style
+
+.moin-blog-entry-modify
+    font-size 0.8em
+    margin 0
+    float right
+
+ul.moin-blog-entry-tags
+    list-style none
+    display inline
+    margin 0
+    li
+        display inline
+        &:after
+            content ","
+
+ul.moin-blog-entry-tags li:last-child
+    &:after
+        content ""
--- a/MoinMoin/themes/modernized/static/css/stylus/main.styl	Mon Aug 20 02:14:18 2012 +0530
+++ b/MoinMoin/themes/modernized/static/css/stylus/main.styl	Tue Aug 21 15:30:45 2012 +0200
@@ -569,54 +569,6 @@
 .moin-hist-rev
     margin 0
 
-// blog page
-#moin-blog-header
-    margin 1em 0 -1em 0
-
-#moin-blog-body
-    display table
-    width 100%
-
-#moin-blog-content
-    padding 0 2em 0 0
-    display table-cell
-    width 80%
-
-#moin-blog-sidebar
-    display table-cell
-    width 20%
-
-.moin-blog-icon
-    font-size 1.6em
-
-.moin-blog-entry-info
-    font-size 0.8em
-    color footer_color
-
-.moin-blog-entry-bottominfo
-    font-size 0.8em
-    color footer_color
-    padding 0em 1em
-    border border_style
-
-.moin-blog-entry-modify
-    font-size 0.8em
-    margin 0
-    float right
-
-ul.moin-blog-entry-tags
-    list-style none
-    display inline
-    margin 0
-    li
-        display inline
-        &:after
-            content ","
-
-ul.moin-blog-entry-tags li:last-child
-    &:after
-        content ""  
-    
 #moin-global-history,
 #moin-page-history
     font-size 75%