首页
随机
附近
登录
设置
关于陋室
免责声明
陋室
搜索
查看“︁MediaWiki:Common.css”︁的源代码
←
MediaWiki:Common.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于这些用户组的用户执行:
用户
、
自动确认用户
本页面提供本维基软件的界面文本,并受到保护以防止滥用。 要添加或更改所有维基的翻译,请使用MediaWiki的本地化项目
translatewiki.net
。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有网站访客。
您可以查看和复制此页面的源代码。
/* =========================== 全局字体设置 =========================== */ body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans JP", "Noto Sans KR", sans-serif, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "SimSun", "SimHei", "Songti SC", "KaiTi", "MingLiU", "PMingLiU", "Microsoft JhengHei", "Malgun Gothic"; } /* =========================== 横幅标语样式 =========================== */ .banner { height: auto; display: flex; flex-direction: column; justify-content: center; align-items: center; background: linear-gradient(to right, #a50000, #e64545); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); color: white; font-weight: bold; border-radius: 12px; padding: 12px 24px; text-align: center; } .banner-text { margin: 0; line-height: 1.4; } .banner .chinese-text { font-size: 24px; font-weight: 700; } .banner .english-text { font-size: 16px; font-weight: 500; opacity: 0.9; } /* =========================== 内容块样式 =========================== */ .content-box { margin: 10px; padding: 20px; border-radius: 10px; border: 1px solid #e0e0e0; transition: transform 0.3s ease, box-shadow 0.3s ease; } .content-box h2 { position: relative; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px solid #b30000; font-size: 1.25rem; } .content-box p { line-height: 1.6; font-size: 0.95rem; color: #333; } .content-box:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); } /* =========================== Flex 布局 =========================== */ .flex-container { display: flex; justify-content: space-between; gap: 24px; } .flex-container .content-box { flex: 1; max-width: 33.33%; box-sizing: border-box; } /* =========================== 特殊样式 =========================== */ /* 让重定向的内链变成绿色 */ .mw-redirect { color: #009944; } /* =========================== 响应式设计 =========================== */ /* 平板和大屏幕设备 */ @media screen and (min-width: 768px) { .banner .chinese-text { font-size: 28px; } .banner .english-text { font-size: 18px; } } /* 手机设备 */ @media screen and (max-width: 768px) { .flex-container { flex-direction: column; } .flex-container .content-box { max-width: 100%; margin-bottom: 20px; } .banner .chinese-text, .banner .english-text { text-align: center; } } /* 小屏手机设备 */ @media screen and (max-width: 480px) { .banner .chinese-text { font-size: 20px; } .banner .english-text { font-size: 14px; } }
返回
MediaWiki:Common.css
。