跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机条目
特殊页面
站点
关于陋室
维基社群
新闻动态
联系我们
活跃用户
统计
参与
上传文件
待撰页面
新建页面
编辑入门
帮助
内容
分类树
所有页面
前缀索引
最多链入页面
热门页面
维护
MediaWiki 消息页
系统消息
小工具管理
小工具定义
用户组权限
界面
侧边栏
英文侧边栏
站点公告
匿名用户通知
公共样式表
公共脚本
陋室
搜索
搜索
中文
外观
登录
个人工具
登录
沙盒
查看“︁MediaWiki:Common.css”︁的源代码
系统消息
讨论
English
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
页面信息
Cargo数据
获取短链接
外观
移至侧栏
隐藏
←
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: 100px; /* 高度设置为100px */ display: flex; /* 使用Flexbox布局 */ flex-direction: column; /* 子元素垂直排列 */ justify-content: center; /* 垂直方向居中 */ /* background-color: #ffffe0; 背景颜色设置为淡黄色 */ color: #ff0000; /* 文字颜色设置为红色 */ font-weight: bold; /* 字体加粗 */ border-radius: 10px; /* 圆角 */ padding: 0 20px; /* 内边距 */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */ } .banner-text { margin: 0; /* 外边距设置为0 */ line-height: 1.2; /* 行高 */ } .banner .chinese-text { text-align: left; /* 左对齐 */ font-size: 24px; /* 字体大小 */ } .banner .english-text { text-align: right; /* 右对齐 */ font-size: 16px; /* 字体大小 */ } /* 内容块样式 */ .content-box { margin: 10px; /* 外边距 */ padding: 20px; /* 内边距 */ border-radius: 10px; /* 圆角 */ /* background: linear-gradient(135deg, #ffffff, #f0f0f0); /* 渐变背景 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */ border: 1px solid #e0e0e0; /* 边框 */ transition: transform 0.3s ease, box-shadow 0.3s ease; /* 过渡效果 */ } .content-box:hover { transform: translateY(-5px); /* 向上移动5px */ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* 增强阴影效果 */ } .content-box h2 { position: relative; /* 相对定位 */ padding-bottom: 10px; /* 下内边距 */ margin-bottom: 10px; /* 下外边距 */ border-bottom: 2px solid #ff0000; /* 下边框 */ color: #333; /* 字体颜色 */ } .content-box p { line-height: 1.6; /* 行高 */ color: #666; /* 字体颜色 */ } /* Flex容器样式 */ .flex-container { display: flex; /* 使用Flexbox布局 */ justify-content: space-between; /* 子元素均匀分布 */ gap: 20px; /* 子元素间距 */ } .flex-container .content-box { flex: 1; /* 伸缩性 */ max-width: 33.33%; /* 最大宽度 */ box-sizing: border-box; /* 包括内边距和边框在内计算宽度 */ } /* 移动设备优化 */ @media (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; /* 居中对齐 */ font-size: 18px; /* 字体大小 */ } .banner .english-text { font-size: 14px; /* 字体大小 */ } } /* 软件信息表格整体布局 */ .software-info { display: flex; flex-direction: column; /* 默认移动端纵向排列 */ width: 100%; gap: 10px; /* 组间距 */ align-items: center; /* 水平居中 */ } /* 每一组的默认样式(移动端:占满整行,并水平居中) */ .software-info-section { width: 100%; /* 移动端默认占满 */ display: flex; flex-direction: column; flex-grow: 1; max-width: 600px; /* 限制移动端最大宽度,防止超宽 */ } /* 桌面端(大屏幕):按顺序排列,且宽度调整 */ @media (min-width: 768px) { .software-info { flex-direction: row; flex-wrap: nowrap; /* 一行排列 */ justify-content: space-between; /* 让四组均分空间 */ align-items: flex-start; /* 顶端对齐 */ } /* 设定每一类的宽度比例 */ .software-info-basic { width: 20%; /* 基本信息 */ } .software-info-architecture { width: 35%; /* 架构与版本(较大) */ } .software-info-features { width: 35%; /* 功能与发行(较大) */ } .software-info-license { width: 10%; /* 贡献与许可证(较小) */ } } /* 让表格填充整个分类块 */ .software-info-section table { width: 100%; border-collapse: collapse; flex-grow: 1; } /* 标题格式 */ .software-info-section table caption { font-weight: bold; text-align: center; padding: 5px; } /* 表格单元格样式 */ .software-info-section th, .software-info-section td { border: 1px solid var(--mw-border-color); padding: 8px; text-align: left; } /* 让移动端的表格水平居中 */ @media (max-width: 768px) { .software-info-section { display: flex; justify-content: center; align-items: center; text-align: center; } }
返回
MediaWiki:Common.css
。
搜索
搜索
查看“︁MediaWiki:Common.css”︁的源代码
添加语言
添加话题