Difference between revisions of "MediaWiki:Common.css"

From WikiConference North America
Jump to navigation Jump to search
(Uh, I meant)
(Adding max-height to full-width-image on desktop)
 
(32 intermediate revisions by 4 users not shown)
Line 1: Line 1:
  +
@import url(//wikimediadc.org/index.php?title=MediaWiki:Common.css&action=raw&ctype=text/css);
/* CSS placed here will be applied to all skins */
 
   
  +
div#content a[href ^="https://craignewmarkphilanthropies.org/"].external {
@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700);
 
  +
background:none !important;
 
  +
padding: 0px !important;
/* Typography */
 
/* Makes site-wide what has been implemented on a page-by-page basis */
 
 
.firstHeading {
 
font-weight:600;
 
border-bottom: none;
 
margin-bottom:10px;
 
padding-top:10px !important;
 
padding-left:0;
 
font-size: 2.4em !important;
 
width:100%;
 
margin:auto;
 
border-collapse:collapse;
 
vertical-align:top;
 
line-height:100%;
 
 
}
 
}
   
  +
/* Toggle mobile and non-mobile content based on resolution */
body {
 
  +
@media (min-width: 851px) {
font-family:'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
 
  +
.onlymobile {
  +
display: none;
  +
}
  +
.nomobile {
  +
display: block;
  +
}
  +
.full-width-image {
  +
max-height: 300px;
  +
}
  +
.full-width-image img {
  +
object-fit: none;
  +
object-position: center;
  +
width: 100%;
  +
}
 
}
 
}
  +
@media (max-width: 850px) {
 
  +
.onlymobile {
div#content h1, div#content h2, div#content, #firstHeading {
 
  +
display: block;
font-family:'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
 
  +
}
  +
.nomobile {
  +
display: none;
  +
}
  +
.full-width-image img {
  +
max-width: 100%;
  +
height: auto;
  +
width: auto;
  +
}
 
}
 
}
   
  +
/* Allow to have a full width image (banner) */
@media screen and (min-width:750px) {
 
  +
.full-width-image {
div#bodyContent {
 
  +
position: relative;
font-size:1.05em; padding:0;
 
  +
overflow: hidden;
}
 
  +
max-width: 1800px;
p {
 
  +
height: auto;
margin-bottom:1em;
 
  +
margin-bottom: .6em;
}
 
 
}
 
}
   
  +
/* CSS for 2023 Toronto pages coming up*/
/* Main Page Banner */
 
  +
.banner_title {
 
  +
position: absolute;
.banner-image {
 
  +
top:20px; left:20px;
position: relative;
 
  +
color:white;
overflow: hidden;
 
  +
font-size:200%;
max-width: 65em;
 
  +
padding:20px;
width: 100%;
 
  +
background-color:rgb(0, 0, 0); /* The fallback color */
height: auto;
 
  +
background-color:rgba(0, 0, 0, 0.5);
margin-bottom: .6em;
 
  +
font-family:'Linux Libertine',serif;
text-align: center;
 
padding-left: 0 !important;
 
}
 
.banner-image img {
 
width: 100%;
 
height: auto;
 
width: auto\9;
 
margin:0 auto;
 
 
}
 
}
   
  +
.banner_subtitle {
.page-2015_Main_Page #firstHeading, .page-2015_Main_Page #yearline {
 
  +
font-size:60%;
display: none;
 
  +
font-family:'Montserrat','Helvetica Neue', Helvetica, Arial, sans-serif;
  +
font-weight:normal;
 
}
 
}
   
  +
/* For 2023 Toronto event: Hide the first-level heading on the pages. */
/* Copied from Wikivoyage for scalable-width images */
 
  +
h1.firstHeading { display: none !important; }
 
