Unify the styling of attachments below a message
authorAlexander Ebert <ebert@woltlab.com>
Mon, 15 Apr 2024 16:34:14 +0000 (18:34 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 8 Jun 2024 10:19:38 +0000 (12:19 +0200)
wcfsetup/install/files/style/ui/attachment.scss

index 1e52e6da330be3f2b19a4d61c1d0adc5e05e27d5..6c30e974fbdeb5b2d6de9a3c831c48614a645e48 100644 (file)
@@ -15,9 +15,9 @@
 }
 
 .attachmentThumbnail {
-       box-shadow:
-               0 0 3px rgba(0, 0, 0, 0.12),
-               0 1px 2px rgba(0, 0, 0, 0.24);
+       border: 1px solid transparent;
+       border-radius: var(--wcfBorderRadius);
+       box-shadow: var(--wcfBoxShadowCard);
        margin-bottom: 15px !important;
        position: relative;
 
@@ -38,6 +38,7 @@
        .attachmentThumbnailImage {
                align-items: center;
                background-color: #333;
+               border-radius: calc(var(--wcfBorderRadius) - 1px);
                display: flex;
                justify-content: center;
                overflow: hidden;
        }
 }
 
+html[data-color-scheme="dark"] {
+       .attachmentThumbnail {
+               border-color: var(--wcfContentBorderInner);
+       }
+}
+
 /* attachments tab in editor */
 .formAttachmentContent {
        .formAttachmentList {