style(css): 调整页面内边距提升视觉效果
- 统一调整多个区块的 padding 值从 8rem 到 1rem - 优化导航容器内边距增强布局美观性 - 改善技术栈云图区块垂直间距 - 调整章节标题区域内边距提升可读性 - 统一各展示区块上下内边距保持一致性 fix(js): 修复夜间模式判断逻辑错误 - 修正小时数判断条件避免无效时间范围 - 添加系统偏好设置检测支持深色模式切换 - 确保夜间模式在傍晚时段正确激活
This commit is contained in:
@@ -494,7 +494,7 @@ a:not(.nav-logo):not(.nav-links a):not(.social-link):not(.btn):not(.footer-info
|
|||||||
.nav-container {
|
.nav-container {
|
||||||
max-width: 1400px;
|
max-width: 1400px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 0 2rem;
|
padding: 1rem 2rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -619,7 +619,7 @@ a:not(.nav-logo):not(.nav-links a):not(.social-link):not(.btn):not(.footer-info
|
|||||||
|
|
||||||
/* 技术栈云图 - INFJ风格设计 */
|
/* 技术栈云图 - INFJ风格设计 */
|
||||||
.tech-cloud-section {
|
.tech-cloud-section {
|
||||||
padding: 8rem 2rem;
|
padding: 1rem 2rem;
|
||||||
background: rgba(255, 255, 255, 0.05);
|
background: rgba(255, 255, 255, 0.05);
|
||||||
backdrop-filter: blur(15px); /* 增强毛玻璃效果 */
|
backdrop-filter: blur(15px); /* 增强毛玻璃效果 */
|
||||||
-webkit-backdrop-filter: blur(15px);
|
-webkit-backdrop-filter: blur(15px);
|
||||||
@@ -1005,7 +1005,7 @@ a:not(.nav-logo):not(.nav-links a):not(.social-link):not(.btn):not(.footer-info
|
|||||||
.section-header {
|
.section-header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 4rem;
|
margin-bottom: 4rem;
|
||||||
padding: 0 2rem;
|
padding: 1rem 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-title {
|
.section-title {
|
||||||
@@ -1360,7 +1360,7 @@ a:not(.nav-logo):not(.nav-links a):not(.social-link):not(.btn):not(.footer-info
|
|||||||
|
|
||||||
/* 个性时间线 */
|
/* 个性时间线 */
|
||||||
.personality-timeline-section {
|
.personality-timeline-section {
|
||||||
padding: 8rem 2rem;
|
padding: 1rem 2rem;
|
||||||
background: rgba(255, 255, 255, 0.05);
|
background: rgba(255, 255, 255, 0.05);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
-webkit-backdrop-filter: blur(10px);
|
-webkit-backdrop-filter: blur(10px);
|
||||||
@@ -1493,7 +1493,7 @@ a:not(.nav-logo):not(.nav-links a):not(.social-link):not(.btn):not(.footer-info
|
|||||||
/* GitHub项目展示 */
|
/* GitHub项目展示 */
|
||||||
|
|
||||||
.github-showcase-section {
|
.github-showcase-section {
|
||||||
padding: 8rem 2rem;
|
padding: 1rem 2rem;
|
||||||
background: rgba(255, 255, 255, 0.05);
|
background: rgba(255, 255, 255, 0.05);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
-webkit-backdrop-filter: blur(10px);
|
-webkit-backdrop-filter: blur(10px);
|
||||||
@@ -1665,7 +1665,7 @@ a:not(.nav-logo):not(.nav-links a):not(.social-link):not(.btn):not(.footer-info
|
|||||||
/* 博客瀑布流 */
|
/* 博客瀑布流 */
|
||||||
|
|
||||||
.blog-waterfall-section {
|
.blog-waterfall-section {
|
||||||
padding: 8rem 2rem;
|
padding: 1rem 2rem;
|
||||||
background: rgba(255, 255, 255, 0.05);
|
background: rgba(255, 255, 255, 0.05);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
-webkit-backdrop-filter: blur(10px);
|
-webkit-backdrop-filter: blur(10px);
|
||||||
@@ -1765,7 +1765,7 @@ a:not(.nav-logo):not(.nav-links a):not(.social-link):not(.btn):not(.footer-info
|
|||||||
/* 联系方式轨道 - 循环随机围绕动画 */
|
/* 联系方式轨道 - 循环随机围绕动画 */
|
||||||
|
|
||||||
.contact-floating-section {
|
.contact-floating-section {
|
||||||
padding: 8rem 2rem;
|
padding: 1rem 2rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 600px;
|
min-height: 600px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -2089,7 +2089,7 @@ a:not(.nav-logo):not(.nav-links a):not(.social-link):not(.btn):not(.footer-info
|
|||||||
/* 评论系统 */
|
/* 评论系统 */
|
||||||
|
|
||||||
.comments-section {
|
.comments-section {
|
||||||
padding: 8rem 2rem;
|
padding: 1rem 2rem;
|
||||||
background: rgba(255, 255, 255, 0.05);
|
background: rgba(255, 255, 255, 0.05);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
-webkit-backdrop-filter: blur(10px);
|
-webkit-backdrop-filter: blur(10px);
|
||||||
|
|||||||
@@ -1051,7 +1051,7 @@ function hideWechatQR() {
|
|||||||
function initThemeByTime() {
|
function initThemeByTime() {
|
||||||
var hour = new Date().getHours();
|
var hour = new Date().getHours();
|
||||||
var prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
var prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||||
var night = hour >= 25 ;
|
var night = hour >= 18 || prefersDark ;
|
||||||
var root = document.documentElement;
|
var root = document.documentElement;
|
||||||
root.classList.toggle('theme-night', night);
|
root.classList.toggle('theme-night', night);
|
||||||
root.classList.toggle('theme-day', !night);
|
root.classList.toggle('theme-day', !night);
|
||||||
|
|||||||
Reference in New Issue
Block a user