Skip to content

Commit 414da35

Browse files
KingPrimesKingPrimes
authored andcommitted
refactor(Template): 优化模板代码结构和样式
- 删除了多个模板中重复的 CSS 样式定义 - 更新了多个模板中的图像路径引用 - 优化了部分 HTML 结构,提高了可读性和维护性 - 调整了部分样式以适应新的布局
1 parent f03ee15 commit 414da35

30 files changed

Lines changed: 336 additions & 365 deletions

Template/css/index.css

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -151,59 +151,7 @@ td {
151151
color: #555;
152152
}
153153

154-
.voidTrader {
155-
margin: 0 auto;
156-
text-align: center;
157-
border-collapse: collapse;
158-
width: 100%;
159-
text-indent: 20px;
160-
}
161154

162-
.voidTraderOut {
163-
margin: 0 auto;
164-
text-align: center;
165-
border-collapse: collapse;
166-
}
167-
168-
.voidTraderOut td:nth-child(1) {
169-
color: #cf62f0;
170-
}
171-
172-
.voidTraderOut td:nth-child(2) {
173-
color: #2da7ee;
174-
}
175-
176-
.voidTrader th {
177-
text-align: center;
178-
background-color: #CCE8EB;
179-
border: 1px solid #cad9ea;
180-
}
181-
182-
.voidTrader tr:nth-child(odd) {
183-
background: #fff;
184-
}
185-
186-
.voidTrader td:nth-child(1) {
187-
color: #cf62f0;
188-
}
189-
190-
.voidTrader tr:nth-child(even) {
191-
background: #F5FAFA;
192-
}
193-
194-
.voidTrader td:nth-child(2) {
195-
color: #2da7ee;
196-
background-image: url(../img/Credits.png);
197-
background-repeat: no-repeat;
198-
background-position: right;
199-
}
200-
201-
.voidTrader td:nth-child(3) {
202-
color: #B29C66;
203-
background-image: url(../img/Ducats.png);
204-
background-repeat: no-repeat;
205-
background-position: right;
206-
}
207155

