MediaWiki:Monobook.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.
/* <source lang="css"> */
/* Display "Bách khoa toàn thư mở Wikipedia" */
#siteSub {
display: inline;
font-size: 92%;
font-weight: normal;
}
#bodyContent #siteSub a {
color: #000;
text-decoration: none;
background-color: transparent;
background-image: none;
padding-right: 0;
}
/* Bold 'sửa đổi' link to encourage newcomers */
#ca-edit a {
background:#002BB8 !important;
color:white !important;
font-weight: bold !important;
}
#ca-edit a:hover{
background:inherit!important;
color:inherit!important;
}
/* Display "User $1, you are already logged in!"
([[MediaWiki:Alreadyloggedin]]) in red and bold */
div.alreadyloggedin { color: red; font-weight: bold; }
@media print {
/* Do not print edit link in templates using Template:Ed
Do not print certain classes that shouldn't appear on paper */
.editlink, .noprint, .metadata, .dablink { display: none }
}
#pt-login {
font-weight: bold;
font-size: 110%;
}
form#userlogin, form#userlogin2 {
float: left;
padding: 1em 1em .7em 1em;
background-color: #ffffe6;
border: 2px solid #fc6;
color: #000;
margin-right: 2em;
}
form#userlogin table {
float: left;
background-color: #ffffe6;
color: #000;
display: block;
}
p.error {
font-weight: bold;
}
/* Hide extra edit tools when uploading */
form#upload div#edittools {
display: none;
}
/* Class styles */
/* .toccolours added here because version in
monobook/main.css wasn't being used by the print style */
.toccolours {
border:1px solid #aaaaaa;
background-color:#f9f9f9;
padding:5px;
font-size: 95%;
}
#p-nav h5 {
display: none;
}
.portlet a {
text-decoration: none;
}
.portlet a:hover {
text-decoration: underline;
}
#p-nav .pBody {
padding-right: 0;
}
#p-nav a {
display: block;
width: 100%;
}
/* p {
margin: 1em 0;
} */
/* Remove padding from external links displayed without icon */
#bodyContent .plainlinks a {padding: 0px !important}
/* Special characters list below edit window works better without underlining */
#editpage-specialchars a { width: 1em; text-decoration: none; }
#editpage-specialchars a:hover { text-decoration: underline; }
/* Provide special icons on the titles of pages of certain namespaces. Basically, we'll want to have a different icon for each namespace, except for the main one. The icons are culled from various parts of the interface and a few different MediaWiki websites. */
h1.firstHeading {
background-position: bottom right; background-repeat: no-repeat;
}
/* Special pages */
body.ns--1 h1.firstHeading {
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/6/68/Nuvola_apps_package_development.png/16px-Nuvola_apps_package_development.png');
}
/* User pages */
body.ns-2 h1.firstHeading, body.ns-3 h1.firstHeading {
background-image: url('//upload.wikimedia.org/wikipedia/commons/1/1c/User.gif');
}
/* Project pages */
body.ns-4 h1.firstHeading, body.ns-5 h1.firstHeading {
background-image: url('/favicon.ico');
}
/* Image pages - we need a better icon for this */
body.ns-6 h1.firstHeading, body.ns-7 h1.firstHeading {
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/2/22/Nuvola_apps_package_graphics.png/16px-Nuvola_apps_package_graphics.png');
}
/* MediaWiki pages */
body.ns-8 h1.firstHeading, body.ns-9 h1.firstHeading {
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/1/15/WikiThanks.png/16px-WikiThanks.png');
}
/* Template pages */
body.ns-10 h1.firstHeading, body.ns-11 h1.firstHeading {
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Nuvola_apps_kig.png/16px-Nuvola_apps_kig.png');
}
/* Help pages */
body.ns-12 h1.firstHeading, body.ns-13 h1.firstHeading {
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/d/d8/Nuvola_apps_ktip.png/16px-Nuvola_apps_ktip.png');
}
/* Category pages */
body.ns-14 h1.firstHeading, body.ns-15 h1.firstHeading {
background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/3/32/Nuvola_filesystems_folder.png/16px-Nuvola_filesystems_folder.png');
}
/* Stylesheet-based image filter */
*.filter-images img {
display: none !important;
}
*.filter-images *.show-image img {
display: block !important;
}
/* Stylesheet-based link filter */
*.filter-links a.external, *.filter-links span.urlexpansion {
display: none !important;
}
*.filter-links *.show-link a.external {
display: inline !important;
}
/* Masthead on [[Trang Chính]] */
h1#masthead {
display: block !important;
border-bottom-style: none;
float: right;
font-size: 150%;
position: absolute;
right: 2%;
top: .25em;
}
h1#masthead-down {
display: block !important;
border-bottom-style: none;
float: right;
font-size: 150%;
position: absolute;
right: 2%;
top: 1.25em;
}
/* Fit searchbox buttons on one line */
input.searchButton {padding-left: 0.25em; padding-right: 0.25em}
/* ĐỔI MÀU NỀN CỦA TRANG TÙY THEO KHÔNG GIAN TÊN
Màu của các trang thảo luận không đổi. */
#content,
#p-cactions li,
#p-cactions li a { background:#FFE }
/* Đặc biệt */
.ns--1 #content,
.ns--1 #p-cactions li,
.ns--1 #p-cactions li a { background:#F8FCFF }
/* chính */
.ns-0 * #content,
.ns-0 * #p-cactions li,
.ns-0 * #p-cactions li a { background:#FFF }
/* Thành viên */
.ns-2 * #content,
.ns-2 * #p-cactions li,
.ns-2 * #p-cactions li a { background:#FFF }
/* Wikipedia */
.ns-4 * #content,
.ns-4 * #p-cactions li,
.ns-4 * #p-cactions li a { background:#F4F4F4 }
/* Tập tin */
.ns-6 * #content,
.ns-6 * #p-cactions li,
.ns-6 * #p-cactions li a { background:#FFF }
/* MediaWiki */
.ns-8 * #content,
.ns-8 * #p-cactions li,
.ns-8 * #p-cactions li a { background:#EEF }
/* Tiêu bản */
.ns-10 * #content,
.ns-10 * #p-cactions li,
.ns-10 * #p-cactions li a { background:#FFF }
/* Trợ giúp */
.ns-12 * #content,
.ns-12 * #p-cactions li,
.ns-12 * #p-cactions li a { background:#F8FCFF } /* Test, voir [[Wikipédia:Le Bistro/4 octobre 2007]] */
/* Thể loại */
.ns-14 * #content,
.ns-14 * #p-cactions li,
.ns-14 * #p-cactions li a { background:#FFF }
/* Tác gia */
.ns-102 * #content,
.ns-102 * #p-cactions li,
.ns-102 * #p-cactions li a { background:#FFF }
/* Làm cho sitenotice trong suốt */
#mw-dismissable-notice {
background: transparent !important
}
/* </source> */