模板:Fstpagetest styles:修订间差异
来自RIA | Wiki
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* | /* FST 门户页面样式 — v3 重构 | ||
* 风格:融入 RIA Wiki 的 page_box 框架,绿色主题 | |||
* 布局严格遵循参考图 */ | |||
/* === | /* ========== 基础变量 ========== */ | ||
/* 主色:#3a8f5c(森林绿),边框同色 */ | |||
/* === | /* ========== 外层容器 ========== */ | ||
.fst-portal { | .fst-portal { | ||
max-width: | max-width: 100%; | ||
margin: 0 | } | ||
/* ========== page_box 通用框架(仿 RIA 首页) ========== */ | |||
.fst-box { | |||
border: 1px solid #3a8f5c; | |||
margin-bottom: 1rem; | |||
} | |||
.fst-box-header { | |||
background-color: #3a8f5c; | |||
padding: 0.4em 0; | |||
text-align: center; | |||
} | |||
.fst-box-header h2 { | |||
margin: 0; | |||
padding: 0; | padding: 0; | ||
font- | border-bottom: none; | ||
color: #fff; | |||
font-family: sans-serif; | |||
font-size: 1.1em; | |||
} | |||
.fst-box-content { | |||
padding: 1em; | |||
} | |||
/* 移除内容区首尾段落的多余边距 */ | |||
.fst-box-content p:first-child { | |||
margin-top: 0; | |||
} | } | ||
.fst-box-content p:last-child { | |||
.fst- | |||
margin-bottom: 0; | margin-bottom: 0; | ||
} | } | ||
.fst- | /* ========== 1. Welcome 区域(仿 RIA .welcome) ========== */ | ||
.fst-welcome { | |||
border: 1px solid #3a8f5c; | |||
margin-bottom: 1rem; | |||
} | } | ||
.fst- | .fst-welcome-head { | ||
background-color: #3a8f5c; | |||
padding: 0.5em; | |||
} | } | ||
.fst- | .fst-welcome-head h2 { | ||
margin: 0; | margin: 0; | ||
padding: 0; | |||
border-bottom: none; | |||
color: #fff; | |||
text-align: center; | |||
font-family: sans-serif; | |||
font-size: 1.4em; | |||
} | |||
.fst-welcome-body { | |||
padding: 1em; | |||
display: flex; | |||
flex-wrap: wrap; | |||
justify-content: center; | |||
align-items: center; | |||
} | } | ||
.fst-welcome-text { | |||
.fst- | flex: 1 1 20em; | ||
text-align: center; | text-align: center; | ||
} | } | ||
.fst- | .fst-welcome-text p:first-child { | ||
margin-top: 0; | |||
} | } | ||
.fst-welcome-text p:last-child { | |||
.fst- | margin-bottom: 0; | ||
} | } | ||
.fst-welcome-meta { | |||
.fst- | color: #666; | ||
font-size: 0.9em; | |||
margin-top: 0.3em; | |||
} | } | ||
/* | /* ========== 2. 公告薄条 ========== */ | ||
.fst- | .fst-announce { | ||
background-color: #e8f5e9; | |||
padding: 0 | padding: 0.4em 1em; | ||
margin-bottom: 1rem; | |||
font-size: 0.9em; | |||
text-align: center; | |||
border: 1px solid #c8e6c9; | |||
} | } | ||
/* | /* ========== 3. 主体 page_box ========== */ | ||
.fst- | |||
flex: | /* --- 第一行:功能入口(3×2) + 世界图标(品字) --- */ | ||
.fst-row-top { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 1.5em; | |||
margin-bottom: 1.2em; | |||
} | } | ||
/* | /* 功能入口网格:3列×2行 */ | ||
.fst- | .fst-quicknav { | ||
flex: 1 1 55%; | |||
} | } | ||
.fst-quicknav-grid { | |||
.fst-quicknav { | |||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: | gap: 0.6em; | ||
} | } | ||
.fst- | .fst-quicknav-item { | ||
flex: 0 0 calc(33.33% - 0.4em); | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: 0.4em; | |||
padding: 0.6em 0.8em; | |||
border: 1px solid #ddd; | |||
background: #fafafa; | |||
transition: border-color 0.15s, background 0.15s; | |||
color: # | } | ||
.fst-quicknav-item:hover { | |||
border-color: #3a8f5c; | |||
background: #f0f8f0; | |||
} | |||
.fst-quicknav-icon { | |||
font-size: 1.2em; | |||
flex: 0 0 auto; | |||
} | } | ||
.fst- | .fst-quicknav-label { | ||
font-size: 0.9em; | |||
} | } | ||
.fst-quicknav-label a { | |||
.fst- | text-decoration: none; | ||
color: #333; | |||
} | } | ||
.fst- | .fst-quicknav-item:hover .fst-quicknav-label a { | ||
color: #3a8f5c; | |||
} | } | ||
/* | /* 世界图标区:品字形排列 */ | ||
.fst-worlds { | .fst-worlds { | ||
flex: 0 0 auto; | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
gap: 0.5em; | |||
} | |||
.fst-worlds-row { | |||
display: flex; | display: flex; | ||
gap: 1.2em; | |||
justify-content: center; | justify-content: center; | ||
} | } | ||
| 第164行: | 第186行: | ||
} | } | ||
.fst-world-symbol { | .fst-world-symbol { | ||
font-size: | font-size: 2em; | ||
line-height: 1; | line-height: 1; | ||
} | } | ||
.fst-world-name { | .fst-world-name { | ||
font-size: 0.8em; | font-size: 0.8em; | ||
margin-top: 0.2em; | |||
} | } | ||
/* --- 分隔线 --- */ | |||
.fst-divider { | |||
border: none; | |||
border-top: 1px solid #e0e0e0; | |||
margin: 0.8em 0; | |||
margin | |||
} | } | ||
/* Tab | /* --- Tab 区域 --- */ | ||
.fst-tabbar { | .fst-tabbar { | ||
display: flex; | display: flex; | ||
gap: 0; | gap: 0; | ||
border-bottom: | border-bottom: 1px solid #e0e0e0; | ||
margin-bottom: 0; | margin-bottom: 0; | ||
} | } | ||
.fst-tabbar a { | .fst-tabbar a { | ||
padding: | padding: 0.5em 1.2em; | ||
text-decoration: none; | |||
color: #666; | color: #666; | ||
font-size: 0.95em; | |||
border-bottom: 2px solid transparent; | border-bottom: 2px solid transparent; | ||
transition: color 0.15s; | transition: color 0.15s; | ||
} | } | ||
.fst-tabbar a:hover { | .fst-tabbar a:hover { | ||
color: #3a8f5c; | color: #3a8f5c; | ||
border-bottom-color: #3a8f5c; | border-bottom-color: #3a8f5c; | ||
} | } | ||
| 第218行: | 第228行: | ||
.fst-panel { | .fst-panel { | ||
display: none; | display: none; | ||
} | } | ||
.fst-panel:target { | |||
.fst-panel | |||
display: block; | display: block; | ||
} | } | ||
.fst-panel-default { | |||
.fst-panel | |||
display: block; | display: block; | ||
} | } | ||
.fst-panel:target~.fst-panel-default { | .fst-panel:target~.fst-panel-default { | ||
display: none; | display: none; | ||
} | } | ||
/* Tab | /* --- 第三行:Tab内容+时间线(左) + 公告(右) --- */ | ||
.fst-row-bottom { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 1.5em; | |||
} | |||
.fst-main-left { | |||
flex: 1 1 60%; | |||
min-width: 0; | |||
} | |||
.fst-main-right { | |||
flex: 0 0 240px; | |||
} | |||
/* Tab 面板内容 */ | |||
.fst-panel-content { | .fst-panel-content { | ||
padding: 1em 0; | |||
line-height: 1.7; | |||
line-height: 1. | |||
} | } | ||
.fst-panel-content ul { | .fst-panel-content ul { | ||
margin: | margin: 0.5em 0; | ||
padding-left: | padding-left: 1.5em; | ||
} | |||
/* 模组标签 */ | |||
.fst-mod-tag { | |||
display: inline-block; | |||
padding: 0.15em 0.6em; | |||
margin: 0.2em; | |||
background: #e8f5e9; | |||
border: 1px solid #c8e6c9; | |||
font-size: 0.85em; | |||
color: #2e7d46; | |||
} | |||
/* 规则表格 */ | |||
.fst-table { | |||
width: 100%; | |||
border-collapse: collapse; | |||
margin: 0.8em 0; | |||
font-size: 0.9em; | |||
} | |||
.fst-table th { | |||
background: #f5f5f5; | |||
padding: 0.4em 0.6em; | |||
text-align: left; | |||
border-bottom: 2px solid #e0e0e0; | |||
} | } | ||
.fst- | .fst-table td { | ||
padding: 0.4em 0.6em; | |||
border-bottom: 1px solid #eee; | |||
} | } | ||
/* | /* 链接列表 */ | ||
.fst-link-list { | .fst-link-list { | ||
list-style: none; | |||
padding: 0; | padding: 0; | ||
margin: 0.5em 0; | |||
} | } | ||
.fst-link-list li { | .fst-link-list li { | ||
padding: | padding: 0.3em 0; | ||
} | } | ||
.fst- | /* --- 时间线 --- */ | ||
border- | .fst-timeline-title { | ||
font-weight: bold; | |||
margin-top: 1em; | |||
margin-bottom: 0.5em; | |||
padding-top: 0.8em; | |||
border-top: 1px solid #e0e0e0; | |||
} | } | ||
.fst-timeline { | .fst-timeline { | ||
padding-left: 0; | |||
padding: 0; | |||
} | } | ||
.fst-timeline-item { | .fst-timeline-item { | ||
display: flex; | display: flex; | ||
align-items: | align-items: baseline; | ||
gap: | gap: 0.8em; | ||
padding: | padding: 0.3em 0; | ||
} | } | ||
.fst-timeline-dot { | .fst-timeline-dot { | ||
width: 8px; | |||
height: 8px; | |||
border-radius: 50%; | |||
background: #3a8f5c; | background: #3a8f5c; | ||
flex: 0 0 auto; | |||
margin-top: | margin-top: 0.35em; | ||
} | } | ||
.fst-timeline-date { | .fst-timeline-date { | ||
flex | flex: 0 0 5em; | ||
color: #888; | |||
color: # | font-size: 0.85em; | ||
} | } | ||
.fst-timeline-text { | .fst-timeline-text { | ||
font-size: 0. | font-size: 0.9em; | ||
color: #333; | color: #333; | ||
} | } | ||
.fst- | /* --- 公告列表(右列) --- */ | ||
.fst-news-title { | |||
font-weight: bold; | |||
margin-bottom: 0.5em; | |||
color: #333; | |||
} | } | ||
.fst-news-list { | .fst-news-list { | ||
list-style: | list-style: disc; | ||
padding-left: 1.2em; | |||
margin: 0; | margin: 0; | ||
font-size: 0.9em; | |||
line-height: 1.8; | |||
} | } | ||
.fst-news-list li { | .fst-news-list li { | ||
color: #555; | |||
color: # | |||
} | } | ||
.fst-news-list a { | |||
.fst-news-list | |||
color: #3a8f5c; | color: #3a8f5c; | ||
} | } | ||
/* ========== 4. 地标 page_box ========== */ | |||
.fst-landmarks-grid { | .fst-landmarks-grid { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: | gap: 1em; | ||
} | } | ||
.fst-landmark-item { | .fst-landmark-item { | ||
flex: | flex: 1 1 calc(33.33% - 0.7em); | ||
padding: | padding: 0.6em; | ||
border: 1px solid #e0e0e0; | |||
background: #fafafa; | background: #fafafa; | ||
} | } | ||
.fst-landmark-item:hover { | .fst-landmark-item:hover { | ||
background: # | border-color: #3a8f5c; | ||
background: #f0f8f0; | |||
} | } | ||
.fst-landmark-name { | .fst-landmark-name { | ||
font-weight: | font-weight: bold; | ||
color: # | margin-bottom: 0.2em; | ||
} | |||
.fst-landmark-name a { | |||
color: #3a8f5c; | |||
text-decoration: none; | |||
} | } | ||
| 第382行: | 第408行: | ||
} | } | ||
/* === | /* ========== 5. 页脚 ========== */ | ||
.fst-footer { | .fst-footer { | ||
text-align: center; | text-align: center; | ||
padding: 0.8em 0; | |||
color: #999; | color: #999; | ||
font-size: 0.85em; | |||
margin-top: 0.5rem; | |||
} | } | ||
/* ========== 响应式适配 ========== */ | |||
/* === | |||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.fst-row-top { | |||
.fst- | |||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
.fst- | .fst-quicknav-item { | ||
flex | flex: 0 0 calc(50% - 0.3em); | ||
} | } | ||
.fst- | .fst-row-bottom { | ||
flex | flex-direction: column; | ||
} | } | ||
.fst- | .fst-main-right { | ||
flex: 1 1 auto; | |||
} | } | ||
.fst-landmark-item { | |||
.fst- | flex: 1 1 100%; | ||
} | } | ||
} | |||
@media (max-width: 480px) { | |||
.fst- | .fst-quicknav-item { | ||
flex: | flex: 1 1 100%; | ||
} | } | ||
} | |||
/* ========== 暗黑模式适配 ========== */ | |||
@media screen { | |||
.fst- | html.skin-theme-clientpref-night .fst-box-content, | ||
html.skin-theme-clientpref-night .fst-welcome-body { | |||
background-color: #1a1a2e; | |||
color: #ccc; | |||
} | } | ||
html.skin-theme-clientpref-night .fst-quicknav-item { | |||
background: #222; | |||
border-color: #444; | |||
color: #ccc; | |||
} | } | ||
.fst- | html.skin-theme-clientpref-night .fst-quicknav-label a { | ||
color: #ccc; | |||
} | } | ||
.fst- | html.skin-theme-clientpref-night .fst-landmark-item { | ||
background: #222; | |||
border-color: #444; | |||
} | } | ||
.fst- | html.skin-theme-clientpref-night .fst-announce { | ||
background: #1a2e1a; | |||
border-color: #2a4a2a; | |||
color: #aaa; | |||
} | } | ||
} | } | ||
2026年2月14日 (六) 00:59的版本
/* FST 门户页面样式 — v3 重构
* 风格:融入 RIA Wiki 的 page_box 框架,绿色主题
* 布局严格遵循参考图 */
/* ========== 基础变量 ========== */
/* 主色:#3a8f5c(森林绿),边框同色 */
/* ========== 外层容器 ========== */
.fst-portal {
max-width: 100%;
}
/* ========== page_box 通用框架(仿 RIA 首页) ========== */
.fst-box {
border: 1px solid #3a8f5c;
margin-bottom: 1rem;
}
.fst-box-header {
background-color: #3a8f5c;
padding: 0.4em 0;
text-align: center;
}
.fst-box-header h2 {
margin: 0;
padding: 0;
border-bottom: none;
color: #fff;
font-family: sans-serif;
font-size: 1.1em;
}
.fst-box-content {
padding: 1em;
}
/* 移除内容区首尾段落的多余边距 */
.fst-box-content p:first-child {
margin-top: 0;
}
.fst-box-content p:last-child {
margin-bottom: 0;
}
/* ========== 1. Welcome 区域(仿 RIA .welcome) ========== */
.fst-welcome {
border: 1px solid #3a8f5c;
margin-bottom: 1rem;
}
.fst-welcome-head {
background-color: #3a8f5c;
padding: 0.5em;
}
.fst-welcome-head h2 {
margin: 0;
padding: 0;
border-bottom: none;
color: #fff;
text-align: center;
font-family: sans-serif;
font-size: 1.4em;
}
.fst-welcome-body {
padding: 1em;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
.fst-welcome-text {
flex: 1 1 20em;
text-align: center;
}
.fst-welcome-text p:first-child {
margin-top: 0;
}
.fst-welcome-text p:last-child {
margin-bottom: 0;
}
.fst-welcome-meta {
color: #666;
font-size: 0.9em;
margin-top: 0.3em;
}
/* ========== 2. 公告薄条 ========== */
.fst-announce {
background-color: #e8f5e9;
padding: 0.4em 1em;
margin-bottom: 1rem;
font-size: 0.9em;
text-align: center;
border: 1px solid #c8e6c9;
}
/* ========== 3. 主体 page_box ========== */
/* --- 第一行:功能入口(3×2) + 世界图标(品字) --- */
.fst-row-top {
display: flex;
flex-wrap: wrap;
gap: 1.5em;
margin-bottom: 1.2em;
}
/* 功能入口网格:3列×2行 */
.fst-quicknav {
flex: 1 1 55%;
}
.fst-quicknav-grid {
display: flex;
flex-wrap: wrap;
gap: 0.6em;
}
.fst-quicknav-item {
flex: 0 0 calc(33.33% - 0.4em);
display: flex;
align-items: center;
gap: 0.4em;
padding: 0.6em 0.8em;
border: 1px solid #ddd;
background: #fafafa;
transition: border-color 0.15s, background 0.15s;
}
.fst-quicknav-item:hover {
border-color: #3a8f5c;
background: #f0f8f0;
}
.fst-quicknav-icon {
font-size: 1.2em;
flex: 0 0 auto;
}
.fst-quicknav-label {
font-size: 0.9em;
}
.fst-quicknav-label a {
text-decoration: none;
color: #333;
}
.fst-quicknav-item:hover .fst-quicknav-label a {
color: #3a8f5c;
}
/* 世界图标区:品字形排列 */
.fst-worlds {
flex: 0 0 auto;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5em;
}
.fst-worlds-row {
display: flex;
gap: 1.2em;
justify-content: center;
}
.fst-world-icon {
display: flex;
flex-direction: column;
align-items: center;
text-decoration: none;
color: #333;
transition: color 0.15s;
}
.fst-world-icon:hover {
color: #3a8f5c;
}
.fst-world-symbol {
font-size: 2em;
line-height: 1;
}
.fst-world-name {
font-size: 0.8em;
margin-top: 0.2em;
}
/* --- 分隔线 --- */
.fst-divider {
border: none;
border-top: 1px solid #e0e0e0;
margin: 0.8em 0;
}
/* --- Tab 区域 --- */
.fst-tabbar {
display: flex;
gap: 0;
border-bottom: 1px solid #e0e0e0;
margin-bottom: 0;
}
.fst-tabbar a {
padding: 0.5em 1.2em;
text-decoration: none;
color: #666;
font-size: 0.95em;
border-bottom: 2px solid transparent;
transition: color 0.15s;
}
.fst-tabbar a:hover {
color: #3a8f5c;
border-bottom-color: #3a8f5c;
}
/* Tab 面板 */
.fst-panel {
display: none;
}
.fst-panel:target {
display: block;
}
.fst-panel-default {
display: block;
}
.fst-panel:target~.fst-panel-default {
display: none;
}
/* --- 第三行:Tab内容+时间线(左) + 公告(右) --- */
.fst-row-bottom {
display: flex;
flex-wrap: wrap;
gap: 1.5em;
}
.fst-main-left {
flex: 1 1 60%;
min-width: 0;
}
.fst-main-right {
flex: 0 0 240px;
}
/* Tab 面板内容 */
.fst-panel-content {
padding: 1em 0;
line-height: 1.7;
}
.fst-panel-content ul {
margin: 0.5em 0;
padding-left: 1.5em;
}
/* 模组标签 */
.fst-mod-tag {
display: inline-block;
padding: 0.15em 0.6em;
margin: 0.2em;
background: #e8f5e9;
border: 1px solid #c8e6c9;
font-size: 0.85em;
color: #2e7d46;
}
/* 规则表格 */
.fst-table {
width: 100%;
border-collapse: collapse;
margin: 0.8em 0;
font-size: 0.9em;
}
.fst-table th {
background: #f5f5f5;
padding: 0.4em 0.6em;
text-align: left;
border-bottom: 2px solid #e0e0e0;
}
.fst-table td {
padding: 0.4em 0.6em;
border-bottom: 1px solid #eee;
}
/* 链接列表 */
.fst-link-list {
list-style: none;
padding: 0;
margin: 0.5em 0;
}
.fst-link-list li {
padding: 0.3em 0;
}
/* --- 时间线 --- */
.fst-timeline-title {
font-weight: bold;
margin-top: 1em;
margin-bottom: 0.5em;
padding-top: 0.8em;
border-top: 1px solid #e0e0e0;
}
.fst-timeline {
padding-left: 0;
}
.fst-timeline-item {
display: flex;
align-items: baseline;
gap: 0.8em;
padding: 0.3em 0;
}
.fst-timeline-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #3a8f5c;
flex: 0 0 auto;
margin-top: 0.35em;
}
.fst-timeline-date {
flex: 0 0 5em;
color: #888;
font-size: 0.85em;
}
.fst-timeline-text {
font-size: 0.9em;
color: #333;
}
/* --- 公告列表(右列) --- */
.fst-news-title {
font-weight: bold;
margin-bottom: 0.5em;
color: #333;
}
.fst-news-list {
list-style: disc;
padding-left: 1.2em;
margin: 0;
font-size: 0.9em;
line-height: 1.8;
}
.fst-news-list li {
color: #555;
}
.fst-news-list a {
color: #3a8f5c;
}
/* ========== 4. 地标 page_box ========== */
.fst-landmarks-grid {
display: flex;
flex-wrap: wrap;
gap: 1em;
}
.fst-landmark-item {
flex: 1 1 calc(33.33% - 0.7em);
padding: 0.6em;
border: 1px solid #e0e0e0;
background: #fafafa;
}
.fst-landmark-item:hover {
border-color: #3a8f5c;
background: #f0f8f0;
}
.fst-landmark-name {
font-weight: bold;
margin-bottom: 0.2em;
}
.fst-landmark-name a {
color: #3a8f5c;
text-decoration: none;
}
.fst-landmark-desc {
font-size: 0.85em;
color: #888;
}
/* ========== 5. 页脚 ========== */
.fst-footer {
text-align: center;
padding: 0.8em 0;
color: #999;
font-size: 0.85em;
margin-top: 0.5rem;
}
/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
.fst-row-top {
flex-direction: column;
}
.fst-quicknav-item {
flex: 0 0 calc(50% - 0.3em);
}
.fst-row-bottom {
flex-direction: column;
}
.fst-main-right {
flex: 1 1 auto;
}
.fst-landmark-item {
flex: 1 1 100%;
}
}
@media (max-width: 480px) {
.fst-quicknav-item {
flex: 1 1 100%;
}
}
/* ========== 暗黑模式适配 ========== */
@media screen {
html.skin-theme-clientpref-night .fst-box-content,
html.skin-theme-clientpref-night .fst-welcome-body {
background-color: #1a1a2e;
color: #ccc;
}
html.skin-theme-clientpref-night .fst-quicknav-item {
background: #222;
border-color: #444;
color: #ccc;
}
html.skin-theme-clientpref-night .fst-quicknav-label a {
color: #ccc;
}
html.skin-theme-clientpref-night .fst-landmark-item {
background: #222;
border-color: #444;
}
html.skin-theme-clientpref-night .fst-announce {
background: #1a2e1a;
border-color: #2a4a2a;
color: #aaa;
}
}