hemant_bhardwaj
Well-known member
@Jordyn once try the Ehren code with grid.Thanks guys, i tried both your codes now. Just not having much luck lol. I'll get back to this at some point thanks.
@Jordyn once try the Ehren code with grid.Thanks guys, i tried both your codes now. Just not having much luck lol. I'll get back to this at some point thanks.
Hello,
do you have grid layout for Forum list/nodes without addon?
I used to have this in xenforo 1 but now I can't find it without addon.
@ozzy47 I mean in forum/node list but thanks for trying to help me.
for that you need to modify the template it't not available by default. this mod will use only css to get grid layoutHow can I get the reaction "Like" button in the grids? Not sure its possible but thought I would ask! Thanks!
Working great for me!Howdy,
may I ask, if this code addition works with the latest version of xfrm?
I added the code, and it did not change to grid view.
@resource-grid-gap: 4px;
@resource-grid-width: 48%;
@resource-grid-thumb: 75px;
@media (min-width: @xf-responsiveMedium){
@supports(display: grid){
.block[data-type="resource"] .structItemContainer{
display: grid;
grid-template-columns: repeat(auto-fit, minmax(@resource-grid-width, 1fr));
grid-gap: @resource-grid-gap;
padding: @resource-grid-gap;
background-color: @xf-contentAltBg;
}
.structItem--resource {
background-color: @xf-contentBg;
border-radius: 3px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
border-width: 0px;
display: grid;
grid-template-columns: @resource-grid-thumb 1fr;
grid-template-areas: 'icon text' 'stats stats';
.structItem-cell--icon.structItem-cell--iconExpanded{
width: auto;
grid-area: icon;
}
.structItem-title{
white-space: normal;
}
.structItem-cell--main {
grid-area: text;
overflow: hidden;
}
.structItem-cell--resourceMeta {
grid-area: stats;
width: auto;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
}
.structItem-cell--iconExpanded .structItem-iconContainer .avatar {
width: 100%;
height: auto;
font-size: 56px;
}
.structItem-secondaryIcon {
display: none;
}
.structItem-metaItem--rating{
flex: 1 0 100%;
}
.structItem-metaItem--downloads,
.structItem-metaItem--lastUpdate{
flex: 0 1 auto;
}
.ratingStarsRow--justified {
border-bottom: 1px solid @xf-borderColorFaint;
margin-bottom: 4px;
padding-bottom: 4px;
}
}
}
}
.structItem-metaItem--lastUpdate dt,.structItem-metaItem--downloads dt{
font-size:0px; }
.structItem-metaItem--downloads dd{
margin-left:18px; }
.structItem-metaItem--downloads dt:before ,.structItem-metaItem--lastUpdate dt:before {
font-family: FontAwesome;
font-size: 14px;
position: absolute; }
.structItem-metaItem--downloads dt:before {
margin-left: 0px;
.m-faContent(@fa-var-download); }
.structItem-metaItem--lastUpdate dt:before {
.m-faContent(@fa-var-clock);
margin-left: -15px; }
We use essential cookies to make this site work, and optional cookies to enhance your experience.