<section class="section attachmentThumbnailList">
<h2 class="sectionTitle">{lang}wcf.attachment.images{/lang}</h2>
- <ul>
+ <ul class="inlineList">
{content}
{foreach from=$attachmentList->getGroupedObjects($objectID) item=attachment}
{if $attachment->showAsImage() && !$attachment->isEmbedded()}
<section class="section attachmentFileList">
<h2 class="sectionTitle">{lang}wcf.attachment.files{/lang}</h2>
- <ul>
+ <ul class="inlineList">
{content}
{foreach from=$attachmentList->getGroupedObjects($objectID) item=attachment}
{if $attachment->showAsFile() && !$attachment->isEmbedded()}
--- /dev/null
+.attachmentThumbnailList,
+.attachmentFileList {
+ > ul > li:not(:last-child) {
+ margin-right: 10px;
+ }
+}
+
+.attachmentThumbnail {
+ border-radius: 3px;
+ min-height: #{$wcf_option_attachment_thumbnail_height}px;
+ min-width: #{$wcf_option_attachment_thumbnail_width}px;
+ overflow: hidden;
+ position: relative;
+
+ &:hover > div > small {
+ height: 1.5em;
+ }
+
+ > a {
+ display: block;
+ min-height: #{$wcf_option_attachment_thumbnail_height}px;
+ min-width: #{$wcf_option_attachment_thumbnail_width}px;
+ }
+
+ > div {
+ background-color: rgba(0, 0, 0, .6);
+ bottom: 0;
+ color: rgb(255, 255, 255);
+ left: 0;
+ padding: 10px;
+ position: absolute;
+ right: 0;
+
+ > small {
+ display: block;
+ height: 0;
+ overflow: hidden;
+ transition: height .12s linear;
+ }
+ }
+}