User:Waldyrious/global.css/misc.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.
/* remove the ugly dotted border on links in Firefox */
a:active,
a:focus
{
	outline: none;
}

/* hide some stuff I never use (TODO: document exactly what each selector corresponds to) */
div.printfooter,
#footer,
#siteNotice,
#jump-to-nav,
#editpage-copywarn,
#editpage-copywarn2,
#editpage-copywarn3,
div.mw-tos-summary,
#wpSummaryLabel>label>span>small,
#minoredit_helplink,
span.editHelp,
#editpage-specialchars>p>b,
#jswarning,
#clearprefcache,
#mw-clearyourcache,
#mw-usercssyoucanpreview,
div.mw-newarticletext,
#ca-wikilove,
#mw-usercsspreview,
/* Links from the sidebar */
li#n-Contents, /* contents */
li#n-featuredcontent, /* featured content */
li#n-currentevents, /* current events */
li#n-aboutsite, /* about wikipedia */
li#n-recentchanges, /* recent changes */
li#n-portal, /* community portal */
li#n-contact, /* contact wikipedia */
li#n-sitesupport, /* donate */
li#t-recentchangeslinked, /* related changes */
li#t-print, /* printable version */
li#t-cite, /* cite this page */
div#p-coll-create_a_book /* create a book*/
{
	display: none;
}

/* strikethrough the upload file link, as a reminder to upload to the commons instead *
 * (TODO: fix selector not to apply in commonswiki. probably needs to be done via JS) */
li#t-upload
{
	text-decoration: line-through;
}

/* pre tags: wrap text, make the border solid, adjust the font-size, and add scrollbar if necessary */
pre
{
	border-style: solid;
	border-width: 1px;
	white-space: pre-wrap;
	font-size: 0.8rem;
	overflow: auto;
}

/* Fix display of the dropdown button at the special characters box (TODO: document what's wrong with it) */
#editpage-specialchars>select
{
	float: none !important;
}

/* Center the text of the preview notice (TODO: add a before-after screenshot) */
div.previewnote
{
	text-align: center;
}

/* Make diffs easier to parse. Taken from Nihiltres' vector.css (TODO: update for current styles) */
.diff-deletedline .diffchange
{
	color:black; background-color: #FFCC66;
}
.diff-addedline .diffchange
{
	color:black; background-color: #66EE66;
}

/* Fix alignment of babel boxes (see bug 70668) */
.mw-babel-box-level-0,
.mw-babel-box-level-1,
.mw-babel-box-level-2,
.mw-babel-box-level-3,
.mw-babel-box-level-4,
.mw-babel-box-level-5,
.mw-babel-box-level-N
{
	display: inline-block;
}
div.mw-babel-box table th
{
	line-height: 1em;
}