User:Fish bowl/global.css

From Meta, a Wikimedia project coordination wiki
(Redirected from User:Suzukaze-c/global.css)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/*@import url('/w/index.php?title=User:Fish_bowl/font-faces.css&action=raw&ctype=text/css');*/
@import url('/w/index.php?title=User:Fish_bowl/templatescript-regex-editor.css&action=raw&ctype=text/css');
@import url('/w/index.php?title=User:Fish_bowl/wikisource.css&action=raw&ctype=text/css');

/* hide things */
_dummy_
, .mw-changeslist-legend
, .mw-changeslist-log-renameuser, .mw-changeslist-log-newusers
, #searchmenu-new-preload /* wiktionary preloads on search page */
, #siteNotice
, #pt-betafeatures
, #pt-newmessages /* "new messages (0)" */
, #n-Glossary /* wiktionary sidebar: navigation > glossary */
, #n-sitesupport
, #n-contact
, #n-wiktprefs /* wiktionary sidebar: navigation > preferences */
, #p-coll-print_export
, #footer #f-copyrightico
, #footer #f-poweredbyico
, #footer #copyright /* "Text is available under the..." */
, #footer #privacy
, #footer #disclaimer
, .page-Wiktionary_Main_Page #main_page_mp-mp > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > table:nth-child(1) /* header */
, .page-Wiktionary_Main_Page #main_page_mp-mp > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(1) /* "Welcome to the English-language Wiktionary..." */
, .page-Wiktionary_Main_Page #main_page_mp-mp > tbody:nth-child(1) > tr:nth-child(4) /* "Wiktionaries in other languages" */
, #editform .cancelLink /* Edit > "[[Cancel]]" */
, #editform .editHelp /* Edit > "[[Editing help]]" */
, #editform #mw-editpage-watchlist-expiry /* Edit > "Watchlist time period:" */
, #editform label[for="wpSummary"] /* Edit > "[[Edit summary]]:" */
, #editform #editpage-copywarn /* Edit > "By clicking the “Publish changes” button, [...]" */
, #mw-editTools /* edit tools under the edit box */
, #pt-userpage:not(:hover) a /* username */
, #editpage-specialchars /* zh.Wikisource: character picker under the edit box */
, _dummy_ { display: none !important; }

body, div#globalWrapper { background-image: none; }

/* edit box: reset textarea font-size to browser default */
.mw-editfont-monospace { font-size: initial; }

/* diffs / edit box: rtl so confusing */
.diff-contentalign-left td, textarea { unicode-bidi: bidi-override; }

/* edit box: less intrusive position for expand button on lua logs */
.preview-limit-report .mw-collapsible-toggle { float: none; display: block; text-align: right; }

/* search results: 100% width */
.mw-search-results { max-width: 100%; }

/* search results: "insource:" white space */
.searchresult { margin-left: 1em; white-space: pre-wrap; }

/* search results: high contrast */
.mw-special-Search .searchmatch { background: navy; color: white; }

/* diffs: high contrast changed lines */
.diff-deletedline .diffchange, .diff-addedline .diffchange { outline: crimson 1px solid; position: sticky; top: 0; bottom: 0; }

/* diffs: low contrast context lines */
.diff-context { opacity: 0.5; }

/* ruby: alternating colors */
ruby:nth-of-type(2n) rt, a:nth-of-type(2n) ruby rt { background: rgba(255, 0, 0, 0.15); }
ruby:nth-of-type(2n-1) rt, a:nth-of-type(2n-1) ruby rt { background: rgba(0, 0, 255, 0.15); }

/* Wiktionary: fonts */
.Hani, .Hani:lang(vi), .Hant, .Hans, .Jpan, .Kore { font-family: inherit; }
.nv-Latn { font-family: monospace !important; }
.Cyrl { font-family: inherit; }
.IPA { font-family: serif; letter-spacing: 0.05ch; }

/* Wiktionary: color CJK */
.Hani { background: rgb(240, 240, 255); }
.Hant { background: rgb(240, 220, 255); }
.Hans { background: rgb(220, 240, 255); }
.Jpan { background: rgb(255, 240, 248); }
.Kore { background: rgb(255, 240, 220); }
.Bopo { background: lavender; }

/* Wiktionary: CJK bold/italic */
.mention.Jpan:before,
.mention.Hani:before,
.mention.Hans:before,
.mention.Hant:before,
.mention.Kore:before,
.mention.Cyrl:before,
.mention.Arab:before,
_dummy_ {
	content: "«";
	opacity: 0.5;
}
.mention.Jpan:after,
.mention.Hani:after,
.mention.Hans:after,
.mention.Hant:after,
.mention.Kore:after,
.mention.Cyrl:after,
.mention.Arab:after,
_dummy_ {
	content: "»";
	opacity: 0.5;
}

/* Wiktionary: [[Template:dial syn]] diagonal headers for fun */
.dial-syn th[rowspan] span { writing-mode: sideways-lr; transform: rotate(60deg); }

/* Wikisource: disable text justification */
body.ns-104 div.pagetext, body.mw-mobile-mode div.pagetext { text-align: left !important; }

/* Wikisource: color parser output */
.pagetext > .mw-parser-output { background: lavenderblush; margin-top: 1em; hyphens: auto; }

/* Wikisource: Page: color bold/italic */
body.ns-104 .mw-parser-output b { background: rgba(0, 0, 255, 0.15); }
body.ns-104 .mw-parser-output i { background: rgba(255, 0, 0, 0.15); }

