Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Commit

Permalink
A few fixes for sidebar styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwex committed Aug 14, 2012
1 parent cbfe318 commit d7e9794
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
7 changes: 5 additions & 2 deletions app/http/public/stylesheets/sidebar.css
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -159,12 +159,14 @@ span svg {
} }


.contacts .header svg { .contacts .header svg {
width: 30px; width: 20px;
height: 20px; height: 20px;
} }


.contact { .contact {
clear: both; clear: both;
overflow: hidden;
height: 2em;
} }
.contact * { .contact * {
height: 2em; height: 2em;
Expand All @@ -175,7 +177,8 @@ span svg {
} }
.contact .name { .contact .name {
float: left; float: left;
margin: 1em; margin: 0.5em;
padding: 0;
margin-top: 0.75em; margin-top: 0.75em;


} }
Expand Down
9 changes: 5 additions & 4 deletions app/http/views/social/sidebar.ejs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@
li.find('a').text(contact.realName).attr('href', 'https://mozillians.org/en-US/search?q=' + contact.nick); li.find('a').text(contact.realName).attr('href', 'https://mozillians.org/en-US/search?q=' + contact.nick);
li.find('img').attr('src', contact.gravatar + "?s=30"); li.find('img').attr('src', contact.gravatar + "?s=30");
if (!contact.status){ // This swaps out an "Online" state instead of the svg
contact.status = "online"; // if (!contact.status){
} // contact.status = "online";
// }
if (contact.status){ if (contact.status){
li.find('svg').hide(); li.find('svg').hide();
Expand Down Expand Up @@ -223,7 +224,7 @@
<h2>Contacts</h2> <h2>Contacts</h2>
<span id="my_status" class="status"> <span id="my_status" class="status">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<circle cx="15" cy="15" r="5" stroke-width="0" fill="green" /> <circle cx="10" cy="10" r="5" stroke-width="0" fill="green" />
</svg> </svg>
<button class="btn btn-mini" data-toggle="dropdown" style="display:none;"></button> <button class="btn btn-mini" data-toggle="dropdown" style="display:none;"></button>
</span> </span>
Expand Down

0 comments on commit d7e9794

Please sign in to comment.