跳转到内容
打开/关闭搜索
搜索
打开/关闭菜单
6
条目
2
文件
8
用户
881
编辑
ANACHRONISM
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
打开/关闭外观设置菜单
无法加载外观设置。请检查您的网络连接并重试。
重试
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
登录
请求账号
查看“︁模板:首页/styles.css”︁的源代码
来自ANACHRONISM
查看
阅读
查看源代码
查看历史
相关页面
模板
讨论
更多操作
更多
工具
链入页面
相关更改
页面信息
←
模板:首页/styles.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
旅人
您可以查看和复制此页面的源代码。
/* ============================================ 首页样式 ============================================ */ /* ===== 1. 布局 ===== */ .home-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; } .home-left, .home-right { min-width: 0; } /* ===== 2. 通用卡片(日间默认) ===== */ .home-card { background: rgba(255, 255, 255, 0.96); border-radius: 0.75rem; box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.12); padding: 1.25rem; margin-bottom: 1.25rem; overflow: hidden; color: #333; } .home-card--flush { padding: 0; } .home-card-title { font-size: 1.2rem; font-weight: bold; color: #56000d; border-left: 0.25rem solid #56000d; padding-left: 0.625rem; margin-bottom: 0.875rem; } /* ===== 3. 轮播图 ===== */ .home-carousel { position: relative; width: 100%; height: clamp(12rem, 22vw, 24rem); overflow: hidden; border-radius: 0.75rem; background: #2a0006; } .home-carousel-item { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transition: opacity 0.6s ease; display: flex; align-items: flex-end; } .home-carousel-item.active { opacity: 1; z-index: 1; } .home-carousel-img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; /* 图片就绪后改成: background-image: url('/images/首页卡片1.jpg'); background-size: cover; background-position: center; */ background: linear-gradient(135deg, #56000d 0%, #8b1a2b 100%); } .home-carousel-caption { position: relative; z-index: 2; width: 100%; padding: 1.25rem 1.5rem; background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0)); color: #fff; } .home-carousel-caption h3 { margin: 0 0 0.375rem 0; font-size: 1.5rem; color: #fff; border: none; } .home-carousel-caption p { margin: 0; font-size: 0.9rem; opacity: 0.85; } .home-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255, 255, 255, 0.85); border: none; cursor: pointer; font-size: 1.1rem; color: #56000d; display: flex; align-items: center; justify-content: center; transition: background 0.2s; } .home-carousel-btn:hover { background: #fff; } .home-carousel-btn.prev { left: 0.75rem; } .home-carousel-btn.next { right: 0.75rem; } .home-carousel-dots { position: absolute; bottom: 0.625rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 0.5rem; } .home-carousel-dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: background 0.2s; } .home-carousel-dot.active { background: #fff; } /* ===== 4. Tabber ===== */ .home-card .tabber__tabs { border-bottom: 0.125rem solid rgba(86, 0, 13, 0.15); padding-left: 0; } .home-card .tabber__tab { padding: 0.5rem 1rem; cursor: pointer; color: #56000d; text-decoration: none; border: none; border-bottom: 0.125rem solid transparent; transition: border-color 0.2s; } .home-card .tabber__tab:hover { border-bottom-color: rgba(86, 0, 13, 0.15); } .home-card .tabber__tab--active, .home-card .tabber__tab[aria-selected="true"] { border-bottom-color: #56000d; font-weight: bold; } .home-card .tabber__section { padding: 1rem 0 0 0; } /* ===== 5. 公告 ===== */ .home-notice { font-size: 0.92rem; line-height: 1.7; color: #333; } .home-notice ul { padding-left: 1.2em; margin: 0; } .home-notice li { margin-bottom: 0.375rem; } /* ===== 6. 版本信息卡 ===== */ .home-version { text-align: center; padding: 1rem; background: #56000d; border-radius: 0.625rem; color: #fff; } .home-version-label { font-size: 0.85rem; opacity: 0.8; letter-spacing: 0.125rem; } .home-version-num { font-size: 1.6rem; font-weight: bold; margin: 0.25rem 0; } /* ===== 7. 夜间模式 ===== */ html.skin-theme-clientpref-night .home-card { background: rgba(35, 25, 28, 0.95); box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.5); color: #ddd; } html.skin-theme-clientpref-night .home-card-title { color: #d4a5b0; border-left-color: #d4a5b0; } html.skin-theme-clientpref-night .home-notice { color: #ddd; } html.skin-theme-clientpref-night .home-card .tabber__tabs { border-bottom-color: rgba(212, 165, 176, 0.25); } html.skin-theme-clientpref-night .home-card .tabber__tab { color: #d4a5b0; } html.skin-theme-clientpref-night .home-card .tabber__tab--active, html.skin-theme-clientpref-night .home-card .tabber__tab[aria-selected="true"] { border-bottom-color: #d4a5b0; } /* ===== 8. 纯黑模式 ===== */ html.skin-theme-clientpref-pureblack .home-card { background: #0d0d0d; box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.8); color: #ccc; } html.skin-theme-clientpref-pureblack .home-card-title { color: #d4a5b0; border-left-color: #d4a5b0; } html.skin-theme-clientpref-pureblack .home-notice { color: #ccc; } html.skin-theme-clientpref-pureblack .home-card .tabber__tabs { border-bottom-color: rgba(212, 165, 176, 0.25); } html.skin-theme-clientpref-pureblack .home-card .tabber__tab { color: #d4a5b0; } html.skin-theme-clientpref-pureblack .home-card .tabber__tab--active, html.skin-theme-clientpref-pureblack .home-card .tabber__tab[aria-selected="true"] { border-bottom-color: #d4a5b0; } /* ===== 9. 宽度偏好 ===== */ html.citizen-feature-custom-width-clientpref-narrow .home-grid { grid-template-columns: 1fr; } /* ===== 10. 移动端 / 窄屏 ===== */ @media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } .home-carousel { height: clamp(10rem, 50vw, 16rem); } .home-card { padding: 1rem; } .home-card-title { font-size: 1.1rem; } .home-carousel-caption h3 { font-size: 1.2rem; } .home-carousel-caption p { font-size: 0.85rem; } }
返回
模板:首页/styles.css
。
查看“︁模板:首页/styles.css”︁的源代码
来自ANACHRONISM