changeset 2767:2b9472c863db

remove one-col,.. four-col classes and replace with moin-link-list and moin-tags; tweak styling of tags and link lists
author RogerHaase <haaserd@gmail.com>
date Wed, 27 Aug 2014 09:47:33 -0700
parents 191589323583
children 4909638a54f9 c860300a60c9
files MoinMoin/static/css/common.css MoinMoin/templates/global_tags.html MoinMoin/templates/link_list_item_panel.html MoinMoin/templates/link_list_no_item_panel.html MoinMoin/templates/refs.html
diffstat 5 files changed, 19 insertions(+), 33 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/static/css/common.css	Tue Aug 26 14:40:16 2014 -0700
+++ b/MoinMoin/static/css/common.css	Wed Aug 27 09:47:33 2014 -0700
@@ -50,33 +50,9 @@
     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: 0 0 5px 0;
-    display: inline-block;
-    overflow: hidden;
-}
-.one-col li{
-    width: 100%;
-}
-.two-col li{
-    width: 50%;
-}
-.three-col li{
-    width: 33%;
-}
-.four-col li{
-    width: 25%;
+
+.moin-link-list li {
+    padding: 2px 0 2px 0;
 }
 input[type="text"].moin-acl-string {
     width: 70%;
@@ -89,6 +65,16 @@
 }
 
 /* tags tab */
+ul.moin-tags {
+    display: block;
+    margin-left: 0;
+    }
+ul.moin-tags > li {
+    padding: 5px 0 5px 0;
+    display: inline-block;
+    text-align: center;
+    width: 300px;
+}
 ul.moin-tags li.weight0 {
     font-size: 100%;
 }
--- a/MoinMoin/templates/global_tags.html	Tue Aug 26 14:40:16 2014 -0700
+++ b/MoinMoin/templates/global_tags.html	Wed Aug 27 09:47:33 2014 -0700
@@ -4,9 +4,9 @@
         <h1>{{ headline }}</h1>
     {% endif %}
     {% if tags %}
-        <ul class="moin-tags three-col">
+        <ul class="moin-tags">
             {% for cls, tag in tags %}
-                <li class="{{ cls }}"><a href="{{ url_for('frontend.tagged_items', tag=tag, namespace=fqname.namespace) }}">{{ tag }}</a></li>
+                <li class="moin-wordbreak {{ cls }}"><a href="{{ url_for('frontend.tagged_items', tag=tag, namespace=fqname.namespace) }}">{{ tag }}</a></li>
             {% endfor %}
         </ul>
     {% endif %}
--- a/MoinMoin/templates/link_list_item_panel.html	Tue Aug 26 14:40:16 2014 -0700
+++ b/MoinMoin/templates/link_list_item_panel.html	Wed Aug 27 09:47:33 2014 -0700
@@ -5,7 +5,7 @@
     {% endif %}
     {% if fq_names %}
         Total: {{ fq_names|count }}
-        <ul>
+        <ul class="moin-link-list">
             {% for fq_name in fq_names|sort(attribute='value') %}
                 <li><a class="moin-fqname" href="{{ url_for('frontend.show_item', item_name=fq_name) }}" data-fqname="{{fq_name}}">{{ fq_name.value }}</a></li>
             {% endfor %}
--- a/MoinMoin/templates/link_list_no_item_panel.html	Tue Aug 26 14:40:16 2014 -0700
+++ b/MoinMoin/templates/link_list_no_item_panel.html	Wed Aug 27 09:47:33 2014 -0700
@@ -5,7 +5,7 @@
     {% endif %}
     {% if fq_names %}
         <h2>Total: {{ fq_names|count }}</h2>
-        <ul class="one-col">
+        <ul class="moin-link-list">
             {% for fq_name in fq_names|sort(attribute='value') %}
                 <li>
                     <a class="moin-fqname"
--- a/MoinMoin/templates/refs.html	Tue Aug 26 14:40:16 2014 -0700
+++ b/MoinMoin/templates/refs.html	Wed Aug 27 09:47:33 2014 -0700
@@ -2,14 +2,14 @@
 {% block content %}
     <h1>{{ _('Item References') }}</h1>
     <h2>{{ _('Outgoing') }}</h2>
-    <ul>
+    <ul class="moin-link-list">
         {% for fq_name in refs|sort(attribute='value') %}
             <li><a class="moin-fqname" href="{{ url_for('frontend.show_item', item_name=fq_name) }}" data-fqname="{{fq_name}}">{{ fq_name.value }}</a></li>
 
         {% endfor %}
     </ul>
     <h2>{{ _('Incoming') }}</h2>
-    <ul>
+    <ul class="moin-link-list">
         {% for fq_name in backrefs|sort(attribute='value') %}
             <li><a class="moin-fqname" href="{{ url_for('frontend.show_item', item_name=fq_name) }}" data-fqname="{{fq_name}}">{{ fq_name.value }}</a></li>