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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */

/* The Astra skin has a problem with page previews and potentially other MediaWiki extensions given its relative body element. */
/* This can be worked around by adding the following to MediaWiki:Common.css: */
body:not(.logged-in) { position: static !important; }


/*masquer le titre de la page principale */
/*body.page-Main_Page.action-view 
h1.firstHeading, body.page-Main_Page.action-submit 
h1.firstHeading { display: none; }
*/

/* Réduire la taille du logo with Skin Timeless*/
.mw-wiki-logo {
   background-size: 50%;
}


/*hidden some tabs*/
/*#ca-history { display:none!important; }*/

/* Classes pour les colonnes des portails */
.portail-gauche,
.portail-droite {
	box-sizing: border-box;
}
.portail-gauche {
	float: left;
	padding-right: 1.2rem;
}
.portail-droite {
	float: right;
}
@media (max-width: 981px) {
	.portail-gauche,
	.portail-droite {
		float: none;
		width: auto !important;
	}
	.portail-gauche {
		padding-right: 0;
	}
}

/* Mise en page Accueil version 2017 */
/* From https://fr.wikipedia.org/wiki/MediaWiki:Common.css */

#accueil_2017_en-tete {
	background: linear-gradient(to bottom, #fff, #EAECF0);/*original #e8f2f8*/
	border-bottom: solid 1px #a8d7fc;
}
#accueil_2017_bandeau {
/*	background: url("//upload.wikimedia.org/wikipedia/commons/a/aa/Wikipedia-logo-v2-o50.svg") no-repeat -110px -15px;*/
/*	background: url("https://upload.wikimedia.org/wikipedia/commons/7/75/HSQu%C3%A9bec.svg") no-repeat -160px -15px;*/
	background: url("/mw19/images/7/75/HSQuébec.svg") no-repeat -160px -15px;
	background-size: 300px 300px;
	padding: 1.5rem 1rem 1rem;
	font-family: 'Open Sans', Sans-serif;
}
#accueil_2017_bloc-titre {
	display: inline-block;
	margin-left: 14rem;
	margin-bottom: 1rem;
	text-align: center;
	line-height: 1.6;
	color: #457;
}
#accueil_2017_bloc-titre > h2 {
	margin: 0;
	padding: 0;
	border: none;
	font-size: 125%;
	font-weight: bold;
	font-family: 'Open Sans', Sans-serif;
	color: #457;
}
#accueil_2017_bloc-titre > p {
	margin: 0;
	padding: 0;
	font-size: 95%;
}
#accueil_2017_bloc-liens {
	text-align: center;
	font-size: 90%;
	font-weight: bold;
}
#accueil_2017_lien-mobile {
	margin-bottom: 1rem;
}

#accueil_2017_contenu {
	margin-top: 1rem;
}
#accueil_2017_contenu .portail-gauche {
	width: 60%;
}
#accueil_2017_contenu .portail-droite {
	width: 40%;
}
#accueil_2017_contenu:after {
	clear: both;
	display: table;
	content: '';
}

.accueil_2017_cadre {
	box-shadow: 0 0 0.3rem #999;
	border-radius: 0.2rem;
	padding: 1.2rem;
	margin-bottom: 1.6rem;
}

.accueil_green_cadre {
	box-shadow: 0 0 0.3rem #999;
	border-radius: 0.2rem;
	padding: 1.2rem;
	margin-bottom: 1.6rem;
	background: #F5FFFA;
}

.accueil_pink_cadre {
	box-shadow: 0 0 0.3rem #999;
	border-radius: 0.2rem;
	padding: 1.2rem;
	margin-bottom: 1.6rem;
	background: #FFF5FA;
}

.accueil_purple_cadre {
	box-shadow: 0 0 0.3rem #999;
	border-radius: 0.2rem;
	padding: 1.2rem;
	margin-bottom: 1.6rem;
	background: #FAF5FF;
}

.accueil_brown_cadre {
	box-shadow: 0 0 0.3rem #999;
	border-radius: 0.2rem;
	padding: 1.2rem;
	margin-bottom: 1.6rem;
	background: #FFFFFF;
}

