kishaningithub / hugo-creative-portfolio-theme

Port of the creative portfolio theme to Hugo
https://themes.gohugo.io/hugo-creative-portfolio-theme/
MIT License
447 stars 292 forks source link

Number of columns #68

Open LeonardoDaVincio opened 5 years ago

LeonardoDaVincio commented 5 years ago

Hello, is it possible to change the number of columns in the portfolio? I didn't find a way to modify it, yet.

ed353 commented 3 years ago

I am wondering the same thing myself!

HLasse commented 3 years ago

@LeonardoDaVincio @ed353

I managed to get 2 columns by adding the following to the custom.css file:

@media (min-width: 992px){
    .col-lg-3{
        width: 50% !important;
    }
}

@media (min-width: 1200px){
    .col-lg-3{
        width: 50% !important;
    }
}

@media (min-width: 992px) {
    .col-md-9{
        width:60%;
    }
}

It's possible the !important calls are unnecessary (it's a habit to use them by now)

Best, Lasse