![]() |
|
[Tut]Fancy Attachment Style - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Design (https://sinister.ly/Forum-Design) +--- Forum: Web Design (https://sinister.ly/Forum-Web-Design) +--- Thread: [Tut]Fancy Attachment Style (/Thread-Tut-Fancy-Attachment-Style) |
[Tut]Fancy Attachment Style - Quanity - 07-28-2015 Preview - Spoiler:![]() Ok goto You Skin Templates > Postbit Template> postbit_attachments_attachment Then replace everything with > [hide] PHP Code: <div class="attachment-box">
<div class="attachment-url">
<a href="attachment.php?aid={$attachment['aid']}" target="_blank" title="{$attachment['filename']}"></a> <a href="attachment.php?aid={$attachment['aid']}" target="_blank" title="File NAme :P"><strong>{$attachment['filename']}</strong></a>
</div>
<span class="attachment-button">
<a href="attachment.php?aid={$attachment['aid']}" target="_blank" title="Download">Download</a>
</span>
<div class="attachment-meta">
<strong>Size :</strong> {$attachment['filesize']} <strong>Downloads :</strong> {$attachment['downloads']}
</div>
</div>
<style>
#attach_wrap li.attachment {
display: block;
}
.attachment-box {
margin: 0 auto;
max-width: 300px;
border: 4px solid #9acfea;
background: #fff;
text-align: center;
}
.attachment-button a {
display: inline-block;
margin: 5px 0;
padding: 4px;
border: 1px solid #9acfea;
border-radius: 2px;
background-color: #d9edf7;
background-image: -webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%);
background-image: linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);
color: #31708f;
text-transform: uppercase;
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);
}
.attachment-button a:hover {
background-color: #b9def0;
background-image: -webkit-linear-gradient(top,#b9def0 0,#d9edf7 100%);
background-image: linear-gradient(to bottom,#b9def0 0,#d9edf7 100%);
}
.attachment-url {
padding: 5px 0;
background: #d9edf7;
}
.attachment-meta {
padding: 5px 0;
background: #d9edf7;
color: #3F4249;
font-size: 11px;
}
</style>
Yeah, I've included css in same codes ![]() Enjoy RE: [Tut]Fancy Attachment Style - tether - 09-14-2015 nice i may use this bro! |