MediaWiki:Vector.css

Tủ sách mở Wikibooks

Chú ý: Sau khi lưu trang, có thể bạn sẽ phải xóa bộ nhớ đệm của trình duyệt để xem các thay đổi.

  • Firefox / Safari: Nhấn giữ phím Shift trong khi nhấn Tải lại (Reload), hoặc nhấn tổ hợp Ctrl-F5 hay Ctrl-R (⌘R trên Mac)
  • Google Chrome: Nhấn tổ hợp Ctrl-Shift-R (⇧⌘R trên Mac)
  • Internet Explorer / Edge: Nhấn giữ phím Ctrl trong khi nhấn Làm tươi (Refresh), hoặc nhấn tổ hợp Ctrl-F5
  • Opera: Nhấn tổ hợp Ctrl-F5.
/* Giấu một số thông tin ra khỏi trang chính */
body.page-Trang_Chính #deleteconfirm,
body.page-Trang_Chính #t-cite,
body.page-Trang_Chính #footer-info-lastmod,
body.page-Trang_Chính #siteSub,
body.page-Trang_Chính h1.firstHeading {
	display: none !important;
}

body.page-Trang_Chính #mp-topbanner,
body.page-Trang_Chính .mw-body-subheader{
	margin-top: 0 !important;
}

/* Giấu tựa trang tại [[Trang Chính]] */
body.mainPage #lastmod,
body.mainPage #siteSub,
body.mainPage #contentSub,
body.mainPage h1.firstHeading {
	display: none !important;
}

#coordinates {
	position: absolute;
	top: 0;
	right: 0;
	float: right;
	margin: 0;
	padding: 0;
	line-height: 1.5em;
	text-align: right;
	text-indent: 0;
	font-size: 85%;
	text-transform: none;
	white-space: nowrap;
}

/* Đặt các biểu tượng ở phía trên bên phải, dùng trong [[Bản mẫu:pp-meta]] */
div.topicon {
    position: absolute; 
	top: -3em;
	margin-right: -10px;
	display: block !important;
}

.ns-0 div.topicon,
.ns-1 div.topicon,
.ns-104 div.topicon,
.ns-105 div.topicon,
.ns-106 div.topicon,
.ns-107 div.topicon {
	top: -2em;
}

.ns-0 #coordinates,
.ns-1 #coordinates,
.ns-104 div.topicon,
.ns-105 div.topicon,
.ns-106 div.topicon,
.ns-107 div.topicon {
	top: 0em;
}

/* Đường vạch ngang trong phần Gõ tiếng Việt */
#mw-panel > .portal > .body hr {
	background: url(/w/skins/Vector/images/portal-break.png) no-repeat right top;
	border-style: none;
}

/* In xiên [[MediaWiki:Editpage-head-copy-warn]] */
.editpage-head-copywarn {
    font-style: italic;
}

/* Phông chữ serif tiếng Việt cho tiêu đề h1, h2 */
.mw-body #firstHeading,
.mw-body h1,
.mw-body h2 {
    font-family:  "Palatino Linotype", "Linux Libertine", "Times New Roman", serif;
}

/* Sửa các lỗi cho skin Vectơ */
	
	/* Nút Theo dõi / Ngừng theo dõi */
	/* Các trình duyệt hỗ trợ chuyển màu cũng hỗ trợ SVG. */
	body:not(.ns-0):not(.ns-104):not(.ns-106) #ca-unwatch.icon a:not(.loading):before {
		/* [[Tập tin:Unwatch-icon lime.svg]] */
		/* @embed */
		background-image: -webkit-linear-gradient(transparent,transparent), url(//upload.wikimedia.org/wikipedia/commons/d/d8/Unwatch-icon_lime.svg);
		background-image: linear-gradient(transparent,transparent), url(//upload.wikimedia.org/wikipedia/commons/d/d8/Unwatch-icon_lime.svg);
	}
	body:not(.ns-0):not(.ns-104):not(.ns-106) #ca-watch.icon a:not(.loading):not(:hover):not(:focus):before {
		/* [[Tập tin:Watch-icon lime.svg]] */
		/* @embed */
		background-image: -webkit-linear-gradient(transparent,transparent), url(//upload.wikimedia.org/wikipedia/commons/1/1d/Watch-icon_lime.svg);
		background-image: linear-gradient(transparent,transparent), url(//upload.wikimedia.org/wikipedia/commons/1/1d/Watch-icon_lime.svg);
	}
	body:not(.ns-0):not(.ns-104):not(.ns-106) #ca-unwatch.icon a:not(.loading):hover:before,
	body:not(.ns-0):not(.ns-104):not(.ns-106) #ca-unwatch.icon a:not(.loading):focus:before {
		/* [[Tập tin:Unwatch-icon-hl lime.svg]] */
		/* @embed */
		background-image: -webkit-linear-gradient(transparent,transparent), url(//upload.wikimedia.org/wikipedia/commons/0/01/Unwatch-icon-hl_lime.svg);
		background-image: linear-gradient(transparent,transparent), url(//upload.wikimedia.org/wikipedia/commons/0/01/Unwatch-icon-hl_lime.svg);
	}
	
	/* Hộp sửa đổi: Thanh công cụ sửa đổi */
	body:not(.ns-0):not(.ns-104):not(.ns-106) .wikiEditor-ui-toolbar {
		background-color: #E5F8DB;
		background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(33px, #E5F8DB));
		background-image: -webkit-linear-gradient(top, #ffffff 0%, #E5F8DB 33px);
		background-image: -moz-linear-gradient(top, #ffffff 0%, #E5F8DB 33px);
		background-image: -ms-linear-gradient(top, #ffffff 0%, #E5F8DB 33px);
		background-image: -o-linear-gradient(top, #ffffff 0%, #E5F8DB 33px);
		background-image: linear-gradient(to bottom, #ffffff 0%, #E5F8DB 33px);
		-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#FFF', endColorstr='#E5F8DB')";
	}
	
	/* Hộp sửa đổi: Nền đằng sau hộp văn bản, nền chỉ mục các bảng, và khoản trong trình đơn Đề mục */
	body:not(.ns-0):not(.ns-104):not(.ns-106) .wikiEditor-ui,
	body:not(.ns-0):not(.ns-104):not(.ns-106) .wikiEditor-ui-toolbar .sections .section,
	body:not(.ns-0):not(.ns-104):not(.ns-106) .wikiEditor-ui-toolbar .group .tool-select .options .option:hover {
		background-color: #E5F8DB;
	}
	
	/* Hộp sửa đổi: Ký tự trong bảng Ký tự đặc biệt */
	body:not(.ns-0):not(.ns-104):not(.ns-106) .wikiEditor-ui-toolbar .page-characters div span:hover {
		border-color: #A8E36B;
	}
	
} /* kết @media screen */

/* Bổ sung icon mw-ui-icon */

.mw-ui-icon-bright:before {
  background-image: url(//upload.wikimedia.org/wikipedia/commons/1/15/OOjs_UI_icon_bright.svg) !important;
}

.mw-ui-icon-moon:before {
  background-image: url(//upload.wikimedia.org/wikipedia/commons/7/7c/OOjs_UI_icon_moon.svg) !important;
}

/* Sửa đổi mục lục */
#sidebar-toc-label > .sidebar-toc-title {
	font-size: 1em;
	font-weight: bold;
	color: black;
}

/* Sửa đổi vector menu tab */
.vector-menu-tabs .selected a {
    border-bottom: 2px solid;
    font-weight:bold;
}

.vector-menu-tabs li a:hover {
    text-decoration: none;
    border-bottom: 2px solid;
}

li.new {
	list-style-image:none;
}