MediaWiki:Gadget-Site.css
Cache: Sau khi lưu biểu mẫu này, phải xóa bộ nhớ đệm (cache) của trình duyệt để những thay đổi hiện ra:
Firefox, Chrome, Safari, Opera — Shift Internet Explorer — Ctrl Konqueror —
Nếu bạn viết mã JavaScript, chú ý đọc hướng dẫn để tránh mâu thuẫn với mã mặc định của mạng.
/*********
** Những bản mẫu thường dùng nhất
*********/
/* màu sắc chung cho bản mẫu đầu đề Bản mẫu:Đầu đề và MediaWiki:Proofreadpage */
table.headertemplate, table.footertemplate, .subheadertemplate {
border: 1px solid #ADA;
background-color: #E4F2E4;
}
/* Bản mẫu đầu đề thật */
table.headertemplate, table.translationheadertemplate, .subheadertemplate, .processheadertemplate, .authortemplate {
width: 100%;
margin-bottom: 4px;
}
/* Liên kết tới trang trước và trang sau */
.gen_header_backlink, .gen_header_forelink {
width: 20%;
font-size: 0.9em;
line-height: normal;
}
.gen_header_backlink {
text-align: left;
}
.gen_header_forelink {
text-align: right;
}
/* Dòng tựa đề */
.gen_header_title
{
width: 60%;
text-align:center;
}
/* Dòng ghi chú */
table.translation_notes, .process_notes, .author_notes {
width: 100%;
font-size: 0.9em;
line-height: 1.4;
margin-bottom: 4px; /* a bit of space before body-text; 1em might be better... */
}
table.header_notes {
border-bottom: 1px solid #A0A0A0;
background-color: #FAFAFF;
}
/* Từng bản mẫu đầu đề cụ thể */
/* Bản mẫu Đầu đề, xem mã ProofreadPage ở trên */
/* Bản mẫu:Tác gia */
.authortemplate {
border: 1px solid #BEA2A2;
background-color: #E4D8D8;
}
.author_notes {
border-bottom: 1px solid #A88;
background-color: #FFFBFC;
}
.author_seealso { /* Remove this if we change to Plain_sister usage */
float: right;
padding: 2px;
margin: 0 0 0.5em 1em;
border: 1px solid #CCC;
}
/* Bản mẫu Đầu đề quy trình */
.processheadertemplate {
border: 1px solid #966;
background-color: #DCA;
}
.process_notes {
border-bottom: 1px solid #A88;
background-color: #FFFBFC;
}
/* Bản mẫu Thông tin văn kiện */
.textinfo {
background-color: #B0E0A0;
border: 1px solid #0E8605;
margin: 1px;
padding: 1px;
}
.textinfo th {
color: #FFFFFF !important;
background-color: #0E8605;
font-size: 1.2em !important;
font-weight: normal;
padding: 5px 5px 5px 5px !important;
text-align: center;
}
.textinfo tr {
vertical-align: top !important;
}
.textinfo td.col1 {
color: #000000;
background-color: #6EF7A7;
font-weight: bold;
padding: 3px 5px 3px 5px !important;
text-align: right;
}
.textinfo td.col2 {
background-color: #C6FFC6;
padding: 3px 5px 3px 5px !important;
text-align: left;
}
/* Bản mẫu Đầu đề biên dịch */
table.translationheadertemplate {
border: 1px solid #FDD017;
background-color: #FFB;
}
table.translation_notes {
border-bottom: 1px solid #FDD017;
background-color: #FFF8DC;
}
/*********
** Không gian tên Trang
*********/
/* trang nhúng */
.lefttext p {
text-indent: 2em;
}
.lefttext .poem p {
text-indent: 0;
}
.lefttext .tiInherit p {
text-indent: inherit;
}
.lefttext {
width: 33em;
text-align: justify;
margin-left: 5em;
}
.leftoutdent {
padding-left: 2em;
text-indent: -2em;
max-width: 33em;
margin-left: 5em;
}
/* tương tự với tiInherit ở trên; bọc một cái gì đó với div của class này và thiết lập độ cao hàng; thẻ poem cũng vậy */
.lhInherit p {
line-height: inherit;
}
.quote {
color: #2F4F4F; /* darkslategray (not a valid color name) */
margin-left: 2em;
margin-right: 2em;
}
/* Căn đều hai bên, thu lại, và thụt đầu hàng trong không gian tên Trang */
.pagetext {
position: relative;
max-width: 36em;
text-align: justify;
}
.pagetext p {
text-indent: 2em
}
.pagetext blockquote {
margin: 0.5em 0;
}
/* đánh số trang cũng nằm trong chiều rộng của .pagetext */
#pageheader {
width: 36em !important;
margin: .2em 0 !important;
}
/* thanh chất lượng cũng giới hạn trong chiều rộng của .pagetext */
.prp-page-qualityheader {
max-width: 36em;
}
/* Ghi chú lề trái trong không gian Trang */
body.ns-104 .wst-sidenote-left {
position: absolute;
left:0;
width:6em;
padding-right:1em;
text-indent:0;
text-align:left;
}
/* Ghi chú lề phải trong không gian Trang */
body.ns-104 .wst-sidenote-right {
position:absolute;
right:0;
width:6em;
padding-left:1em;
text-indent:0;
text-align:left;
}
/* Làm cho đoạn đầu tiên trong Trang: không vào hàng */
.pagetext > .mw-parser-output > p:first-of-type {
text-indent:0;
}
/* ProofreadPage */
.quality4 { background-color: #90ff90 !important; }
.quality3 { background-color: #ffe867 !important; }
.quality2 { background-color: #b0b0ff !important; }
.quality1 { background-color: #ffa0a0 !important; }
.quality0 { background-color: #ddd !important; }
.qualitye { background-color: #ffffff !important; }
.ns-104 .mw-editsection {
visibility: hidden;
}
/* không nằm trong ghi chú */
div#remarks a.quality4 { background: #ffffff; }
div#remarks a.quality3 { background: #ffffff; }
div#remarks a.quality2 { background: #ffffff; }
div#remarks a.quality1 { background: #ffffff; }
div#remarks a.quality0 { background: #ffffff; }
div#remarks a.qualitye { background: #ffffff; }
/* mặc định gạch dưới giả trong pr_typos */
.coquille {
border-bottom: 1px dashed #666;
}
/* thông báo lỗi chính tả ở bên phải thanh Chất lượng */
body.ns-104 span#corr-info {
float: right !important;
}
/*
* Xử lý tập tin ảnh (IMG) thông quan thiết lập lớp
*/
img.floatright {
float: right !important;
}
img.floatleft {
float: left !important;
}
/* Thay biểu tượng liên kết ngoài thành biểu tượng Adobe
* trong trình duyệt có hỗ trợ dạng lựa chọn CSS này, như Mozilla và Opera
*/
.mw-body a[href$=".pdf"].external, .mw-body a[href*=".pdf?"].external, .mw-body a[href*=".pdf#"].external, .mw-body a[href$=".PDF"].external, .mw-body a[href*=".PDF?"].external, .mw-body a[href*=".PDF#"].external, div#mw_content a[href$=".pdf"].external, div#mw_content a[href*=".pdf?"].external, div#mw_content a[href*=".pdf#"].external, div#mw_content a[href$=".PDF"].external, div#mw_content a[href*=".PDF?"].external, div#mw_content a[href*=".PDF#"].external {
background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right;
/* @noflip */
padding-right: 18px;
}
/* Tương tự như trên
* (Bản mẫu:PDFlink). Hoạt động trong IE
*/
.mw-body span.PDFlink a, div#mw_content span.PDFlink a {
background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right;
/* @noflip */
padding-right: 18px;
}
/* @end */