Skip to content

Commit

Permalink
feat: 文章访问后,标题颜色改变
Browse files Browse the repository at this point in the history
  • Loading branch information
Plumbiu committed Feb 11, 2023
1 parent 6ca3fbd commit 47cfee8
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
Binary file modified backend/.tmp/data.db
Binary file not shown.
2 changes: 1 addition & 1 deletion frontend/components/ArticlesList/Item/Bar/Bottom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const format = (num: number) => num > 10000 ? `${(num / 10000).toFixed(1)}w` : n

<style scoped>
.bottombar {
@apply flex all-flex
@apply flex all-flex leading-[22px]
}
.heat {
@apply pl-2
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/ArticlesList/Item/Bar/Center.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defineProps<{
</script>

<template>
<div :class="`${ad ? 'pt-3 mb-1' : 'py-4'}`">
<div :class="`${ad ? 'mb-1' : ''}`" class="my-[10px]">
<div class="title">
{{ title }}
</div>
Expand All @@ -22,6 +22,6 @@ defineProps<{
@apply truncate text-jj-font-normal text-[16px] title font-semibold tracking-wide
}
.summary {
@apply pt-3 text-jj_thirdly text-[13px]
@apply mt-[8px] text-jj_thirdly text-[13px] leading-[22px]
}
</style>
2 changes: 1 addition & 1 deletion frontend/components/ArticlesList/Item/Bar/Top.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ defineProps({

<style scoped>
.topbar {
@apply flex items-center pr-4 text-[13px]
@apply flex items-center pr-4 text-[13px] leading-[22px]
}
.author {
@apply transition text-jj-font-normal px-3 border-r-1 pl-0 hover:text-jj-brand-normal
Expand Down
5 changes: 4 additions & 1 deletion frontend/components/ArticlesList/Item/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const hideHandler = (id: string) => {
<ul ref="parent">
<ArticlesListItemAds />
<li v-for="art in artlist" :key="art.id" class="list_container">
<ArticlesListUiLink :to="`/article/${art.id}`">
<ArticlesListUiLink class="link" :to="`/article/${art.id}`">
<div class="left">
<ArticlesListItemBarTop
:author-id="art.authorId"
Expand Down Expand Up @@ -43,4 +43,7 @@ const hideHandler = (id: string) => {
.icon {
@apply i-carbon-close display-none cursor-pointer text-[16px] text-jj-fourthly hover:text-primary transition absolute top-[1rem] right-[1.67rem];
}
.link:visited :deep(.title) {
@apply text-jj-navs-title
}
</style>
2 changes: 1 addition & 1 deletion frontend/components/ArticlesList/Ui/Link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defineProps({

<style scoped>
.link_container {
@apply transition flex-1 f-c-c transition-all b-b b-grey all-cursor-pointer px-[1.67rem] pt-[1.25rem] pb-[0.85rem] truncate
@apply transition flex-1 f-c-c transition-all b-b b-grey all-cursor-pointer px-[1.67rem] pt-[1rem] pb-[10px] truncate
@apply dark:b-jj-gray-container-normal hover:bg-jj-hover
}
</style>
1 change: 1 addition & 0 deletions frontend/unocss.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ export default defineConfig({
},
navs: {
normal: 'var(--juejin-border-navs-header)', // #F3F4F6 //#494949
title: 'var(--jjext-color-nav-title)', // #86909c
wrapper: {
normal: 'var(--juejin-border-navs-wrapper)', // #E5E7EB //#494949
},
Expand Down

0 comments on commit 47cfee8

Please sign in to comment.