Permalink
Browse files

styled recent activities portlet

  • Loading branch information...
1 parent a1c7532 commit d363d89c442eb64d7c5b7583ae286e11883a70b6 @blaflamme blaflamme committed Apr 15, 2012
@@ -2,10 +2,12 @@
<h3>Recent Activity</h3>
<ul id="recent-activity-list" class="portlet-list">
<li class="portlet-item" tal:repeat="item recent_items">
- <b><a href="${item.url}">${item.title}</a></b><br/>
- ${item.type}
- <abbr class="timeago" title="${item.modified_ago}">${item.modified_ago}</abbr> by
- <a href="${item.modified_by_url}">${item.modified_by_title}</a>
+ <a href="${item.url}">${item.title}</a> <span class="label label-inverse">${item.type}</span>
+ <br>
+ <div class="footer-line">
+ <abbr class="timeago" title="${item.modified_ago}">${item.modified_ago}</abbr> by
+ <a href="${item.modified_by_url}">${item.modified_by_title}</a>
+ </div>
</li>
</ul>
</section>
@@ -11,6 +11,12 @@
font-size: 1.333;
margin-top: 0;
}
+ .label-inverse {
+ background-color: @linkColor;
+ }
+ .label-inverse:hover {
+ background-color: darken(@linkColor, 10%);
+ }
}
.contentRelated {
.css3_border_radius(.5em);
@@ -56,6 +62,11 @@
padding: 0 0 5px 0;
margin: 0 0 5px 0;
border-bottom: 1px dotted darken(#82ADBF, 20%);
+ .footer-line {
+ color: @bodyBg;
+ font-size: 0.80em;
+ font-style: italic;
+ }
}
.portlet-buttons {

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit d363d89

Please sign in to comment.