MediaWiki:Common.css

From MiWiki
Revision as of 21:49, 2 November 2025 by Miwikibeam (talk | contribs)

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
:root {
  --article-color: #000000;
  --link-none: #d73333;
  /*https://www.internationalphoneticassociation.org/content/ipa-fonts*/
  --font-ipa: "Times New Roman", serif;
}

.mw-body-content {
	font-family: Times New Roman;	
}
.mw-body-content a,
.mw-body-content a:visited {
	color: var(--article-color);
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
}
.mw-body-content a.new,
.mw-body-content a.new:visited {
	color: var(--link-none);
}
/*Hovering should still produce a color change,*/
/*so I will not change that yet.*/
/*If we decide to override the hover color,*/
/*we may wish to preserve the distinction between :hover and :visited:hover*/

/*table*/
table.bordered {
  border-collapse: collapse;
}
table.bordered td {
  border: 1px solid;
  padding-left: 0.25em;
  padding-right: 0.25em;
}
table.bordered th {
  border: 1px solid;
  padding-left: 0.25em;
  padding-right: 0.25em;
}
table.bordered td.nocol {
  border-right: none;
}
table.bordered td.nocol + td {
  border-left: none;
}

/*language*/

[lang="ja"] {
	/*from https://stackoverflow.com/a/14573813*/
	font-family:"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",Osaka, "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
}

/*lang class*/
.lang {
	font-style: italic;
}
.lang[lang="ja"] {
	font-style: normal;
}
.lang[lang="ja-Latn-fonipa"] {
	font-style: normal;
}

/*For Template:Phone and Template:Phoneme*/
i.ipa {
	font-family: var(--font-ipa);
	font-style: inherit;	
}

/*general*/

em {
	font-style: inherit;
	font-variant: small-caps;
}

blockquote {
	width: fit-content;
	position: relative;
}
blockquote::after {
	content: "”";
	position: absolute;
	right: -0.5em;
	font-size: 2em;
	bottom: -0.5em;
}
blockquote::before {
	content: "“";
	position: absolute;
	left: -0.5em;
	font-size: 2em;
	top: -0.25em;
}
/*Bibliography*/
ul.bibliography-list {
	margin-left: 0;
}
ul.bibliography-list > li {
	padding-left: 2em;
	text-indent: -2em;
	list-style: none;
}

/*Target*/
/*Marks the target of url*/
/*#target*/
h2:target::before,
h3:target::before,
h4:target::before,
h5:target::before,
h6:target::before {
  content: "☞";
  position:absolute;
  margin-left: -1em;
}

/*Edit page*/
/*The edit page by default is styled similarly to other pages,*/
/*but this results in a lot of dead space on screen,*/
/*which could be better allocated to the editor,*/
/*so that editing can be more efficient.*/
.action-edit #mw-content-block {
  display:block;
}