「MediaWiki:Common.css」修訂間的差異
出自耶穌台灣
第16行: | 第16行: | ||
<source lang="css"> */ | <source lang="css"> */ | ||
table.bible { | table.bible { | ||
− | border: 0; | + | border:0; |
− | border-collapse: collapse; | + | border-collapse:collapse; |
− | margin: | + | margin:0.5em; |
} | } | ||
table.bible th, table.bible td { | table.bible th, table.bible td { | ||
− | border: 0; | + | border:0; |
− | border-collapse: collapse; | + | border-collapse:collapse; |
− | line-height: 150%; | + | line-height:150%; |
− | padding: 0 0.2em 0 0.2em; | + | padding:0 0.2em 0 0.2em; |
− | vertical-align: top; | + | vertical-align:top; |
} | } | ||
table.bible sup { | table.bible sup { | ||
− | vertical-align: text-top; | + | vertical-align:text-top; |
} /* | } /* | ||
</source> */ | </source> */ | ||
第37行: | 第37行: | ||
<source lang="css"> */ | <source lang="css"> */ | ||
table.wikitable { | table.wikitable { | ||
− | background: #f9f9f9; | + | background:#f9f9f9; |
− | border: 1px #aaaaaa solid; | + | border:1px #aaaaaa solid; |
− | border-collapse: collapse; | + | border-collapse:collapse; |
− | margin: 1em 1em 1em 0; | + | margin:1em 1em 1em 0; |
} | } | ||
table.wikitable th, table.wikitable td { | table.wikitable th, table.wikitable td { | ||
− | border: 1px #aaaaaa solid; | + | border:1px #aaaaaa solid; |
− | padding: 0.2em; | + | padding:0.2em; |
} | } | ||
table.wikitable th { | table.wikitable th { | ||
− | background: #f2f2f2; | + | background:#f2f2f2; |
− | text-align: center; | + | text-align:center; |
} | } | ||
table.wikitable caption { | table.wikitable caption { | ||
− | margin-left: inherit; | + | margin-left:inherit; |
− | margin-right: inherit; | + | margin-right:inherit; |
} | } | ||
/* | /* | ||
第62行: | 第62行: | ||
<source lang="css"> */ | <source lang="css"> */ | ||
table.remark { | table.remark { | ||
− | border: 0; | + | border:0; |
− | border-collapse: collapse; | + | border-collapse:collapse; |
− | margin: | + | margin:0.5em; |
} | } | ||
table.remark th, table.remark td { | table.remark th, table.remark td { | ||
− | border: 0; | + | border:0; |
− | border-collapse: collapse; | + | border-collapse:collapse; |
− | line-height: 150%; | + | line-height:150%; |
− | padding: 0 0.2em 0 0.2em; | + | padding:0 0.2em 0 0.2em; |
− | vertical-align: top; | + | vertical-align:top; |
} | } | ||
table.remark sup { | table.remark sup { | ||
− | vertical-align: text-top; | + | vertical-align:text-top; |
} | } | ||
table.remark th { | table.remark th { | ||
− | padding: 0; | + | padding:0; |
− | text-align: right; | + | text-align:right; |
− | vertical-align: text-top; | + | vertical-align:text-top; |
− | width: 60px; | + | width:60px; |
− | font-weight: normal; | + | font-weight:normal; |
} /* | } /* | ||
</source> */ | </source> */ | ||
第90行: | 第90行: | ||
<source lang="css"> */ | <source lang="css"> */ | ||
sup.comment { | sup.comment { | ||
− | color: #0000FF; | + | color:#0000FF; |
− | font-size: 0.75em; | + | font-size:0.75em; |
} | } | ||
sup.phonetic { | sup.phonetic { | ||
− | color: #0000FF; | + | color:#0000FF; |
− | font-size: 0.7em; | + | font-size:0.7em; |
} | } | ||
/* | /* | ||
第105行: | 第105行: | ||
<source lang="css"> */ | <source lang="css"> */ | ||
span.proper_name { | span.proper_name { | ||
− | margin: 0 1px 0 1px; | + | margin:0 1px 0 1px; |
border-bottom-style:solid; | border-bottom-style:solid; | ||
border-width:1px; | border-width:1px; | ||
} | } | ||
span.book_name { | span.book_name { | ||
− | margin: 0 1px 0 1px; | + | margin:0 1px 0 1px; |
border-bottom-style:dotted; | border-bottom-style:dotted; | ||
border-width:1px; | border-width:1px; | ||
第121行: | 第121行: | ||
<source lang="css"> */ | <source lang="css"> */ | ||
.at_symbol { | .at_symbol { | ||
− | background: url(" | + | background:url("../images/at_symbol.png") no-repeat; |
− | font-size: 0px; | + | font-size:0px; |
− | padding: 11px; | + | padding:11px; |
− | vertical-align: middle; | + | vertical-align:middle; |
} | } | ||
@media print { | @media print { | ||
.at_symbol { | .at_symbol { | ||
− | background: #fff; | + | background:#fff; |
− | font-size: 1em; | + | font-size:1em; |
− | padding: 0; | + | padding:0; |
− | vertical-align: text-bottom; | + | vertical-align:text-bottom; |
} | } | ||
} /* | } /* | ||
第140行: | 第140行: | ||
*使用範例: [[Template:馬蒙]] | *使用範例: [[Template:馬蒙]] | ||
<source lang="css"> */ | <source lang="css"> */ | ||
− | .screenonly { display: inline; } | + | .screenonly { display:inline; } |
− | .printonly { display: none; } | + | .printonly { display:none; } |
@media print { | @media print { | ||
− | .screenonly { display: none; } | + | .screenonly { display:none; } |
− | .printonly { display: inline; } | + | .printonly { display:inline; } |
+ | } /* | ||
+ | </source> */ | ||
+ | |||
+ | /* | ||
+ | ===Mainpage Section Style=== | ||
+ | <source lang="css"> */ | ||
+ | table.MSection { | ||
+ | border-spacing:8px; | ||
+ | margin:0; | ||
+ | width:100%; | ||
+ | } | ||
+ | table.MSection td { | ||
+ | background-color:#faf5ff; | ||
+ | border:1px solid #ddcef2; | ||
+ | color:#000; | ||
+ | margin:0; | ||
+ | text-align:left; | ||
+ | vertical-align:top; | ||
+ | width:50%; | ||
+ | } | ||
+ | table.MSection td h2, | ||
+ | table.MSection td.MSection_main div h2 { | ||
+ | background-color:#ddcef2; | ||
+ | border:1px solid #a3bfb1; | ||
+ | font-family:sans-serif; | ||
+ | font-size:120%; | ||
+ | font-weight:bold; | ||
+ | margin:0; | ||
+ | padding:0.2em 0.4em; | ||
+ | text-align:left; | ||
+ | } | ||
+ | |||
+ | table.MSection td.MSection_main div { | ||
+ | background-color:#faf5ff; | ||
+ | border:1px solid #ddcef2; | ||
+ | margin:0; | ||
+ | padding:0.5em; | ||
+ | } | ||
+ | table.MSection td.MSection_main div h2 { | ||
+ | color:#d80000; | ||
+ | } | ||
+ | |||
+ | table.MSection td.MSection_purple { | ||
+ | padding:0.5em; | ||
+ | } | ||
+ | |||
+ | table.MSection td.MSection_green { | ||
+ | background-color:#f5fffa; | ||
+ | border:1px solid #cef2e0; | ||
+ | padding:0.5em; | ||
+ | } | ||
+ | table.MSection td.MSection_green h2 { | ||
+ | background-color:#cef2e0; | ||
+ | border:1px solid #a3bfb1; | ||
+ | } | ||
+ | |||
+ | table.MSection td.MSection_blue { | ||
+ | background-color:#f5faff; | ||
+ | border:1px solid #cedff2; | ||
+ | padding:0.5em; | ||
+ | } | ||
+ | table.MSection td.MSection_blue h2 { | ||
+ | background-color:#cedff2; | ||
+ | border:1px solid #a3b0bf; | ||
} /* | } /* | ||
</source> */ | </source> */ |
於 2011年3月18日 (五) 16:05 的修訂
/* 此處的 CSS 將應用於所有的面板 */
/*
===字型===
<source lang="css"> */
.kaiti, .divine {
font-family:標楷體, 文鼎PL中楷;
}
.divine {
color:blue;
font-weight:bold;
} /*
</source> */
/*
===bible 表格===
<source lang="css"> */
table.bible {
border:0;
border-collapse:collapse;
margin:0.5em;
}
table.bible th, table.bible td {
border:0;
border-collapse:collapse;
line-height:150%;
padding:0 0.2em 0 0.2em;
vertical-align:top;
}
table.bible sup {
vertical-align:text-top;
} /*
</source> */
/*
===wikitable表格 ===
[http://age.tw/MediaWiki_Config_2]
<source lang="css"> */
table.wikitable {
background:#f9f9f9;
border:1px #aaaaaa solid;
border-collapse:collapse;
margin:1em 1em 1em 0;
}
table.wikitable th, table.wikitable td {
border:1px #aaaaaa solid;
padding:0.2em;
}
table.wikitable th {
background:#f2f2f2;
text-align:center;
}
table.wikitable caption {
margin-left:inherit;
margin-right:inherit;
}
/*
</source> */
/*
===附註表格===
[[Template:註|註]]
<source lang="css"> */
table.remark {
border:0;
border-collapse:collapse;
margin:0.5em;
}
table.remark th, table.remark td {
border:0;
border-collapse:collapse;
line-height:150%;
padding:0 0.2em 0 0.2em;
vertical-align:top;
}
table.remark sup {
vertical-align:text-top;
}
table.remark th {
padding:0;
text-align:right;
vertical-align:text-top;
width:60px;
font-weight:normal;
} /*
</source> */
/*
===注解樣式===
[[Template:註|註]]; [[Template:注音|注音]]
<source lang="css"> */
sup.comment {
color:#0000FF;
font-size:0.75em;
}
sup.phonetic {
color:#0000FF;
font-size:0.7em;
}
/*
</source> */
/*
===名詞===
[[Template:專名|專名]]; [[Template:書名|書名]]
<source lang="css"> */
span.proper_name {
margin:0 1px 0 1px;
border-bottom-style:solid;
border-width:1px;
}
span.book_name {
margin:0 1px 0 1px;
border-bottom-style:dotted;
border-width:1px;
}
/*
</source> */
/*
===@ symbol===
<source lang="css"> */
.at_symbol {
background:url("../images/at_symbol.png") no-repeat;
font-size:0px;
padding:11px;
vertical-align:middle;
}
@media print {
.at_symbol {
background:#fff;
font-size:1em;
padding:0;
vertical-align:text-bottom;
}
} /*
</source> */
/*
===列印圖片文字===
*使用範例: [[Template:馬蒙]]
<source lang="css"> */
.screenonly { display:inline; }
.printonly { display:none; }
@media print {
.screenonly { display:none; }
.printonly { display:inline; }
} /*
</source> */
/*
===Mainpage Section Style===
<source lang="css"> */
table.MSection {
border-spacing:8px;
margin:0;
width:100%;
}
table.MSection td {
background-color:#faf5ff;
border:1px solid #ddcef2;
color:#000;
margin:0;
text-align:left;
vertical-align:top;
width:50%;
}
table.MSection td h2,
table.MSection td.MSection_main div h2 {
background-color:#ddcef2;
border:1px solid #a3bfb1;
font-family:sans-serif;
font-size:120%;
font-weight:bold;
margin:0;
padding:0.2em 0.4em;
text-align:left;
}
table.MSection td.MSection_main div {
background-color:#faf5ff;
border:1px solid #ddcef2;
margin:0;
padding:0.5em;
}
table.MSection td.MSection_main div h2 {
color:#d80000;
}
table.MSection td.MSection_purple {
padding:0.5em;
}
table.MSection td.MSection_green {
background-color:#f5fffa;
border:1px solid #cef2e0;
padding:0.5em;
}
table.MSection td.MSection_green h2 {
background-color:#cef2e0;
border:1px solid #a3bfb1;
}
table.MSection td.MSection_blue {
background-color:#f5faff;
border:1px solid #cedff2;
padding:0.5em;
}
table.MSection td.MSection_blue h2 {
background-color:#cedff2;
border:1px solid #a3b0bf;
} /*
</source> */