Jawn
she/her mais n'importe quel pronom fera l'affaire - codeuse - accro à Genshin Impact - vive les fleurs et la nature - créditez les codes
74427/01/2018
Pour le HTML, remplacez l'intégralité de votre template index_box par ce code :
- Code:
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<div class="autourcate">
<!-- BEGIN catrow --><!-- BEGIN tablehead -->
<div class="tleCAT">{catrow.tablehead.L_FORUM}</div>
<!-- END tablehead -->
<!-- BEGIN cathead -->
<!-- END cathead -->
<!-- BEGIN forumrow -->
<div class="mdlCAT">
<div class="gauche">
<div class="lastpost">{catrow.forumrow.LAST_POST}</div>
<img src="{catrow.forumrow.FORUM_FOLDER_IMG}" class="imgFRM" />
</div>
<div class="droite">
<div class="sousforumFRM">
{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
</div>
<div>
<div>
<div class="titreFRM"><span>“</span><a href="{catrow.forumrow.U_VIEWFORUM}"> {catrow.forumrow.FORUM_NAME}</a></div>
<div class="descFRM">{catrow.forumrow.FORUM_DESC}</div>
</div>
<div class="statsFRM">
<div>{catrow.forumrow.TOPICS} <span>sujets</span></div>
<div>{catrow.forumrow.POSTS} <span>messages</span></div>
</div>
</div>
</div>
</div>
<script type="text/javascript">$('.sfFRM').each(function(){$(this).html($(this).html().replace(/>, /g,"><br /> "));});</script>
<!-- END forumrow -->
<!-- END catrow -->
</div>
- Code:
@font-face { font-family: 'LemonTuesday'; src: url('http://vanessaskins.b1.jcink.com/uploads/vanessaskins/LemonTuesdaye.eot'); src: url('http://vanessaskins.b1.jcink.com/uploads/vanessaskins/LemonTuesday.eot?#iefix') format('embedded-opentype'), url('http://vanessaskins.b1.jcink.com/uploads/vanessaskins/LemonTuesday.woff') format('woff'), url('http://vanessaskins.b1.jcink.com/uploads/vanessaskins/LemonTuesday.ttf') format('truetype'), url('http://vanessaskins.b1.jcink.com/uploads/vanessaskins/LemonTuesday.svg') format('svg'); font-weight: normal; font-style: normal; }
/*Catégorie*/
.autourcate {
background:rgba(0, 0, 0, 0.6);
margin:0 auto;
border:solid 15px black;
width: 940px;
box-sizing: border-box;
}
.tleCAT {
padding: 40px;
margin: 0 auto 10px;
font-size: 20px;
background: url(https://i.imgur.com/9C6uQSH.png) repeat;
}
.tleCAT h2 {
color: #762dcf;
font-family:lemontuesday;
font-size: 30px;
text-shadow:2px 2px 0px #c5a459, 0px 1px #c5a459, 1px 0px #c5a459, -1px 0px #c5a459, 0px -1px #c5a459;
}
/*Forum*/
.mdlCAT {
background: #ccc;
width: 780px;
margin: 0 auto;
height: 280px;
margin-bottom: 10px;
box-sizing: border-box;
padding: 20px;
display: flex;
position: relative;
}
/*Partie gauche du forum*/
.gauche {
min-width: 300px;
max-width: 300px;
display: flex;
flex-direction: column;
height: 100%;
justify-content: flex-end;
margin-right: 20px;
}
/*Dernier emssage*/
.lastpost {
padding: 10px;
background: black;
color: #cccccc;
font-family: "Times New Roman", serif;
height: 35px;
font-size: 9px;
text-align: center;
line-height: 1;
position: relative;
top: 15px;
}
.lastpost > span > a:first-child, .lastpost strong > a {
text-transform: uppercase;
font-size: 12px;
color: #c5a459;
font-family: calibri, sans-serif;
letter-spacing: 4px;
position: relative;
top: -3px;
}
.lastpost .last-post-icon {
vertical-align: middle;
}
.lastpost strong {
display: inline-block;
margin-top: 3px;
}
.lastpost:empty::before {
content: "Pas de nouveaux messages";
line-height: 35px;
text-transform: uppercase;
letter-spacing: 1px;
font-size: 11px;
font-family: "Montserrat", sans-serif;
}
/*Image nouveau message*/
.imgFRM {
height: 50px;
width: 300px;
position: relative;
top: 10px;
}
/*Partie droite du forum*/
.droite > div:nth-child(2) {
display: flex;
margin-left: 30px;
}
.droite > div:nth-child(2) > div:first-child {
width: 300px;
margin-right: 30px;
}
/*sous forums*/
.sousforumFRM {
font-size: 0px;
margin-bottom: 50px;
}
.sousforumFRM a {
padding: 6px 12px;
background: #762dcf;
display: inline-block;
color: #eaeaea;
font-family: calibri, sans-serif;
font-size: 9px;
text-transform: uppercase;
margin:0px 2px 2px 0px;
transition:all 800ms;
}
.sousforumFRM a:hover {
transition:all 800ms;
background-color:#ffa500;
color:#111111;
}
/*Titre forum*/
.titreFRM a {
color: black;
text-decoration: none;
font-family: "Montserrat", sans-serif;
font-size: 15px;
margin-left: 10px;
}
.titreFRM span {
color: black;
font-family: 'Playfair Display', serif;
font-size: 55px;
margin-left: -20px;
position: absolute;
margin-top: -30px;
}
/*Description*/
.descFRM {
height: 100px;
padding-right: 10px;
overflow: auto;
font-size: 11px;
text-align: justify;
color: black;
font-family: calibri, sans-serif;
margin-top: 10px;
}
.descFRM img {
position: absolute;
z-index: 3;
left: 20px;
width: 300px;
height: 150px;
top: 20px;
filter: grayscale(100%);
transition: all 0.3s;
outline: 1px solid #ffffff;
outline-offset: -10px;
}
.descFRM img:hover {
transition:all 800ms;
filter:grayscale(50%);
}
/*Statistiques*/
.statsFRM {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 10px;
}
.statsFRM > div {
font-weight: bold;
font-family: "Montserrat", sans-serif;
width: 40px;
font-size: 25px;
text-align: center;
color: black;
}
.statsFRM > div span {
font-weight:100;
font-size:9px;
}
Pensez bien à cocher "non" à "opitmisation de votre CSS" et le tour sera joué !
L'image tout à gauche correspond à l'image que vous ajoutez dans votre catégorie en même temps que sa description ! Elle se mettra directement à la taille donc vous n'avez pas à vous en faire pour ça ! Pour changer la taille de cette image, c'est la balise "descFRM img" ~
# [PURPLE AND BLACK] - Lun 17 Déc - 2:35
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum
|
|