User:弃权者/首页/styles.css:修订间差异
来自OGAS数据中枢
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第5行: | 第5行: | ||
/* --- 头图 --- */ | /* --- 头图 --- */ | ||
.gs-hero-wrap { | .gs-hero-wrap { | ||
position: relative; | |||
width: 100%; | width: 100%; | ||
height: 360px; | |||
border-radius: var(--border-radius-medium); | border-radius: var(--border-radius-medium); | ||
margin-bottom: var(--space-md); | margin-bottom: var(--space-md); | ||
background-size: cover; | |||
background-position: center; | |||
overflow: hidden; | |||
} | |||
/* JS 接管后隐藏 MediaWiki 渲染的 img */ | |||
.gs-hero-wrap img, | |||
.gs-hero-wrap .floatnone { | |||
display: none; | |||
} | } | ||
.gs-hero- | /* 交叉溶解用的叠加层,由 JS 动态插入 */ | ||
.gs-hero-overlay { | |||
position: absolute; | |||
inset: 0; | |||
background-size: cover; | |||
background-position: center; | |||
opacity: 0; | |||
transition: opacity 0.4s ease; | |||
} | } | ||
.gs-hero-overlay.gs-hero-overlay--in { | |||
.gs-hero- | opacity: 1; | ||
} | } | ||
.skin-citizen-dark .gs-hero-wrap | .skin-citizen-dark .gs-hero-wrap { | ||
filter: brightness(0.8); | filter: brightness(0.8); | ||
} | } | ||
2026年6月20日 (六) 11:18的版本
/* ============================
游戏切换器
============================ */
/* --- 头图 --- */
.gs-hero-wrap {
position: relative;
width: 100%;
height: 360px;
border-radius: var(--border-radius-medium);
margin-bottom: var(--space-md);
background-size: cover;
background-position: center;
overflow: hidden;
}
/* JS 接管后隐藏 MediaWiki 渲染的 img */
.gs-hero-wrap img,
.gs-hero-wrap .floatnone {
display: none;
}
/* 交叉溶解用的叠加层,由 JS 动态插入 */
.gs-hero-overlay {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
opacity: 0;
transition: opacity 0.4s ease;
}
.gs-hero-overlay.gs-hero-overlay--in {
opacity: 1;
}
.skin-citizen-dark .gs-hero-wrap {
filter: brightness(0.8);
}
/* --- 按钮条 --- */
.gs-tabs {
display: flex;
gap: var(--space-xs);
flex-wrap: wrap;
margin-bottom: var(--space-lg);
}
.gs-tab-btn {
display: inline-block;
padding: 8px 20px;
border-radius: var(--border-radius-medium);
background: var(--color-surface-1);
color: var(--color-base);
border: 1px solid var(--border-color-base);
cursor: pointer;
font-size: 0.95rem;
user-select: none;
transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
outline-offset: 2px;
}
.gs-tab-btn:hover {
background: var(--color-surface-2);
box-shadow: 0 2px 8px var(--box-shadow-color-base);
}
.gs-tab-btn:focus {
outline: 2px solid var(--color-progressive);
}
.gs-tab-btn.gs-active {
background: var(--color-progressive);
color: #fff;
border-color: var(--color-progressive);
font-weight: 700;
cursor: default;
}
/* --- 内容区 --- */
.gs-content {
position: relative;
}
.gs-content-panel {
display: none;
opacity: 0;
transform: translateY(10px);
transition: opacity 0.3s ease, transform 0.3s ease;
}
.gs-content-panel.gs-active {
display: block;
}
.gs-content-panel.gs-visible {
opacity: 1;
transform: translateY(0);
}
/* --- 加载中 --- */
.gs-loading {
padding: var(--space-xl);
text-align: center;
color: var(--color-subtle);
}
/* --- 卡片网格(1-4 列自适应) --- */
.gs-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: var(--space-md);
}
.gs-card {
background: var(--color-surface-1);
border: 1px solid var(--border-color-base);
border-radius: var(--border-radius-medium);
padding: var(--space-md);
transition: transform 0.2s ease, box-shadow 0.2s ease;
text-decoration: none;
color: var(--color-base);
display: block;
}
.gs-card:hover {
transform: translateY(-3px);
box-shadow: 0 2px 8px var(--box-shadow-color-base);
}
.gs-card__title {
font-size: 1.05rem;
font-weight: 700;
color: var(--color-emphasized);
margin: 0 0 4px;
}
.gs-card__desc {
font-size: 0.85rem;
color: var(--color-subtle);
margin: 0;
}