changeset 1722:02c0e90cbb0b

Move blog styles to separate css/styl files (foobar theme).
author Pavel Sviderski <pavel@psviderski.name>
date Tue, 21 Aug 2012 22:35:55 +0200
parents 1df0320ae4c4
children 805f03d03259
files MoinMoin/themes/foobar/static/css/blog.css MoinMoin/themes/foobar/static/css/common.css MoinMoin/themes/foobar/static/css/stylus/blog.styl MoinMoin/themes/foobar/static/css/stylus/main.styl
diffstat 4 files changed, 53 insertions(+), 44 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/foobar/static/css/blog.css	Tue Aug 21 22:35:55 2012 +0200
@@ -0,0 +1,11 @@
+.moin-blog-icon{font-size:1.6em}
+.moin-blog-entry-info{font-size:.8em;color:#616161;margin:1em 0}
+.moin-blog-entry-bottominfo{font-size:.8em;color:#616161;margin:1em 0;padding:0 1em;border:1px solid #ccc}
+.moin-blog-entry-comments{margin:1em 0}
+.moin-blog-entry-modify{font-size:.8em;float:right}
+div.moin-blog-entry-tags{margin:1em 0}
+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/foobar/static/css/common.css	Tue Aug 21 15:30:45 2012 +0200
+++ b/MoinMoin/themes/foobar/static/css/common.css	Tue Aug 21 22:35:55 2012 +0200
@@ -231,15 +231,6 @@
 #moin-create-table tbody tr th{text-align:center;background:#808080;margin:2px}
 #moin-create-table tbody tr td{text-align:center;background:#f4f4f4;}
 #moin-create-table tbody tr td a{color:#1e90ff}
-#moin-blog-header{margin:1em 0 -1em 0}
-#moin-blog-content{padding:0 2em 0 0;display:table-cell}
-#moin-blog-sidebar{width:15em;display:table-cell}
-.moin-blog-entry-info{font-size:.8em;color:#616161}
-.moin-blog-entry-bottominfo{font-size:.8em;color:#616161;padding:0 1em;border:1px solid #ccc}
-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-clr{clear:both}
 .moin-index-message{width:50%;margin:1em auto;text-align:center;display:none;}
 .moin-index-message span{padding:4px;background-color:#007cef;color:#fff;border:1px solid #ccc;border-radius:5px}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/foobar/static/css/stylus/blog.styl	Tue Aug 21 22:35:55 2012 +0200
@@ -0,0 +1,42 @@
+// moin2 foobar theme - blog css
+
+// color have been used from the color palette
+@import "color_palette"
+
+.moin-blog-icon
+    font-size 1.6em
+
+.moin-blog-entry-info
+    font-size 0.8em
+    color footer_color
+    margin 1em 0
+
+.moin-blog-entry-bottominfo
+    font-size 0.8em
+    color footer_color
+    margin 1em 0
+    padding 0em 1em
+    border border_style
+
+.moin-blog-entry-comments
+    margin 1em 0
+
+.moin-blog-entry-modify
+    font-size 0.8em
+    float right
+
+div.moin-blog-entry-tags
+    margin 1em 0
+
+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/foobar/static/css/stylus/main.styl	Tue Aug 21 15:30:45 2012 +0200
+++ b/MoinMoin/themes/foobar/static/css/stylus/main.styl	Tue Aug 21 22:35:55 2012 +0200
@@ -318,41 +318,6 @@
                 a
                     color link_color
 
-// blog page
-#moin-blog-header
-    margin 1em 0 -1em 0
-
-#moin-blog-content
-    padding 0 2em 0 0
-    display table-cell
-
-#moin-blog-sidebar
-    width 15em
-    display table-cell
-
-.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
-
-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 ""
-                    
 // index page
 .moin-clr
     clear both