Article Forum Symmetrical Grid Layout

XF 2.2 Article Forum Symmetrical Grid Layout

Add-on xenforo 2

Ressources et modules complémentaires pour XenForo 2

Styles xenforo 2

Styles / Thèmes et apparence pour xenforo 2

Templates xenforo 2

Codes pour modifier les templates sur xenforo 2

Section Premium

Add-on et Styles pour membre Premium
Article Forum Symmetrical Grid Layout

XF 2.2 Article Forum Symmetrical Grid Layout

Catégorie Catégorie Modifications Templates
Titre du sujet Titre du sujet Article Forum Symmetrical Grid Layout
Auteur de la discussion Auteur de la discussion laurent68
Date de début Date de début
Réponses Réponses 4
Affichages Affichages 499
Réaction Réaction 1
Dernier message par Dernier message par Eldin

laurent68

Fondateur

Staff
fondateur
Réputation: 100%
Discussions
4 852
Messages
12 604
Solutions
85
J'aime
7 890
Points
198
In the default style, an article forum in preview mode has a layout of 1:2:2:4:4 in terms of the number of threads (articles) shown on each row, like so :

.png


This can be changed by adding some custom CSS to the extra.less template.

Equal Grid - Floating Footer
Adding this code will produce a uniform grid layout with the footer at the default location, floating below the content in each article :


.png


Equal Grid - Fixed Footer
Using this code will result in an equal grid layout with the footer fixed to the bottom of each article :


.png


Specific Nodes
To only apply the layout to a specific node, wrap the code like so, replacing the 2 with the node ID :

Less:
[data-container-key="node-2"]
{
    ...
}

To apply it to multiple nodes, add additional node IDs comma separated like this :

Less:
[data-container-key="node-2"],
[data-container-key="node-4"],
[data-container-key="node-8"]
{
    ...
}

Here you can see the layout is applied to one node but not the other.

.png


.png


The styling can of course be adjusted to suit your particular needs.

Crédit : Brogan
 
Contenu similaire Les plus vues Voir plus
Retour
Haut Bas