damned-lies r1290 - in trunk: . media/css templates/people



Author: stephaner
Date: Thu Jan  1 17:35:32 2009
New Revision: 1290
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1290&view=rev

Log:
2009-01-01  StÃphane Raimbault  <stephane raimbault gmail com>

	* media/css/main.css: New styles for person_list view. Fix hackergotchi
	height and reduce text size. Reduce space between image and details.
	* templates/people/person_list.html: Replace the CSS 3 attribute
	'column-count' (and relatives) by a more ordinary CSS layout (fix
	strange behaviour with FF3 and works with IE). Remove inline style.
	Use MEDIA_URL setting.

	First commit of 2009, happy new year ;)


Modified:
   trunk/ChangeLog
   trunk/media/css/main.css
   trunk/templates/people/person_list.html

Modified: trunk/media/css/main.css
==============================================================================
--- trunk/media/css/main.css	(original)
+++ trunk/media/css/main.css	Thu Jan  1 17:35:32 2009
@@ -114,6 +114,24 @@
   clear: left;
 }
 
+/* Used in people/person_list */
+.person_list {
+  padding-left: 85px;
+  margin-bottom: 12px;
+  clear: left;
+}
+
+.person_list .name {
+  font-size: 110%;
+}
+
+.person_list img {
+  border: 0;
+  height: 48px;
+  float: left;
+  margin-left: -65px;
+}
+
 div.mainpage {
   width:80%;
   text-align: left;

Modified: trunk/templates/people/person_list.html
==============================================================================
--- trunk/templates/people/person_list.html	(original)
+++ trunk/templates/people/person_list.html	Thu Jan  1 17:35:32 2009
@@ -5,26 +5,30 @@
 
 {% block content %}
 <div class="mainpage">
+  <h2>{% trans "GNOME Contributors" %}</h2>
 
-<h2>{% trans "GNOME Contributors" %}</h2>
-
-<p>{% trans "GNOME is being developed by following people:" %}</p>
-
-<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
-{% for person in person_list %}
-  <div class="maintainer">
-  {% if person.image %}
-    <img class="people" src="{{ person.image }}" alt="{{ person.name }}" />
-  {% else %}
-    <img class="people" src="/media/img/nobody.png" alt="" />
-  {% endif %}
-  <a style="font-size: 120%;" href="{{ person.get_absolute_url }}">{{ person.name }}</a><br />
-  {% if person.webpage_url %}
-  <a href="{{ person.webpage_url }}">{{ person.webpage_url }}</a><br />
-  {% endif %}
-  </div>
-{% endfor %}
-</div>
+  <p>{% trans "GNOME is being developed by following people:" %}</p>
 
+  {% load list_to_columns %}
+  <div style="col3_container">
+    {% list_to_columns person_list as columns 3 %}
+    {% for l in columns %}
+    <div class="col3_column">
+      {% for person in l %}
+      <div class="person_list">
+        {% if person.image %}
+        <img src="{{ person.image }}" alt="{{ person.name }}" />
+        {% else %}
+        <img src="{{ MEDIA_URL }}img/nobody.png" alt="" />
+        {% endif %}
+        <a class="name" href="{{ person.get_absolute_url }}">{{ person.name }}</a><br />
+        
+        {% if person.webpage_url %}
+        <a href="{{ person.webpage_url }}">{{ person.webpage_url }}</a><br />
+        {% endif %}
+      </div>
+      {% endfor %}
+    </div>
+    {% endfor %}
 </div>
 {% endblock %}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]