.accueil_blue_cadre {
	box-shadow: 0 0 0.3rem #999;
	border-radius: 0.2rem;
	padding: 1.2rem;
	margin-bottom: 1.6rem;
	background: #F5FAFF;
}

/* S'assurer que ces règles emportent bien la priorité sur toutes les skins */
/* From https://fr.wikipedia.org/wiki/MediaWiki:Common.css */

/*#mw-content-text .accueil_2017_cadre h2 {
	font-variant: small-caps;
	letter-spacing: 0.01em;
	border-bottom: solid 0.2rem #bdd8fb;
	margin: -0.4rem 0 0.5rem;
}
*/
.accueil_2017_pied {
	margin-top: 1.8em;
	font-size: 85%;
	text-align: right;
}

@media (min-width: 982px) {
	#accueil_2017_contenu {
		display: flex;
	}
	#accueil_2017_contenu .portail-gauche,
	#accueil_2017_contenu .portail-droite {
		display: flex;
		flex-direction: column;
	}
	.accueil_2017_cadre:nth-child(1) {
		flex-grow: 1;
	}
	.accueil_2017_cadre:nth-child(2) {
		flex-grow: 2;
	}
	.accueil_2017_cadre:nth-child(3) {
		flex-grow: 3;
	}
	.accueil_blue_cadre:nth-child(1) {
		flex-grow: 1;
	}
	.accueil_blue_cadre:nth-child(2) {
		flex-grow: 2;
	}
	.accueil_blue_cadre:nth-child(3) {
		flex-grow: 3;
	}
	.accueil_blue_cadre:nth-child(4) {
		flex-grow: 4;
	}
	.accueil_blue_cadre:nth-child(5) {
		flex-grow: 5;
	}
	.accueil_blue_cadre:nth-child(6) {
		flex-grow: 6;
	}
	.accueil_green_cadre:nth-child(1) {
		flex-grow: 1;
	}
	.accueil_green_cadre:nth-child(2) {
		flex-grow: 2;
	}
	.accueil_green_cadre:nth-child(3) {
		flex-grow: 3;
	}
	.accueil_green_cadre:nth-child(4) {
		flex-grow: 3;
	}
	.accueil_pink_cadre:nth-child(1) {
		flex-grow: 1;
	}
	.accueil_pink_cadre:nth-child(2) {
		flex-grow: 2;
	}
	.accueil_pink_cadre:nth-child(3) {
		flex-grow: 3;
	}
	.accueil_purple_cadre:nth-child(1) {
		flex-grow: 1;
	}
	.accueil_purple_cadre:nth-child(2) {
		flex-grow: 2;
	}
	.accueil_purple_cadre:nth-child(3) {
		flex-grow: 3;
	}
	.accueil_brown_cadre:nth-child(1) {
		flex-grow: 1;
	}
	.accueil_brown_cadre:nth-child(2) {
		flex-grow: 2;
	}
	.accueil_brown_cadre:nth-child(3) {
		flex-grow: 3;
	}
}

/*Modify police as Wikipedia*/
/* Vector uses the definition of font-size: 0.875em;*/
/* Source : https://en.wikipedia.org/wiki/Wikipedia:Typography*/
#bodyContent { 
	font-size: 14px; 
	/*font-family: "sans-serif";*/
	font-family: "Helvetica";
	line-height: 22px;
	color: #252525 ;
}

/*How to set maximum width in per cent for mobile view?*/

/*solution (to MediaWiki:Mobile.css):*/

@media screen and (max-width: 750px) {
    iframe {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }
}

/* Mise en valeur légère du lien All pages dans Timeless */
#n-All-pages a span {
    font-weight: 600;
    color: #444;
    display: inline-block;
    padding-top: 3px;
}

#n-All-pages a:hover span {
    color: #000;
    text-decoration: underline;
}

/* Style éditorial léger pour toutes les catégories dans Timeless */
#p-categories .mw-list-item a span {
    font-weight: 500;
    color: #444;
    display: inline-block;
    padding: 2px 0;
}

#p-categories .mw-list-item a:hover span {
    color: #000;
    text-decoration: underline;
}

/* Espacement léger entre les catégories */
#p-categories .mw-list-item {
    margin-bottom: 2px;
}