模板:Main page/style.css:修订间差异
外观
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* | /* 测绘学知识库主页样式 */ | ||
.header | |||
/* 页面标题区域 */ | |||
margin- | .page-header { | ||
background: #f8f9fa; | |||
border: 1px solid #dee2e6; | |||
padding: 30px 20px; | |||
text-align: center; | |||
margin-bottom: 25px; | |||
} | |||
.page-header h1 { | |||
color: #2c3e50; | |||
margin: 0; | |||
font-size: 2.5em; | |||
font-weight: 300; | |||
} | |||
.page-header p { | |||
color: #6c757d; | |||
margin: 10px 0 0 0; | |||
font-size: 1.1em; | |||
} | |||
/* 通用卡片样式 */ | |||
.content-card { | |||
background: #ffffff; | |||
border: 1px solid #dee2e6; | |||
padding: 20px; | |||
margin-bottom: 25px; | |||
} | } | ||
. | .content-card h2 { | ||
color: #495057; | |||
margin: 0 0 15px 0; | |||
font-size: 1.3em; | |||
border-bottom: 2px solid #6c757d; | |||
padding-bottom: 8px; | |||
} | } | ||
. | |||
/* 导航概览区域 */ | |||
.overview-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |||
gap: 20px; | |||
} | } | ||
. | .overview-item { | ||
padding: | padding-left: 15px; | ||
} | } | ||
. | .overview-item.theory { | ||
border-left: 4px solid #007bff; | |||
} | } | ||
/* | .overview-item.geodesy { | ||
. | border-left: 4px solid #28a745; | ||
} | |||
.overview-item.photogrammetry { | |||
border-left: 4px solid #dc3545; | |||
} | |||
.overview-item.gis { | |||
border-left: 4px solid #ffc107; | |||
} | |||
.overview-item h3 { | |||
color: #495057; | |||
margin: 0 0 10px 0; | |||
font-size: 1.1em; | |||
} | |||
.overview-item .links { | |||
color: #6c757d; | |||
font-size: 0.95em; | |||
line-height: 1.6; | |||
} | |||
/* 主要内容区域 */ | |||
.main-content { | |||
display: grid; | |||
grid-template-columns: 2fr 1fr; | |||
gap: 25px; | |||
margin-bottom: 25px; | |||
} | |||
.content-grid { | |||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: 1fr 1fr; | ||
gap: 20px; | gap: 20px; | ||
} | } | ||
. | .content-grid h4 { | ||
color: #495057; | |||
margin: 0 0 10px 0; | |||
} | } | ||
. | .content-grid ul { | ||
color: # | margin: 0; | ||
padding-left: 20px; | |||
color: #6c757d; | |||
line-height: 1.8; | |||
} | } | ||
/* | /* 分类导航 */ | ||
. | .category-grid { | ||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |||
gap: 15px; | |||
} | } | ||
. | .category-item { | ||
text-align: center; | |||
padding: 10px; | |||
} | |||
.category-item small { | |||
color: #6c757d; | |||
} | } | ||
. | /* 专业门户 */ | ||
.portal-section { | |||
background: #f8f9fa; | |||
border: 1px solid #dee2e6; | |||
padding: 20px; | |||
text-align: center; | text-align: center; | ||
} | |||
.portal-section h2 { | |||
color: #495057; | |||
margin: 0 0 15px 0; | |||
font-size: 1.3em; | |||
} | |||
.portal-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); | |||
gap: 15px; | |||
} | |||
.portal-footer { | |||
margin-top: 15px; | |||
color: #6c757d; | |||
font-size: 0.9em; | font-size: 0.9em; | ||
} | |||
/* 响应式设计 */ | |||
@media (max-width: 768px) { | |||
.main-content { | |||
grid-template-columns: 1fr; | |||
} | |||
.content-grid { | |||
grid-template-columns: 1fr; | |||
} | |||
.overview-grid { | |||
grid-template-columns: 1fr; | |||
} | |||
.page-header h1 { | |||
font-size: 2em; | |||
} | |||
} | } | ||
2025年9月17日 (三) 20:37的版本
/* 测绘学知识库主页样式 */
/* 页面标题区域 */
.page-header {
background: #f8f9fa;
border: 1px solid #dee2e6;
padding: 30px 20px;
text-align: center;
margin-bottom: 25px;
}
.page-header h1 {
color: #2c3e50;
margin: 0;
font-size: 2.5em;
font-weight: 300;
}
.page-header p {
color: #6c757d;
margin: 10px 0 0 0;
font-size: 1.1em;
}
/* 通用卡片样式 */
.content-card {
background: #ffffff;
border: 1px solid #dee2e6;
padding: 20px;
margin-bottom: 25px;
}
.content-card h2 {
color: #495057;
margin: 0 0 15px 0;
font-size: 1.3em;
border-bottom: 2px solid #6c757d;
padding-bottom: 8px;
}
/* 导航概览区域 */
.overview-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.overview-item {
padding-left: 15px;
}
.overview-item.theory {
border-left: 4px solid #007bff;
}
.overview-item.geodesy {
border-left: 4px solid #28a745;
}
.overview-item.photogrammetry {
border-left: 4px solid #dc3545;
}
.overview-item.gis {
border-left: 4px solid #ffc107;
}
.overview-item h3 {
color: #495057;
margin: 0 0 10px 0;
font-size: 1.1em;
}
.overview-item .links {
color: #6c757d;
font-size: 0.95em;
line-height: 1.6;
}
/* 主要内容区域 */
.main-content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 25px;
margin-bottom: 25px;
}
.content-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.content-grid h4 {
color: #495057;
margin: 0 0 10px 0;
}
.content-grid ul {
margin: 0;
padding-left: 20px;
color: #6c757d;
line-height: 1.8;
}
/* 分类导航 */
.category-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}
.category-item {
text-align: center;
padding: 10px;
}
.category-item small {
color: #6c757d;
}
/* 专业门户 */
.portal-section {
background: #f8f9fa;
border: 1px solid #dee2e6;
padding: 20px;
text-align: center;
}
.portal-section h2 {
color: #495057;
margin: 0 0 15px 0;
font-size: 1.3em;
}
.portal-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
}
.portal-footer {
margin-top: 15px;
color: #6c757d;
font-size: 0.9em;
}
/* 响应式设计 */
@media (max-width: 768px) {
.main-content {
grid-template-columns: 1fr;
}
.content-grid {
grid-template-columns: 1fr;
}
.overview-grid {
grid-template-columns: 1fr;
}
.page-header h1 {
font-size: 2em;
}
}