mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
[WIP] fixing layout on newsfeed page
This commit is contained in:
parent
72fc3a267d
commit
9454b7b541
@ -47,5 +47,6 @@ export default {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
margin-bottom: $space-x-small;
|
||||
margin-top: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -30,7 +30,7 @@ export default {
|
||||
/* dirty fix to override broken styleguide inline-styles */
|
||||
.ds-grid {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)) !important;
|
||||
gap: 32px 16px !important;
|
||||
gap: 16px 16px !important;
|
||||
grid-auto-rows: 20px;
|
||||
}
|
||||
|
||||
|
||||
@ -194,6 +194,7 @@ export default {
|
||||
display: block;
|
||||
height: 100%;
|
||||
color: $text-color-base;
|
||||
padding-top: 16px;
|
||||
}
|
||||
|
||||
.post-user-row {
|
||||
|
||||
@ -17,13 +17,10 @@
|
||||
/>
|
||||
</nuxt-link>
|
||||
</client-only>
|
||||
</div>
|
||||
<masonry-grid>
|
||||
<!--Filter Button-->
|
||||
<ds-grid-item
|
||||
v-if="categoriesActive && SHOW_CONTENT_FILTER_MASONRY_GRID"
|
||||
:row-span="1"
|
||||
column-span="fullWidth"
|
||||
</div>
|
||||
<div>
|
||||
<div
|
||||
v-if="categoriesActive && SHOW_CONTENT_FILTER_MASONRY_GRID"
|
||||
class="top-filter-menu"
|
||||
>
|
||||
<div class="filterButtonBox">
|
||||
@ -74,17 +71,19 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ds-grid-item>
|
||||
<!-- Placeholder/Space Row -->
|
||||
<ds-grid-item :row-span="1" column-span="fullWidth" />
|
||||
<!-- hashtag filter -->
|
||||
<ds-grid-item v-if="hashtag" :row-span="2" column-span="fullWidth">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="hashtag || showDonations" class="newsfeed-controls">
|
||||
<div v-if="hashtag">
|
||||
<hashtags-filter :hashtag="hashtag" @clearSearch="clearSearch" />
|
||||
</ds-grid-item>
|
||||
<!-- donation info -->
|
||||
<ds-grid-item v-if="showDonations" class="top-info-bar" :row-span="1" column-span="fullWidth">
|
||||
</div>
|
||||
<div v-if="showDonations" class="top-info-bar">
|
||||
<donation-info :goal="goal" :progress="progress" />
|
||||
</ds-grid-item>
|
||||
</div>
|
||||
</div>
|
||||
<!-- content grid -->
|
||||
<masonry-grid>
|
||||
<!-- news feed -->
|
||||
<template v-if="hasResults">
|
||||
<masonry-grid-item
|
||||
@ -336,6 +335,10 @@ export default {
|
||||
box-shadow: $box-shadow-x-large;
|
||||
}
|
||||
|
||||
.top-filter-menu{
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.top-info-bar,
|
||||
.top-filter-menu {
|
||||
display: flex;
|
||||
@ -345,10 +348,13 @@ export default {
|
||||
width: 95%;
|
||||
position: fixed;
|
||||
z-index: 6;
|
||||
margin-top: -35px;
|
||||
padding: 20px 10px 20px 10px;
|
||||
margin-top: -45px;
|
||||
padding: 30px 0px 20px 0px;
|
||||
background-color: #f5f4f6;
|
||||
}
|
||||
.newsfeed-controls{
|
||||
margin-top: 46px;
|
||||
}
|
||||
@media screen and (max-width: 656px) {
|
||||
.filterButtonMenu {
|
||||
margin-top: -50px;
|
||||
@ -415,4 +421,13 @@ export default {
|
||||
padding-top: 1em;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 650px) {
|
||||
// .top-filter-menu{
|
||||
// margin-top: 24px;
|
||||
// }
|
||||
|
||||
.newsfeed-controls{
|
||||
margin-top: 32px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user