refactor home page based on #293 - css tweaks

This commit is contained in:
rimu 2024-08-16 14:02:01 +12:00
parent 45c84e79d9
commit 8a8d79796e
3 changed files with 17 additions and 1 deletions

View file

@ -743,6 +743,15 @@ div.navbar {
left: 122px;
}
@media (min-width: 768px) {
.view_filter {
float: right;
}
}
.post_list {
clear: both;
}
.post_list .post_teaser {
border-bottom: solid 2px #ddd;
padding-top: 8px;

View file

@ -328,7 +328,14 @@ div.navbar {
}
}
.view_filter {
@include breakpoint(phablet) {
float: right;
}
}
.post_list {
clear: both;
.post_teaser {
border-bottom: solid 2px $light-grey;

View file

@ -1,4 +1,4 @@
<div class="btn-group mt-1 mb-2" style="float: right;" aria-label="{{ _('Post filters: ') }}">
<div class="view_filter btn-group mt-1 mb-2" aria-label="{{ _('Post filters: ') }}">
{% if not current_user.is_anonymous %}
<a href="/home/{{ sort }}/subscribed" class="btn {{ 'btn-primary' if view_filter == 'subscribed' else 'btn-outline-secondary' }}" rel="nofollow noindex" title="{{ _('Posts from joined communities') }}">
{{ _('Subscribed') }}