Skip to content

Commit

Permalink
JS-5303: dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mhlv committed Sep 27, 2024
1 parent ea69fb2 commit b25915c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/img/theme/dark/arrow/chatFormAttachment.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/scss/block/chat/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
.swiper { width: 100%; }
.swiper-slide { width: unset; }
.swiper-button-prev,
.swiper-button-next { position: absolute; z-index: 2; width: 70px; height: 100%; top: 0px; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--color-bg-primary) 100%); }
.swiper-button-next { position: absolute; z-index: 2; width: 70px; height: 100%; top: 0px; }
.swiper-button-prev { left: -8px; background: linear-gradient(-90deg, rgba(255, 255, 255, 0) 0%, var(--color-bg-primary) 100%); }
.swiper-button-next { right: -8px; }
.swiper-button-next { right: -8px; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--color-bg-primary) 100%); }

.swiper-button-prev::before,
.swiper-button-next::before,
Expand Down
11 changes: 10 additions & 1 deletion src/scss/theme/dark/block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,15 @@

.form {
.icon.send { background: url('#{$themePath}/icon/chat/buttons/send.svg'); }

.attachments {
.swiper-button-prev { background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 0%, var(--color-bg-primary) 100%); }
.swiper-button-next { background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, var(--color-bg-primary) 100%); }
.swiper-button-prev::before,
.swiper-button-next::before { box-shadow: none; }
.swiper-button-prev::after,
.swiper-button-next::after { background-image: url('#{$themePath}/arrow/chatFormAttachment.svg'); }
}
}
}
}
}

0 comments on commit b25915c

Please sign in to comment.