Skip to content

Commit 4772a07

Browse files
committed
fix: 明暗主题展示不明显问题
1 parent 7d3dc4e commit 4772a07

File tree

5 files changed

+45
-7
lines changed

5 files changed

+45
-7
lines changed

website/src/assets/github.svg

Lines changed: 2 additions & 2 deletions
Loading

website/src/component/Footer/index.module.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.warpper {
22
background: white;
33
border-top: 1px solid #e1e4e8;
4+
width: 100%;
45
}
56

67
.inner {
@@ -79,3 +80,8 @@
7980
margin: 0 5px;
8081
}
8182
}
83+
84+
html[data-color-mode*='dark'] .warpper {
85+
border-top: 1px solid #032438;
86+
background: var(--color-theme-bg);
87+
}

website/src/component/Header/index.module.less

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111

1212
html[data-color-mode*='dark'] .warpper {
13-
background-color: #0d1117;
13+
background-color: var(--color-theme-bg);
1414
border-bottom: 1px solid #032438;
1515
}
1616

@@ -27,7 +27,7 @@ html[data-color-mode*='dark'] .warpper {
2727

2828
a {
2929
transition: all 0.3s;
30-
color: #333;
30+
color: var(--color-fg-default);
3131
border-radius: 3px;
3232
padding: 2px 8px 2px 8px;
3333
display: flex;
@@ -44,7 +44,6 @@ html[data-color-mode*='dark'] .warpper {
4444
color: #0366d6;
4545
}
4646
}
47-
4847
.logo {
4948
display: flex;
5049
align-items: center;
@@ -74,3 +73,9 @@ html[data-color-mode*='dark'] .warpper {
7473
font-weight: 300;
7574
}
7675
}
76+
77+
html[data-color-mode*='dark'] {
78+
:global(.github) {
79+
fill: white;
80+
}
81+
}

website/src/component/SubMenus/index.module.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
position: relative;
44

55
a {
6-
color: #5a5a5a;
6+
color: var(--color-fg-default);
77
transition: all 0.3s;
88
margin-left: 10px;
99
display: flex;
@@ -39,7 +39,7 @@
3939
padding: 5px 0;
4040
margin-left: 10px;
4141
margin-bottom: 10px;
42-
color: #bdbdbd;
42+
color: #8a8686;
4343
border-bottom: 1px solid #eaeaea;
4444
}
4545

website/src/pages/home/index.module.less

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
background: linear-gradient(60deg, #393e48c4 0%, #dfe2e5 100%);
55
color: white;
66
}
7+
html[data-color-mode*='dark'] .header {
8+
background: linear-gradient(10deg, #393e48c4 0%, var(--color-theme-bg) 80%);
9+
color: rgb(255, 255, 255);
10+
h2,
11+
p,
12+
a:hover {
13+
text-shadow: 1px 3px 5px cornflowerblue;
14+
}
15+
}
716

817
.headerContent {
918
padding-top: 140px;
@@ -25,6 +34,7 @@
2534
}
2635
p {
2736
padding-top: 52px;
37+
font-size: 25px;
2838
}
2939
}
3040
.innerHeader {
@@ -64,6 +74,23 @@
6474
}
6575
}
6676

77+
html[data-color-mode*='dark'] .waves {
78+
:global(.parallax) {
79+
& > use:nth-child(1) {
80+
fill: #0d1117b5;
81+
}
82+
& > use:nth-child(2) {
83+
fill: #0d111783;
84+
}
85+
& > use:nth-child(3) {
86+
fill: #0d11173c;
87+
}
88+
& > use:nth-child(4) {
89+
fill: var(--color-theme-bg);
90+
}
91+
}
92+
}
93+
6794
@keyframes move-forever {
6895
0% {
6996
transform: translate3d(-90px, 0, 0);

0 commit comments

Comments
 (0)