跳转到内容
打开/关闭搜索
搜索
打开/关闭菜单
1
条目
1
用户
32
编辑
Anachronism
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
打开/关闭外观设置菜单
无法加载外观设置。请检查您的网络连接并重试。
重试
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
登录
查看“︁模板:首页/styles.css”︁的源代码
来自Anachronism
查看
阅读
查看源代码
查看历史
相关页面
模板
讨论
更多操作
更多
工具
链入页面
相关更改
页面信息
←
模板:首页/styles.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
旅人
您可以查看和复制此页面的源代码。
/* ========== 背景层 ========== */ .home-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; /* background-image: url('/images/你的背景图.jpg');*/ background: linear-gradient(135deg, #1a0003 0%, #56000d 50%, #2a0006 100%); background-size: cover; background-position: center; background-attachment: fixed; z-index: -1; } .home-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); } /* ========== 内容容器 ========== */ .home-wrapper { max-width: 87.5rem; margin: 0 auto; padding: 1.25rem; font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; } /* ========== 两栏布局 ========== */ .home-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; } @media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } } /* ========== 通用卡片 ========== */ .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.25); padding: 1.25rem; margin-bottom: 1.25rem; overflow: hidden; } .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; } /* ========== 轮播图 ========== */ .home-carousel { position: relative; width: 100%; height: clamp(12rem, 22vw, 24rem); overflow: hidden; border-radius: 0.75rem; background: #2a0006; } .home-carousel-item { position: absolute; inset: 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; inset: 0; width: 100%; height: 100%; object-fit: cover; 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; } /* ========== Tabber 美化 ========== */ .home-card .tabber .wds-tabs { border-bottom: 0.125rem solid #e0d5d7; padding-left: 0; } .home-card .tabber .wds-tabs__tab { padding: 0.5rem 1rem; cursor: pointer; color: #56000d; } .home-card .tabber .wds-tabs__tab.wds-is-current { border-bottom: 0.125rem solid #56000d; font-weight: bold; } .home-card .tabber .wds-tab__content { padding: 1rem 0 0 0; } /* ========== 公告栏 ========== */ .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; } /* ========== 版本信息卡 ========== */ .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; }
返回
模板:首页/styles.css
。
查看“︁模板:首页/styles.css”︁的源代码
来自Anachronism