MediaWiki:Monobook.css

De Lgmaths.

(Différences entre les versions)
 
(71 versions intermédiaires masquées)
Ligne 1 : Ligne 1 :
 +
--------
 +
 +
/* supprimer l'icône à côté du nom d'utilisateur */
 +
li#pt-userpage { background: none }
 +
 +
 +
#f-poweredbyico  { display: none }
 +
 +
#footer  { display: none }
 +
 +
/* Fenêtres arrondies (pour les navigateurs moz/firefox/gecko) */
/* Fenêtres arrondies (pour les navigateurs moz/firefox/gecko) */
   
   
Ligne 14 : Ligne 25 :
   -moz-border-radius-topleft: 0.5em;
   -moz-border-radius-topleft: 0.5em;
}
}
-
// Modification de l'onglet Google de Dake par GôTô
+
 
-
function getArticleName()
+
/* css Zen Garden default style v1.02 */
-
{
+
/* css released under Creative Commons License - http://creativecommons.org/licenses/by-nc-sa/1.0/ */
-
var strOut = document.title
+
 
-
// case search
+
/* This file based on 'Tranquille' by Dave Shea */
-
if (strOut == "Rechercher - Wikipédia")
+
/* You may use this file as a foundation for any new work, but you may find it easier to start from scratch. */
-
return document.getElementById("lsearchbox").value
+
/* Not all elements are defined in this file, so you'll most likely want to refer to the xhtml as well. */
-
// case article being modified
+
 
-
strOut = strOut.replace("modification de ", "").replace(" - Modifier", "")
+
/* Your images should be linked as if the CSS file sits in the same folder as the images. ie. no paths. */
-
+
 
-
strOut = strOut.replace(" - Prévisualiser", "")
+
 
-
strOut = strOut.replace(" - Wikipédia", "")
+
/* basic elements */
-
return strOut
+
html {
-
}
+
margin: 0;
-
   
+
padding: 0;
-
var whichWiki = "en"
+
-
function setWiki()
+
-
{
+
-
var newWiki = document.getElementById("elmtWhichWiki").value
+
-
// trim
+
-
newWiki = newWiki.replace(/ /g, "")
+
-
if (/com(mon)?/.test(newWiki))
+
-
newWiki = "commons"
+
-
else if (/méta/.test(newWiki))
+
-
newWiki = "meta"
+
-
// no need to change
+
-
if (newWiki == whichWiki)
+
-
return
+
-
var elmt = document.getElementById("whichW")
+
-
// it was a wikipedia and now it's a wikimedia (commons or meta)
+
-
if (/commons|meta/.test(newWiki) && !(/commons|meta/.test(whichWiki)))
+
-
{
+
-
elmt.href = elmt.href.replace(".wikipedia.org", ".wikimedia.org")
+
-
elmt.title = elmt.title.replace(".wikipedia.org", ".wikimedia.org")
+
}
}
-
// it was a wikimedia (commons or meta) and now it's a wikipedia
+
body {
-
else if (/commons|meta/.test(whichWiki) && !(/commons|meta/.test(newWiki)))
+
font: 75% georgia, sans-serif;
-
{
+
line-height: 1.88889;
-
elmt.href = elmt.href.replace(".wikimedia.org", ".wikipedia.org")
+
color: #555753;
-
elmt.title = elmt.title.replace(".wikimedia.org", ".wikipedia.org")
+
background: #fff url(blossoms.jpg) no-repeat bottom right;
 +
margin: 0;
 +
padding: 0;
}
}
-
// in any case
+
p {
-
elmt.href = elmt.href.replace("http://" + whichWiki, "http://" + newWiki)
+
margin-top: 0;
-
elmt.title = elmt.title.replace("sur " + whichWiki, "sur " + newWiki)
+
text-align: justify;
-
whichWiki = newWiki
+
}
 +
h3 {
 +
font: italic normal 1.4em georgia, sans-serif;
 +
letter-spacing: 1px;
 +
margin-bottom: 0;
 +
color: #7D775C;
 +
}
 +
a:link {
 +
font-weight: bold;
 +
text-decoration: none;
 +
color: blue;
 +
}
 +
a:visited {
 +
font-weight: bold;
 +
text-decoration: none;
 +
color: blue;
 +
}
 +
a:hover, a:active {
 +
text-decoration: bold;
 +
color: red;
 +
}
 +
acronym {
 +
border-bottom: none;
 +
}
 +
 
 +
 
 +
/* specific divs */
 +
#container {
 +
background: url(zen-bg.jpg) no-repeat top left;
 +
padding: 0 175px 0 110px; 
 +
margin: 0;
 +
position: relative;
 +
}
 +
 
 +
