User:Wiki13/global.css

From Meta, a Wikimedia project coordination wiki

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.
/* Hide text above editting screen when creating a new page = MediaWiki:Newarticletext */
#newarticletext { display:none; }

/* Remove copywarn = MediaWiki:Wikimedia-copyrightwarning */
#editpage-copywarn { display:none; }

/* Summary field 100% */
#wpSummary { width:100% }

/* Watchlist */
.mw-changeslist-line-watched .mw-title { font-weight:normal; }

/* Recent Changes, gives odd number lines a different color from even ones */
.mw-line-odd { background-color: #ffffff;}
.mw-line-even { background-color: #e6e6e6;}

/* Show a line between days in the Recent Changes and the Watchlist */
 h4, h5  {
  font-size: 115%;
  font-weight: bold;
  border-bottom: solid 1px #F0F0F0;
 }

/* Give logpages a red accent */
.mw-warning-with-logexcerpt,
.mw-lag-warn-high,
.mw-cascadeprotectedwarning,
#mw-protect-cascadeon {
    clear: both;
    margin: 0.2em 0;
    border: 1px solid #bb7070;
    background: #ffdbdb;
    padding: 0.25em 0.9em;
}

/* Change annoying font on interwiki links */
#p-lang ul { font-family: sans-serif; }

/* Normal text in recent changes list */
.mw-changeslist-line-watched .mw-title { font-weight:normal; }

/* Don't show updated marker */
.updatedmarker { display:none; }

/* Contributions page links */
#contributions-footer-box {display: block !important;}

/* Replace light blue with lime green in body */
.mw-body {
    border: 1px solid #A8E36B;
}
/* Replace tab colors to lime green */
	body:not(.ns-0):not(.ns-100) #content {
		border-color: #A8E36B;
	}
	body:not(.ns-0):not(.ns-100) .vector-menu-tabs a,
	body:not(.ns-0):not(.ns-100) .vector-menu-tabs,
	body:not(.ns-0):not(.ns-100) .vector-menu-tabs ul,
	body:not(.ns-0):not(.ns-100) #mw-head .vector-menu h5,
	body:not(.ns-0):not(.ns-100) #mw-head .vector-menu h3,
	body:not(.ns-0):not(.ns-100) .vector-menu h5 a {
		background-image: linear-gradient(to bottom, #FFF 0%, #A8E36B 100%);
		background-size: 1px 100%;
	}
	body:not(.ns-0):not(.ns-100) .vector-menu-tabs ul li:not(.selected) {
		background-image: linear-gradient(to top, #A8E36B 0%, #A8E36B 1px, #E5F8DB 1px, #FFF 100%);
	}
	/* But not the custom ones, to see the difference */
	#views-global,
	#views-global2,
	#views-global3,
	#views-global4,
	#views-global5 {
		background-image: linear-gradient(to top, #CADFCC 0%, #CADFCC 1px, #CADFCC 1px, #FFF 100%);
		}

/* Make diffs use Wikimedia UI color palette ([[phab:M82]]) */
.diff-addedline {
    border-color: #36c;
}
.diff-deletedline {
    border-color: #fc3;
}
.diff-addedline .diffchange {
    background: #e9eef9;
}
.diff-deletedline .diffchange {
    background: #fff4d6;
}

/** No MediaViewer button on File: namespace pages */
.mw-mmv-filepage-buttons { display: none }

/* Quick hack to force the Search tab on [[Special:Contribs]] open. Credit: Volker E. (WMF) & Stwalkerster - [[Special:Permalink/19431311#Reverting the new "collapsed search interface" on Special:Contribs|Tech]] */ 
.mw-special-Contributions .oo-ui-fieldsetLayout-group.mw-collapsible-content { display: block !important; }
.mw-special-Contributions .oo-ui-fieldsetLayout-header { display: none !important; }

/* Abuselog */
.mw-special-AbuseLog .oo-ui-fieldsetLayout-group.mw-collapsible-content { display: block !important; }
.mw-special-AbuseLog .oo-ui-fieldsetLayout-header { display: none !important; }


/* Overriding the typography refresh - see https://www.mediawiki.org/wiki/Typography_refresh
To use it, copy the following code to [[Special:Mypage/vector.css]].
Works ok for me with Firefox 27.0.1 and Ubuntu 12.04 LTS, but has not been tested
in different environments. There may also still be glitches of one sort or another.
Let me know if you have any suggestions for improving it. */

/* Fonts and colours */
* {
	font-family: sans-serif;
}
#mw-previewheader,
#mw-usercsspreview strong {
	font-family: sans-serif !important;
	color: #c00 !important;
}
#content #toc h2, div#content .toc h2,
.diff-currentversion-title {
	font-family: sans-serif !important;
}
div.mw-geshi div, div.mw-geshi div span, div.mw-geshi div pre, span.mw-geshi, span.mw-geshi span, pre.source-css, pre.source-css span, pre.source-javascript, pre.source-javascript span, pre.source-lua, pre.source-lua span {
	font-family: monospace !important;
	-moz-tab-size: 4;
}
#content {
	font-size: 93%;
}
#firstHeading {
	font-size: 1.6em !important;
}
#content.mw-body {
	margin-left: 11.8em;
	color: #000;
}
#wpTextbox1,
pre {
	font-family: monospace;
}
 
/* Font size */
code a {
	font-family: monospace;
	font-size: 130%;
}
pre {
	font-size: 130%;
}
#content h3 {
	font-size: 132%;
}
#content h4 {
	font-sizeː 116%;
}
#content h5 {
	font-size: 100%;
}
#content h6 {
	font-size: 80%;
}
.diff-deletedline,
.diff-addedline,
.diff-context {
	font-size: 85%;
}

/* Change padding of the dropdown menus, I don't like the amount of space they take in. */
.oo-ui-decoratedOptionWidget {
	padding: 0.25em;
}

/* Hide empty state message on talk pages */
.ext-discussiontools-emptystate { 
	display:none; 
}


/* Remove certain discussiontools enhancements */
.ext-discussiontools-visualenhancements-enabled .ext-discussiontools-init-section-bar{display:none;}