La tambouille des râleuses
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
Le Deal du moment : -45%
WHIRLPOOL OWFC3C26X – Lave-vaisselle pose libre ...
Voir le deal
339 €

Aller en bas
Nevyin
Nevyin
Pseudo Discord : nevyin_
Messages : 95
https://www.xoogge.fr

[Catégories] En toute simplicité... le reste est caché Empty [Catégories] En toute simplicité... le reste est caché

Sam 11 Avr 2020 - 19:32
[Catégories] En toute simplicité
le reste est caché


Le rendu

Voici ce que donne le rendu :
Spoiler:
Lorsqu'il y a un nouveau message, il est signalé par une bordure en bas du forum de couleur bleu. Si le forum est verrouillé, alors la bordure sera grise.

Quelques informations :

Le template a été réalisé pour les forums sous les versions phpb2, moderneBB & Invision. N'hésitez pas à vous rendre dans la zone d'aide si vous aviez un problème avec le LS.
Exclamation Un réglage à faire dans le panneau d'administration : Affichage > Structure et hiérarchie > Afficher les liens vers les sous-forums : -> Sélectionnez "Oui" seulement. Sans images.

Le code :

Template à modifier : index_box
Supprimer tout le code se trouvant entre ces 2 balises ainsi que les commentaires en eux-mêmes :
Code:
<!-- BEGIN catrow -->
<!-- END catrow -->
Et remplacez par celui-ci :
Code:
<!-- BEGIN catrow -->
    <!-- BEGIN tablehead -->
        <div class="categories__wrapper">
            <div class="categories__title-wrapper">{catrow.tablehead.L_FORUM}</div>
            <!-- END tablehead -->
            <!-- BEGIN forumrow -->
        
            <div class="categories__forum-line" data-new="{catrow.forumrow.L_FORUM_FOLDER_ALT}">
                <div class="categories__overlay">
                    <div class="categories__overlay__titleforum"><a href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a></div>
                    <div class="categories__overlay__lastpost">{catrow.forumrow.LAST_POST}</div>
                </div>
                <div class="categories__first-part">
                    <div class="categories__title-forum">
                        <a href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
                        <div class="categories__topics-messages">
                          <span class="categories__topics">{catrow.forumrow.TOPICS} sujets</span> & <span class="categories__messages">{catrow.forumrow.POSTS} messages</span>
                        </div>
                    </div>
                    <div class="categories__description-forum">
                        {catrow.forumrow.FORUM_DESC}
                    </div>
                </div>
        
                <div class="categories__sous-forums-links">
                    {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
                </div>
        
                <div class="categories__lastpost">{catrow.forumrow.LAST_POST}</div>
        
            </div>
    <!-- END forumrow -->
    <!-- BEGIN tablefoot -->
        </div>
    <!-- END tablefoot -->
<!-- END catrow -->

Placez ensuite le css :
Code:
// Codage des catégories par Nevyin pour La Tambouille et XOOGGE
// https://www.xoogge.fr
// https://tambouille-raleuses.forumactif.com/
.categories__wrapper {
  padding: 10px;
  font-family: "Calibri",sans-serif !important;
}

.categories__wrapper .categories__title-wrapper {
  position: relative;
  box-sizing: border-box;
  height: 50px;
  margin: 0;
  padding: 10px;
  border-bottom: 4px solid #16688c;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  line-height: 34px;
  color: white;
  background: #0674a4;
}

.categories__wrapper .categories__title-wrapper h2 {
  margin: 0;
  font-size: 24px;
  color: white;
}

.categories__wrapper .categories__forum-line {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px;
  background: #efefef;
}

.categories__wrapper .categories__forum-line:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 3px solid #efefef;
  pointer-events: none;
}

.categories__wrapper .categories__forum-line[data-new="Nouveaux messages"]:after {
  border-color: #0674a4;
}

.categories__wrapper .categories__forum-line[data-new="Nouveaux messages"] .categories__overlay {
  border-bottom: 7px solid #0674a4;
}

.categories__wrapper .categories__forum-line[data-new="Ce forum est verrouillé, vous ne pouvez pas poster, ni répondre, ni éditer les sujets."]:after {
border-color: #989898;
}

.categories__wrapper .categories__forum-line[data-new="Ce forum est verrouillé, vous ne pouvez pas poster, ni répondre, ni éditer les sujets."] .categories__overlay {
border-bottom: 7px solid #989898;
}

.categories__wrapper .categories__forum-line:hover .categories__overlay {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.08);
}

.categories__wrapper .categories__forum-line .categories__overlay {
  display: flex;
  z-index: 20;
  position: absolute;
  top: 0;
  left: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background: #efefef;
  transition: .3s all;
  pointer-events: none;
}

