For those who want to enable node grid styling on specific nodes/categories, I was looking for the same.
I've made some CSS for extra.less that overrules the styling from this mod without affecting the mod itself.
Some things to consider:
1. It'll only affect the categories you add the node class 'default-style' to (in Forums -> Node layout and styling)
2. Set the maximum columns to 1 in Forums -> Node layout and styling -> Default layout and styling -> Grid -> Maximum columns
3. I've set a custom width (46px) for the node icon in order to align things a bit on smaller screens. Could be that you need to adjust it to your node icon.
4. I haven't used background images and I'm using the default style, so you might need some adjustments to make it pixel perfect for your forum. I spent about 15 minutes on this so it might have some flaws.
5. This is hopefully a temporary solution until grids for specific categories will be available.
The result on my forum, with one category as 'default-style' and the other one with the node grid:
I've made some CSS for extra.less that overrules the styling from this mod without affecting the mod itself.
Some things to consider:
1. It'll only affect the categories you add the node class 'default-style' to (in Forums -> Node layout and styling)
2. Set the maximum columns to 1 in Forums -> Node layout and styling -> Default layout and styling -> Grid -> Maximum columns
3. I've set a custom width (46px) for the node icon in order to align things a bit on smaller screens. Could be that you need to adjust it to your node icon.
4. I haven't used background images and I'm using the default style, so you might need some adjustments to make it pixel perfect for your forum. I spent about 15 minutes on this so it might have some flaws.
5. This is hopefully a temporary solution until grids for specific categories will be available.
SCSS:
/* Avoid Themehouse grid styling when default-style is added to category classes*/
.thNodes__nodeList {
.default-style {
.node {
padding: 0;
}
.block-header {
margin-bottom: 0;
}
.node-body {
display: table;
border: none;
outline: 1px solid @xf-borderColor;
}
.node-stats {
display: table-cell;
}
@media (max-width: 1000px) {
.node-stats {
display: none;
}
}
@media (min-width: 1000px) {
.node-meta {
display: none;
}
}
@media (max-width: 650px) {
.node-extra {
margin-left: 46px; //width of node-icon
}
}
}
@media (max-width: 650px) {
.block-container.default-style .node {
padding-left: 0;
.node-extra {
padding-top: 0;
width: auto;
}
}
}
}
The result on my forum, with one category as 'default-style' and the other one with the node grid:
Last edited: