放大了字体,然后改善了手机样式
This commit is contained in:
+11
-11
@@ -23,7 +23,7 @@
|
|||||||
/* 首页栏目标题 */
|
/* 首页栏目标题 */
|
||||||
.announcements-column h2,
|
.announcements-column h2,
|
||||||
.blog-column h2 {
|
.blog-column h2 {
|
||||||
font-size: 1.5rem;
|
font-size: 1.8rem; /* 增大栏目标题 (原1.5rem) */
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
padding-bottom: 1rem;
|
padding-bottom: 1rem;
|
||||||
border-bottom: 2px solid var(--border-default);
|
border-bottom: 2px solid var(--border-default);
|
||||||
@@ -46,13 +46,13 @@
|
|||||||
.post-list {
|
.post-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 16px;
|
gap: 20px; /* 增大间距 (原16px) */
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-item {
|
.post-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 20px;
|
padding: 24px; /* 增大内边距 (原20px) */
|
||||||
border: 1px solid var(--border-default);
|
border: 1px solid var(--border-default);
|
||||||
border-radius: var(--radius-md);
|
border-radius: var(--radius-md);
|
||||||
background-color: var(--bg-card);
|
background-color: var(--bg-card);
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
|
|
||||||
.post-title {
|
.post-title {
|
||||||
margin: 0 0 12px 0;
|
margin: 0 0 12px 0;
|
||||||
font-size: 1.15rem;
|
font-size: 1.35rem; /* 增大文章标题 (原1.15rem) */
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
font-size: 0.85rem;
|
font-size: 0.95rem; /* 增大元信息 (原0.85rem) */
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
margin-top: auto; /* Push meta to bottom */
|
margin-top: auto; /* Push meta to bottom */
|
||||||
padding-top: 16px;
|
padding-top: 16px;
|
||||||
@@ -113,7 +113,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post-excerpt {
|
.post-excerpt {
|
||||||
font-size: 0.95rem;
|
font-size: 1.05rem; /* 增大摘要 (原0.95rem) */
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
|
|
||||||
.gh-label-category {
|
.gh-label-category {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: 13px;
|
font-size: 14px; /* 增大标签 (原13px) */
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
@@ -162,7 +162,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.gh-pro-header .entry-title {
|
.gh-pro-header .entry-title {
|
||||||
font-size: 2.5rem;
|
font-size: 3rem; /* 增大文章主标题 (原2.5rem) */
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
line-height: 1.25;
|
line-height: 1.25;
|
||||||
@@ -173,7 +173,7 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
font-size: 14px;
|
font-size: 16px; /* 增大元信息栏 (原14px) */
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
}
|
}
|
||||||
@@ -247,8 +247,8 @@
|
|||||||
|
|
||||||
/* Entry Content Typography (Markdown Style) */
|
/* Entry Content Typography (Markdown Style) */
|
||||||
.gh-file-content {
|
.gh-file-content {
|
||||||
font-size: 16px;
|
font-size: 18px; /* 增大正文基础字号 (原16px) */
|
||||||
line-height: 1.7;
|
line-height: 1.8; /* 优化行高 */
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
overflow-wrap: break-word; /* 自动换行 */
|
overflow-wrap: break-word; /* 自动换行 */
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
padding: 4rem 0 2rem;
|
padding: 4rem 0 2rem;
|
||||||
margin-top: auto; /* 确保置底 */
|
margin-top: auto; /* 确保置底 */
|
||||||
flex-shrink: 0; /* 防止Footer被压缩 */
|
flex-shrink: 0; /* 防止Footer被压缩 */
|
||||||
|
font-size: 16px; /* 增加页脚基础字号 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- 页脚内容网格 --- */
|
/* --- 页脚内容网格 --- */
|
||||||
@@ -19,19 +20,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.footer-section h3 {
|
.footer-section h3 {
|
||||||
font-size: 1rem;
|
font-size: 18px; /* 增大标题字号 (原1rem/16px) */
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-links li {
|
.footer-links li {
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.8rem; /* 增加行间距 */
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-links a {
|
.footer-links a {
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
font-size: 0.9rem;
|
font-size: 15px; /* 增大链接字号 (原0.9rem/14.4px) */
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-links a:hover {
|
.footer-links a:hover {
|
||||||
@@ -45,7 +46,7 @@
|
|||||||
padding-top: 2rem;
|
padding-top: 2rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
font-size: 0.85rem;
|
font-size: 14px; /* 增大版权信息字号 (原0.85rem/13.6px) */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- 响应式适配 --- */
|
/* --- 响应式适配 --- */
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
/* 大标题 */
|
/* 大标题 */
|
||||||
.hero-content h1 {
|
.hero-content h1 {
|
||||||
font-size: 3.5rem;
|
font-size: 4rem; /* 增大 Hero 标题 (原3.5rem) */
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
letter-spacing: -0.02em;
|
letter-spacing: -0.02em;
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
/* 描述文本 (代码风格) */
|
/* 描述文本 (代码风格) */
|
||||||
.hero-description {
|
.hero-description {
|
||||||
font-size: 1.25rem;
|
font-size: 1.5rem; /* 增大 Hero 描述 (原1.25rem) */
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
margin-bottom: 3rem;
|
margin-bottom: 3rem;
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
/* 标题带有命令提示符风格 */
|
/* 标题带有命令提示符风格 */
|
||||||
.services-provided h2 {
|
.services-provided h2 {
|
||||||
font-size: 1.5rem;
|
font-size: 1.8rem; /* 增大服务标题 (原1.5rem) */
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
padding-bottom: 1rem;
|
padding-bottom: 1rem;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
@@ -123,15 +123,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.service-icon svg {
|
.service-icon svg {
|
||||||
width: 80px;
|
width: 90px; /* 增大图标 (原80px) */
|
||||||
height: 80px;
|
height: 90px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.service-item span {
|
.service-item span {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
font-size: 1.1rem;
|
font-size: 1.25rem; /* 增大服务项文字 (原1.1rem) */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- 响应式适配 --- */
|
/* --- 响应式适配 --- */
|
||||||
|
|||||||
+27
-7
@@ -3,7 +3,7 @@
|
|||||||
========================================= */
|
========================================= */
|
||||||
|
|
||||||
.site-header {
|
.site-header {
|
||||||
height: 70px;
|
height: 80px;
|
||||||
background-color: var(--bg-body);
|
background-color: var(--bg-body);
|
||||||
border-bottom: 1px solid var(--border-muted);
|
border-bottom: 1px solid var(--border-muted);
|
||||||
position: sticky; /* 粘性定位,确保始终置顶 */
|
position: sticky; /* 粘性定位,确保始终置顶 */
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.logo-main {
|
.logo-main {
|
||||||
height: 52px; /* 增大 Logo 尺寸 */
|
height: 60px; /* 增大 Logo 尺寸 (原52px) */
|
||||||
width: auto;
|
width: auto;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
}
|
}
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
.nav-menu a {
|
.nav-menu a {
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 15px;
|
font-size: 16px; /* 增大导航字号 (原15px) */
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
border-radius: var(--radius-sm);
|
border-radius: var(--radius-sm);
|
||||||
transition: all var(--duration-fast);
|
transition: all var(--duration-fast);
|
||||||
@@ -91,8 +91,8 @@
|
|||||||
.social-links a,
|
.social-links a,
|
||||||
.theme-toggle,
|
.theme-toggle,
|
||||||
.lang-toggle {
|
.lang-toggle {
|
||||||
width: 36px;
|
width: 40px; /* 增大图标按钮尺寸 (原36px) */
|
||||||
height: 36px;
|
height: 40px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -156,9 +156,9 @@ html:not([data-theme="dark"]) .moon-icon {
|
|||||||
/* 语言切换按钮文字 */
|
/* 语言切换按钮文字 */
|
||||||
.lang-toggle {
|
.lang-toggle {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 14px;
|
font-size: 15px; /* 增大切换字号 (原14px) */
|
||||||
width: auto;
|
width: auto;
|
||||||
padding: 0 10px;
|
padding: 0 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- 移动端菜单开关 (Hamburger) --- */
|
/* --- 移动端菜单开关 (Hamburger) --- */
|
||||||
@@ -199,10 +199,27 @@ html:not([data-theme="dark"]) .moon-icon {
|
|||||||
width: 115%;
|
width: 115%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 默认情况:显示主 Logo,隐藏移动端 Logo */
|
||||||
|
.logo-mobile {
|
||||||
|
display: none;
|
||||||
|
height: 48px; /* 调整高度 */
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
/* --- 响应式适配 --- */
|
/* --- 响应式适配 --- */
|
||||||
@media (max-width: 900px) {
|
@media (max-width: 900px) {
|
||||||
|
/* 移动端隐藏主Logo,显示移动端Logo */
|
||||||
|
.logo-main {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-mobile {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
.mobile-menu-toggle {
|
.mobile-menu-toggle {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
order: 2; /* 放在最右侧 */
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-menu {
|
.nav-menu {
|
||||||
@@ -222,6 +239,7 @@ html:not([data-theme="dark"]) .moon-icon {
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
transition: all var(--duration-normal) var(--ease-in-out);
|
transition: all var(--duration-normal) var(--ease-in-out);
|
||||||
box-shadow: var(--shadow-md);
|
box-shadow: var(--shadow-md);
|
||||||
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-menu.active {
|
.nav-menu.active {
|
||||||
@@ -240,5 +258,7 @@ html:not([data-theme="dark"]) .moon-icon {
|
|||||||
.social-links {
|
.social-links {
|
||||||
border-left: none;
|
border-left: none;
|
||||||
margin-left: auto; /* 推到右侧 */
|
margin-left: auto; /* 推到右侧 */
|
||||||
|
order: 1; /* 放在 toggle 左侧 */
|
||||||
|
margin-right: 12px; /* 和 toggle 之间增加一点间距 */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,6 +64,7 @@
|
|||||||
<text y="56" class="text-en">IT Studio</text>
|
<text y="56" class="text-en">IT Studio</text>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
<img src="<?php echo get_template_directory_uri(); ?>/resources/it_logo_2024.svg" class="logo-mobile" alt="IT Studio">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user