@media screen and (max-width:799px) {
 
.banner-image {
 
position: relative;
 
overflow: hidden;
 
max-width: 1125px;
 
width: 100%;
 
height: auto;
 
margin-bottom: .6em;
 
text-align: center;
 
padding-left: 0 !important;
 
}
 
.banner-image img {
 
width: 100%;
 
height: auto;
 
width: auto\9;
 
margin:0 auto;
 
}
 
#main-subhead {
 
display:none;
 
}
 
}
 
 
@media screen and (min-width:800px) {
 
.banner-image {
 
float: right;
 
position: relative;
 
overflow: hidden;
 
max-width: 1125px;
 
height: auto;
 
margin-bottom: .6em;
 
}
 
.banner-image img {
 
float: right;
 
width: 100%;
 
height: auto;
 
width: auto\9;
 
}
 
.banner-image-left {
 
float: left !important;
 
}
 
.banner-image-left img {
 
float: left !important;
 
}
 
.banner-image-none {
 
float: none !important;
 
}
 
.banner-image-none img {
 
float: none !important;
 
}
 
.banner-image-center {
 
padding-left: none !important;
 
float: none !important;
 
margin-left: auto !important;
 
margin-right: auto !important;
 
}
 
.banner-image-center img {
 
float: none !important;
 
}
 
}
 
 
/* Arrow button formatting */
 
 
.arrowbutton {
 
color:#ffffff;
 
width:100px;
 
padding:0.4em;
 
line-height:1.5em;
 
}
 
 
.arrowbutton::before {
 
content:"⇒ ";
 
font-weight:bold;
 
}
 
 
.arrowbutton-red {
 
background:#7e322c;
 
}
 
 
.arrowbutton-green {
 
background:#53946b;
 
}
 
 
.arrowbutton-blue {
 
background:#4f79a2;
 
}
 
 
.arrowbutton-gold {
 
background:#E5B921;
 
}
 
 
.arrowbutton-red:hover {
 
background: #EDDEDE !important;
 
color: #000000 !important;
 
}
 
 
.arrowbutton-green:hover {
 
background: #DEEDE6 !important;
 
color: #000000 !important;
 
}
 
 
.arrowbutton-blue:hover {
 
background: #DEE7ED !important;
 
color: #000000 !important;
 
}
 
 
.arrowbutton-gold:hover {
 
background: #faefcb !important;
 
color: #000000 !important;
 
}
 
 
@media screen and (min-width:800px) {
 
#megaheader {
 
height:500px;
 
}
 
}
 
 
@media screen and (max-width:799px) {
 
#megaheader {
 
height:auto;
 
}
 
}
 
 
#megaheader img {
 
opacity:0;
 
-moz-transition: opacity 2s; /* Firefox 4 */
 
-webkit-transition: opacity 2s; /* Safari and Chrome */
 
-o-transition: opacity 2s;
 
transition: opacity 2s;
 
}
 

Latest revision as of 19:48, 23 June 2023

@import url(//wikimediadc.org/index.php?title=MediaWiki:Common.css&action=raw&ctype=text/css);

div#content a[href ^="https://craignewmarkphilanthropies.org/"].external {
     background:none !important;
     padding: 0px !important;
}

/* Toggle mobile and non-mobile content based on resolution */
@media (min-width: 851px) {
	.onlymobile {
		display: none;
	}
	.nomobile {
		display: block;
	}
	.full-width-image {
		max-height: 300px;
	}
	.full-width-image img {
		object-fit: none;
		object-position: center;
		width: 100%;
	}
}
@media (max-width: 850px) {
	.onlymobile {
		display: block;
	}
	.nomobile {
		display: none;
	}
	.full-width-image img {
		max-width: 100%;
		height: auto;
		width: auto;
	}
}

/* Allow to have a full width image (banner) */
.full-width-image {
	position: relative;
	overflow: hidden;
	max-width: 1800px;
	height: auto;
	margin-bottom: .6em;
}

/* CSS for 2023 Toronto pages coming up*/
.banner_title {
	position: absolute;
	top:20px; left:20px;
	color:white;
	font-size:200%;
	padding:20px;
	background-color:rgb(0, 0, 0); /* The fallback color */
	background-color:rgba(0, 0, 0, 0.5);
	font-family:'Linux Libertine',serif;
}

.banner_subtitle {
	font-size:60%;
	font-family:'Montserrat','Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight:normal;
}

/* For 2023 Toronto event: Hide the first-level heading on the pages. */
h1.firstHeading { display: none !important; }