Skip to content

Commit

Permalink
minor CSS changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Oct 7, 2024
1 parent 593d6e2 commit 117c307
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/chat/ChatMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- post author and timestamp -->
<p class="card-subtitle mb-2 text-muted">
<NuxtLink
class="link-without-color hover-color"
class="link-without-color hover-color author-color"
:to="'/profile/?id=' + String(showDomainOrFullAddress)"
title="Go to profile page"
>
Expand Down Expand Up @@ -47,14 +47,14 @@

<!-- post text -->
<div v-if="parsedText">
<p class="card-text text-break" v-if="parsedText.length > messageLengthLimit && !showFullText">
<p class="card-text text-break post-text-color" v-if="parsedText.length > messageLengthLimit && !showFullText">
<span v-html="parsedText.substring(0, messageLengthLimit) + ' ... '"> </span>
<span class="cursor-pointer hover-color" @click="showFullText = true">Read more</span>
</p>

<p
v-if="parsedText.length < messageLengthLimit || showFullText"
class="card-text text-break"
class="card-text text-break post-text-color"
v-html="parsedText"
></p>
</div>
Expand All @@ -67,7 +67,7 @@

<div class="card-body bg-body rounded-bottom-3 border-end border-bottom border-start preview-card-body">
<h5 class="card-title text-break">{{ linkPreview.title }}</h5>
<p class="card-text text-break text-reset">{{ linkPreview.description }}</p>
<p class="card-text text-break post-text-color text-reset">{{ linkPreview.description }}</p>
</div>
</a>
</div>
Expand Down
8 changes: 8 additions & 0 deletions public/css/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@
--bs-white-black-toggle: #000;
}

[data-bs-theme=light] .author-color {
color: #96969a !important;
}

[data-bs-theme=light] body {
background-color: #f5f5f6;
}
Expand Down Expand Up @@ -149,6 +153,10 @@
color: var(--bs-primary);
}

[data-bs-theme=light] .post-text-color {
color: #2f2f2f !important;
}

[data-bs-theme=light] .preview-card-body.bg-body {
background-color: #f5f5f6 !important;
}
Expand Down

0 comments on commit 117c307

Please sign in to comment.