#intro {
 +
min-width: 470px;
 +
}
 +
 
 +
/* using an image to replace text in an h1. This trick courtesy Douglas Bowman, http://www.stopdesign.com/articles/css/replace-text/ */
 +
#pageHeader h1 {
 +
background: transparent url(h1.gif) no-repeat top left;
 +
margin-top: 10px;
 +
width: 219px;
 +
height: 87px;
 +
float: left;
 +
}
 +
#pageHeader h1 span {
 +
display:none
 +
}
 +
#pageHeader h2 {
 +
background: transparent url(h2.gif) no-repeat top left;
 +
margin-top: 58px;
 +
margin-bottom: 40px;
 +
width: 200px;
 +
height: 18px;
 +
float: right;
 +
}
 +
#pageHeader h2 span {
 +
display:none
 +
}
 +
#pageHeader {
 +
padding-top: 20px;
}
}
-
+
 
-
function searchLinks()
+
#quickSummary {
-
{
+
clear:both;
-
var site = (/commons|meta/.test(whichWiki) ? 'wikimedia' : 'wikipedia')
+
margin: 20px 20px 20px 10px;
-
var a = document.getElementById("p-cactions")
+
width: 160px;
-
if (a)
+
float: left;
-
{
+
}
-
var pageName = getArticleName()
+
#quickSummary p {
-
var ulElmt = a.getElementsByTagName("ul")
+
font: italic 10pt/22pt georgia;
-
+
text-align:center;
-
if(ulElmt.length > 0)
+
}
-
{
+
 
-
ulElmt[0].innerHTML += '<li><a id="whichW" onmousedown="setWiki()" onkeydown="setWiki()" href="http://' + whichWiki + '.' + site + '.org/wiki/Special:Search?search=' + pageName + '" title="Rechercher ' + pageName + '">'
+
#preamble {
-
+ 'Recherche wp</a>'
+
clear: right;
-
+ '<input type=text id="elmtWhichWiki" style="color : #002bb8; font: normal 8pt Arial; text-align: top; border: 0px; background: none; width: 50px" maxlength="7" value="' + whichWiki + '">'
+
padding: 0px 10px 0 10px;
-
+ '<span style="color: #002bb8; font-weight: bold; padding-left: 0.5em; background: none">G:</span>'
+
}
-
+ '<a href="http://www.google.fr/search?num=20&hl=en&safe=off&q=site%3Afr.wikipedia.org+' + pageName + '&btnG=Search" title="Rechercher sur Google dans fr.wikipédia.org">'
+
#supportingText {
-
+ 'wp-fr</a>'
+
padding-left: 10px;
-
+ '<a href="http://www.google.fr/search?num=20&hl=en&safe=off&q=site%3Awikipedia.org+' + pageName + '&btnG=Search" title="Rechercher sur Google dans wikipédia.org">'
+
margin-bottom: 40px;
-
+ 'wp</a>'
+
}
-
+ '<a href="http://www.google.fr/search?num=20&hl=fr&safe=off&q=' + pageName + '&btnG=Search&meta=lr%3Dlang_fr" title="Rechercher sur Google dans tout le web en français">'
+
 
-
+ 'web-fr</a>'
+
#footer {  
-
+ '<a href="http://www.google.fr/search?num=20&hl=en&safe=off&q=' + pageName + '&btnG=Search" title="Rechercher sur Google dans tout le web">'
+
text-align: center;
-
+ 'web</a>'
+
}
-
+ '</li>'
+
#footer a:link, #footer a:visited {
-
}
+
margin-right: 20px;
 +
}
 +
 
 +
