MediaWiki:Gadget-viws-tweaks.css

Văn thư lưu trữ mở Wikisource

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­Reload / Tải lại       Internet Explorer — Ctrl­Refresh / Làm tươi       Konqueror — Reload / Tải lại

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 dạng này chứa tất cả các tinh chỉnh chỉ dành cho vi.WS =====
 */
/* tạo trải nghiệm người dùng moar-kewl */
/*@media screen*/
a:hover, a:focus {
	-webkit-transition: color 0.4s ease;
	   -moz-transition: color 0.4s ease;
	     -o-transition: color 0.4s ease;
	        transition: color 0.4s ease;
}
/* thẻ poem : tránh khoảng trắng khi chèn trang */
.poem {
	line-height: inherit;
	margin-top: 0;
	margin-bottom: 0;
	text-indent: 0;
	margin-left: 2.5em;
}
.poem p {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	text-indent: inherit !important;
/*	white-space: nowrap !important; */
}
.poem .mw-poem-indented {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	text-indent: inherit !important;
	white-space: nowrap !important;
}
/* thẻ poem : dùng div với wiki mark-up đã định nghĩa để thụt dòng */
.poem dl {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	text-indent: inherit !important;
}
.poem dd {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	text-indent: inherit !important;
}
/* Một số biên tập viên thích dòng ngắn */
#text, .text, .prose {
   width: 36em;
   margin: 0 auto;
   text-align: justify;
}
#text p, .text p, .prose p {
   text-indent: 2em;
}
#text pre, .text pre, .prose pre {
   background-color: #ffffff;
   font-family: sans-serif;
   line-height: 150%;
   border: 0px;
   padding-left: 2em;
   margin: 0;
   white-space: pre;
}
/* đặt bảng xuất của bộ mở rộng TemplateData vào giữa trang */
.mw-templatedata-doc-params {
	margin: 0.50em auto 0.50em auto !important;
}
/* hiện văn bản đã xóa do [[Bản mẫu:Vi phạm bản quyền]] ẩn đi */
.page-Special_Undelete div#copyvio {
	display:block !important;
}
/* Cho phép các trang nhúng hiển thị ở dạng danh sách sách thay vì bảng. Tương thích với Firefox; không tương thích với IE6. */
.listify td {
	display:list-item;
}
.listify tr {
	display:block;
}
.listify table {
	display:block;
}
/* làm cho danh sách tham khảo nhỏ hơn và tô màu tham khảo được nhấn */
ol.references {
	font-size: 100%;
}
.references-small {
	font-size: 90%;
}
ol.references > li:target {
	background-color: #ddeeff;
}
sup.reference:target {
	background-color: #ddeeff;
}
sup, sub {
	font-size: 0.75em !important;
}
/* điều chỉnh hồ sơ */
@media screen, handheld, projection {
	/* thụt đầu dòng trên màn hình để tránh số trang */
	div.indented-page {
		margin-left:3em;
	}
	/* Không hiển thị URL lên màn hình */
	cite *.printonly {
		display: none;
	}
}
/* PRETTYTABLE
 *
 * Produces customized grayscale tables. Based on WikiTable css definitions.
 * Table documentation at [[Wikisource:Style guide/Tables]] - SUPERSEDED -
 * Some values need !important added otherwise they could be overriden.
 */
table.prettytable {
	border-collapse: collapse;
	border-spacing: 0 0;
	font-size: calc(1rem * 0.8750);
	line-height: inherit;
	margin-top: calc(1rem * 0.50);
	margin-bottom: calc(1rem * 0.50);
	page-break-inside: avoid;
}
table.prettytable > tbody, table.prettytable > * > tbody {
	background-color: #f9f9f9;
}
table.prettytable > tr > th, table.prettytable > * > tr > th {
	background-color: #f2f2f2;
	border: 1px solid #569BBB;
	font-weight: 700;
	padding-top: calc(1rem * 0.25);
	padding-right: calc(1rem * 0.50);
	padding-bottom: calc(1rem * 0.25);
	padding-left: calc(1rem * 0.50);
	text-align: center;
}
/*
 *      First column of target table
 */
table.prettytable > tr > td:nth-child(0n+1), table.prettytable > * > tr > td:nth-child(0n+1) {
	border: 1px solid #569BBB;
	padding-top: calc(1rem * 0.25);
	padding-right: calc(1rem * 0.25);
	padding-bottom: calc(1rem * 0.25);
	padding-left: calc(1rem * 0.25);
	vertical-align: top;
}
/*
 *      Standard column of target table
 */
table.prettytable > tr > td, table.prettytable > * > tr > td {
	border: 1px solid #569BBB;
	padding-top: calc(1rem * 0.25);
	padding-right: calc(1rem * 0.25);
	padding-bottom: calc(1rem * 0.25);
	padding-left: calc(1rem * 0.25);
}
table.prettytable > caption, table.prettytable > * > caption {
	font-weight: 500;
}
/* #### Định dạng thể loại #### */
/* làm cho thể loại ẩn nhỏ lại và có khoảng trắng phía dưới thể loại thường */
#mw-hidden-catlinks {
	font-size: 90%;
}