跳转到内容
打开/关闭菜单
  • 450 条目
  • 804 文件
  • 22 用户
  • 9044 编辑
Blockland Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Citizen.css:修订间差异

MediaWiki界面页面
无编辑摘要
无编辑摘要
第38行: 第38行:


/* --- Blockland Wiki 首页样式设计 --- */
/* --- Blockland Wiki 首页样式设计 --- */
/* 隐藏MediaWiki默认的标题和标语,让首页更干净 */
.page-Main_Page #firstHeading,
.page-Main_Page #siteSub,
.page-Main_Page #contentSub {
    display: none !important;
}
/* 首页整体容器:背景图在这里设置 */
.bl-wrapper {
    /* 这里建议换成你的高清大图URL,或者保留这个渐变作为备用 */
    background: linear-gradient(135deg, #e0f2fe 0%, #3b82f6 100%);
    background-image: url('https://images.unsplash.com/photo-1516550893923-42d28e560348?q=80&w=2000&auto=format&fit=crop'); /* 示例背景图 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 40px 20px;
    border-radius: 20px;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #334155;
}
/* 毛玻璃主容器 */
.bl-glass-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.65); /* 白色半透明 */
    backdrop-filter: blur(16px); /* 核心:毛玻璃模糊效果 */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
}
/* 头部 Hero 区域 */
.bl-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(to right, #2563eb, #06b6d4); /* 蓝色渐变文字 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}
.bl-hero p {
    font-size: 1.2rem;
    color: #475569;
    margin-top: 10px;
    margin-bottom: 30px;
}
/* 搜索框模拟区 */
.bl-search-box {
    margin-bottom: 50px;
}
.bl-search-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #2563eb;
    color: white !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}
.bl-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
    background: #1d4ed8;
    text-decoration: none;
}
/* 网格布局 */
.bl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    text-align: left;
}
/* 互动卡片 */
.bl-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 弹性动画 */
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
/* 卡片悬停互动特效 */
.bl-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: #bfdbfe;
    background: #ffffff;
}
/* 卡片装饰条 */
.bl-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s;
}
.bl-card:hover::before {
    opacity: 1;
}
/* 卡片标题和内容 */
.bl-card h3 {
    margin-top: 0;
    color: #1e293b;
    font-size: 1.4rem;
    border-bottom: none;
}
.bl-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}
/* 链接去下划线覆盖 */
.bl-card a {
    text-decoration: none;
    color: inherit;
    display: block; /* 让整个卡片可点击 */
    height: 100%;
}

2026年1月29日 (四) 14:28的版本

/* === 彻底纯白化 (Wikipedia 风格) === */

:root {
    /* 1. 把所有层级的背景都强行设为白色 */
    --background-color-base: #fafafa !important;    /* 网页底层 */
    --background-color-surface: #ffffff !important; /* 内容层 */
    --background-color-overlay: #ffffff !important; /* 弹窗层 */
    
    /* 2. 修正文字颜色为深黑 */
    --color-base: #202122 !important;

    /* 3. (关键) 去掉卡片的所有阴影和边框,让它变“平” */
    --box-shadow-card: none !important;
    --border-radius-base: 0 !important; /* 去掉圆角 */
}

/* 暴力清除 Citizen 的背景色和间距,模拟 Vector 皮肤 */
body, .citizen-page {
    background-color: #ffffff !important;
}

/* 修正侧边栏,让它和主内容融为一体,只有极细的分割线 */
.citizen-drawer, .mw-header, .mw-footer {
    background-color: #ffffff !important;
    border-right: 1px solid #eee !important;
    box-shadow: none !important;
}

/* 修正首页特有的间距问题 */
.page-Main_Page .mw-body {
    padding-top: 10px !important;
    box-shadow: none !important;
}

/* 既然背景全白了,让链接颜色深一点,显眼一点 */
a { color: #3366cc; }
/* === 首页 (Main Page) 专用样式 === */

/* --- Blockland Wiki 首页样式设计 --- */