#linkList {
 +
margin-left: 600px;
 +
position: absolute;
 +
top: 0;
 +
right: 0;
 +
}
 +
#linkList2 {
 +
font: 10px verdana, sans-serif;  
 +
background: transparent url(paper-bg.jpg) top left repeat-y;
 +
padding: 10px;
 +
margin-top: 150px;  
 +
width: 130px;  
 +
}
 +
#linkList h3.select {
 +
background: transparent url(h3.gif) no-repeat top left;  
 +
margin: 10px 0 5px 0;
 +
width: 97px;
 +
height: 16px;
 +
}
 +
#linkList h3.select span {
 +
display:none
 +
}
 +
#linkList h3.favorites {
 +
background: transparent url(h4.gif) no-repeat top left;
 +
margin: 25px 0 5px 0;  
 +
width: 60px;
 +
height: 18px;
 +
}
 +
#linkList h3.favorites span {
 +
display:none
 +
}
 +
#linkList h3.archives {
 +
background: transparent url(h5.gif) no-repeat top left;
 +
margin: 25px 0 5px 0;
 +
width:57px;
 +
height: 14px;
 +
}
 +
#linkList h3.archives span {
 +
display:none
 +
}
 +
#linkList h3.resources {
 +
background: transparent url(h6.gif) no-repeat top left;
 +
margin: 25px 0 5px 0;
 +
width:63px;
 +
height: 10px;
 +
}
 +
#linkList h3.resources span {
 +
display:none
 +
}
 +
 
 +
 
 +
#linkList ul {
 +
margin: 0;
 +
padding: 0;
 +
}
 +
#linkList li {
 +
line-height: 2.5ex;
 +
background: transparent url(cr1.gif) no-repeat top center;
 +
display: block;
 +
padding-top: 5px;
 +
margin-bottom: 5px;
 +
list-style-type: none;
 +
}
 +
#linkList li a:link {
 +
color: blue;
 +
}
 +
#linkList li a:visited {
 +
color: blue;
 +
}
 +
 
 +
 
 +
#extraDiv1 {
 +
background: transparent url(cr2.gif) top left no-repeat;
 +
position: absolute;
 +
top: 40px;
 +
right: 0;
 +
width: 148px;
 +
height: 110px;
 +
}
 +
.accesskey {
 +
text-decoration: underline;
}
}
-
}
 
-
addOnloadHook(searchLinks)
 

Version actuelle en date du 22 juillet 2010 à 14:32

--------

/* supprimer l'icône à côté du nom d'utilisateur */
li#pt-userpage { background: none }


#f-poweredbyico  { display: none }

#footer   { display: none }


/* Fenêtres arrondies (pour les navigateurs moz/firefox/gecko) */
 
.pBody {
   padding: 0.3em 0.3em;
   -moz-border-radius-topright: 0.5em;
}
 
.portlet h5 {
   -moz-border-radius-topright: 0.5em;
}
 
#p-cactions ul li, #p-cactions ul li a {  
  -moz-border-radius-topright: 0.5em;
  -moz-border-radius-topleft: 0.5em;
}

/* css Zen Garden default style v1.02 */
/* css released under Creative Commons License - http://creativecommons.org/licenses/by-nc-sa/1.0/  */

/* This file based on 'Tranquille' by Dave Shea */
/* You may use this file as a foundation for any new work, but you may find it easier to start from scratch. */
/* Not all elements are defined in this file, so you'll most likely want to refer to the xhtml as well. */

/* Your images should be linked as if the CSS file sits in the same folder as the images. ie. no paths. */


/* basic elements */
html {
	margin: 0;
	padding: 0;
	}
body { 
	font: 75% georgia, sans-serif;
	line-height: 1.88889;
	color: #555753; 
	background: #fff url(blossoms.jpg) no-repeat bottom right; 
	margin: 0; 
	padding: 0;
	}
