Skip to content

欢迎来到电子书下载宝库,一个汇聚了各类电子书下载链接的地方。无论你是喜欢阅读经典文学、经管励志、终身学习、职场创业、技术手册还是其他类型的书籍,这里都能满足你的需求。 该库涵盖了帆书app(原樊登读书)、微信读书、京东读书、喜马拉雅等读书app的大部分电子书。

Python

style: 优化统计栏字体大小

jbiaojerry454ddd7f204b
diff --git a/docs/index.html b/docs/index.html
index 494189e..1cae446 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -279,7 +279,7 @@
}
.stat-item {
- padding: 24px;
+ padding: 20px 18px;
background: var(--base02);
border-radius: 8px;
border: 1px solid var(--base01);
@@ -289,7 +289,7 @@
}
.stat-item:hover {
- transform: translateY(-4px);
+ transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
border-color: var(--cyan);
background: var(--base03);
@@ -297,21 +297,23 @@
.stat-item span {
display: block;
- font-size: 14px;
+ font-size: 13px;
color: var(--base1);
- margin-bottom: 8px;
+ margin-bottom: 10px;
font-weight: 500;
font-family: "SF Mono", "Monaco", monospace;
+ opacity: 0.9;
}
.stat-item strong {
display: block;
- font-size: 1.8em;
+ font-size: 1.4em;
color: var(--cyan);
- font-weight: 700;
- margin-top: 4px;
+ font-weight: 600;
+ margin-top: 6px;
font-family: "SF Mono", "Monaco", monospace;
- text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
+ line-height: 1.3;
}
@media (max-width: 600px) {
diff --git a/scripts/generate_index.py b/scripts/generate_index.py
index ba148be..ae76a69 100644
--- a/scripts/generate_index.py
+++ b/scripts/generate_index.py
@@ -638,7 +638,7 @@ def generate_html(md_content):
}}
.stat-item {{
- padding: 24px;
+ padding: 20px 18px;
background: var(--base02);
border-radius: 8px;
border: 1px solid var(--base01);
@@ -648,7 +648,7 @@ def generate_html(md_content):
}}
.stat-item:hover {{
- transform: translateY(-4px);
+ transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
border-color: var(--cyan);
background: var(--base03);
@@ -656,21 +656,23 @@ def generate_html(md_content):
.stat-item span {{
display: block;
- font-size: 14px;
+ font-size: 13px;
color: var(--base1);
- margin-bottom: 8px;
+ margin-bottom: 10px;
font-weight: 500;
font-family: "SF Mono", "Monaco", monospace;
+ opacity: 0.9;
}}
.stat-item strong {{
display: block;
- font-size: 1.8em;
+ font-size: 1.4em;
color: var(--cyan);
- font-weight: 700;
- margin-top: 4px;
+ font-weight: 600;
+ margin-top: 6px;
font-family: "SF Mono", "Monaco", monospace;
- text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
+ line-height: 1.3;
}}
@media (max-width: 600px) {{