KoalaVolant
Mar 19 Déc 2023 - 15:08
Version nécessaire du forum : phpbb2
Ce code a été fait par KoalaVolant
Il utilise un root pour les couleurs mais si cela vous déplait vous pouvez remplacer main-color par #333 par exemple.
Remplacez le template "viewtopic_body" par
(N'oubliez pas d'enlever le Root si vous l'utilisez déjà ^^)
Ce code a été fait par KoalaVolant
Il utilise un root pour les couleurs mais si cela vous déplait vous pouvez remplacer main-color par #333 par exemple.
Si vous choisissez d'autres codes de ce thème, pour les couleurs, voici les étapes :
1. Retirer les :root{ leur contenu } de tous les CSS des codes de ce thème que vous choisirez
2. Rajouter cet unique :root qui est disponible sur le sujet "Concordance des couleurs"
Ce code fait partie du thème complet "Douceur minimaliste"
1. Retirer les :root{ leur contenu } de tous les CSS des codes de ce thème que vous choisirez
2. Rajouter cet unique :root qui est disponible sur le sujet "Concordance des couleurs"
Ce code fait partie du thème complet "Douceur minimaliste"
HTML
Remplacez le template "viewtopic_body" par
- Code:
<!-- BEGIN switch_plus_menu -->
<script type="text/javascript">
//<![CDATA[
var multiquote_img_off = '{JS_MULTIQUOTE_IMG_OFF}', multiquote_img_on = '{JS_MULTIQUOTE_IMG_ON}';
</script>
<!-- END switch_plus_menu -->
<script type="text/javascript">
var hiddenMsgLabel = { visible:'{JS_HIDE_HIDDEN_MESSAGE}', hidden:'{JS_SHOW_HIDDEN_MESSAGE}' };
showHiddenMessage = function(id)
{
try
{
var regId = parseInt(id, 10);
if( isNaN(regId) ) { regId = 0; }
if( regId > 0)
{
$('.post--' + id).toggle(0, function()
{
if( $(this).is(":visible") )
{
$('#hidden-title--' + id).html(hiddenMsgLabel.visible);
}
else
{
$('#hidden-title--' + id).html(hiddenMsgLabel.hidden);
}
});
}
}
catch(e) { }
return false;
};
//]]>
</script>
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<div class="topmessage">
<div class="leftmessage">
<span class="nav">
<!-- BEGIN switch_user_authpost -->
<a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}one" alt="{L_POST_NEW_TOPIC}" align="middle" border="0" /></a>
<!-- END switch_user_authpost -->
<!-- BEGIN switch_user_authreply -->
<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" id="i_reply" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0" /></a>
<!-- END switch_user_authreply -->
</span>
</div>
<div class="navmessage">
<span class="nav">
<a class="nav" href="{U_INDEX}"><span>{L_INDEX}</span></a>
<!--{NAV_SEP}<a class="nav" href="{U_ALBUM}"><span>{L_ALBUM}</span></a>-->
{NAV_CAT_DESC_SECOND}
</span>
</div>
</div>
</tr>
</table>
<link href="https://fonts.googleapis.com/css?family=Playfair+Display|Source+Sans+Pro&display=swap" rel="stylesheet">
<table class="forumline profileprofile" width="100%" border="0" cellspacing="1" cellpadding="0" >
<tr>
<div class="titremessage">
<h1 class="cattitle"> <span>{TOPIC_TITLE}</span></h1>
<span class="paginamess">{PAGINATION}</span>
</div>
</tr>
{POLL_DISPLAY}
<!-- BEGIN postrow -->
<!-- BEGIN hidden -->
<tr>
<td class="postdetails {postrow.hidden.ROW_CLASS}" colspan="2" align="center">{postrow.hidden.MESSAGE}</td>
</tr>
<!-- END hidden -->
<!-- BEGIN displayed -->
<tr class="post post--{postrow.displayed.U_POST_ID}" id="p{postrow.displayed.U_POST_ID}" style="{postrow.displayed.DISPLAYABLE_STATE}">
<td class="{postrow.displayed.ROW_CLASS} profiletotal"{postrow.displayed.THANK_BGCOLOR} valign="top" width="150">
<span class="name pseudoprofil"><a name="{postrow.displayed.U_POST_ID}" style="position: relative; top: -30px; width: 1px;" id="{postrow.displayed.U_POST_ID}"></a><strong class="pseudodo">{postrow.displayed.POSTER_NAME}</strong></span><br />
<span class="postdetails poster-profile">
<span class="vavaprofil"> {postrow.displayed.POSTER_AVATAR}</span>
<span class="rankprofil"><span>{postrow.displayed.POSTER_RANK}</span><br />
{postrow.displayed.RANK_IMAGE}</span>
<div class="labelprofile"><!-- BEGIN profile_field -->
{postrow.displayed.profile_field.LABEL} {postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
{postrow.displayed.POSTER_RPG}</div>
<div class="iconsmess">{postrow.displayed.PROFILE_IMG} {postrow.displayed.PM_IMG} {postrow.displayed.EMAIL_IMG}
<!-- BEGIN contact_field --> {postrow.displayed.contact_field.CONTENT}<!-- END contact_field -->
{postrow.displayed.ONLINE_IMG}</div>
</span><br />
</td>
<td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="100%" height="100%">
<div class="postdate"><span class="postdetails">
<div class="titresujet"><span>{postrow.displayed.POST_SUBJECT}</span></div>
<div class="datebtnsujet"><span> {postrow.displayed.POST_DATE}</span>
<div class="modifmess">{postrow.displayed.THANK_IMG} {postrow.displayed.MULTIQUOTE_IMG} {postrow.displayed.QUOTE_IMG} {postrow.displayed.EDIT_IMG}
{postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}</div>
</div>
<div class="postbody">
<div class="contentmess">{postrow.displayed.MESSAGE}
<!-- <span class="gensmall">{postrow.displayed.EDITED_MESSAGE}</span> -->
<!-- BEGIN switch_signature -->
<div class="signmess">
{postrow.displayed.SIGNATURE}
</div>
<!-- END switch_signature -->
</div>
</div>
</td>
</tr>
<!-- BEGIN first_post_br -->
</table>
<hr />
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<th class="thLeft" nowrap="nowrap" width="150px" height="26">{L_AUTHOR}</th>
<th class="thRight" nowrap="nowrap" colspan="2">{L_MESSAGE}</th>
</tr>
<!-- END first_post_br -->
<!-- END displayed -->
<!-- END postrow -->
<!-- BEGIN no_post -->
<tr align="center">
<td class="row1" colspan="2" height="28">
<span class="genmed">{no_post.L_NO_POST}</span>
</td>
</tr>
<!-- END no_post -->
<tr align="right">
<td class="titremessage" colspan="2" height="28">
<a name="bottomtitle"></a><div class="cattitle"><span>{TOPIC_TITLE}</span></div>
</td>
</tr>
</table>
<table class="forumline dubas noprint" width="100%" border="0" cellspacing="0" cellpadding="0" style="margin: 0 0 1px 0; border-top: 0px; border:none !important;">
<tr>
<td class="row2 paginamess" valign="top" {COLSPAN_PAGINATION} width="150"><span class="gensmall">{PAGE_NUMBER}</span></td>
<!-- BEGIN topicpagination -->
<td class="row1 paginamess" align="right" valign="top" ><span class="gensmall">{PAGINATION}</span></td>
<!-- END topicpagination -->
</tr>
<!-- BEGIN switch_user_logged_in -->
<!-- BEGIN watchtopic -->
<tr>
<td class="row2 pasurv" colspan="2" align="right" valign="top"><span class="gensmall">{S_WATCH_TOPIC}</span></td>
</tr>
<!-- END watchtopic -->
<!-- END switch_user_logged_in -->
</table>
<!-- BEGIN promot_trafic -->
<table class="forumline" width="100%" border="0" cellpadding="1" cellspacing="0" id="ptrafic_close" style="display:none;margin: 1px 0px 1px 0px; border:none !important;">
<tr>
<td class="catBottom" height="28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><div class="cattitle"> {PROMOT_TRAFIC_TITLE}</div></td>
<td align="right" valign="middle" width="10"><span class="gensmall"><a href="javascript:ShowHideLayer('ptrafic_open','ptrafic_close');"><img src="{TABS_MORE_IMG}" alt="+" align="middle" border="0" /></a></span></td>
</tr>
</table>
</td>
</tr>
</table>
<table class="forumline" width="100%" border="0" cellpadding="1" cellspacing="0" id="ptrafic_open" style="display:'';margin: 1px 0px 1px 0px; border:none !important;">
<tr>
<td class="catBottom" height="28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><div class="cattitle"> {PROMOT_TRAFIC_TITLE}</div></td>
<td align="right" valign="middle" width="10"><span class="gensmall"><a href="javascript:ShowHideLayer('ptrafic_open','ptrafic_close');"><img src="{TABS_LESS_IMG}" alt="-" align="middle" border="0" /></a></span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row2 postbody" valign="top">
<!-- BEGIN link -->
» <a style="text-decoration:none" href="{promot_trafic.link.U_HREF}" target="_blank" title="{promot_trafic.link.TITLE}" rel="nofollow">{promot_trafic.link.TITLE}</a><br />
<!-- END link -->
</td>
</tr>
</table>
<!-- END promot_trafic -->
<!-- BEGIN switch_forum_rules -->
<table id="forum_rules" class="forumline" width="100%" border="0" cellspacing="0" cellpadding="0" style="margin: 1px 0px 1px 0px; border:none !important;">
<tbody>
<tr>
<td class="catBottom">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">
<div class="cattitle"> {L_FORUM_RULES}</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="row1 clearfix">
<table>
<tr>
<!-- BEGIN switch_forum_rule_image -->
<td class="logo">
<img src="{RULE_IMG_URL}" alt="" />
</td>
<!-- END switch_forum_rule_image -->
<td class="rules postbody">
{RULE_MSG}
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
<!-- END switch_forum_rules -->
<table class="forumline dubas2 noprint" width="100%" border="0" cellspacing="0" cellpadding="0" style="border:none !important;">
<tr>
<td class="row2" colspan="2" align="center" style="padding:0px">
<!-- BEGIN switch_user_logged_in -->
<a name="quickreply"></a>
{QUICK_REPLY_FORM}<br />
<!-- END switch_user_logged_in -->
</td>
</tr>
<tr>
<td style="margin:0; padding: 0;" colspan="2">
<table border="0" cellpadding="0" width="100%" cellspacing="0" id="info_open" style="display:''">
<tbody>
<!-- BEGIN show_permissions -->
<tr>
<td class="row2" valign="top" width="25%"><span class="gensmall">{L_TABS_PERMISSIONS}</span></td>
<td class="row1" valign="top" width="75%"><span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
<!-- END show_permissions -->
<tr>
<td class="catBottom" colspan="2" height="28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" width="100%">
<span class="navmessage">
<span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_SEP}<a class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC_SECOND}</span>
</span>
</td>
<!-- BEGIN show_permissions -->
<td align="right" valign="middle"><span class="gensmall"><a href="javascript:ShowHideLayer('info_open','info_close');"><img src="{TABS_LESS_IMG}" alt="-" align="middle" border="0" /></a></span></td>
<!-- END show_permissions -->
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="margin:0; padding: 0;" colspan="2">
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="info_close" style="display:none;">
<tbody>
<tr>
<td class="catBottom" colspan="2" height="28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" width="100%">
<span class="navmessage">
<span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_SEP}<a class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC_SECOND}</span>
</span>
</td>
<td align="right" valign="middle"><span class="gensmall"><a href="javascript:ShowHideLayer('info_open','info_close');"><img src="{TABS_MORE_IMG}" alt="+" align="middle" border="0" /></a></span></td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<form action="{S_JUMPBOX_ACTION}" method="get" name="jumpbox" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
<table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
<td align="left" valign="middle" nowrap="nowrap" {WIDTH_GALLERY}>
<span class="nav">
<!-- BEGIN switch_user_authpost -->
<a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}Newtopic" alt="{L_POST_NEW_TOPIC}" align="middle" border="0" /></a>
<!-- END switch_user_authpost -->
<!-- BEGIN switch_user_authreply -->
<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0" /></a>
<!-- END switch_user_authreply -->
</span>
</td>
<td align="right" nowrap="nowrap"><span class="gensmall">{L_JUMP_TO}: {S_JUMPBOX_SELECT} <input class="liteoption" type="submit" value="{L_GO}" /></span></td>
<!-- BEGIN moderation_panel -->
<td align="center">
<span class="gensmall">{moderation_panel.U_YOUR_PERSONAL_MODERATE}</span>
</td>
<td align="center" width="250">
<span class="gensmall"> </span>
</td>
<!-- END moderation_panel -->
</tr>
</table>
</form>
<!-- BEGIN viewtopic_bottom -->
<table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
<td colspan="2" align="left" valign="top" nowrap="nowrap"><br />{S_TOPIC_ADMIN}<br />
<form name="action" method="get" action="{S_FORM_MOD_ACTION}">
<input type="hidden" name="t" value="{TOPIC_ID}" />
<!-- <input type="hidden" name="sid" value="{S_SID}" /> -->
<input type="hidden" name="{SECURE_ID_NAME}" value="{SECURE_ID_VALUE}" />
<span class="gen">{L_MOD_TOOLS}<br />{S_SELECT_MOD} <input class="liteoption" type="submit" value="{L_GO}" /></span>
</form>
</td>
</tr>
</table>
<!-- END viewtopic_bottom -->
<!-- BEGIN switch_image_resize -->
<script type="text/javascript">
//<![CDATA[
$(resize_images({ 'selector' : '.postbody', 'max_width' : {switch_image_resize.IMG_RESIZE_WIDTH}, 'max_height' : {switch_image_resize.IMG_RESIZE_HEIGHT} }));
//]]>
</script>
<!-- END switch_image_resize -->
CSS
(N'oubliez pas d'enlever le Root si vous l'utilisez déjà ^^)
- Code:
/* Couleurs */
:root{
--main-color:#555;
--snd-color:#fff;
--third-color:#888;
--four-color:#FCC5A0;
--five-color:#B38C7E;
--five-v-color:#FAC0B6;
--six-color:#E2B790;
--six-v-color:#DAC5CA;
--font1: 'Source Sans Pro', sans-serif;
--font2:'Playfair Display', serif;
--groupe1:#4f5bff;
--groupe2:#ff3d2f;
--groupe3:#00a427;
--groupe4:#bd8d00;
--groupe5:#4f5bff;
--groupe6:#ff3d2f;
--groupe7:#00a427;
--groupe8:#bd8d00;
}
.degr{ background: var(--five-color);
background: -webkit-gradient(left top, right top, color-stop(0%, var(--five-color)), color-stop(100%, var(--six-color)));
background: -webkit-linear-gradient(left, var(--five-color) 0%, var(--six-color) 100%);
background: linear-gradient(to right, var(--five-color) 0%, var(--six-color) 100%);
position:relative; z-index:20;
}
.degr:before{ content:''; background:var(--third-color); position:absolute; z-index:-1; top:0; left:0; width:0%; height:100%; transition:600ms; }
.degr:hover:before{ width:100%; }
/************************** Profil et message par Koala Volant ********************************************/
.degr, .ssfo a, .rankprofil span, .titresujet{ background: var(--five-color);
background: -webkit-gradient(left top, right top, color-stop(0%, var(--five-color)), color-stop(100%, var(--six-color)));
background: -webkit-linear-gradient(left, var(--five-color) 0%, var(--six-color) 100%);
background: linear-gradient(to right, var(--five-color) 0%, var(--six-color) 100%);
position:relative; z-index:20;
}
.degr:beforen .ssfo a:before{ content:''; background:var(--third-color); position:absolute; z-index:-1; top:0; left:0; width:0%; height:100%; transition:600ms; }
.degr:hover:before .ssfo a:hover:before{ width:100%; }
.profileprofile, .profileprofile *{ box-sizing:border-box; }
.profileprofile{ border:none; }
.profileprofile .post{ margin:15px 0px; }
.profiletotal{ background:none !important; padding:0 10px 0 0 !important; }
/* Titre de pseudo */
.pseudoprofil, .cattitle{ background-image:url('https://i.servimg.com/u/f30/19/45/51/53/partic13.jpg'); background-repeat:no-repeat;
background-size:cover; width:100%; padding:5px; display:block; margin-bottom:5px; }
.pseudoprofil .pseudodo, .cattitle span{ font-family:var(--font1); width:100%; display:block; font-size:13px; letter-spacing:2px; background-color:var(--snd-color);
color:var(--five-color); padding:5px; text-align:center; text-transform:uppercase; margin: 3px 0px;}
.rankprofil span, .titresujet span{ display:block; padding:5px; text-align:center; margin-top:5px;
color:var(--snd-color); font-family:var(--font2); font-size:14px;}
h1.cattitle{ padding:5px; display:block;}
.cattitle span{ width:99%; }
.topmessage{ display:flex; align-items:center; justify-content:space-between; font-family:var(--font2); }
.topmessage .navmessage a{ font-size:15px; color:var(--five-color); }
.vavaprofil img{ width:200px; height:320px; max-height:none !important; object-fit:cover; }
.labelprofile{ text-align:justify; height:300px; overflow:auto; padding-right:10px; }
.iconsmess{ margin-top:15px; }
.datebtnsujet{ display:flex; justify-content:space-between; font-family:var(--font2); font-size:12px; color:var(--six-color);}
.profileprofile .row2, .profileprofile .row1{ background:none; }
.profileprofile .postbody{ padding:15px; border:1px solid var(--five-v-color); }
.paginamess{ display:block; font-size:11px; color:var(--six-color);}
.paginamess a{ color:var(--six-color); }
.forumline.dubas td{ background:none;}
.forumline.dubas .pasurv{
font-family:var(--font1); }
.pasurv a{ font-size:14px; color:var(--third-color); text-decoration:none; }
.forumline.dubas2 td{ background: none; }
.catBottom .navmessage{ font-size:14px; }
.catBottom .navmessage a{ font-size:14px; color:var(--five-color); font-family:var(--font2);}