[Xenbros] Grid layout for node without addon

[Xenbros] Grid layout for node without addon

hemant_bhardwaj

Well-known member
hemant_bhardwaj submitted a new resource:

[Xenbros] Grid layout for node without addon - one for default theme some other theme might get bug :)

Hemant here again with Node grid layout without Addon.
Well after Developing some addon i really like to go back to please with css but this time with flex 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.

Less:
.block--category{
@media (min-width...

Read more about this resource...
 
I found this:

But I noticed It is no good option to remove the last-post-avatar.

But how to make this avatar a bit smaller?
 
I found this:

But I noticed It is no good option to remove the last-post-avatar.

But how to make this avatar a bit smaller?

you can do that with css too - but it's not look good to me just adjust the all value according to you need
.node-extra-icon .avatar {
width: 36px;
height: 36px;
font-size: 22px;
}
and if you want the avtar place doesn;t remove you can use the
.node-extra-icon {
visibility: hidden;
}
this will still hide the avatar but not move the other object to its place
visibility: hidden preserve the space, whereas display: none doesn't preserve the space.
 
Hello Hemant - I changed nothing and used your files in Extra.less.

Therefore I think it is strange to get this result in Default:

5d5d2b16492de-GRID_DEFAULT.jpg
 
Can you maybe look into this and see if this can be done? Thanks.

 
Me again.
I have made a testforum with the 2.1.2 version, imported live my live forum in it and then installed Grid layout for node.

What leads to 30% cpu-use in 2.1.3 stays now completely calm in 2.1.2
 
Me again.
I have made a testforum with the 2.1.2 version, imported live my live forum in it and then installed Grid layout for node.

What leads to 30% cpu-use in 2.1.3 stays now completely calm in 2.1.2
I have v2.1.3 on two sites. Both have this addon. Neither are having any issues.

CSS simply CANNOT cause high server load!
 
My testforum is now indeed in version 2.1.3 - updated manually and hopefully i get in my testforum the same results as you have.
That's good to hear. But, if you do have server load issues you must understand, it really can't be due to simple CSS code in the extra.less template.

As far as the code itself goes - I'm still seeing browser compatibility issues with it. It seems like some browsers are ignoring this code completely.
 
Grid is now functional in a test style.
Now there is indeed no problem.
I think the problem I had, was the combination of the Grid Layout wit Xon's Redis Cache.

Redis is now deactivated and removed.
 
Top Bottom