p { 
	margin-top: 0; 
	text-align: justify;
	}
h3 { 
	font: italic normal 1.4em georgia, sans-serif;
	letter-spacing: 1px; 
	margin-bottom: 0; 
	color: #7D775C;
	}
a:link { 
	font-weight: bold; 
	text-decoration: none;
	color: blue;
	}
a:visited { 
	font-weight: bold; 
	text-decoration: none; 
	color: blue;
	}
a:hover, a:active { 
	text-decoration: bold; 
	color: red;
	}
acronym {
	border-bottom: none;
	}


/* specific divs */
#container { 
	background: url(zen-bg.jpg) no-repeat top left; 
	padding: 0 175px 0 110px;  
	margin: 0; 
	position: relative;
	}

#intro { 
	min-width: 470px;
	}

/* using an image to replace text in an h1. This trick courtesy Douglas Bowman, http://www.stopdesign.com/articles/css/replace-text/ */
#pageHeader h1 { 
	background: transparent url(h1.gif) no-repeat top left; 
	margin-top: 10px; 
	width: 219px; 
	height: 87px; 
	float: left;
	}
#pageHeader h1 span {
	display:none
	}
#pageHeader h2 { 
	background: transparent url(h2.gif) no-repeat top left; 
	margin-top: 58px; 
	margin-bottom: 40px; 
	width: 200px; 
	height: 18px; 
	float: right;
	}
#pageHeader h2 span {
	display:none
	}
#pageHeader {
	padding-top: 20px;
}

#quickSummary {
	clear:both; 
	margin: 20px 20px 20px 10px; 
	width: 160px; 
	float: left;
	}
#quickSummary p {
	font: italic 10pt/22pt georgia; 
	text-align:center;
	}

#preamble {
	clear: right; 
	padding: 0px 10px 0 10px;
	}
#supportingText {	
	padding-left: 10px; 
	margin-bottom: 40px;
	}

#footer { 
	text-align: center; 
	}
#footer a:link, #footer a:visited { 
	margin-right: 20px; 
	}

#linkList {
	margin-left: 600px; 
	position: absolute; 
	top: 0; 
	right: 0;
	}
#linkList2 { 
	font: 10px verdana, sans-serif; 
	background: transparent url(paper-bg.jpg) top left repeat-y; 
	padding: 10px; 
	margin-top: 150px; 
	width: 130px; 
	}
#linkList h3.select { 
	background: transparent url(h3.gif) no-repeat top left; 
	margin: 10px 0 5px 0; 
	width: 97px; 
	height: 16px; 
	}
#linkList h3.select span {
	display:none
	}
#linkList h3.favorites { 
	background: transparent url(h4.gif) no-repeat top left; 
	margin: 25px 0 5px 0; 
	width: 60px; 
	height: 18px; 
	}
#linkList h3.favorites span {
	display:none
	}
#linkList h3.archives { 
	background: transparent url(h5.gif) no-repeat top left; 
	margin: 25px 0 5px 0; 
	width:57px; 
	height: 14px; 
	}
#linkList h3.archives span {
	display:none
	}
#linkList h3.resources { 
	background: transparent url(h6.gif) no-repeat top left; 
	margin: 25px 0 5px 0; 
	width:63px; 
	height: 10px; 
	}
#linkList h3.resources span {
	display:none
	}


#linkList ul {
	margin: 0;
	padding: 0;
	}
#linkList li {
	line-height: 2.5ex; 
	background: transparent url(cr1.gif) no-repeat top center; 
	display: block; 
	padding-top: 5px; 
	margin-bottom: 5px;
	list-style-type: none;
	}
#linkList li a:link {
	color: blue;
	}
#linkList li a:visited {
	color: blue;
	}


#extraDiv1 {
	background: transparent url(cr2.gif) top left no-repeat; 
	position: absolute; 
	top: 40px; 
	right: 0; 
	width: 148px; 
	height: 110px;
	}
.accesskey {
	text-decoration: underline;
	}
Outils personnels