Skip to content

Commit 26110ca

Browse files
committed
chore(theme): 移除春节主题装饰并调整颜色配置
- 删除春节灯笼动画和横幅相关样式代码 - 移除春节活动昨日活跃奖励双倍功能 - 更新主题颜色变量配置 - 调整导航栏背景色和文字颜色 - 修改移动端导航栏样式 - 清理相关CSS动画定义
1 parent a91cf0b commit 26110ca

File tree

13 files changed

+49
-252
lines changed

13 files changed

+49
-252
lines changed

AGENTS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
## 协作目标
1212
- `AGENTS.md` 保持精简,只保留会影响决策的长期约定;新增内容优先补充“关键链路”,避免堆砌背景信息。
13-
- 2026 春节临时视觉:全站顶栏灯笼 + 首页新春横幅;用户明确要求“节后”由 AI 直接移除,不额外做开关。
1413

1514
## 开发硬约束
1615
- 前端改动只改源码:`.scss` 与非 `min.js`;执行 `yarn run build` 生成产物;`classic``mobile` 皮肤需同步修改。

src/main/java/org/b3log/symphony/service/ActivityMgmtService.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ public class ActivityMgmtService {
6767
*/
6868
private static final Logger LOGGER = LogManager.getLogger(ActivityMgmtService.class);
6969

70-
private static final int SPRING_FESTIVAL_YESTERDAY_LIVENESS_REWARD_MULTIPLIER = 2;
71-
7270
/**
7371
* Character repository.
7472
*/
@@ -579,9 +577,8 @@ public synchronized void yesterdayLivenessReward(final String userId) {
579577
return;
580578
}
581579

582-
final int rewardSum = sum * SPRING_FESTIVAL_YESTERDAY_LIVENESS_REWARD_MULTIPLIER;
583580
boolean succ = null != pointtransferMgmtService.transfer(Pointtransfer.ID_C_SYS, userId,
584-
Pointtransfer.TRANSFER_TYPE_C_ACTIVITY_YESTERDAY_LIVENESS_REWARD, rewardSum, userId, System.currentTimeMillis(), "");
581+
Pointtransfer.TRANSFER_TYPE_C_ACTIVITY_YESTERDAY_LIVENESS_REWARD, sum, userId, System.currentTimeMillis(), "");
585582
}
586583

587584
/**
@@ -605,14 +602,13 @@ public synchronized int yesterdayLivenessRewardApi(final String userId) {
605602
return -1;
606603
}
607604

608-
final int rewardSum = sum * SPRING_FESTIVAL_YESTERDAY_LIVENESS_REWARD_MULTIPLIER;
609605
boolean succ = null != pointtransferMgmtService.transfer(Pointtransfer.ID_C_SYS, userId,
610-
Pointtransfer.TRANSFER_TYPE_C_ACTIVITY_YESTERDAY_LIVENESS_REWARD, rewardSum, userId, System.currentTimeMillis(), "");
606+
Pointtransfer.TRANSFER_TYPE_C_ACTIVITY_YESTERDAY_LIVENESS_REWARD, sum, userId, System.currentTimeMillis(), "");
611607
if (!succ) {
612608
return -1;
613609
}
614610

615-
return rewardSum;
611+
return sum;
616612
}
617613

618614
/**

src/main/resources/css/base.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/css/home.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/css/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/css/mobile-base.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/css/responsive.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/scss/_variables.scss

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ dialog 200~209
4242

4343
// Table of Contents
4444
// Colors
45-
$blue: #cf2f25 !default;
46-
$blue-light: #ffe3de !default;
47-
$blue-lighter: #fff1ee !default;
48-
$red: #b4231c !default;
49-
$red-light: #ffe0db !default;
45+
$blue: #4285f4 !default;
46+
$blue-light: #dbedff !default;
47+
$blue-lighter: #f1f7fe !default;
48+
$red: #d23f31 !default;
49+
$red-light: #ffdce0 !default;
5050
$green: #569e3d !default;
5151
$fade: #878787!default;
5252
$gray: #787777 !default;
5353
$black: #3b3e43 !default;
5454
$black-text: #2c2c2c !default;
5555
$black-light: #616161 !default;
5656
$white: #ffffff !default;
57-
$logo-orange: #f5b536 !default;
57+
$logo-orange: #e59230 !default;
5858

5959
@font-face {
6060
font-family: HarmonyOS;
@@ -96,12 +96,12 @@ $font-family-code: mononoki, Consolas, "Liberation Mono", Menlo, Courier, monosp
9696
$shadow-tip: 0 1px 2px rgba(0,0,0,.2) !default;
9797

9898
// theme
99-
$theme-primary: #fff6f3;
99+
$theme-primary: $white;
100100
$theme-accent: $logo-orange;
101-
$theme-secondary: #5a2320;
101+
$theme-secondary: $black-light;
102102
$theme-info: $blue-lighter;
103103
$theme-warning: undefined;
104-
$theme-error: #ffd9d2;
105-
$theme-success: #ffe7d4;
106-
$theme-primary-text: #4d2a23;
107-
$theme-background: #fff7f6;
104+
$theme-error: $red-light;
105+
$theme-success: $blue-light;
106+
$theme-primary-text: $black;
107+
$theme-background: #f6f6f6;

src/main/resources/scss/base.scss

Lines changed: 23 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -961,20 +961,6 @@ a[class*=" icon-"]:hover {
961961
/* end framework */
962962

