Ask question

Ask Questions and Get Answers from Our Community

Answer

Answer Questions and Become an Expert on Your Topic

Contact Staff

Our Experts are Ready to Answer your Questions

  • Upgrade your account to xenForo 2.x.x All Accesss Pass. Monthly subscription to the Premium group. Purchase a paid elevation of rights worth 30$ And Lifetime Upgrade 170$.

[Xenbros] Grid layout for node without addon

xFMafia

Administrator
Administrative
Joined
Feb 18, 2019
Messages
1,449
Reputation
2,422
Points
113
[Xenbros] Grid layout for node without addon. Hemant here again with Node grid layout without Addon.
Well after Developing some addon i really like to go back to learn and play with css but this time with flex instead of grid so here a quick mod for you.
so here it is.

So here a simple CSS that you need to place it in Extra.less that will give it what you looking for.

IF YOU LIKE IT PLEASE REVIEW IT

Note :
you need to adjust the max-width: 1100px; according to your forum layout.
CSS:
.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;
}
}}
}
Grid layout for node without addon
 
Top