MediaWiki:Common.css

出自flip the world
Tommy留言 | 貢獻2026年8月21日 (五) 13:35的修訂 (Site styling: readability, gallery and code block polish)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)

注意:在您發布之後,您可能需要清除瀏覽器快取才能看到變更。

  • Firefox或Safari:按住Shift時點擊重新整理,或按Ctrl-F5Ctrl-R(Mac則為⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac則為⌘-Shift-R
  • Edge:按住Ctrl時點擊重新整理,或按Ctrl-F5
/* flip the world - site styling. Kept deliberately restrained:
   Timeless already provides the layout; this only improves readability. */

/* More comfortable reading measure and rhythm */
.mw-body-content {
	line-height: 1.7;
}

/* Headings get room to breathe and a light rule */
.mw-body-content h2 {
	margin-top: 1.6em;
	padding-bottom: 0.25em;
	border-bottom: 1px solid #c8ccd1;
}

.mw-body-content h3 {
	margin-top: 1.2em;
}

/* List spacing - the category index reads better with air */
.mw-body-content ul li {
	margin-bottom: 0.35em;
}

/* Gallery thumbnails: soften edges, add depth */
.mw-body-content ul.gallery {
	margin: 1.2em 0 1.8em;
}

.mw-body-content .gallerybox .thumb img {
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.18 );
}

.mw-body-content .gallerybox .gallerytext {
	font-size: 0.9em;
	color: #54595d;
	padding-top: 0.4em;
}

/* Code blocks - this is a hardware wiki, code should look deliberate */
.mw-body-content pre,
.mw-highlight pre {
	border-radius: 3px;
	padding: 0.9em 1em;
	overflow-x: auto;
}

/* Tables */
.mw-body-content .wikitable {
	border-collapse: collapse;
}