963963
/* start header */
964-
@keyframes spring-lantern-swing {
965-
0%,
966-
100% {
967-
transform: rotate(-6deg);
968-
}
969-
970-
50% {
971-
transform: rotate(6deg);
972-
}
973-
}
974-
975-
$festival-nav-bg: #b52621;
976-
$festival-nav-text: #fff7e3;
977-
978964
.nav {
979965
position: sticky;
980966
top: 0;
@@ -986,37 +972,9 @@ $festival-nav-text: #fff7e3;
986972
height: 58px;
987973
padding: 5px 15px;
988974
box-sizing: border-box;
989-
background-color: $festival-nav-bg;
975+
background-color: $theme-primary;
990976
box-shadow: 0px 5px 40px 0px rgba(17,58,93,.1);
991977
font-weight: 500;
992-
overflow: visible;
993-
994-
&::before,
995-
&::after {
996-
content: "";
997-
position: absolute;
998-
top: 6px;
999-
width: 18px;
1000-
height: 30px;
1001-
border-radius: 55% 55% 45% 45%;
1002-
background:
1003-
linear-gradient(#d9b260, #d9b260) center top / 2px 8px no-repeat,
1004-
radial-gradient(circle at 50% 30%, #ffd68a 0, #ffb05e 28%, #dd4a2d 68%, #a41f1a 100%);
1005-
box-shadow: 0 4px 10px rgba(164, 31, 26, 0.28);
1006-
pointer-events: none;
1007-
z-index: 2;
1008-
transform-origin: top center;
1009-
animation: spring-lantern-swing 2.8s ease-in-out infinite;
1010-
}
1011-
1012-
&::before {
1013-
left: 12px;
1014-
}
1015-
1016-
&::after {
1017-
right: 12px;
1018-
animation-delay: -1.4s;
1019-
}
1020978

1021979
h1 {
1022980
//margin-right: 20px;
@@ -1047,7 +1005,7 @@ $festival-nav-text: #fff7e3;
10471005
height: 100%;
10481006
font-size: 14px;
10491007
font-weight: 500;
1050-
color: $festival-nav-text;
1008+
color: #3b3e43;
10511009
background: none;
10521010
border: none;
10531011
border-radius: 6px;
@@ -1063,13 +1021,13 @@ $festival-nav-text: #fff7e3;
10631021
}
10641022

10651023
&:hover, &:focus {
1066-
color: #8f2a1f;
1024+
color: #e59230;
10671025
background: #fff7ec;
10681026
svg { opacity: 1; }
10691027
}
10701028

10711029
&.current {
1072-
color: #8f2a1f;
1030+
color: #e59230;
10731031
font-weight: 600;
10741032
background: #fff7ec;
10751033
border-bottom: none !important;
@@ -1115,7 +1073,7 @@ $festival-nav-text: #fff7e3;
11151073
display: flex;
11161074
justify-content: center;
11171075
align-items: center;
1118-
color: $festival-nav-text;
1076+
color: $theme-primary-text;
11191077
text-decoration: none;
11201078
text-align: center;
11211079
padding: 14px 10px;
@@ -1162,7 +1120,7 @@ $festival-nav-text: #fff7e3;
11621120
width: 210px;
11631121
line-height: 38px;
11641122
height: 38px;
1165-
color: $festival-nav-text;
1123+
color: $theme-primary-text;
11661124
box-sizing: border-box;
11671125
position: relative;
11681126
vertical-align: top;
@@ -1177,9 +1135,9 @@ $festival-nav-text: #fff7e3;
11771135
}
11781136

11791137
.user-nav .pre-post {
1180-
background-color: rgba(255, 247, 227, 0.2);
1138+
background-color: rgb(203 202 202 / 29%);
11811139
border-radius: 8px;
1182-
color: $festival-nav-text;
1140+
color: #3b3e43;
11831141
padding: 7px 14px;
11841142
margin: 14px 7px;
11851143
line-height: 20px;
@@ -1188,9 +1146,9 @@ $festival-nav-text: #fff7e3;
11881146

11891147
.user-nav .no-msg,
11901148
.user-nav .msg {
1191-
background-color: rgba(255, 247, 227, 0.2);
1149+
background-color: rgb(203 202 202 / 29%);
11921150
border-radius: 3px;
1193-
color: $festival-nav-text;
1151+
color: #3b3e43;
11941152
padding: 0px 6px;
11951153
margin: 14px 7px;
11961154
line-height: 20px;
@@ -1206,7 +1164,7 @@ $festival-nav-text: #fff7e3;
12061164

12071165
.user-nav .msg {
12081166
background-color: $theme-accent;
1209-
color: #7a2c14;
1167+
color: #FFFFFF;
12101168
}
12111169

12121170
.user-nav a.current.no-msg,
@@ -1266,13 +1224,6 @@ $festival-nav-text: #fff7e3;
12661224
}
12671225
}
12681226

1269-
@media (max-width: 1200px) {
1270-
.nav::before,
1271-
.nav::after {
1272-
display: none;
1273-
}
1274-
}
1275-
12761227
/* end header */
12771228

12781229
/* start footer */
@@ -2671,19 +2622,19 @@ $festival-nav-text: #fff7e3;
26712622
}
26722623
.nav .user-nav .pre-post.current svg,
26732624
.nav .user-nav .pre-post.current span {
2674-
color: #7a2c14 !important;
2675-
fill: #7a2c14 !important;
2625+
color: #3B3E43 !important;
2626+
fill: #3B3E43 !important;
26762627
}
26772628

26782629
// 主题色
2679-
$theme-orange: $theme-accent;
2630+
$theme-orange: #e59230;
26802631
$theme-orange-light: #fff7ec;
26812632

26822633
.nav .user-nav > a.nav-btn-admin,
26832634
.nav .user-nav > a.nav-btn-activity {
26842635
transition: background 0.18s, color 0.18s;
26852636
border-radius: 6px;
2686-
color: $festival-nav-text;
2637+
color: #3b3e43;
26872638
background: none;
26882639
display: flex;
26892640
align-items: center;
@@ -2696,35 +2647,35 @@ $theme-orange-light: #fff7ec;
26962647
.nav .user-nav > a.nav-btn-activity:hover,
26972648
.nav .user-nav > a.nav-btn-activity:focus {
26982649
background: #fff7ec;
2699-
color: #8f2a1f;
2650+
color: #e59230;
27002651
}
27012652

27022653
.nav .user-nav > a.nav-btn-admin:hover svg,
27032654
.nav .user-nav > a.nav-btn-admin:focus svg,
27042655
.nav .user-nav > a.nav-btn-activity:hover svg,
27052656
.nav .user-nav > a.nav-btn-activity:focus svg {
2706-
color: #8f2a1f;
2707-
fill: #8f2a1f;
2657+
color: #e59230;
2658+
fill: #e59230;
27082659
}
27092660

27102661
.nav .user-nav > a.nav-btn-admin svg,
27112662
.nav .user-nav > a.nav-btn-activity svg {
27122663
transition: color 0.18s, fill 0.18s;
27132664
width: 18px;
27142665
height: 18px;
2715-
color: $festival-nav-text;
2716-
fill: $festival-nav-text;
2666+
color: #3b3e43;
2667+
fill: #3b3e43;
27172668
}
27182669

27192670
.nav .user-nav > a.nav-btn-admin.current,
27202671
.nav .user-nav > a.nav-btn-activity.current {
27212672
background: #fff7ec;
2722-
color: #8f2a1f;
2673+
color: #e59230;
27232674
}
27242675
.nav .user-nav > a.nav-btn-admin.current svg,
27252676
.nav .user-nav > a.nav-btn-activity.current svg {
2726-
color: #8f2a1f;
2727-
fill: #8f2a1f;
2677+
color: #e59230;
2678+
fill: #e59230;
27282679
}
27292680

27302681
#aPersonListPanel {

src/main/resources/scss/index.scss

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,56 +1269,6 @@ code .dec {
12691269

12701270
/* start index */
12711271
.index {
1272-
.spring-festival-banner {
1273-
max-width: 1160px;
1274-
margin: 12px auto 0;
1275-
padding: 10px 18px;
1276-
border-radius: 10px;
1277-
border: 1px solid rgba(212, 73, 44, 0.25);
1278-
background: linear-gradient(90deg, #fff7e0 0%, #ffe3c4 48%, #ffefd8 100%);
1279-
box-shadow: 0 4px 14px rgba(177, 58, 42, 0.12);
1280-
display: flex;
1281-
align-items: center;
1282-
justify-content: center;
1283-
gap: 14px;
1284-
color: #b13a2a;
1285-
}
1286-
1287-
.spring-festival-banner__text {
1288-
font-size: 16px;
1289-
font-weight: 600;
1290-
letter-spacing: 1px;
1291-
}
1292-
1293-
.spring-festival-banner__lantern {
1294-
position: relative;
1295-
width: 15px;
1296-
height: 21px;
1297-
border-radius: 55% 55% 45% 45%;
1298-
background:
1299-
linear-gradient(#d9b260, #d9b260) center top / 2px 6px no-repeat,
1300-
radial-gradient(circle at 50% 30%, #ffd68a 0, #ffb05e 28%, #dd4a2d 68%, #a41f1a 100%);
1301-
box-shadow: 0 2px 6px rgba(164, 31, 26, 0.25);
1302-
transform-origin: top center;
1303-
animation: spring-lantern-swing 2.8s ease-in-out infinite;
1304-
1305-
&::after {
1306-
content: "";
1307-
position: absolute;
1308-
left: 50%;
1309-
bottom: -7px;
1310-
width: 2px;
1311-
height: 7px;
1312-
border-radius: 2px;
1313-
background: linear-gradient(#f5d286, #d79b3b);
1314-
transform: translateX(-50%);
1315-
}
1316-
}
1317-
1318-
.spring-festival-banner__lantern:last-child {
1319-
animation-delay: -1.4s;
1320-
}
1321-
13221272
.index-main {
13231273
width: 60%;
13241274
}

0 commit comments

Comments
 (0)