Jeg
Sat Apr 16, 2022 11:45 am
Replace your index_box template with the following code:
- Code:
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Neucha&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://dl.dropbox.com/s/pb90k95rod53ou2/css.css" />
<!-- BEGIN catrow -->
<!-- BEGIN tablehead --><!-- END tablehead -->
<!-- BEGIN cathead -->
<div class="cat_title">{catrow.cathead.CAT_TITLE}</div>
<!-- END cathead -->
<!-- BEGIN forumrow -->
<div class="forumrow" data-name="{catrow.forumrow.FORUM_NAME}">
<div class="forumrow_state" data-state="{catrow.forumrow.L_FORUM_FOLDER_ALT}"></div>
<a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
<div class="forumrow_infos">
<div class="forumrow_desc">{catrow.forumrow.FORUM_DESC}</div>
<div class="forumrow_links">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</div>
<div class="forumrow_lp">
<!-- BEGIN avatar --><div class="forumrow_lp_avatar">{catrow.forumrow.avatar.LAST_POST_AVATAR}</div><!-- END avatar -->
<span class="gensmall">{catrow.forumrow.LAST_POST}</span>
</div>
</div>
<div class="forumrow_stats">
<div class="forumrow_threads">{catrow.forumrow.TOPICS}<span>threads</span></div>
<div class="forumrow_posts">{catrow.forumrow.POSTS}<span>posts</span></div>
</div>
</div>
<!-- END forumrow -->
<!-- BEGIN catfoot --><!-- END catfoot -->
<!-- BEGIN tablefoot --><!-- END tablefoot -->
<!-- END catrow -->
Add the following CSS to your stylesheet:
- Code:
.forumrow {
display: inline-block;
width: 46%;
margin: 10px 2%;
vertical-align: top;
background-color: #e9e9e9;
box-sizing: border-box;
padding: 2%;
height: 400px;
position: relative;
}
.forumrow[data-name="FORUM NAME"] {
background-image: url(BG);
background-size: 100% auto;
background-position: center;
}
.forumrow[data-name="FORUM NAME"] {
background-image: url(BG);
background-size: auto 100%;
background-position: left center;
}
.forumrow::after {
content: "";
display: block;
position: absolute;
right: 0;
top: 0;
bottom: 0;
width: 80%;
background-image: linear-gradient(-90deg, #39383a, transparent);
z-index: 1;
}
.forumrow * {
z-index: 2;
position: relative;
}
.forumrow a.forumlink {
color: white;
font-family: 'Roboto', sans-serif;
font-size: 21pt;
display: inline-block;
margin: 20px;
font-weight: 500;
}
.forumrow_desc span {
color: white !important;
text-shadow: 0 0 3px #30303030;
font-size: 10pt !important;
}
.forumrow_infos {
background-color: #00000099;
box-sizing: border-box;
width: 100%;
padding: 2% 3%;
height: 285px;
}
.forumrow_desc {
overflow: auto;
max-height: 200px;
}
.forumrow_lp {
background-color: #ffffffeb;
position: absolute;
width: 94%;
left: 3%;
bottom: 3%;
box-sizing: border-box;
padding: 2%;
}
.forumrow_lp_avatar {
float: left;
height: 30px;
width: 30px;
overflow: hidden;
border-radius: 50%;
transform: translateY(3px);
margin-right: 2%;
}
.forumrow_lp_avatar img {
width: 30px;
height: auto;
}
.forumrow_stats {
position: absolute;
right: 2%;
top: 2%;
}
.forumrow_stats div {
display: inline-block;
text-align: center;
margin: 0 5px;
font-size: 8pt;
color: white;
font-weight: 600;
}
.forumrow_stats span {
display: block;
font-weight: 400;
font-size: 7pt;
}
.forumrow_links {
padding: 5px 5px 5px 10px;
font-size: 0;
}
.forumrow_links a {
color: #1c1c1c;
margin-right: 8px;
background-color: #fafafa;
padding: 3px 7px;
border-radius: 8px;
opacity: .75;
transition: all .25s ease-in-out;
text-decoration: none !important;
}
.forumrow_links a:hover {
opacity: 1;
color: black;
}
Customizing each forum
Modify the following in the CSS:
- Code:
.forumrow[data-name="FORUM NAME"] {
background-image: url(BG);
background-size: 100% auto;
background-position: center;
}
.forumrow[data-name="FORUM NAME"] {
background-image: url(BG);
background-size: auto 100%;
background-position: left center;
}
Replace FORUM NAME by the name of the forum you want to edit; same for BG with your background image.
|
|