「MediaWiki:Mobile.css」:修訂間差異
imported>DC (建立內容為「→此處的 CSS 將影響使用手機版的使用者: →介面: .talk { display: none!important; } ul.minerva-user-menu-list > li.toggle-list-item > a.mw-u…」的新頁面) |
(無差異)
|
於 2021年6月26日 (六) 22:14 的修訂
/* 此處的 CSS 將影響使用手機版的使用者 */
/* 介面 */
.talk { display: none!important; }
ul.minerva-user-menu-list > li.toggle-list-item > a.mw-ui-icon-minerva-userTalk { display:none!important; }
li.page-actions-menu__list-item > button.mw-ui-icon-minerva-download { display:none!important; }
.sarcasm { color: #A4A4A4; }
/* 提示 */
#spoiler { border-top: 1px solid #a2a9b1; border-bottom: 1px solid #a2a9b1; }
.notice { text-align: justify; margin: 1em; padding: 0.2em; }
/* 主條目(模板:More/Main/Further) */
.hatnote, .dablink, .rellink {
padding: 5px 7px;
color: #54595d;
font-size: 0.8em;
/*background-color: #f8f9fa;*/
margin-bottom: 1px;
overflow: hidden;
font-style: italic;
}
/* 模板文檔 */
div.template-documentation { clear: both; margin: 1em 0 0 0; border: 1px solid #a2a9b1; background-color: #ecfcf4; padding: 1em;}
/* 法律內文列表格式 */
span.legalTitle { font-size: 1.5em; font-weight: normal; line-height: 1.3; margin: 1em 0 0.25em 0; padding: 0; border-bottom: 1px solid #a2a9b1; font-family: 'Linux Libertine', 'Georgia', 'Times', serif; display: block; }
span.legalSubtitle { font-size: 1.2em; font-weight: bold; line-height: 1.6; display: block; margin: 0.3em 0 0; padding: 0.5em 0 0; }
ol.legal > li > ol { counter-reset: subsection; font-size: inherit; }
ol.legal > li > ol > li { list-style: none; position: relative; font-size: inherit; }
ol.legal > li > ol > li:before { counter-increment: subsection; content: "(" counter(subsection) ") "; left: -2em; font-size: inherit; }
ol.legal > li > ol > li > ol { counter-reset: subsubsection; font-size: inherit; }
ol.legal > li > ol > li > ol > li { list-style: none; position: relative; font-size: inherit; }
ol.legal > li > ol > li > ol > li:before { counter-increment: subsubsection; content: "(" counter(subsubsection, lower-roman) ") "; left: -2em; font-size: inherit; }
/* Tables */
table{display: table!important;border-collapse: separate;box-sizing:border-box;}
table:not(.lineGraph) > td.darkbg, th.darkbg{color: #c1c1c1;}
table:not(.lineGraph) > tr:nth-child(even) {background: #EEE}
.darkbg{color: #c1c1c1;}
table.plainbg:not(.navbox):not(.lineGraph), table.plainbg:not(.navbox):not(.lineGraph) tr{background: transparent;}
/* Navbox */
table.navbox th {
position: relative;
text-align: center;
}
table.navbox th span.navbox-bar {
position: absolute;
left: 5px;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
font-size: 85%;
font-weight: normal;
}
table.mw-collapsible.navbox th span.mw-collapsible-toggle {
position: absolute;
right: 5px;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
table.mw-collapsible.navbox tr:not(:first-child) td {
font-size: 85%;
padding: 0 10px;
}
table.mw-collapsible.navbox tr:not(:first-child) td:first-child {
text-align: center;
width: 7.5%;
}
table.navbox ul:not(.normal) {
margin: 0;
display: inline;
padding: 0;
}
table.navbox ul:not(.normal) ul:not(.normal):before {
content:"(";
}
table.navbox ul:not(.normal) ul:not(.normal):after {
content:")";
}
table.navbox ul:not(.normal) li {
display: inline-block;
margin: 0;
}
table.navbox{border:1px solid #024A64;}
table.navbox ul:not(.normal) li:not(:last-child):after{
content:" ·";
font-weight:bold;
}
/* 資訊板 */
table.infobox {
border:1px solid #a2a9b1;
margin-bottom:0.5em;
margin-left:1em;
padding:0.2em;
float:right;
clear:right;
}
table.infobox th, table.infobox td {
padding: 1px 10px;
}
table.infobox table{
display: inline-table;
width: 100%!important;
}
/* 警告提示 */
.rellink {
padding-left:1.6em;
margin-bottom:0.5em;
}
table.ambox {
margin:0;
border:1px solid #a2a9b1;
border-left:10px solid #36c;
background:#f8f9fa;
}
table.mbox-small-left {
margin:4px 1em 4px 0;
width:238px;
border-collapse:collapse;
font-size:88%;
line-height:1.25em;
}
td.mbox-image {
border:none;
padding:2px 0 2px 0.9em;
text-align:center;
}
.ambox td.mbox-image {
padding:2px 0 2px 0.5em;
}
th.mbox-text, td.mbox-text {
border:none;
padding:0.25em 0.9em;
width:100%;
}
.ambox th.mbox-text, .ambox td.mbox-text {
padding:0.25em 0.5em;
}
table.ambox-content {
border-left:10px solid #f28500;
}
/* NoArticleText */
div.hint-row{
display: inline-block;
}
div.hint-icon-cell{
display: inline-block;
text-align: center;
width: 100%;
padding: 2em 0;
}
div.hint-caption-table{
display: inline-block;
text-align: justify;
width: 100%;
}
/* Responsive Button */
div.ResponsiveBtn{
display: inline-block;
padding: 8px 16px;
margin: 5px 10px;
background: #3366CC;
font-size: 105%;
border-radius: 5px;
}
div.ResponsiveBtn, div.ResponsiveBtn a{
color: #FFF!important;
}
div.plainlinks{
display: block;
text-align: center;
}
div.ResponsiveBtn:hover{
background: #447FF5;
}
/* Namespace headings */
.ns-828 #content { background: #cce6ff; }
.ns-28 #content { background: #ffffe6; }
.ns-10 #content { background: #f3e6ff; }
.ns-8 #content { background: #ffddcc; }
.ns-4 #content { background: #ffe6ee; }
/* Offdoc (NS-28) headings */
.content div.h2,
.content div.h3,
.content div.h4,
.content div.h5 {
cursor: pointer;
position: relative;
clear: left;
padding: 0.5em 0;
line-height: 1.3;
word-wrap: break-word;
word-break: break-word;
}
.content div.h2 {
border-bottom: 1px solid #eaecf0;
margin-bottom: 0.5em;
font-family: 'Linux Libertine','Georgia','Times',serif;
font-size: 1.5em;
width: 100%;
}
.content div.h3 {
font-size: 1.2em;
font-weight: bold;
}
.content div.h4 {
font-weight: bold;
}
/* RottenLinks Table */
.mw-special-RottenLinks table.mw-datatable { width: 100%; word-wrap: break-word; table-layout: fixed; }
.mw-special-RottenLinks table.mw-datatable thead th:nth-child(2), .mw-special-RottenLinks table.mw-datatable thead th:nth-child(3) {
width: 100px;
}