This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restyle search results page to look like homepage
- Loading branch information
1 parent
d15bab1
commit c7d0647
Showing
9 changed files
with
206 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
.search-box { | ||
input { | ||
width: 136px; | ||
} | ||
} | ||
#search { | ||
|
||
.search-results { | ||
.mini-user { | ||
margin: 2px; | ||
form { | ||
text-align: center; | ||
margin: 0 0 40px; | ||
button { | ||
font: normal 14pt/20pt $Ideal; | ||
padding: 4pt 10pt; | ||
height: 26pt; | ||
} | ||
input { | ||
font: normal 16pt/20pt $Ideal; | ||
width: 50%; | ||
height: 24pt; | ||
} | ||
} | ||
} | ||
|
||
.search-result { | ||
margin-bottom: 0.8em; | ||
padding-left: 0.5em; | ||
@include clearfix; | ||
.avatar { | ||
float: left; | ||
margin: 0.5em 0; | ||
max-height: 66px; | ||
max-width: 66px; | ||
.sorry { | ||
text-align: center; | ||
font: normal 12px/15px $Ideal; | ||
color: $medium-gray; | ||
} | ||
.col-right { | ||
margin-left: 74px; | ||
|
||
h2 { | ||
margin-top: 4em; | ||
} | ||
.excerpt { | ||
font-size: 80%; | ||
line-height: 130%; | ||
padding: 0.5em 0 0 1em; | ||
|
||
.description strong { | ||
font-weight: bold; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% from 'templates/avatar-url.html' import avatar_url, avatar_img with context %} | ||
{% macro list_participants(participants_and_excerpts, show_emails) %} | ||
<table class="listing"> | ||
{% for i, (participant, excerpts) in enumerate(participants_and_excerpts, start=1) %} | ||
<tr> | ||
<td class="item"> | ||
{{ avatar_img(participant) }} | ||
<a class="name" href="/~{{ participant.username }}/">{{ participant.username }}</a> | ||
|
||
<div class="details"> | ||
<span class="i">{{ i }}</span> | ||
<span class="ctime">· {{ _("joined {ago}", | ||
ago=to_age(participant.claimed_time, add_direction=True)) }}</span> | ||
{% if show_emails %}<span class="email">· | ||
<a href="mailto:{{ participant.email_address }}">{{ | ||
participant.email_address }}</a></span>{% endif %} | ||
{% if excerpts %} | ||
<span class="description"> | ||
{{ process_excerpt('… ' + excerpts[0]['excerpt'] + ' …') }} | ||
</span> | ||
{% else %} | ||
<span class="description">{{ get_processed_excerpt(participant) }}</span> | ||
{% endif%} | ||
</div> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.