MediaWiki:Common.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.
/* CSS placed here will be applied to all skins */

/* Increase spacing on regular text, but not on cards */
.wm-content p {
	line-height: 1.8;
	margin: 0.4em 0 1.5em 0;
}

.card-body p {
	line-height: 1.5;
	margin: 0.4em 0 0.5em 0;
}

/* Increase padding for h3s */
h3 {
	margin-top: 1.25em;
}

/* Use a lighter border for code sample tabs */
.oo-ui-panelLayout-framed {
	border: 1px solid #eaecf0;
}

/* Remove the extra whitespace at the bottom of the code table tabs */
.oo-ui-panelLayout-framed pre {
	margin: 0;
}

/* Adopt link colors from style guide */
a,
a:hover,
a:not( [href] ):not( [tabindex] ),
a:not( [href] ):not( [tabindex] ):hover {
	color: #36c;
}

a:active,
a:not( [href] ):not( [tabindex] ):active {
	color: #2a4b8d;
}

a:visited,
a:not( [href] ):not( [tabindex] ):visited {
	color: #636;
}

a:hover,
a:active,
a:not( [href] ):not( [tabindex] ):active,
a:not( [href] ):not( [tabindex] ):hover {
	text-decoration: underline;
}

/* Remove extra whitespace around collapsable code samples */
.mw-collapsible-content pre {
	margin: 0;
	padding: 0.5rem 0 0 0;
}

/* Adjust footer styles to match wikimediafoundation.org */
.wm-footer-link-group-name {
	font-size: 0.875rem;
	padding-top: 8px;
}

/* Add styling that should be handled by SyntaxHighlight */
pre {
	white-space: pre-wrap;
	overflow-x: hidden;
	background-color: #f8f9fa;
	display: inline-block;
	word-break: break-word;
	width: 100%;
}

/* Add padding to h2s */
h2 {
	padding-top: 1.25rem;
}

/* Remove extra border on create-app dialog */
.oo-ui-bookletLayout > .oo-ui-menuLayout-menu {
	border-right: 0;
}

/* Remove page action button outline on focus */
.oo-ui-buttonElement-frameless.oo-ui-widget-enabled.oo-ui-iconElement > .oo-ui-buttonElement-button:focus,
.oo-ui-buttonElement-frameless.oo-ui-widget-enabled.oo-ui-labelElement > .oo-ui-buttonElement-button:focus {
	border-color: transparent;
	box-shadow: none;
}

/* Add spacing and width to tabbed window gadget */
.mw-gadget-tabbedwindow {
	width: 100%;
	padding-top: 8px;
	padding-bottom: 15px;
}

/* Table styles for property tables */
.properties {
	width: 100% !important;
}

.properties td {
	background-color: #f8f9fa !important;
	width: 20%;
	vertical-align: top;
}

.properties td + td {
	background-color: #ffffff !important;
	width: 80%;
}

.properties td code {
	font-weight: 600;
	color: #202122;
	background-color: #f8f9fa;
	border: 0;
}

.properties td + td code {
	font-weight: 400;
}

/* Table style for Accept-Language support table */
.properties .language td + td {
	width: 20%;
}

/* Table styles for response tables */
.responses {
	width: 100% !important;
}

.responses th {
	width: 10% !important;
	text-align: center !important;
}

/* Code style */
code {
	color: #212529;
	background-color: #f8f9fa;
}

/* Styles for collapsible responses */
.mw-collapsible {
	background-color: #f8f9fa;
	max-width: 100%;
	border: 1px solid #eaecf0;
	padding: 6px 12px;
	margin-top: 6px;
	font-size: 0.9rem;
}

/* Increase font weight on collapsible label */
.example {
	font-weight: 700;
}

/* Make sure banner content is visible and without extra padding */
.cbnnr-message {
	opacity: 1 !important;	
}
.cbnnr {
	margin-bottom: 0 !important;
}