/* Wikisource: fonts/colors */
body[class*="page-Page_"]:lang(zh) .prp-page-content,
body[class*="page-Page_"]:lang(zh) .mw-editfont-monospace,
body[class*="page-Page_"]:lang(yue) .prp-page-content,
body[class*="page-Page_"]:lang(yue) .mw-editfont-monospace,
body[class*="page-Page_"]:lang(ja) .prp-page-content,
body[class*="page-Page_"]:lang(ja) .mw-editfont-monospace,
body[class*="page-Page_"]:lang(ko) .prp-page-content,
body[class*="page-Page_"]:lang(ko) .mw-editfont-monospace,
_dummy_ {
	/*font-family: "BIZ UDMincho", serif;*/
	writing-mode: vertical-rl;
	font-size: 1.25rem !important; /* why is .prp-page-content size different from .mw-editfont-monospace. why is there an existing !important for .mw-editfont-monospace */
	line-height: 125%;
}

.prp-layout-is-horizontal .prp-page-content,
.prp-layout-is-horizontal .mw-editfont-monospace,
_dummy_ {
	writing-mode: horizontal-tb !important;
}

body[class*="page-Page_Harvard_drs_430994682_Shauu"]:lang(zh) .prp-page-content,
body[class*="page-Page_Harvard_drs_430994682_Shauu"]:lang(zh) .mw-editfont-monospace,
_dummy_ {
	writing-mode: vertical-lr; /* bruh */
}

body[class*="page-Page_"]:lang(zh) .prp-page-content,
body[class*="page-Page_"]:lang(yue) .prp-page-content,
body[class*="page-Page_"]:lang(ja) .prp-page-content,
body[class*="page-Page_"]:lang(ko) .prp-page-content,
_dummy_ {
	overflow-y: auto;
	overflow-x: auto;
}

body[class*="page-Page_"]:lang(zh) .prp-page-content p,
body[class*="page-Page_"]:lang(yue) .prp-page-content p,
body[class*="page-Page_"]:lang(ja) .prp-page-content p,
body[class*="page-Page_"]:lang(ko) .prp-page-content p,
_dummy_ {
	margin: 0 0.75em 0 0.75em;
}

/* Chinese vocabulary lists */

/*
body[class*="page-Page_"]:lang(zh) dl {
	display: inline-grid;
	grid-template-columns: max-content max-content max-content max-content;
	column-gap: 1em;
	align-items: center; / * {{多行合一}} * /
}
*/

body[class*='正音咀華']:lang(zh) dl {
	display: inline-grid;
	grid-template-columns: max-content max-content max-content max-content max-content max-content;
}


body[class*="page-Page_"]:lang(zh) dl,
body[class*="page-Page_"]:lang(zh) dt,
body[class*="page-Page_"]:lang(zh) dd {
	margin: 0;
}

body[class*='正音咀華'] .pagetext .mw-parser-output {
	line-height: 150%;
	font-size: 150%;
}
body[class*='正音咀華'] dd {
	font-size: 75%;
}

body[class*="page-Page_"]:lang(en) .prp-page-content,
body[class*="page-Page_"]:lang(en) .mw-editfont-monospace,
_dummy_ {
	font-family: andika, sans-serif !important;
	font-size: 11pt !important;
}

body[class*='Japanese_Accent_Dictionary'] .prp-page-content,
_dummy_ {
	font-family: "Yu Gothic"; /* better overline */
}

body[class*='Dictionary_of_the_Swatow_dialect'] .prp-page-content li:nth-of-type(2) {
	background: rgba(255, 0, 0, 0.20);
}

body[class*='Dictionary_of_the_Swatow_dialect'] .prp-page-content dt {
	background: rgba(0, 255, 0, 0.20);
}

/* Wikisource: hide new article text */
.mw-newarticletext:not(:hover) {
	height: 2em;
	overflow: hidden;
	background-image: linear-gradient(red, rgba(0, 0, 0, 0%) 0%, rgba(0, 0, 0, 50%));
}

/* Wikisource: 100% width when editing */
body[class*="page-Page_"].action-edit.skin--responsive .mw-body { margin: 0; }
body[class*="page-Page_"].action-edit.skin--responsive #p-search { z-index: 0; }
body[class*="page-Page_"].action-edit.skin--responsive #p-lang { z-index: 0; }
body[class*="page-Page_"].action-edit.skin--responsive #p-logo { display: none; }
body[class*="page-Page_"].action-edit.skin--responsive #p-cactions li a { z-index: 3; }

/* Wikisource: contrast + invert + orange */
/*.prp-page-image { filter: contrast(2) invert(1) hue-rotate(180deg); }*/

/* Wikisource: Index: fields */
#wpprpindex-Title[value=""],
#wpprpindex-Author[value=""],
#wpprpindex-Language[value=""],
#wpprpindex-Language[value="en"],
#wpprpindex-Language[value="zh-hant"],
#wpprpindex-Year[value=""],
#wpprpindex-Publisher[value=""],
#wpprpindex-Image[value=""],
#wpPrpCategories[value=""] {
	box-shadow: 0 0 12px orange;
}

/* Wikisource: visualize the paragraph tag */
/*
p:before {
	content: "¶";
	background: orange;
	inline-size: 2em;
	text-align: center;
	display: inline-block;
	opacity: 0.13;
}
*/

/* Wikisource: visualize the current anchor */
:target:before {
	color: crimson;
	content: "§→";
}

/* zh.Wikisource: unbreak Template:Vtext2Start */
div[style^="writing-mode:vertical-rl"][style$="float:right"] {
	float: unset !important;
}

/* TemplateScript */
#p-templatescript-0 {
	position: fixed;
	background-color: rgba(255, 255, 255, 0.5);
	bottom: 0;
	right: 0;
	z-index: 4;
	font-size: 150%;
}

#p-templatescript-0:not(:hover) ul {
	display: none;
}

/* Commons: ImageAnnotator */
textarea[style*="background-color"][style*="white"] { background-color: Window !important; }