Mercurial > moin > 2.0
changeset 2693:759817e9bc28
Improved UI of Blog Items in foobar theme and also displayed Itemviews in blog view in the same theme
author | Saurabh Kathpalia <saurabh.kathpalia95@gmail.com> |
---|---|
date | Thu, 07 Aug 2014 13:19:16 +0530 |
parents | fba2cb757335 |
children | c66d1f0a05ba |
files | MoinMoin/themes/foobar/static/css/blog.css MoinMoin/themes/foobar/static/css/stylus/blog.styl MoinMoin/themes/foobar/templates/blog/layout.html |
diffstat | 3 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/themes/foobar/static/css/blog.css Wed Aug 06 21:50:19 2014 +0530 +++ b/MoinMoin/themes/foobar/static/css/blog.css Thu Aug 07 13:19:16 2014 +0530 @@ -8,3 +8,7 @@ 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-blog-entry{border:2px solid #d6d5d0;padding-left:10px;padding-right:10px;padding-bottom:10px;border-radius:10px;background-color:#e8e8e8} +.moin-blog-entry h1{border-bottom:none;margin: 0.10em} +#moin-blog-header{margin:1em 0 -1em 0;font-size:20px;padding-bottom:20px} +#moin-blog-content h1 a{text-decoration:none;font-size:30px}
--- a/MoinMoin/themes/foobar/static/css/stylus/blog.styl Wed Aug 06 21:50:19 2014 +0530 +++ b/MoinMoin/themes/foobar/static/css/stylus/blog.styl Thu Aug 07 13:19:16 2014 +0530 @@ -40,3 +40,24 @@ ul.moin-blog-entry-tags li:last-child &:after content "" + +.moin-blog-entry + border 2px solid #d6d5d0 + padding-left 10px + padding-right 10px + padding-bottom 10px + border-radius 10px + background-color #e8e8e8 + +.blog-entry h1 + border-bottom none + margin: 0.10em + +#moin-blog-header + margin 1em 0 -1em 0 + font-size 20px + padding-bottom 20px + +#moin-blog-content h1 a + text-decoration none + font-size 30px
--- a/MoinMoin/themes/foobar/templates/blog/layout.html Wed Aug 06 21:50:19 2014 +0530 +++ b/MoinMoin/themes/foobar/templates/blog/layout.html Thu Aug 07 13:19:16 2014 +0530 @@ -1,5 +1,6 @@ {% extends theme("layout.html") %} {% import theme("blog/utils.html") as blog_utils %} +{% import "itemviews.html" as itemviews with context %} {% if blog_item %} {% set blog_header = blog_item.content._render_data()|safe %}