User:LovelyA72/common.css

/* * 放置于这里的CSS将应用于所有皮肤 * 萌娘百科仅开放Vector皮肤 * 请尊重萌娘百科版权，以下代码除非注明均是管理员手敲出来的！！！复制需要注明源自萌娘百科，并且附上URL地址http://zh.moegirl.org/MediaWiki:Common.css * 版权协定：知识共享 署名-非商业性使用-相同方式共享 3.0 * 复制之后请把图片换成自己网站上的图片！！！！！！！！！！！！！ */ /* 广告 */ .please-donate { height: 90px; margin: 10px; clear: both; text-align: center; } .please-donate a { display: block; width: 728px; height: 90px; margin: 0 auto; } .ads-main { width: 728px; margin: -90px auto 0; } /* * vector界面定制 * 英文默认字体arial. 为了避免乱码微软雅黑改写成unicode编码形式\5fae\8f6f\96c5\9ed1,Hiragino Sans GB是Mac OS雪豹以后系统自带的一款字体,微软正黑体Microsoft JhengHei是为了台湾用户设置的） */ /* 2017春季topbar */ body.skin-vector { background: url(//lab.yuezhengling.cc/w/images/5/55/ZhMoegirl17winter.jpg) no-repeat top left #f6f6f6; font-family: Arial, Tahoma, "Microsoft YaHei", \5fae\8f6f\96c5\9ed1, "Hiragino Sans GB", "Microsoft JhengHei", 微軟正黑體, sans-serif; } /* 主标题字体字型调整*/ font-family: "Helvetica Neue", "Helvetica Arial", "Microsoft Yahei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif; font-weight: 500; padding-left: 0.25em; } /* 侧边栏、顶部栏 */ left: 0; top: -300px; width: 176px; height: 50px; }   background-image: none; width: 176px; height: 300px; } div#mw-page-base { background: none; height: 100px; }   margin-top: 60px; } div#mw-panel { top: 300px; text-shadow: 1px 1px #f6f6f6; } div#mw-panel div.portal { padding-bottom: 1em; } div#mw-head div.vectorMenu h4 { height: 1.9em; margin-bottom: 0; padding-top: 1.25em; padding-bottom: 0; padding-right: .5em; } div.vectorTabs ul li, background-image: url(//wiki.creativecommons.org/skins/Vector/images/tab-current-fade.png); background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), #fff); background-color: transparent; } div.vectorTabs li.selected { background-image: url(//wiki.creativecommons.org/skins/Vector/images/tab-current-fade.png); background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), #a7d7f9); background-color: transparent; } div.vectorTabs, div.vectorTabs span, div.vectorTabs ul, div#mw-head div.vectorMenu h3 { background-image: none; } /* 右上个人链接栏 */ div#p-personal { background-color: rgba(255, 255, 255, 0.8); padding: 5px 10px 5px 0; box-shadow: #666 0 1px 5px; } /* MW自带10em宽度，应该是留给测试链接的吧萌百没有就去掉 */ padding-left: 0; } /* 对齐搜索按钮 */ div#simpleSearch button#searchButton { padding-top: .1em; padding-bottom: .2em; padding-right: .1em; } /* table里ol和ul的左边距修正 */ .mw-content-ltr ul, .mw-content-rtl .mw-content-ltr ul, .mw-content-ltr table ol, .mw-content-rtl .mw-content-ltr table ol { margin-left: 1.2em; } /* 2012年12月24日空想之梦做出的首页样式 */ display: block; width: 100%; border-collapse: collapse; text-align: left; margin: 0 auto; /* 居中 */ max-width: 1030px; } .mainpage-newsbox { width: 66.67%; float: left; } .mainpage-box { float: left; width: 33.33%; } .mainpage-title { font-family: EasonPro, "黑体", serif; font-size: 1.618em; color: #228b22; margin: 0; background: #deede0; font-weight: 400; /* 400 = normal */ height: 30px; line-height: 30px; text-align: center; font-size-adjust: .43; } .mainpage-content, .mainpage-1stcontent { vertical-align: top; padding: .5em 2%; min-height: 230px; } .mainpage-content.nomobile { min-height: auto; } .clear-div { clear: both; } /* 调整侧边栏字体 */ div#mw-panel { font-size:18px; /* mw-panel的宽度是10em，改了font-size以后也需要修改一下 */ width: 10.5rem; } /* 并列用的CSS3代码 */ .block, .content-box { width: 100%; } .content-box { display: box; display: -moz-box; display: -webkit-box; } .parallel .content-box { box-orient: horizontal; -moz-box-orient: horizontal; -webkit-box-orient: horizontal; } .parallel .boite { box-flex: 1; -moz-box-flex: 1; -webkit-box-flex: 1; } /* 萌娘网姊妹项目 */ .Mgsister { width: 100%; color: #777; font-size: 115%; text-align: center; } .Mgsister > span { display: inline-block; vertical-align: middle; } .MgsisIcon { text-align: center; padding: 17px; } .MgsisText { padding: 4px 7em 4px 0; text-align: left; } .MgsisText span { font-size: 85%; } /* 公告栏滚动Rollnews */ width: 100%; height: 25px; line-height: 25px; overflow: hidden }   height: 25px; padding-left: 10px; list-style: none; } /* 标题下划线增强 700 = bold */ h1 { font-weight: 700; border-bottom: 2px solid #0074f9; } h2 { font-weight: 700; border-bottom: 1px solid #0074f9; } /* 副标题 */ display: inline; font-size: 90%; font-weight: 400; /* 400 = normal */ font-style: normal; text-align: right; } /* 被点过的外部链接不变色. 采取和默认皮肤相同写法，以便override */ .mw-body a.external:visited { color: #36b; } /* 斜体字右边距加大看以防止文字挤在一起 */ margin-right: 3px; } /* Extension:MultimediaViewer的半透明化修改 */ .mw-mmv-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.8); opacity: 0.73; } body.mediawiki.mw-mmv-lightbox-open #mw-page-base, body.mediawiki.mw-mmv-lightbox-open #mw-head-base, body.mediawiki.mw-mmv-lightbox-open #mw-navigation, body.mediawiki.mw-mmv-lightbox-open #content, body.mediawiki.mw-mmv-lightbox-open #footer, body.mediawiki.mw-mmv-lightbox-open #globalWrapper { display: inherit; } body.mediawiki.mw-mmv-lightbox-open > * { display: inherit; } body.mediawiki.mw-mmv-lightbox-open > script, body.mediawiki.mw-mmv-lightbox-open > style { display: none; } body.mediawiki.mw-mmv-lightbox-open { overflow: hidden; } body .mw-mmv-wrapper { position: fixed; } /* mutilmediaViewer 信息栏修复 */ .mw-mmv-image-metadata-column.mw-mmv-image-metadata-desc-column { width: 30%; } .mw-mmv-image-metadata-column.mw-mmv-image-metadata-links-column { width: 70%; max-width: 70%; } ul.mw-mmv-image-links li { float: left; padding: .3em 1em; } div.mw-mmv-image-desc-div, div.mw-mmv-image-links-div{ display:block } div.metadata-panel-is-closed .mw-mmv-image-links li.mw-mmv-license-li { height:inherit; line-height:inherit; } /* 通用圆角框 */ .common-box { padding: .2em .4em; border: 1px solid #ddd; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -o-border-radius: 10px; -webkit-box-shadow: #666 0 2px 3px; -moz-box-shadow: #666 0 2px 3px; border-radius: 10px; box-shadow: #666 0 2px 3px; } /* info类模板 */ .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; } /* 数据表格 */ .mw-datatable.TablePager { width: 100%; table-layout: fixed; word-wrap: break-word; }
 * 1) firstHeading {
 * 1) mw-panel #p-logo {
 * 1) mw-panel #p-logo .mw-wiki-logo {
 * 1) left-navigation,
 * 2) right-navigation {
 * 1) p-variants,
 * 2) p-cactions {
 * 1) p-variants-label,
 * 1) p-personal ul {
 * 1) mainpage {
 * 1) scrollDiv {
 * 1) scrollDiv li {
 * 1) siteSub {
 * 1) mw-content-text i {

/* 隐藏首页标题，空行，讨论、查看源代码tab */ .page-Mainpage h1.firstHeading, .page-Mainpage #siteSub, .page-Mainpage #contentSub, .page-Mainpage li#ca-viewsource, .page-Mainpage li#ca-talk { display: none; } /* 黑幕模板配合CSS */ /* 把这几行单独拎出来写，否则会被Firefox合并到“.heimu a”这条规则，然后又被上面的“点过外链不变色”规则override */ span.heimu a.external, span.heimu a.external:visited, span.heimu a.extiw, span.heimu a.extiw:visited { color: #252525; } .heimu, .heimu a, a .heimu, .heimu a.new { background-color: #252525; color: #252525; text-shadow: none; } body:not(.heimu_toggle_on) .heimu:hover, body:not(.heimu_toggle_on) .heimu:active, body:not(.heimu_toggle_on) .heimu.off { color: white; } body:not(.heimu_toggle_on) .heimu:hover a, body:not(.heimu_toggle_on) a:hover .heimu, body:not(.heimu_toggle_on) .heimu.off a, body:not(.heimu_toggle_on) a:hover .heimu.off { color: lightblue; } body:not(.heimu_toggle_on) .heimu.off .new, body:not(.heimu_toggle_on) .heimu.off .new:hover, body:not(.heimu_toggle_on) .new:hover .heimu.off, body:not(.heimu_toggle_on) .heimu.off .new, body:not(.heimu_toggle_on) .heimu.off .new:hover, body:not(.heimu_toggle_on) .new:hover .heimu.off { color: #BA0000; } /* 页脚 */ padding-left: 160px; color: #2f2f2f; }   color: #243c4a; font: normal normal AllerBold, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; margin-bottom: 8px; }   float: left; margin: 0 100px 20px 0; line-height: 1.7; width: 120px; font-size: 12pt; }   margin-right: 0; }   color: #2f2f2f; }   clear: left; display: block; line-height: 1.3; color: #999; } /* 名字空间改变背景色 */ .ns-0 div#content, .ns-0 div#p-cactions li a:hover, .ns-0 div#p-cactions li.selected a, .ns-0 div#content div.thumb { background-color: rgba(255,255,255,0.8); } div#content, div#p-cactions li a:hover, div#p-cactions li.selected a, div#content div.thumb { background-color: rgba(247,251,255,0.8); } /* 导航条（完全没有apple风格的apple风面包屑orz） 来源:http://www.jankoatwarpspeed.com/examples/breadcrumb/ */ background-image: url(//lab.yuezhengling.cc/w/images/7/7d/Bc_bg.png); color: red; border: solid 1px #cacaca; border-radius: 10px; overflow: hidden; }   float: left; padding-left: 10px; }   display: block; background: url(//lab.yuezhengling.cc/w/images/6/6e/Bc_separator.png) no-repeat right; padding-right: 15px; color: #454545; }   color: #35acc5; } /* 回到顶部 */ .backToTop { display: none; width: 20px; padding: 5px 0; background-color: #000; color: #fff; font-size: 12px; text-align: center; position: fixed; _position: absolute; right: 0; bottom: 100px; _bottom: "auto"; cursor: pointer; opacity: .6; filter: Alpha(opacity=60); } .mw-mmv-lightbox-open .backToTop { display: none !important; } /* 信息模板的css */ .infotemplatebox { float: right; width: 250px; font-size: 90%; margin: 1em 0 1em 1em; background: #f9f9f9; border: 1px #999 solid; border-collapse: collapse; word-break: break-all; clear: right; } /* 编辑区样式 */ .my-buttons { padding: .5em; } .my-buttons a { text-decoration: none; border: 1px #069 outset; padding: .1em; } .my-buttons a:hover, .my-buttons a:active { border-style: inset; } /* 解决pre不换行的问题 */ pre { white-space: pre-wrap; /* CSS-3 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* Internet Explorer 5.5+ */ } /* 页面底部导航框（2011年8月16日引自中文维基）(所谓大家族模板) */ table.navbox { border: 1px solid #aaa; clear: both; margin: auto; padding: 1px; text-align: center; width: 100%; } table.navbox+table.navbox { margin-top: -1px; } .navbox-title, .navbox-abovebelow, table.navbox th { padding-left: 1em; padding-right: 1em; text-align: center; } .navbox-group { font-weight: 700; padding-left: 1em; padding-right: 1em; white-space: nowrap; } .navbox, .navbox-subgroup { background: none repeat scroll 0 0 #fdfdfd; } .navbox-list { border-color: #fdfdfd; } .navbox-title, table.navbox th { background: none repeat scroll 0 0 #a5e4a5; } .navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title { background: none repeat scroll 0 0 #c0ecc0; } .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { background: none repeat scroll 0 0 #e6f6e6; } .navbox-even { background: none repeat scroll 0 0 #f5fcf5; } .navbox-odd { background: none repeat scroll 0 0 transparent; } .collapseButton { float: right; font-weight: 400; text-align: right; width: auto; } .navbox .collapseButton { width: 6em; } /* Fix by case : Rev 1327309 (Special:Permalink/1327309) Address alignment issue of nested tabs in Navbox */ .navbox .TabLabel { text-align: left; } /* Tabs */ .tab .TabLabelText { display: inline-block; padding: 1px; cursor: pointer; } .tab .TabLabel { z-index: 2; position: relative; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } .tab .TabLabelText.selected { border-top: 3px solid green; padding: 1px; background: white; border-left: 1px solid #aaa; border-right: 1px solid #aaa; } .tab .TabContent { background: white; padding: 20px 30px; position: relative; z-index: 1; border: 1px solid #aaa; } .tab .TabContentText { display: none; } .tab .TabContentText.selected { display: block; } .Tabs .Tab { border-bottom: 1px solid #aaa; } .Tabs .Tab:first-child { border-top: 1px solid #aaa; } .Tabs .Tab .TabLabelText { padding: 7px; } .Tabs .Tab .TabContentText { padding: 3px; } /* 隐藏只供管理员查看的内容 */ .sysop-show, .accountcreator-show { display: none !important; } /* wikitable green */ table.wikitable-green { background: #c9f6e1 } .wikitable-green th { background: #13ec93 } .wikitable-green td { background: #f3f3f3 } /* 表格宽度 */ .wikitable { max-width: 100%; } /* 缩略图居中*/ .thumb.tcenter { float: none; clear: both; display: block; margin: 0 auto; } /* 用户页没有分类！ */ body.ns-2 div#catlinks { display: none !important; } /* 仅手机版显示支持 */ .mobileonly { display: none !important; } /* 编辑请求 */ .editRequest { text-align: center; border: 1px solid #ddd; border-radius: 3px; margin:1em 2.5em; padding: 1em; background: white; } .editRequest .newComment { white-space: nowrap; background: #347bff; color: #fff; border: 1px solid #347bff; text-shadow: 0 1px rgba(0,0,0,0.1); font-family: inherit; font-size: 1em; min-width: 4em; max-width: 28.75em; padding: .5em 1em; margin: 0; border-radius: 2px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-appearance: none; zoom: 1; vertical-align: middle; text-align: center; font-weight: bold; cursor: pointer; } /* 注释里的列表 */ .reference-text > ul.listInRef, .reference-text > ol.listInRef { margin: -1.5em 0 0 2em; } /* * Skeleton V2.0.4 * Copyright 2014, Dave Gamache * www.getskeleton.com * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php * 12/29/2014 */ /* 以下内容已被萌百格式化，注释已被翻译 */ .container { position: relative; width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; } .div, .divs, .column { width: 100%; float: left; box-sizing: border-box; } /* 适用于屏幕像素宽度大于400px的设备 */ @media (min-width: 400px) { .container { width: 85%; padding: 0; } } /* 适用于屏幕像素宽度大于800px的设备 */ @media (min-width: 800px) { .container { width: 80%; }   .div, .divs, .column { margin-left: .3%; }   .div:first-child, .divs:first-child, .column:first-child { margin-left: 0; }   .one.div, .one.divs { width: 100%; margin-left: 0; }   .two.divs { width: 49.85%; }   .three.divs { width: 33.1333333333%; }   .four.divs { width: 24.775%; }   .five.divs { width: 19.76%; }   .six.divs { width: 16.4166666667%; }   .seven.divs { width: 14.0285714286%; }   .eight.divs { width: 12.2375%; }   .nine.divs { width: 10.8444444444%; }   .ten.divs { width: 9.73%; }   .eleven.divs { width: 8.81818181818%; }   .twelve.divs { width: 8.05833333333%; }   .one.column { width: 8.05833333333%; }   .one-third.column { width: 33.1333333333%; }   .two-thirds.column { width: 66.5666666667%; }   .one-half.column { width: 49.85%; }   /* Offsets设置 */ .offset-by-one.column { margin-left: 8.66666666667%; }   .offset-by-two.column { margin-left: 17.3333333333%; }   .offset-by-three.column { margin-left: 26%; }   .offset-by-four.column { margin-left: 34.6666666667%; }   .offset-by-five.column { margin-left: 43.3333333333%; }   .offset-by-six.column { margin-left: 52%; }   .offset-by-seven.column { margin-left: 60.6666666667%; }   .offset-by-eight.column { margin-left: 69.3333333333%; }   .offset-by-nine.column { margin-left: 78.0%; }   .offset-by-ten.column { margin-left: 86.6666666667%; }   .offset-by-eleven.column { margin-left: 95.3333333333%; }   .offset-by-one-third.column { margin-left: 34.6666666667%; }   .offset-by-two-thirds.column { margin-left: 69.3333333333%; }   .offset-by-one-half.column { margin-left: 52%; } } /* * 感谢User:Great Brightstar的贡献，源码来自special:diff/834104 * 以下是原注释： * 在这里使用 font-feature-settings 属性会让使用“lang”标签的元素强制使用 OpenType 技术显示本地化的变体字（通过激活 locl 标签，即便浏览器本身不直接激活）. * 如果你使用思源黑体（非 CN、JP、KO、TW 版）、Noto Sans CJK 显示文字的话就有可能看到效果. * 关于上述这个 CSS 属性的用法，参阅：https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings 注意：此文引用的 OpenType Feature Tags list 同样需要关注. * 如有任何问题请即刻禁用之 * Nbdd0121: 将原来的[lang]改为span[lang]，这样就不会影响非的[lang]了 (e.g. div#mw-content-text) * AnnAngela（2017/06/20）：日语字体更换，使用twitter界面设定 */ span[lang] { font-family: initial; font-feature-settings: "locl" on; -webkit-font-feature-settings: "locl" on; } span[lang=zh-hant] { font-family: "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans SC", "Source Han Sans K", "Source Han Sans", "Noto Sans CJK TC", "Noto Sans CJK SC", "Noto Sans TC", "Noto Sans CJK JP", "Noto Sans CJK KR", "Microsoft JhengHei", "PingFang TC", "PingFang HK", "LiHei Pro Medium", "Apple LiGothic Medium", "Heiti TC", "PMingLiU", "PMingLiU-ExtB", "MingLiU", "MingLiU-ExtB", "MingLiU_HKSCS", "MingLiU_HKSCS-ExtB", "LiSong Pro Light", "Apple LiSung Light"; } span[lang=zh-hans] { font-family: "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans TC", "Source Han Sans K", "Source Han Sans", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans SC", "Noto Sans CJK JP", "Noto Sans CJK KR", "Microsoft YaHei", "DengXian", "PingFang SC", "Heiti TC", "Hiragino Sans GB", "SimSun", "SimSun-ExtA", "SimSun-ExtB", "Song", "AR PL UMing", "AR PL ShanHeiSun Uni"; }
 * 1) footer-moegirl {
 * 1) footer-moegirl h4 {
 * 1) footer-moegirl ul {
 * 1) footer-moegirl ul.lastlist {
 * 1) footer-moegirl ul a {
 * 1) footer-moegirl .copyright {
 * 1) breadcrumb {
 * 1) breadcrumb span {
 * 1) breadcrumb a {
 * 1) breadcrumb a:hover {

span[lang=zh-CN] { font-family: "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans TC", "Source Han Sans K", "Source Han Sans", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans SC", "Noto Sans CJK JP", "Noto Sans CJK KR", "Microsoft YaHei", "DengXian", "PingFang SC", "Heiti TC", "Hiragino Sans GB", "SimSun", "SimSun-ExtA", "SimSun-ExtB", "Song", "AR PL UMing", "AR PL ShanHeiSun Uni"; } span[lang=zh-HK] { font-family: "Source Han Sans TC", "Source Han Sans HK", "Source Han Sans TW", "Source Han Sans SC", "Source Han Sans K", "Source Han Sans", "Noto Sans CJK TC", "Noto Sans CJK SC", "Noto Sans TC", "Noto Sans CJK JP", "Noto Sans CJK KR", "Microsoft JhengHei", "PingFang HK", "PingFang TC", "LiHei Pro Medium", "Apple LiGothic Medium", "Heiti TC", "MingLiU_HKSCS", "MingLiU_HKSCS-ExtB", "PMingLiU", "PMingLiU-ExtB", "MingLiU", "MingLiU-ExtB", "LiSong Pro Light", "Apple LiSung Light"; } span[lang=zh-TW] { font-family: "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans SC", "Source Han Sans K", "Source Han Sans", "Noto Sans CJK TC", "Noto Sans CJK SC", "Noto Sans SC", "Noto Sans CJK JP", "Noto Sans CJK KR", "Microsoft JhengHei", "PingFang TC", "LiHei Pro Medium", "Apple LiGothic Medium", "Heiti TC", "PMingLiU", "PMingLiU-ExtB", "MingLiU", "MingLiU-ExtB", "MingLiU_HKSCS", "MingLiU_HKSCS-ExtB", "LiSong Pro Light", "Apple LiSung Light"; } span[lang=ja] { font-family: Arial, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', Osaka, メイリオ, Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif; } span[lang=ko] { font-family: "Source Han Sans K", "Source Han Sans KR", "Source Han Sans", "Source Han Sans SC", "Source Han Sans TC", "Noto Sans CJK KR", "Noto Sans KR", "Noto Sans CJK TC", "Noto Sans CJK SC", "Noto Sans CJK JP", "Malgun Gothic", "Dotum", "AppleGothic", "Baekmuk Gulim", "UnDotum", "Batang", "AppleMyungjo", "UnBatang"; } /* 折叠表格的定位处理 */ body:not(.ns--1):not(.ns--2) .mw-collapsible:not(.mw-collapsed) tr:first-child > :last-child { position: relative; } body:not(.ns--1):not(.ns--2) .mw-collapsible:not(.mw-collapsed) tr:first-child > :last-child .mw-collapsible-toggle:not(:last-child) { position: absolute; right: .1em; top: 0; float: none; }