1 /* attachment list in messages */
3 > ul > li:not(:last-child) {
8 /* attachment in messages */
9 .attachmentThumbnailList > ul {
12 @include screen-sm-up {
17 .attachmentThumbnail {
18 border: 1px solid transparent;
19 border-radius: var(--wcfBorderRadius);
20 box-shadow: var(--wcfBoxShadowCard);
21 margin-bottom: 15px !important;
24 @include screen-sm-up {
25 margin-right: 10px !important;
29 margin-right: 0 !important;
33 .attachmentThumbnailContainer {
38 .attachmentThumbnailImage {
40 background-color: #333;
41 border-radius: calc(var(--wcfBorderRadius) - 1px);
43 justify-content: center;
47 @include screen-sm-up {
48 height: #{$wcf_option_attachment_thumbnail_height}px;
49 width: #{$wcf_option_attachment_thumbnail_width}px;
53 max-height: #{$wcf_option_attachment_thumbnail_height}px;
58 backface-visibility: hidden;
62 transform: translate3d(0, 0, 0);
63 transition: 0.2s ease opacity;
66 .attachmentThumbnailImageScalable {
73 .attachmentThumbnailData {
74 backface-visibility: hidden;
75 background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.5) 100%);
82 transform: translate3d(0, 0, 0);
91 text-overflow: ellipsis;
92 text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
93 transition: 0.2s ease opacity;
97 @include wcfFontHeadline;
100 .attachmentMetaData {
101 color: var(--wcfContentDimmedText);
104 @include wcfFontSmall;
106 li:not(:last-child) {
116 .attachmentThumbnailImage {
122 .attachmentFilename {
132 html[data-color-scheme="dark"] {
133 .attachmentThumbnail {
134 border-color: var(--wcfContentBorderInner);
138 /* attachments tab in editor */
139 .formAttachmentContent {
140 .formAttachmentList {
143 margin-left: 0 !important;
150 > .attachmentTinyThumbnail {
151 border-bottom-width: 0;
156 .formAttachmentListItem > fa-icon[size="64"] {
160 @include screen-md-up {
161 .formAttachmentList {
165 /* Safari sometimes trips over fractional values, causing two
166 items to be exactly 1 pixel wider than the available space.
167 Reserving 21px covers all sort of rounding errors, without
168 being visually noticeable */
169 /* The `flex` shorthand fails in IE11 if `calc()` is used. */
172 flex-basis: calc(50% - 21px);
179 margin-top: 0 !important;
183 .formAttachmentButtons {
190 &:not(:first-child) {
196 margin-top: 10px !important;
201 .attachmentTinyThumbnail {
207 /* embedded images */
208 .embeddedAttachmentLink,
210 border: 1px solid var(--wcfContentBorderInner);
211 display: inline-block;
219 &:hover .embeddedAttachmentLinkEnlarge {
224 .embeddedAttachmentLinkEnlarge {
225 background-color: rgba(0, 0, 0, 0.8);
227 box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
235 text-decoration: none;
236 transition: 0.2s ease opacity;
239 .popoverContent .embeddedAttachmentLink,
240 .popoverContent .embeddedImageLink {
241 /* this will also suppress the link being displayed in the browser's "status bar" on hover */
242 pointer-events: none;
245 .messageSectionTitle {
251 border-top: 1px solid var(--wcfContentBorderInner);
258 border-top: 1px solid var(--wcfContentBorderInner);
265 .messageAttachmentList {
268 grid-template-columns: repeat(auto-fill, 300px);
271 grid-template-columns: 1fr;
276 border: 1px solid var(--wcfContentBorderInner);
284 grid-template-columns: 32px auto;
293 .messageAttachmentIconDefault {
298 &:not(:focus):not(:hover) {
299 .messageAttachmentIconDownload {
305 .messageAttachmentIcon {
310 .messageAttachmentIconDefault,
311 .messageAttachmentIconDownload {
312 cursor: inherit !important;
315 .messageAttachmentFilename {
319 text-overflow: ellipsis;
323 .messageAttachmentMeta {
324 @include wcfFontSmall;
326 color: var(--wcfContentDimmedText);