MediaWiki:Common.css:修订间差异

来自Helldivers资料站
跳转到导航 跳转到搜索
(创建页面,内容为“→‎图标列 - 自适应宽度:​ .wikitable .icon-cell { width: 1%; white-space: nowrap; text-align: center; vertical-align: middle; } →‎图标容器 - 固定大小并居中裁剪大图:​ .wikitable .icon-cell img { width: 32px; height: 32px; object-fit: contain; display: block; margin: 0 auto; }”
 
Lyx讨论 | 贡献
无编辑摘要
第14行: 第14行:
     display: block;
     display: block;
     margin: 0 auto;
     margin: 0 auto;
}
/* --- 轨道精准攻击 信息框样式 --- */
.orbit-attack-box {
    /* 布局与背景 */
    display: block;
    background-color: rgba(30, 30, 30, 0.85); /* 深灰色半透明背景 */
    padding: 10px 15px 15px 15px; /* 上 右 下 左 */
    border-radius: 4px; /* 微微圆角,不设置则完全直角 */
   
    /* 左侧黄色竖线 */
    border-left: 4px solid #fce100; /* 亮黄色 */
   
    /* 文本排版 */
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif; /* 确保中文字体好看 */
    color: #ffffff;
    max-width: 600px; /* 限制最大宽度,可根据需要调整 */
    line-height: 1.4;
    margin-bottom: 20px;
}
/* 第一行小字:进攻型战略... */
.orbit-attack-box .small-header {
    font-size: 13px;
    color: #cccccc; /* 浅灰色 */
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}
/* 第二行大字:轨道精准攻击 */
.orbit-attack-box .main-title {
    font-size: 24px;
    font-weight: 500; /* 中粗体 */
    color: #ffffff;
    display: block;
    margin-bottom: 6px;
}
/* 第三行描述文字 */
.orbit-attack-box .description {
    font-size: 14px;
    color: #cccccc;
    display: block;
}
}

2026年7月11日 (六) 04:30的版本

/* 图标列 - 自适应宽度 */
.wikitable .icon-cell {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

/* 图标容器 - 固定大小并居中裁剪大图 */
.wikitable .icon-cell img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* --- 轨道精准攻击 信息框样式 --- */
.orbit-attack-box {
    /* 布局与背景 */
    display: block;
    background-color: rgba(30, 30, 30, 0.85); /* 深灰色半透明背景 */
    padding: 10px 15px 15px 15px; /* 上 右 下 左 */
    border-radius: 4px; /* 微微圆角,不设置则完全直角 */
    
    /* 左侧黄色竖线 */
    border-left: 4px solid #fce100; /* 亮黄色 */
    
    /* 文本排版 */
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif; /* 确保中文字体好看 */
    color: #ffffff;
    max-width: 600px; /* 限制最大宽度,可根据需要调整 */
    line-height: 1.4;
    margin-bottom: 20px;
}

/* 第一行小字:进攻型战略... */
.orbit-attack-box .small-header {
    font-size: 13px;
    color: #cccccc; /* 浅灰色 */
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

/* 第二行大字:轨道精准攻击 */
.orbit-attack-box .main-title {
    font-size: 24px;
    font-weight: 500; /* 中粗体 */
    color: #ffffff;
    display: block;
    margin-bottom: 6px;
}

/* 第三行描述文字 */
.orbit-attack-box .description {
    font-size: 14px;
    color: #cccccc;
    display: block;
}