.categories__wrapper .categories__forum-line .categories__overlay .categories__overlay__titleforum a {
  text-decoration: none !important;
  font-size: 30px;
  font-weight: bold;
  color: #0674a4;
}

.categories__wrapper .categories__forum-line .categories__overlay .categories__overlay__lastpost {
  width: 100%;
}

.categories__wrapper .categories__forum-line .categories__overlay .categories__overlay__lastpost > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-size: 12px;
  line-height: 10px;
}

.categories__wrapper .categories__forum-line .categories__overlay .categories__overlay__lastpost > span br {
  display: none;
}

.categories__wrapper .categories__forum-line .categories__overlay .categories__overlay__lastpost > span a {
  display: inline-block;
  margin: 0 5px;
}

.categories__wrapper .categories__forum-line .categories__overlay .categories__overlay__lastpost > span a.last-post-icon {
  margin: 0;
}

.categories__wrapper .categories__forum-line .categories__overlay .categories__overlay__lastpost > span > a {
  text-decoration: none !important;
  color: #0674a4;
}

.categories__wrapper .categories__forum-line .categories__first-part {
  z-index: 10;
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

.categories__wrapper .categories__forum-line .categories__first-part .categories__title-forum {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.categories__wrapper .categories__forum-line .categories__first-part .categories__title-forum a {
  text-decoration: none !important;
  font-size: 18px;
  font-weight: bold;
  color: #0674a4;
  transition: .4s color;
}

.categories__wrapper .categories__forum-line .categories__first-part .categories__title-forum a:hover {
  color: #636363;
}

.categories__wrapper .categories__forum-line .categories__first-part .categories__title-forum .categories__topics-messages {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  font-size: 12px;
  color: #636363;
}

.categories__wrapper .categories__forum-line .categories__first-part .categories__title-forum .categories__topics-messages span {
  margin: 0 3px;
}

.categories__wrapper .categories__forum-line .categories__first-part .categories__title-forum .categories__topics-messages span:last-child {
  margin-right: 0;
}

.categories__wrapper .categories__forum-line .categories__first-part .categories__description-forum {
  box-sizing: border-box;
  height: 70px;
  padding: 10px;
  overflow: auto;
  font-size: 12px;
  color: #585858;
  background: white;
}

.categories__wrapper .categories__forum-line .categories__sous-forums-links {
  display: flex;
  z-index: 10;
  position: relative;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  margin-top: 10px;
  overflow: auto;
  font-size: 0;
}

.categories__wrapper .categories__forum-line .categories__sous-forums-links a {
  display: block;
  margin-right: 10px;
  margin-bottom: 2px;
  padding: 4px 10px;
  text-align: center;
  text-decoration: none !important;
  font-size: 12px;
  line-height: 10px;
  color: #0674a4;
  background: white;
  transition: .4s background,.4s color;
}

.categories__wrapper .categories__forum-line .categories__sous-forums-links a:hover {
  color: white;
  background: #0674a4;
}

.categories__wrapper .categories__forum-line .categories__lastpost {
  display: flex;
  z-index: 10;
  position: relative;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
}

.categories__wrapper .categories__forum-line .categories__lastpost > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 7px;
  line-height: 10px;
  background: #e0e0e0;
}

.categories__wrapper .categories__forum-line .categories__lastpost > span br {
  display: none;
}

.categories__wrapper .categories__forum-line .categories__lastpost > span a {
  margin: 0 5px;
}

.categories__wrapper .categories__forum-line .categories__lastpost > span a.last-post-icon {
  margin: 0;
}

.categories__wrapper .categories__forum-line .categories__lastpost > span > a {
  text-decoration: none !important;
  color: #0674a4;
}

N'hésitez pas à laisser un petit commentaire pour me dire ce que vous en pensez.

A bientôt,
Nevyin


Dernière édition par Nevyin le Dim 12 Avr 2020 - 12:51, édité 2 fois
Mäven
Mäven
Râleuse (Admin)
Informations : Très peu présente en ce moment Sad
----
Idea Viens papoter avec nous sur le discord

Messages : 4055
https://tambouille-raleuses.forumactif.com/

[Catégories] En toute simplicité... le reste est caché Empty Re: [Catégories] En toute simplicité... le reste est caché

Dim 12 Avr 2020 - 11:38
Merci à nouveau pour ce partage Smile
Revenir en haut
Permission de ce forum:
Vous pouvez répondre aux sujets dans ce forum
Les coups de ♥ des Râleuses

Post-It des Râleuses