[Guide] Making Grid Layout Forum/Node Without Add-ons

HIdden.be

Active member
Apr 22, 2020
225
164
43
Unknown
www.google.com
[Guide] Making Grid Layout Forum/Node Without Add-ons
Working For All Style
Screenshot 2020-11-21 211749.png

Now Start:
  1. Log In Admin Panel
  2. Go to Appearances/Templates
  3. Screenshot 2020-11-21 212301.png
  4. Filter/Search extra.less
  5. Screenshot 2020-11-21 212608.png
  6. Then open it.
  7. Screenshot 2020-11-21 212808.png
  8. Then Paste this css code
For Dark Theme
CSS:
.block--category{
@media (min-width: 1200px){
@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: 90%;
  padding:5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-width: 1px;
  border-style: solid;
  background-color: #464646;
  border-top-color: #dfdfdf;
  border-right-color: #d8d8d8;
  border-bottom-color: #cbcbcb;
  border-left-color: #d8d8d8;
}
.node{margin: 2px 1px 5px 1px;}
.node-icon{width:12%; padding-top:1px;}
.node-main{width:65%;} .node-stats{width:110px;}
.node-extra{
  position:absolute;
  right:0px;
  bottom:0px;
  padding: 5px 10px 13px 0px;
}
}}
}

For Light Theme
Code:
.block--category{
@media (min-width: 1200px){
@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: 90%;
  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: 2px 1px 5px 1px;}
.node-icon{width:12%; padding-top:1px;}
.node-main{width:65%;} .node-stats{width:110px;}
.node-extra{
  position:absolute;
  right:0px;
  bottom:0px;
  padding: 5px 10px 13px 0px;
}
}}
}

  • Go to Style Properties
  • Then Select your Style
  • Adjust this
    CSS:
    @media (min-width: 1200px){
    css with Maximum page width
  • Screenshot 2020-11-21 213444.png
  • All Done
Credit: hemant_bhardwaj(Xenbros)
Modified
ALiveVam
 
Last edited:
  • Like
Reactions: DarKMaSk and jereve

anonxpro

Active member
Banned User
Oct 30, 2020
380
241
43
babiato
Can u plz do something like adding a header menu like [cxf] top navigation ? it'd be much helpful!
 

DarKMaSk

Active member
Nov 17, 2020
306
78
43
[Guide] Making Grid Layout Forum/Node Without Add-ons
Working For All Style
Screenshot 2020-11-21 211749.png

Now Start:
  1. Log In Admin Panel
  2. Go to Appearances/Templates
  3. Screenshot 2020-11-21 212301.png
  4. Filter/Search extra.less
  5. Screenshot 2020-11-21 212608.png
  6. Then open it.
  7. Screenshot 2020-11-21 212808.png
  8. Then Paste this css code
For Dark Theme
CSS:
.block--category{
@media (min-width: 1200px){
@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: 90%;
  padding:5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-width: 1px;
  border-style: solid;
  background-color: #464646;
  border-top-color: #dfdfdf;
  border-right-color: #d8d8d8;
  border-bottom-color: #cbcbcb;
  border-left-color: #d8d8d8;
}
.node{margin: 2px 1px 5px 1px;}
.node-icon{width:12%; padding-top:1px;}
.node-main{width:65%;} .node-stats{width:110px;}
.node-extra{
  position:absolute;
  right:0px;
  bottom:0px;
  padding: 5px 10px 13px 0px;
}
}}
}

For Light Theme
Code:
.block--category{
@media (min-width: 1200px){
@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: 90%;
  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: 2px 1px 5px 1px;}
.node-icon{width:12%; padding-top:1px;}
.node-main{width:65%;} .node-stats{width:110px;}
.node-extra{
  position:absolute;
  right:0px;
  bottom:0px;
  padding: 5px 10px 13px 0px;
}
}}
}

  • Go to Style Properties
  • Then Select your Style
  • Adjust this
    CSS:
    @media (min-width: 1200px){
    css with Maximum page width
  • Screenshot 2020-11-21 213444.png
  • All Done
Credit: hemant_bhardwaj(Xenbros)
Modified
ALiveVam
This is a very good guide. However, what happens to the file after updating? Should we create a child theme to protect this code?
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu