Commit 907e7636 by Brittany Cheng

sort styles

parent 8febbf24
...@@ -23,7 +23,8 @@ $discussion_input_width: 90%; ...@@ -23,7 +23,8 @@ $discussion_input_width: 90%;
.search-wrapper-inline { .search-wrapper-inline {
width: 80%; width: 80%;
display: inline-block; display: inline-block;
margin-top: 2%; margin-top: 3%;
margin-bottom: 6%;
} }
.discussion-search-form { .discussion-search-form {
margin-bottom: 1%; margin-bottom: 1%;
...@@ -56,6 +57,7 @@ $discussion_input_width: 90%; ...@@ -56,6 +57,7 @@ $discussion_input_width: 90%;
.discussion-search-within-board { .discussion-search-within-board {
font-style: normal; font-style: normal;
font: inherit; font: inherit;
font-size: $comment_body_size;
} }
.control-button { .control-button {
@include button; @include button;
...@@ -182,6 +184,10 @@ $discussion_input_width: 90%; ...@@ -182,6 +184,10 @@ $discussion_input_width: 90%;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
} }
.discussion-sort {
float: right;
margin-top: -2.5%;
}
.discussion-content-edit, .discussion-reply-new, .new-post-form { .discussion-content-edit, .discussion-reply-new, .new-post-form {
.new-post-control, .edit-post-control { .new-post-control, .edit-post-control {
margin-left: 70.5%; margin-left: 70.5%;
...@@ -193,7 +199,7 @@ $discussion_input_width: 90%; ...@@ -193,7 +199,7 @@ $discussion_input_width: 90%;
color: white; color: white;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
margin-left: 3%; margin-left: 5%;
display: inline-block; display: inline-block;
padding-top: 9px; padding-top: 9px;
font-size: inherit; font-size: inherit;
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
<%def name="link_to_sort(key, title)"> <%def name="link_to_sort(key, title)">
% if key == sort_key: % if key == sort_key:
% if sort_order.lower() == 'desc': % if sort_order.lower() == 'desc':
${_link_to_sort(key, 'asc', title + ' (desc)')} ${_link_to_sort(key, 'asc', title + ' [v]')}
% else: % else:
${_link_to_sort(key, 'desc', title + '(asc)')} ${_link_to_sort(key, 'desc', title + ' [^]')}
% endif % endif
% else: % else:
${_link_to_sort(key, 'desc', title)} ${_link_to_sort(key, 'desc', title)}
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
<div class="discussion-sort"> <div class="discussion-sort">
Sort by: Sort by:
${link_to_sort('date', 'Date')} ${link_to_sort('date', 'Date')}
|
${link_to_sort('votes', 'Votes')} ${link_to_sort('votes', 'Votes')}
|
${link_to_sort('comments', 'Comments')} ${link_to_sort('comments', 'Comments')}
</div> </div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment