打开/关闭搜索
搜索
打开/关闭菜单
416
745
21
8K
Blockland Wiki
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
上传文件
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁模板:首页/styles.css”︁的源代码
来自Blockland Wiki
查看
阅读
查看源代码
查看历史
associated-pages
模板
讨论
更多操作
←
模板:首页/styles.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
/* === Blockland Wiki 首页专属样式 === */ /* 使用此方法可确保样式被优先加载且不受缓存影响 */ /* --- 整体布局 --- */ .blockland-main-page { background-color: #f0f2f5; /* 为整个页面区域提供一个柔和的背景色 */ padding: 24px; margin: -24px; /* 抵消掉页面默认的内边距,让背景铺满 */ border-radius: 8px; } /* --- 网格系统 --- */ .mp-grid { display: grid; grid-template-columns: 2fr 1fr; /* 主内容区占2/3,侧边栏占1/3 */ gap: 24px; /* 网格间距 */ } /* --- 卡片式设计 (核心) --- */ .mp-card { background-color: #ffffff; /* 白色卡片 */ border: 1px solid #e1e4e8; /* 柔和的边框 */ border-radius: 8px; /* 圆角 */ padding: 24px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 精致的阴影效果 */ transition: all 0.2s ease-in-out; } .mp-card:hover { transform: translateY(-2px); /* 鼠标悬浮时轻微上移 */ box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); } /* --- 卡片内标题 --- */ .mp-card-header { font-size: 1.6em; font-weight: 600; margin-top: 0; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #007bff; /* 蓝色强调线 */ color: #333; } .mp-card-header a { text-decoration: none; color: inherit; } /* --- 欢迎区域 --- */ .mp-welcome-box { text-align: center; padding: 32px 24px; } .mp-welcome-box h1 { font-size: 2.8em; font-weight: 700; color: #1a1a1a; margin: 0 0 8px 0; } .mp-welcome-box .subtitle { font-size: 1.1em; color: #555; margin-bottom: 24px; } /* --- 功能性搜索框 --- */ .mp-search-form { display: flex; width: 100%; max-width: 500px; margin: 0 auto; } .mp-search-input { flex-grow: 1; font-size: 1.1em; padding: 12px; border: 1px solid #ccc; border-right: none; border-radius: 6px 0 0 6px; } .mp-search-button { font-size: 1.1em; font-weight: bold; padding: 12px 24px; border: 1px solid #007bff; background-color: #007bff; color: white; cursor: pointer; border-radius: 0 6px 6px 0; } .mp-search-button:hover { background-color: #0056b3; } /* --- 侧边栏Logo --- */ .mp-logo-box { text-align: center; font-weight: bold; font-size: 1.8em; padding-bottom: 16px; } .mp-logo-box .subtitle { font-size: 0.6em; font-style: italic; color: #666; font-weight: normal; } /* --- 列表样式 --- */ .mp-card ul { list-style-type: none; /* 移除默认的圆点 */ padding-left: 0; margin: 0; } .mp-card ul li { padding: 8px 0; border-bottom: 1px dashed #eee; } .mp-card ul li:last-child { border-bottom: none; } .mp-card ul li a { text-decoration: none; font-weight: 500; color: #0056b3; } .mp-card ul li a:hover { text-decoration: underline; } /* --- 内容传送门网格 --- */ .mp-portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } /* 当屏幕宽度小于800px时,变为单栏布局 */ @media (max-width: 800px) { .mp-grid { grid-template-columns: 1fr; } }
返回
模板:首页/styles.css
。
查看“︁模板:首页/styles.css”︁的源代码
来自Blockland Wiki