color: #333333;
}
+#medalList .badgeListDescription {
+ float: left;
+ margin-top: 8px;
+ max-width: 60%;
+}
+
+#medalList .badgeListItem {
+ float: left;
+ width: 32%;
+}
+
+#medalList .intoMyBadges span {
+ font-size: 175%;
+ padding-right: 5px;
+ color: #5B9058;
+}
+#medalList .intoMyBadges {
+ float: left;
+ min-width: 5%;
+ text-align: right;
+ height:30px;
+}
+
.list-item {
margin-left: 15px;
}
<div id="medalList">
{% for badge in badges %}
<div style="clear:both;line-height:30px">
- <div style="float:left;min-width:30px;text-align:right;height:30px">
+ <div class="intoMyBadges">
{% if badge.id in mybadges %}
- <span style="font-size:175%; padding-right:5px; color:#5B9058;">✔</span>
+ <span>✔</span>
{% endif %}
</div>
- <div style="float:left;width:230px;">
+ <div class="badgeListItem">
<a href="{{badge.get_absolute_url}}" title="{{ badge.get_type_display }} : {{ badge.description }}" class="medal"><span class="badge{{ badge.type }}">●</span> {{ badge.name }}</a><strong> × {{ badge.awarded_count|intcomma }}</strong>
</div>
- <p style="float:left;margin-top:8px;">
+ <p class="badgeListDescription">
{{ badge.description }}
</p>
</div>