208156
.table-css {
209157
width: 100%;
@@ -419,8 +367,8 @@ td {
419367
width: 100%;
420368
background-color: #2a2a2a; /* 深灰色背景 */
421369
border-radius: 4px; /* 轻微圆角 */
422-
border: 5px solid #7f8c8d;
423370
border-collapse: collapse;
371+
border: 5px solid #7f8c8d;
424372
margin: 8px;
425373
padding: 5px;
426374
}

Template/html/alerts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<head>
55
<meta charset="UTF-8"/>
6-
<link th:href="@{/css/fonts.css}" rel="stylesheet"/>
6+
<link th:href="@{css/fonts.css}" rel="stylesheet"/>
77
<title>警报</title>
88
<style>
99
:root {

Template/html/allCycle.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8"/>
55
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
6-
<link th:href="@{/css/fonts.css}" rel="stylesheet"/>
6+
<link th:href="@{css/fonts.css}" rel="stylesheet"/>
77
<title>平原</title>
88
<style>
99
/* 兼容性字体设置 */
@@ -125,11 +125,11 @@ <h1>平原查询结果</h1>
125125
th:classappend="${zariman.isCorpus} ? 'cold' : 'warm'"></td>
126126
</tr>
127127
<tr>
128-
<td><img th:src="${earth.isDay} ? @{/img/day.png} : @{/img/night.png}"/></td>
129-
<td><img th:src="${cetus.isDay} ? @{/img/day.png} : @{/img/night.png}"/></td>
130-
<td><img th:src="${vallis.isWarm} ? @{/img/day.png} : @{/img/cold.png}"/></td>
131-
<td><img th:if="${cambion.active} == FASS" th:src="@{/img/day.png}"/>
132-
<img th:if="${cambion.active} != FASS" th:src="@{/img/night.png}"/>
128+
<td><img th:src="${earth.isDay} ? @{img/day.png} : @{img/night.png}"/></td>
129+
<td><img th:src="${cetus.isDay} ? @{img/day.png} : @{img/night.png}"/></td>
130+
<td><img th:src="${vallis.isWarm} ? @{img/day.png} : @{img/cold.png}"/></td>
131+
<td><img th:if="${cambion.active} == FASS" th:src="@{img/day.png}"/>
132+
<img th:if="${cambion.active} != FASS" th:src="@{img/night.png}"/>
133133
</td>
134134
<td></td>
135135
</tr>

Template/html/arbitration.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="UTF-8"/>
66
<title>仲裁</title>
7-
<link th:href="@{/css/fonts.css}" rel="stylesheet"/>
7+
<link th:href="@{css/fonts.css}" rel="stylesheet"/>
88
<style>
99
body {
1010
background-color: #1A2332;
@@ -108,7 +108,7 @@ <h1>仲裁</h1>
108108
<li class="mission-etc" th:text="${arbit.etc}"></li>
109109
</ul>
110110
</td>
111-
<td style="width: 20%;"><img th:src="@{'/img/faction/' + ${arbit.enemy} + '.png'}" alt="阵营图标"/></td>
111+
<td style="width: 20%;"><img th:src="@{'img/faction/' + ${arbit.enemy} + '.png'}" alt="阵营图标"/></td>
112112
</tr>
113113
</table>
114114
</div>

Template/html/arbitration_ex.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<title>仲裁</title>
6-
<link th:href="@{/css/fonts.css}" rel="stylesheet"/>
6+
<link th:href="@{css/fonts.css}" rel="stylesheet"/>
77
<style>
88
body {
99
background-color: #1A2332;
@@ -102,7 +102,7 @@ <h1>仲裁</h1>
102102
</ul>
103103
</td>
104104
<td style="width: 20%;">
105-
<img th:src="@{'/img/faction/' + ${arbit.enemy} + '.png'}" alt="阵营图标" />
105+
<img th:src="@{'img/faction/' + ${arbit.enemy} + '.png'}" alt="阵营图标" />
106106
</td>
107107
</tr>
108108
</table>

Template/html/arsonHunt.html

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,13 @@
22
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
33
<head>
44
<meta charset="UTF-8" />
5-
<link th:href="@{/css/fonts.css}" rel="stylesheet"/>
5+
<link th:href="@{css/fonts.css}" rel="stylesheet"/>
66
<title>执刑官猎杀</title>
77
<style>
8-
.assault {
9-
text-align: left;
10-
font-size: 18px;
11-
}
12-
13-
.time {
14-
text-align: right;
15-
font-size: 18px;
16-
}
178

189
table {
1910
width: 100%;
20-
text-align: left;
11+
text-align: center;
2112
}
2213

2314
body {

Template/html/assault.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
33
<head>
44
<meta charset="UTF-8" />
5-
<link th:href="@{/css/fonts.css}" rel="stylesheet"/>
5+
<link th:href="@{css/fonts.css}" rel="stylesheet"/>
66
<title>突击</title>
77
<style>
88
body {

Template/html/daily.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8"/>
55
<title>每日特惠</title>
6-
<link th:href="@{/css/fonts.css}" rel="stylesheet"/>
6+
<link th:href="@{css/fonts.css}" rel="stylesheet"/>
77
<style>
88
body {
99
background-color: #1A2332;

Template/html/duviriCycle.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
33
<head>
44
<meta charset="UTF-8"/>
5-
<link th:href="@{/css/fonts.css}" rel="stylesheet"/>
5+
<link th:href="@{css/fonts.css}" rel="stylesheet"/>
66
<title>双衍王境</title>
77
<style>
88
body {

Template/html/fissues.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>虚空裂隙</title>
6-
<link th:href="@{/css/fonts.css}" rel="stylesheet"/>
6+
<link th:href="@{css/fonts.css}" rel="stylesheet"/>
77
<style>
88
body {
99
color: #e1e7ec;
@@ -133,7 +133,7 @@
133133
<table>
134134
<tr>
135135
<td><img
136-
th:src="@{'/img/'+${f.getVoidEnum().name() == 'VoidT1' ? 'lith' :
136+
th:src="@{'img/'+${f.getVoidEnum().name() == 'VoidT1' ? 'lith' :
137137
(f.getVoidEnum().name() == 'VoidT2' ? 'meso' :
138138
(f.getVoidEnum().name() == 'VoidT3' ? 'neo' :
139139
(f.getVoidEnum().name() == 'VoidT4' ? 'relics/axi' :
@@ -155,7 +155,7 @@
155155
<li th:text="${f.getTimeLeft()}"></li>
156156
</ul>
157157
</td>
158-
<td><img th:src="@{'/img/faction/'+ ${f.nodes.getFactionName().name()} +'.png'}" alt=""/></td>
158+
<td><img th:src="@{'img/faction/'+ ${f.nodes.getFactionName().name()} +'.png'}" alt=""/></td>
159159
</tr>
160160
</table>
161161
</div>

0 commit comments

Comments
 (0)