Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/components/UI/AStamp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<div :class="$style.container" :style="containerStyle">
<img
v-if="imageUrl.length > 0"
class="stamp-image"
:class="$style.img"
:src="imageUrl"
:alt="name"
Expand Down Expand Up @@ -58,11 +59,5 @@ const containerStyle = computed(() => ({
.img {
max-height: 100%;
margin: auto;
html[data-stamp-edge='true'] & {
filter: drop-shadow(0.1px 0.1px 0 rgb(255, 255, 255, 0.1))
drop-shadow(0.1px -0.1px 0 rgb(255, 255, 255, 0.1))
drop-shadow(-0.1px 0.1px 0 rgb(255, 255, 255, 0.1))
drop-shadow(-0.1px -0.1px 0 rgb(255, 255, 255, 0.1));
}
}
</style>
5 changes: 5 additions & 0 deletions src/styles/_emoji.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
@use 'sass:meta';

@include meta.load-css('@traptitech/traq-markdown-it/src/css/stamp');

html[data-stamp-edge='true'] :is(.emoji, .stamp-image) {
filter: drop-shadow(0 0 0.5px rgb(255 255 255 / 60%));
}

html[data-eco-mode='false'] {
@include meta.load-css('@traptitech/traq-markdown-it/src/css/stampEffect');
}
9 changes: 0 additions & 9 deletions src/styles/_markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@ html[data-code-highlight='dark'] {

// KaTeXのCSSは遅延読み込みするのでmain.tsを参照

html[data-stamp-edge='true'] {
.emoji {
filter: drop-shadow(0.1px 0.1px 0 rgb(255, 255, 255, 0.1))
drop-shadow(0.1px -0.1px 0 rgb(255, 255, 255, 0.1))
drop-shadow(-0.1px 0.1px 0 rgb(255, 255, 255, 0.1))
drop-shadow(-0.1px -0.1px 0 rgb(255, 255, 255, 0.1));
}
}

.markdown-body .katex {
display: inline-flex;
max-width: 100%;
Expand Down
Loading