mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-07 07:30:54 +08:00
Compare commits
4 Commits
feature/md
...
feature/go
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
513b1f45a1 | ||
|
|
1b204345a6 | ||
|
|
d146bf2b0d | ||
|
|
864a760b20 |
@@ -41,6 +41,7 @@
|
||||
--twitter-bg-hover: rgb(91, 91, 91);
|
||||
--discord-bg: #5865f258;
|
||||
--discord-bg-hover: #5865f2b1;
|
||||
--featured-color: rgb(255, 170, 0);
|
||||
}
|
||||
|
||||
[data-theme='dark'] {
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
v-else-if="article.type === 'POLL'"
|
||||
class="fa-solid fa-square-poll-vertical poll-icon"
|
||||
></i>
|
||||
<i v-if="!article.rssExcluded" class="fa-solid fa-star featured-icon"></i>
|
||||
{{ article.title }}
|
||||
</NuxtLink>
|
||||
<NuxtLink class="article-item-description main-item" :to="`/posts/${article.id}`">
|
||||
@@ -547,11 +548,16 @@ const sanitizeDescription = (text) => stripMarkdown(text)
|
||||
|
||||
.pinned-icon,
|
||||
.lottery-icon,
|
||||
.featured-icon,
|
||||
.poll-icon {
|
||||
margin-right: 4px;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.featured-icon {
|
||||
color: var(--featured-color);
|
||||
}
|
||||
|
||||
.article-item-description {
|
||||
max-width: 100%;
|
||||
margin-top: 10px;
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<div class="article-title-container-right">
|
||||
<div v-if="status === 'PENDING'" class="article-pending-button">审核中</div>
|
||||
<div v-if="status === 'REJECTED'" class="article-block-button">已拒绝</div>
|
||||
<div v-if="!rssExcluded" class="article-featured-button">精品</div>
|
||||
<div v-if="closed" class="article-closed-button">已关闭</div>
|
||||
<div
|
||||
v-if="!closed && loggedIn && !isAuthor && !subscribed"
|
||||
@@ -957,6 +958,7 @@ onMounted(async () => {
|
||||
|
||||
.article-closed-button,
|
||||
.article-subscribe-button-text,
|
||||
.article-featured-button,
|
||||
.article-unsubscribe-button-text {
|
||||
white-space: nowrap;
|
||||
}
|
||||
@@ -998,6 +1000,15 @@ onMounted(async () => {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.article-featured-button {
|
||||
background-color: var(--background-color);
|
||||
color: var(--featured-color);
|
||||
border: 1px solid var(--featured-color);
|
||||
padding: 5px 10px;
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.article-closed-button {
|
||||
background-color: var(--background-color);
|
||||
color: gray;
|
||||
|
||||
Reference in New Issue
Block a user