mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
refactor home page based on #293 - css tweaks
This commit is contained in:
parent
45c84e79d9
commit
8a8d79796e
3 changed files with 17 additions and 1 deletions
|
@ -743,6 +743,15 @@ div.navbar {
|
||||||
left: 122px;
|
left: 122px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.view_filter {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.post_list {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
.post_list .post_teaser {
|
.post_list .post_teaser {
|
||||||
border-bottom: solid 2px #ddd;
|
border-bottom: solid 2px #ddd;
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
|
|
|
@ -328,7 +328,14 @@ div.navbar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.view_filter {
|
||||||
|
@include breakpoint(phablet) {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.post_list {
|
.post_list {
|
||||||
|
clear: both;
|
||||||
.post_teaser {
|
.post_teaser {
|
||||||
|
|
||||||
border-bottom: solid 2px $light-grey;
|
border-bottom: solid 2px $light-grey;
|
||||||
|
|
|
@ -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 %}
|
{% 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') }}">
|
<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') }}
|
{{ _('Subscribed') }}
|
||||||
|
|
Loading…
Reference in a new issue