Skip to content

Commit 8f14f80

Browse files
authored
Merge pull request #196 from MarleneJiang/issue-173-css颜色抽离
Issue 173 css颜色抽离
2 parents 52e7762 + 35ce612 commit 8f14f80

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

frontend/assets/css/main.css

+2
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ html.light{
219219
--juejin-navs-background:#ffffff;
220220
--juejin-text-navs-item:#000000;
221221
--juejin-list-icon-hover:#f2f3f5;
222+
--juejin-category-popover-border:#ebebeb;
222223
}
223224

224225
html.dark{
@@ -339,6 +340,7 @@ html.dark{
339340
--juejin-navs-background:#121212;
340341
--juejin-text-navs-item:#e8ecfa;
341342
--juejin-list-icon-hover:#515767;
343+
--juejin-category-popover-border:#201f1f;
342344
}
343345

344346
.page-enter-active,

frontend/components/Navs/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const isNavShown = inject('isNavShown')
4242
transition: all .2s;
4343
@apply flex items-center fixed top-0 left-0 right-0;
4444
@apply space-between md:justify-around;
45-
@apply bg-jj_navigation border-b-1 h-[5rem] lt-sm:(h-[4.333rem]) z-99 border-jj-navs-normal;
45+
@apply bg-jj-sidebar border-b-1 h-[5rem] lt-sm:(h-[4.333rem]) z-99 border-jj-navs-normal;
4646
}
4747
.logo{
4848
@apply flex items-center mr-4 ml-6 w-auto inline-block;

frontend/components/Types/index.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const isNavShown = inject('isNavShown')
5252
.view-types {
5353
transition: all .2s;
5454
transform: translateZ(0);
55-
@apply bg-jj_navigation w-full fixed top-[5rem] lt-sm:(top-[4.333rem]) shadow-sm shadow-black/5 dark:shadow-white/5 h-[3.833rem] z-1;
55+
@apply bg-jj-sidebar w-full fixed top-[5rem] lt-sm:(top-[4.333rem]) shadow-sm shadow-black/5 dark:shadow-white/5 h-[3.833rem] z-1;
5656
}
5757
.type-list-item{
5858
@apply h-full w-auto float-left cursor-pointer whitespace-nowrap flex items-center p-x-[1rem] text-jj-types-normal text-[1.16rem];
@@ -91,7 +91,7 @@ const isNavShown = inject('isNavShown')
9191
@apply scale-100;
9292
}
9393
.category-popover {
94-
@apply scale-0 transition-100 delay-150 transition-all bg-jj-light border-jj-border-dropdown-normal;
94+
@apply scale-0 transition-100 delay-150 transition-all bg-jj-article border-jj-border-dropdown-normal;
9595
position: fixed;
9696
top: 3.833rem;
9797
padding: 1.17rem 1.17rem .17rem;

frontend/unocss.config.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default defineConfig({
4646
jj_font_white: 'var(--jjext-color-font-white)', // #ffffff
4747
jj_font_black: 'var(--jjext-color-font-1)', // #252933
4848
jj_bg_gray: 'var(--jjext-color-bg-gray)', // #27272a
49-
jj_navigation: 'var(--juejin-navigation)',
49+
jj_navigation: 'var(--juejin-navigation)', // #fff //#181818
5050
jj: {
5151
thirdly: 'var(--jjext-color-thirdly)', // #86909c
5252
fourthly: 'var(--jjext-color-fourthly)', // #c9cdd4
@@ -99,6 +99,9 @@ export default defineConfig({
9999
hover: {
100100
normal: 'var(--juejin-hover-sign)', // #e8f2ff //#315078
101101
},
102+
category: {
103+
normal: 'var(--juejin-category-popover-border)', // #ebebeb //#201f1f
104+
},
102105
},
103106
stroke: {
104107
normal: 'var(--juejin-brand-stroke1-normal)', // rgba(30,128,255,0.3)

0 commit comments

Comments
 (0)