MediaWiki:Mobile.css

MediaWiki interface page
Revision as of 13:19, 22 May 2023 by Forte (talk | contribs) (Added CSS for Citizen skin infobox on mobile)

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.
/* All CSS here will be loaded for users of the mobile site */

/***************************/
/*******Main page CSS*******/

.page-ProleWiki_Main_Page .firstHeading
	{ display: none; }

.page-ProleWiki_Main_Page .mw-parser-output .wd-mp-subheader {
	display: none;
}

.page-ProleWiki_Main_Page .mw-parser-output .wd-mp-headerbox {
	padding: 1em;
}

#pw-mp-banner span 
{
	display: inline-block;
	width: 100%;
	object-fit: contain;
	object-position: center;
	content: url(https://shared.prolewiki.org/uploads/b/b3/Mainpageheader_mobile.png); 
}

/*****************************/
/*******Site notice CSS*******/

.sitenotice-box {
	display: flex;
	flex-direction: column;
	padding: 20px;
	width: 80%;
	background: #efefef;
	border-radius: 15px;
	margin: auto;
}

.sitenotice-text,
.sitenotice-subtext,
.sitenotice-button,
.sitenotice-button-dismiss {
	font-family:Helvetica;
	font-weight:bold;
}
.sitenotice-text {
	font-size:150%;
	color: #646464;
	margin: 0.25em 0;
}

.sitenotice-subtext {
	font-size:115%;
	color: #646464;
	margin-bottom: 1em;
}

.sitenotice-button-container {
	display: flex;
	width: 100%;
	justify-content: flex-end;
}
.sitenotice-button-container > span {
	padding: 12px;
	height: 12px;
	border-radius: 8px;
	font-size: 115%;
	cursor:pointer;
	line-height: 12px;
	box-shadow: 0px 2px 6px #5f5f5f;
}
.sitenotice-button {
	background: #ff2206;
	color: white;
}

.sitenotice-button:hover {
	background-color: #dd2206;
	transition: background-color 100ms;
}

.sitenotice-button:not(:last-child) {
	margin-right:0.5em;
}

.sitenotice-button-dismiss {
	background: #a6a6a6;
	color: white;
	margin-right:auto;
}

.sitenotice-button-dismiss:hover {
  background-color: #868686;
  transition: background-color 100ms;
}
/*End of site notice configuration*/

.content blockquote {
	border-left: 3px solid #eee;
	padding: 8px 16px;
	font-size: 95%;
	font-family: inherit;
}


/**********************************/
/*******CSS for Citizen skin*******/

@media screen {
	:root.skin-citizen {
		--border-color-1:hsl(0, 0%, 69%);
		--border-color-2:hsl(0, 0%, 88%);
		--color-surface-2:hsl(0,0%,97%);
		--color-surface-4:hsl(213,30%,85%);
		--color-surface-5:hsl(220,17%,93%);
		--color-surface-6:hsl(200,2%,60%);
		--color-surface-7:hsl(180,2%,40%);
		--color-surface-subtle-red:hsl(0, 100%, 97%);
		--color-success2:hsl(167,70%,31%);
		--color-red-3:#b50014;
		--color-base:#262e35;
		--color-base--subtle:#646464;
		--color-base--emphasized:#202020;
		--color-primary:#143fbf;
	}
	:root.skin-citizen-dark {
		--border-color-1:hsl(220, 28%, 23%);
		--border-color-2:hsl(220,25%,20%);
		--color-surface-5:hsl(220,25%,15%);
		--color-surface-6:hsl(220,12%,35%);
		--color-surface-7:hsl(220,12%,40%);
		--color-red-3:#b50014;
		--color-surface-subtle-red:hsl(0, 45%, 28%);
		--color-primary:#5c85d6;
	}
}

/*************************/
/*******Infobox CSS*******/

.skin-citizen .infobox {
	border: 1px solid var(--border-color-1);
	background-color: var(--color-surface-2);
  width: 100%;
  max-width: 100%;
	display: flex;
	flex-flow: column nowrap;
}
.skin-citizen .infobox > tbody, .skin-citizen .infobox > caption {
	display: flex;
  flex-flow: column nowrap;
}

.skin-citizen .infobox > tbody > tr {
	min-width: 100%;
  display: flex;
  flex-flow: row nowrap;
}
.skin-citizen .infobox td:only-child, .skin-citizen .infobox th:only-child {
	width: 100%;
}
.skin-citizen .infobox th, .skin-citizen .infobox td {
	border-bottom: 1px solid var(--border-color-1);
}
.skin-citizen .infobox tr:last-child th, .skin-citizen .infobox tr:last-child td {
	border: 0;
}
.skin-citizen .infobox tbody > tr > td, .skin-citizen .infobox tbody > tr > th {
	flex: 1 0;
}
.skin-citizen .infobox.geography td, .infobox.geography th, .infobox.geography .mergedtoprow td, .infobox.geography .mergedtoprow th{
	border-top: 1px solid var(--border-color-1);
}
.skin-citizen .infobox.geography .mergedbottomrow td, .infobox.geography .mergedbottomrow th {
	border-bottom: 1px solid var(--border-color-1);
}
.skin-citizen .infobox.geography .mergedrow td, .infobox.geography .mergedrow th {
	border:0;
}