changeset 2705:2b549df8b3b0

Added css classes for making multicolumn lists
author Ajitesh Gupta <ajgupta93@gmail.com>
date Sun, 10 Aug 2014 00:06:51 +0530
parents 2ca8e9c8bfe2
children c7fe669a6c5c
files MoinMoin/static/css/common.css MoinMoin/templates/global_tags.html
diffstat 2 files changed, 28 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/static/css/common.css	Sat Aug 09 23:29:11 2014 +0530
+++ b/MoinMoin/static/css/common.css	Sun Aug 10 00:06:51 2014 +0530
@@ -49,3 +49,30 @@
   display: none;
   visibility: hidden;
 }
+.one-col,
+.two-col,
+.three-col,
+.four-col {
+  display: block;
+  float: left;
+  padding-left: 0px;
+}
+.one-col li,
+.two-col li,
+.three-col li,
+.four-col li{
+  padding-bottom: 5px;
+  display: inline-block;
+}
+.one-col li{
+  width: 100%;
+}
+.two-col li{
+  width: 50%;
+}
+.three-col li{
+  width: 33%;
+}
+.four-col li{
+  width: 25%;
+}
--- a/MoinMoin/templates/global_tags.html	Sat Aug 09 23:29:11 2014 +0530
+++ b/MoinMoin/templates/global_tags.html	Sun Aug 10 00:06:51 2014 +0530
@@ -4,7 +4,7 @@
 <h1>{{ headline }}</h1>
 {% endif %}
 {% if tags %}
-<ul class="moin-tags">
+<ul class="moin-tags three-col">
     {% for cls, tag in tags %}
     <li class="{{ cls }}"><a href="{{ url_for('frontend.tagged_items', tag=tag, namespace=fqname.namespace) }}">{{ tag }}</a></li>
     {% endfor %}