Template:HomePage/styles.css:修订间差异
模板页面
更多操作
Jhq223将页面Template:HomePage/styles.css的内容模型从“CSS”更改为“已过滤的CSS” |
无编辑摘要 |
||
第1行: | 第1行: | ||
/* --- 1. 全局与布局 --- */ | /* --- 1. 全局与布局 --- */ | ||
body.page-Main_Page, body.page-首页 { | |||
background-color: #eef3f7; /* 更柔和的浅色背景 */ | |||
body.page-Main_Page, body.page-首页 { | color: #333; | ||
background-color: # | |||
color: # | |||
} | } | ||
body.page-Main_Page #content, body.page-首页 #content { | body.page-Main_Page #content, body.page-首页 #content { | ||
background: none; | background: none; border: none; box-shadow: none; | ||
} | } | ||
.home-grid-container { | .home-grid-container { | ||
max-width: | max-width: 1200px; margin: 20px auto; display: grid; | ||
grid-template-columns: repeat(6, 1fr); gap: 15px; | |||
font-family: sans-serif; | |||
grid-template-columns: repeat(6, 1fr); | |||
font-family: | |||
} | } | ||
/* --- 2. 卡片通用样式 --- */ | /* --- 2. 卡片通用样式 --- */ | ||
.home-card { | .home-card { | ||
background-color: # | background-color: #ffffff; | ||
border-radius: | border-radius: 12px; | ||
padding: 20px; | padding: 20px; | ||
border: 1px solid # | border: 1px solid #d8e1e8; | ||
box-shadow: 0 4px 6px rgba(0,0,0,0.05); | |||
display: flex; | display: flex; flex-direction: column; | ||
} | } | ||
.home-card .card-label { | .home-card .card-label { | ||
font-size: 12px; | font-size: 12px; font-weight: bold; text-transform: uppercase; | ||
color: #5a738c; margin-bottom: 2px; | |||
color: # | |||
} | } | ||
.home-card .card-header { | .home-card .card-header { | ||
font-size: | font-size: 24px; font-weight: bold; color: #1c364e; margin: 0 0 15px 0; | ||
} | } | ||
.home-card .card-header a { color: inherit; text-decoration: none; } | |||
.home-card .card-content { flex-grow: 1; font-size: 14px; line-height: 1.6; } | |||
/* 网格跨度 */ | |||
.col-span-2 { grid-column: span 2; } | .col-span-2 { grid-column: span 2; } | ||
.col-span-3 { grid-column: span 3; } | .col-span-3 { grid-column: span 3; } | ||
.col-span-4 { grid-column: span 4; } | .col-span-4 { grid-column: span 4; } | ||
.col-span-6 { grid-column: span 6; } | .col-span-6 { grid-column: span 6; } | ||
/* --- 3. 特定模块样式 --- */ | /* --- 3. 特定模块样式 --- */ | ||
/* 3.1 | /* 3.1 顶部搜索区域 */ | ||
.home- | .home-header { | ||
background-color: #1c364e; /* 深蓝色背景 */ | |||
background-color: # | |||
color: #ffffff; | color: #ffffff; | ||
text-align: center; | text-align: center; | ||
padding: 40px 20px; | |||
} | } | ||
.home-header-title { font-size: 36px; font-weight: bold; margin: 0; } | |||
.home-header-subtitle { font-size: 16px; color: #a9c1d9; margin: 5px 0 25px 0; } | |||
.home-search { | |||
. | display: inline-flex; align-items: center; | ||
display: flex; | background-color: #ffffff; color: #333; | ||
border-radius: 25px; /* 圆角 */ | |||
padding: 8px 15px; | |||
width: 100%; max-width: 500px; | |||
border: 1px solid #d8e1e8; | |||
box-shadow: 0 2px 4px rgba(0,0,0,0.1); | |||
cursor: text; | |||
} | } | ||
.home-search-icon { margin-right: 10px; } | |||
.home-search-text { color: #555; } | |||
. | /* 3.2 图像导航按钮 (图4效果) */ | ||
.image-button-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; } | |||
.image-button { | |||
position: relative; display: block; height: 50px; | |||
border-radius: 8px; overflow: hidden; | |||
color: white; text-decoration: none; | |||
border-radius: | box-shadow: inset 0 0 10px rgba(0,0,0,0.5); | ||
} | } | ||
.image-button:hover .image-button-bg { transform: scale(1.05); } | |||
. | .image-button-bg { | ||
position: absolute; top: 0; left: 0; width: 100%; height: 100%; | |||
background-size: cover; background-position: center; | |||
transition: transform 0.3s ease; | |||
filter: brightness(0.7); | |||
} | } | ||
.image-button-text { | |||
. | position: relative; z-index: 2; | ||
display: flex; align-items: center; justify-content: center; | |||
height: 100%; font-weight: bold; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); | |||
} | } | ||
. | /* 3.3 官方链接按钮 (图3效果) */ | ||
color: # | .link-button-list { display: flex; flex-direction: column; gap: 10px; } | ||
.link-button { | |||
text-decoration: none; | display: block; background-color: #eef3f7; | ||
padding: 12px 15px; border-radius: 8px; | |||
text-decoration: none; font-weight: 500; color: #1c364e; | |||
border: 1px solid #d8e1e8; | |||
transition: background-color 0.2s ease, border-color 0.2s ease; | |||
} | } | ||
.link-button:hover { background-color: #e1eaf2; border-color: #c1d0de; } | |||
.link-button img { vertical-align: middle; margin-left: 5px; } | |||
/* 修复内容区域的显示问题 */ | |||
.card-content .error { display: none; } /* 隐藏模板不存在时的错误信息,更美观 */ | |||
.card-content .new { color: #cc0000; } /* 让不存在的模板链接显示为红色 */ | |||
/* | |||
. | |||
. | |||
} | |||
/* | |||