XF 2.1 Grid layout nodes

indicator

Member
Hi there,

Would like to make forum index into 2 column layout.

I have followed the instruction as per the link below


But it is not working for XF2.1

Anyone help with the extra.less codes?
 
Hi there,

Would like to make forum index into 2 column layout.

I have followed the instruction as per the link below


But it is not working for XF2.1

Anyone help with the extra.less codes?

Less:
.block--category{
@media (min-width: 1100px){
 @supports(display: grid){
    .block-body{display:grid;
  grid-template-columns:50% 50%;
}
.node-body{
  display:flex;
  flex-wrap: wrap;
  border-right: 1px solid #dedede;
  position:relative;
  height: 100%;
  padding:5px;
}
.node-icon{width:12%; padding-top:5px;}
.node-main{width:87%;}
.node-stats{width:110px;}
.node-extra{
  position:absolute;
  right:0px;
  bottom:0px;
  padding: 10px 10px 13px 0px;
}
  }}
}

can you try this :) i write it for latest xenforo
 
Hello Hemant, for starting, it looks great indeed, only I wish for a better separation between the nodes.
Now it looks crowded.

5d5bfca4edd3c-Hemant_Grid.jpg
 
Less:
.block--category{
@media (min-width: 1100px){
 @supports(display: grid){
    .block-body{display:grid;
  grid-template-columns:50% 50%;
}
.block-container{
  background-color: #ffffff00;
  border:none;
 }
.node-body{
  display:flex;
  flex-wrap: wrap;
  border-right: 1px solid #dedede;
  position:relative;
  height: 100%;
  padding:5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-width: 1px;
  border-style: solid;
  background-color: #ffffff;
  border-top-color: #dfdfdf;
  border-right-color: #d8d8d8;
  border-bottom-color: #cbcbcb;
  border-left-color: #d8d8d8;
}
.node{margin: 5px 1px 5px 1px;}
.node-icon{width:12%; padding-top:5px;}
.node-main{width:87%;}
.node-stats{width:110px;}
.node-extra{
  position:absolute;
  right:0px;
  bottom:0px;
  padding: 10px 10px 13px 0px;
}
  }}
}

Try this :)
 
Hello Hemant,
I have changed the border to 4px with color @xf-pageBg
Looks great.
I that could be made to happen between each node-grid block, I think things will look wonderful.
 
Hello Hamant - happy now!

CSS:
  border-right: 3px solid @xf-pageBg;
  border-bottom: 2px solid @xf-pageBg;
don't forget to review it if you like it :)
 
Top Bottom