打开/关闭菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
(之前忘了一并改掉评论区表情的 selector)
(doujininfo)
第108行: 第108行:
}
}
/* ==== 结束 缩小投票版的占地 ==== */
/* ==== 结束 缩小投票版的占地 ==== */

/* ==== doujininfo ==== */
/* 本样式复制自THBWiki[[MediaWiki:Common.css]],遵守【知识共享 署名-非商业性使用-相同方式共享 3.0】协议 */
table.doujininfo {
width: 100%;
min-width: 418px;
}
table.doujininfo td {
word-break: break-all;
}
table.doujininfo .cover-artwork {
font-size: 24px;
text-align: center;
width: 40%;
}
table.doujininfo .cover-artwork-mobile {
display: none;
font-size: 24px;
text-align: center;
}
table.doujininfo .cover-char {
font-size: 12px;
}
table.doujininfo .cover-artwork-mobile .cover-char {
font-size: 16px;
}
table.doujininfo td.label {
font-weight: bold;
min-width: 100px;
width: 100px;
}

/* ==== 结束 doujininfo ==== */


/* ==== info类模板 ==== */
/* ==== info类模板 ==== */

2019年4月25日 (四) 21:07的版本

/* ==== 导航框 ==== */

table.navbox {
    font-size: 90%;
    width: 98%;
    margin: 2em auto 0;
    border: 1px solid #ccc;
    text-align: center;
    border-collapse: collapse;
    background-color: white;
}

table.navbox th {
    background: #eee8;
    padding: .6em .8em;
}

table.navbox.navbox-border td {
    border: 1px #a6a6a6 solid;
}

/* ==== 结束 导航框 ==== */

/* ==== image crop ==== */

.crop-mask > .crop-slider > p { margin: 0; }

/* 防止边界外的虚化影响到边界内的图片 */
/* https://css-tricks.com/keep-pixelated-images-pixelated-as-they-scale/ */
.crop-mask > .crop-slider img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* 防止拖拽 */
/* https://stackoverflow.com/questions/12906789 */
.crop-mask > .crop-slider img {
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* 覆写图片在评论区的样式 */
.crop-mask > .crop-slider img {
    height: initial !important;
    max-width: initial !important;
}

/* ==== 结束 image crop ==== */

/* ==== 信息框 ==== */
/* 修正新信息框模板内图片的 margin */
.pi-item.pi-image > p { margin: 0; }

/* data */
.pi-item.pi-data {
    padding: 10px 14px;
    align-items: baseline;
}

/* multidata */
.pi-item-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

/* ==== 结束 信息框 ==== */

/* ==== tooltip ==== */
.wikilink-tooltip {
    background-color: #889b;
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px #5555;
    content: attr(title);
    color: #fff;
    font-size:12px;
    line-height: 22px;
    margin: -1em 0;
    padding: 0 5px;
    position: absolute;
    white-space: nowrap;
    z-index: 1;
}

/* ==== 结束 tooltip ==== */

/* ==== 自动转链 ==== */
a.autolink {
    text-decoration: underline!important;
}
/* ==== 结束 自动转链 ==== */

/* ==== 缩小投票版的占地 ==== */
.pollAnswerName {
    float: right;
    position: relative;
    z-index: 10;
    clear: right;
}
.pollAnswer {
    clear: right;
}
/* ==== 结束 缩小投票版的占地 ==== */

/* ==== doujininfo ==== */
/* 本样式复制自THBWiki[[MediaWiki:Common.css]],遵守【知识共享 署名-非商业性使用-相同方式共享 3.0】协议 */
table.doujininfo {
 width: 100%;
 min-width: 418px;
}
table.doujininfo td {
 word-break: break-all;
}
table.doujininfo .cover-artwork {
 font-size: 24px;
 text-align: center;
 width: 40%;
}
table.doujininfo .cover-artwork-mobile {
 display: none;
 font-size: 24px;
 text-align: center;
}
table.doujininfo .cover-char {
 font-size: 12px;
}
table.doujininfo .cover-artwork-mobile .cover-char {
 font-size: 16px;
}
table.doujininfo td.label {
    font-weight: bold;
    min-width: 100px;
    width: 100px;
}

/* ==== 结束 doujininfo ==== */

/* ==== info类模板 ==== */
/* 本样式复制自萌娘百科[[MediaWiki:Common.css]],遵守【知识共享 署名-非商业性使用-相同方式共享 3.0】协议 */
.infoBox {
    margin: 0 auto;
}
.infoBoxTitle {
    margin: 3px auto;
    padding: 0;
    text-align: center;
    font-weight: 700;
}
.infoBoxIcon {
    display: table-cell;
    padding: 2px 0 2px .5em;
    vertical-align: middle;
}
.infoBoxText {
    display: table-cell;
    padding: .25em .5em .25em 1.3em;
    width: 100%;
    vertical-align: middle;
}
.infoBoxContent {
    border: 1px solid #ddd;
    border-left-width: 0;
    background: #fbfbfb;
}
.infoBoxBelow {
    margin: 0 auto;
    padding: 0;
    text-align: center;
}
/* ==== 结束 info类模板 ==== */

/* ==== 其他 ==== */
.transborder {
    border: solid transparent;
}
/* ==== 结束 其他 ==== */