Skip to content

Commit

Permalink
Unify the styling of attachments below a message
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdesign committed Apr 20, 2024
1 parent b260e68 commit e599880
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions wcfsetup/install/files/style/ui/attachment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -38,6 +38,7 @@
.attachmentThumbnailImage {
align-items: center;
background-color: #333;
border-radius: calc(var(--wcfBorderRadius) - 1px);
display: flex;
justify-content: center;
overflow: hidden;
Expand Down Expand Up @@ -128,6 +129,12 @@
}
}

html[data-color-scheme="dark"] {
.attachmentThumbnail {
border-color: var(--wcfContentBorderInner);
}
}

/* attachments tab in editor */
.formAttachmentContent {
.formAttachmentList {
Expand Down

0 comments on commit e599880

Please sign in to comment.