MediaWiki:Common.css

From Wiki Journal Club
Jump to navigation Jump to search

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 */

.button, .badge {
  clear: all !important;
  padding:5px;
  font-weight:bold;
  text-transform:capitalize;
  background: #eef;
  border: 1px solid #339;
}

.badge {
  float: right;
}

.badge.usable, .badge.Usable {
  background:#efe;
  border:1px solid #090;
}

.badge.incomplete, .badge.Incomplete {
  background:#fee;
  border:1px solid #900;
}

.badge.reviewable, .badge.Reviewable {
  background:#eef;
  border: 1px solid #009;
}

/* PICO of the day */
.pico-otd {
  float:right;
  border:1px solid #c99;
  padding:5px;
  background:#fee;
  width:200px;
}

.pico-heading { font-weight: bold }

.pico-page {
  text-align:right;
  font-weight: bold;
  font-style: italic;
}

.flat-list .pico-otd {
  width: 100%;
  background: none;
  float: none !important;
  border: none;
}

.flat-list .pico-heading { display: none }
.flat-list .pico-page { text-align: left; }

.ns-0 #toc {
  clear:both;
  float:right;
  margin: 10px;
}

table.wikitable th, table.wikitable td { padding:5px }
table.wikitable.outcomes td { text-align: center; }
table.abbreviations th { text-align:left; }

/* buttons are for iphone only */
#buttons { display: none }

/* http://en.wikipedia.org/wiki/User:Mzajac/monobook.css/Superscript_fix */
#bodyContent sup {
    font-size: smaller;
    vertical-align: baseline;
    position: relative;
    bottom: 0.33em;
}
#bodyContent sub {
    font-size: smaller;
    vertical-align: baseline;
    position: relative;
    bottom: -0.25em;
}

/* no need to indent references */
ol.references {
  padding-left: 1.5em;
  margin-left: 0px;
}

/* remove "Main Page" header */
.page-Main_Page #firstHeading { display: none }

/* for [[WikiJournalClub:Articles in review]] */
.error-param { color:red }
.warning-param { color:green }

/* custom dropdowns (http://red-team-design.com/making-html-dropdowns-not-suck/) */
.custom-dropdown--large {
	font-size: 1.5em;
}

.custom-dropdown--small {
	font-size: .7em;
}

.custom-dropdown__select{
	font-size: inherit; /* inherit size from .custom-dropdown */
	padding: .5em; /* add some space*/
	margin: 0; /* remove default margins */
}

.custom-dropdown__select--white {
	background-color: #fff;
	color: #444;    
}

@supports (pointer-events: none) and
	  ((-webkit-appearance: none) or
	  (-moz-appearance: none) or
	  (appearance: none)) {

	.custom-dropdown {
		position: relative;
		display: inline-block;
		vertical-align: middle;
	}

	.custom-dropdown__select {
		padding-right: 2.5em; /* accommodate with the pseudo elements for the dropdown arrow */
		border: 0;
		border-radius: 3px;
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;    
	}

	.custom-dropdown::before,
	.custom-dropdown::after {
		content: "";
		position: absolute;
		pointer-events: none;
	}

	.custom-dropdown::after { /*  Custom dropdown arrow */
		content: "\25BC";
		height: 1em;
		font-size: .625em;
		line-height: 1;
		right: 1.2em;
		top: 50%; margin-top: -.5em;
	}

	.custom-dropdown::before { /*  Custom dropdown arrow cover */
		width: 2em;
		right: 0; top: 0; bottom: 0;
		border-radius: 0 3px 3px 0;
	}

	.custom-dropdown__select[disabled] {
		color: rgba(0,0,0,.3);
	}

	.custom-dropdown.custom-dropdown--disabled::after {
		color: rgba(0,0,0,.1);
	}

	/* White dropdown style */
	.custom-dropdown--white::before {
		background-color: #fff;
		border-left: 1px solid rgba(0,0,0,.1);
	}

	.custom-dropdown--white::after {
		color: rgba(0,0,0,.9);
	}

	/* FF only temp fix */
	@-moz-document url-prefix() {
		.custom-dropdown__select 			 { padding-right: .9em }
		.custom-dropdown--large .custom-dropdown__select { padding-right: 1.3em }
		.custom-dropdown--small .custom-dropdown__select { padding-right: .5em }
	}
}

/* retina logo: https://css-tricks.com/snippets/css/retina-display-media-query/ */
@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) { 
 #p-logo a {
   background-image: url(//www.wikijournalclub.org/w/images/e/ec/Wikijournalclublogo%402x.png) !important;
   background-size: 135px 135px !important;
 }
}