}
}
- &:hover {
- .attachmentThumbnailImage {
- img {
- opacity: 1;
- }
- }
- }
-
.attachmentThumbnailData {
backface-visibility: hidden;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, .5) 100%);
position: absolute;
text-overflow: ellipsis;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
+ transition: .2s ease opacity;
width: 100%;
white-space: nowrap;
-
+
@include wcfFontHeadline;
}
color: inherit;
}
}
+
+ &:hover {
+ .attachmentThumbnailImage {
+ img {
+ opacity: 1;
+ }
+ }
+
+ .attachmentFilename {
+ opacity: 0;
+ }
+ }
}
/* attachments tab in editor */
}
/* embedded images */
-.embeddedAttachmentLink img {
+.embeddedAttachmentLink {
border: 1px solid $wcfContentBorderInner;
+ display: inline-block;
+ max-width: 100%;
+ min-height: 48px;
padding: 2px;
+ position: relative;
+
+ &::after {
+ background-color: rgba(0, 0, 0, .8);
+ border-radius: 2px;
+ box-shadow: 0 0 3px rgba(0, 0, 0, .15);
+ bottom: 5px;
+ color: white;
+ content: $fa-var-search;
+ display: block;
+ font-family: FontAwesome;
+ font-size: 21px;
+ opacity: .5;
+ padding: 2px 8px;
+ position: absolute;
+ right: 5px;
+ text-decoration: none;
+ transition: .2s ease opacity;
+ }
+
+ &:hover {
+ &::after {
+ opacity: .8;
+ }
+ }
}
-