User:Numa Numa/monobook.css

From Homestar Runner Wiki

< User:Numa Numa(Difference between revisions)
Jump to: navigation, search
(New page: /* Link to the template */ - change the logo: #p-logo a { background: url(http://www.hrwiki.org/images/c/c9/Homestarpedia.png) 1% 2% no-repeat !...)
 
Line 1: Line 1:
-
/* [[User:Techgeekmbg/monobook.css|Link to the template]] */
+
+ /* NOT MY OWN WORK. MADE BY OTHER USERS. */
-
 
+
+ /* <nowiki> */
-
/* change the logo */
+
+
-
#p-logo a {
+
+ /* Thanks to http://en.wikipedia.org/wiki/User:Trilobite/Tools for the below tweaks! */
-
    background: url(http://www.hrwiki.org/images/c/c9/Homestarpedia.png) 1% 2% no-repeat !important;
+
+
-
}
+
+ window.onload = Main;
-
 
+
+ function Main() {
-
 
+
+ addtoolboxlinks();
-
/* Styling links to the Fanstuff Wiki */
+
+ LivePreviewInstall();
-
#bodyContent a[href ^="http://fanstuff.hrwiki.org"],
+
+ morelinks();
-
#article a[href ^="http://fanstuff.hrwiki.org"]
+
+ }
-
 
+
+
-
{
+
+ /* Adds some useful links to the "toolbox" on the sidebar. */
-
 
+
+
-
  background: url(http://fanstuff.hrwiki.org/favicon.ico) center left no-repeat !important;
+
+ function addlilink(tabs, url, name, id) {
-
  padding-left: 20px !important;
+
+ var na = document.createElement('a');
-
  padding-right: 0px !important;
+
+ na.href = url;
-
 
+
+ na.id = id;
-
}
+
+ na.appendChild(document.createTextNode(name));
-
 
+
+ var li = document.createElement('li');
-
/* blinking rollback link, to help with carelessness */  
+
+ li.appendChild(na);
-
#bodyContent a[href *="rollback"] {
+
+ tabs.appendChild(li);
-
    text-decoration: blink !important;
+
+ return li;
-
    color: #000 !important;
+
+ }
-
    background-color: #ccc !important;
+
+
-
    border: 1px dashed #000 !important;
+
+ /* I don't mind if the following section is copied. */
-
}
+
+ function addtoolboxlinks() {
-
 
+
+ var tb = document.getElementById('p-tb').getElementsByTagName('ul')[0];
-
 
+
+ addlilink(tb, 'http://s13.invisionfree.com/Fanstuff/', 'Forum','');
-
.MainPageWhatsNewBox h3, .MainPageWikiStuffBox h3 {
+
+ addlilink(tb, '/index.php/User:Super Sonic X/Sig', 'Edit Signature', '');
-
    margin: 0 -.3em;
+
+ addlilink(tb, 'http://fanstuff.hrwiki.org/index.php/User:Super Sonic X/Sig', 'Edit HRFWiki Signature', '');
-
    padding: .3em;
+
+ addlilink(tb, 'http://fanstuff.hrwiki.org/index.php/SSXMails', 'SSXMails', '');
-
    font-size: 120%;
+
+ addlilink(tb, 'http://fanstuff.hrwiki.org/index.php/Stuff With Class', 'Stuff With Class', '');
-
    color: #FFF;
+
+ addlilink(tb, 'http://fanstuff.hrwiki.org/index.php/Homestar Adventure Game DX!', 'Homestar Adventure Game DX!', '');
-
    background: url(/skins/common/images/header-background-redfade.gif) repeat-x top #012B60;
+
+ addlilink(tb, 'http://fanstuff.hrwiki.org/index.php/User:Super Sonic X/Simpsons:H&R', 'Simpsons: Hit & Run Guide', '');
-
    border: none;
+
+ addlilink(tb, 'http://www.homestarrunner.com', 'Homestar Runner.com', '');
-
}
+
+ }
-
 
+
+
-
.MainPageKnowledgeBaseBox h3 {
+
+ /* Adds "LivePreview" [http://en.wikipedia.org/wiki/User:Pilaf/Live_Preview]. */
-
    margin: 0 -.3em;
+
+
-
    padding: .3em;
+
+ wpUserName = 'Super Sonic X';
-
    font-size: 120%;
+
+ wpShowImages = true;
-
    color: #FFF;
+
+ document.write('<script type="text/javascript" src="http://en.wikipedia.org/w/index.php?title=User:Pilaf/livepreview.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
-
    background: url(/skins/common/images/header-background-bluefade.gif) repeat-x top #500401;
+
+
-
    border: none;
+
+ /* </nowiki> */
-
}
+
-
h3, h4, h6 {
+
-
    color: black;
+
-
    margin: 0px;
+
-
    text-decoration: underline;
+
-
}
+
-
 
+
-
h1 {
+
-
    color: blue;
+
-
    margin: 0px;
+
-
}
+
-
 
+
-
h5 {
+
-
    color: green;
+
-
    margin: 0px;
+
-
}
+
-
 
+
-
a { color: #000; }
+
-
 
+
-
a:visited { color: #000; }
+
-
 
+
-
a:active { color: #000; }
+
-
 
+
-
a.new, #p-personal a.new { color: #000; text-decoration: blink; }
+
-
 
+
-
a.new:visited, #p-personal a.new:visited { color:#000; text-decoration: blink; }
+
-
 
+
-
:link.external, :link.extiw { color:#000; }
+
-
 
+
-
a.interwiki { color:#000; }
+
-
 
+
-
:link[href ="http://www.homestarrunner.com "] { color:#000; }
+
-
 
+
-
    /* make a few corners round, only supported by moz/firefox/other gecko browsers for now */
+
-
    #p-cactions ul li, #p-cactions ul li a { 
+
-
      -moz-border-radius-topleft: 1em;
+
-
      -moz-border-radius-topright: 1em;
+
-
    }
+
-
    #content {
+
-
      -moz-border-radius-topleft: 1em;
+
-
      -moz-border-radius-topright: 1em;
+
-
      -moz-border-radius-bottomleft: 1em;
+
-
      -moz-border-radius-bottomright: 1em;
+
-
    }
+
-
    div.pBody {
+
-
      -moz-border-radius-topleft: 1em;
+
-
      -moz-border-radius-topright: 1em;
+
-
      -moz-border-radius-bottomleft: 1em;
+
-
      -moz-border-radius-bottomright: 1em;
+
-
    }
+
-
   
+
-
    /* same following the css3 draft specs, any browsers supporting this? */
+
-
    #p-cactions ul li, #p-cactions ul li a { 
+
-
      border-radius-topleft: 1em;
+
-
      border-radius-topright: 1em;
+
-
    }
+
-
    #content {
+
-
      border-radius-topleft: 1em;
+
-
      border-radius-topright: 1em;
+
-
      border-radius-bottomleft: 1em;
+
-
      border-radius-bottomright: 1em;
+
-
    }
+
-
    div.pBody {
+
-
      border-radius-topleft: 1em;
+
-
      border-radius-topright: 1em;
+
-
      border-radius-bottomleft: 1em;
+
-
      border-radius-bottomright: 1em;
+
-
    }
+
-
+
-
#p-nav, #footer { opacity:0.50; }
+
-
+
-
body { background: white; }
+
-
 
+
-
#footer {
+
-
  margin-left: 13.6em;
+
-
  border-left: 1px solid #fabd23;
+
-
  border-right: 1px solid #fabd23;
+
-
  -moz-border-radius-bottomleft: 12px;
+
-
  -moz-border-radius-bottomright: 12px;
+
-
  -moz-border-radius-topleft: 12px;
+
-
  -moz-border-radius-topright: 12px;
+
-
+
-
#p-logo, #p-nav, #p-navigation, #p-search, #p-tb, #p-lang, #p-interaction {
+
-
  position: fixed;
+
-
 
+
-
    /* suppress the person icon by your username */
+
-
    li#pt-userpage { background: none }
+
-
+
-
#mytabs {
+
-
  width: 100%;
+
-
  font-size: smaller;
+
-
  position: static;
+
-
}
+
-
#mytabs h5 { display: none }
+
-
#mytabs ul { margin: 0; }
+
-
#mytabs li { display: inline; }
+
-
#mytabs li a {
+
-
  padding: 0 0.4em;
+
-
  border-left: 1px solid Grey;
+
-
}
+
-
 
+
-
/* Transform the user toolbar into a sidebox */
+
-
#p-personal {
+
-
    position:relative;
+
-
    z-index:3;
+
-
    width: 11.6em;
+
-
    margin: 0 0 0.5em 0em;
+
-
}
+
-
 
+
-
#p-personal .pBody {
+
-
    border: none;
+
-
    margin: 0 0 0.5em 0em;
+
-
    float: none;
+
-
    overflow: hidden;
+
-
    background: White;
+
-
    border-collapse: collapse;
+
-
    border: 1px solid #aaaaaa;
+
-
    padding: 0 0.8em 0.3em 0.5em;
+
-
}
+
-
 
+
-
#p-personal ul {
+
-
    line-height: 1.5em;
+
-
    list-style-type: square;
+
-
    list-style-image: url("/stylesheets/monobook/bullet.gif");
+
-
    margin: 0.3em 0 0 1.5em;
+
-
    padding:0;
+
-
    text-align:left;
+
-
    text-transform: none;
+
-
}
+
-
 
+
-
#p-personal li {
+
-
    display: list-item;
+
-
    padding:0;
+
-
    margin: 0 0 0 0;
+
-
    margin-bottom: 0.1em;
+
-
 
+
-
}
+
-
 
+
-
/* supress the person icon by your username */
+
-
li#pt-userpage { background: none }
+
-
 
+
-
 
+
-
/* bottom tab styling (not for IE currently) */
+
-
#mytabs {
+
-
    margin: -0.5em 0 0  11.5em;
+
-
    white-space:nowrap;
+
-
    line-height: 1.1em;
+
-
    overflow: visible;
+
-
    border-collapse: collapse;
+
-
    padding: 0 0 0 1em;
+
-
    list-style: none;
+
-
    font-size: 95%;
+
-
}
+
-
#mytabs .hiddenStructure { display: none; }
+
-
#mytabs li {
+
-
    display: inline;
+
-
    border: 1px solid #aaaaaa;
+
-
    border-top: none;
+
-
    padding: 0.1em 0 0 0;
+
-
    margin: 0 0.3em 0 0;
+
-
    overflow: visible;
+
-
    background: #BBBBBB; 
+
-
 
+
-
}
+
-
#mytabs li.selected {
+
-
    background: #FFFFFF;
+
-
    border-color: #fabd23;
+
-
    padding: 0.2em 0 0 0;
+
-
}
+
-
#mytabs ul li a { background: white; }
+
-
#mytabs ul li.selected a { background: white;} 
+
-
 
+
-
#mytabs li a {
+
-
 
+
-
    color: #00f;
+
-
    border: none;
+
-
    padding: 0.3em 0.8em 0 0.8em;
+
-
    text-decoration: none;
+
-
    text-transform: lowercase;
+
-
    position: relative;
+
-
    margin: 0;
+
-
}
+
-
#mytabs li.selected a { z-index: 3; }
+
-
#mytabs .new a { color:#ba0000; }
+
-
#mytabs li a:hover { z-index: 0; text-decoration: none; }
+
-
#mytabs li.selected a:hover { z-index: 3; }
+
-
#mytabs h5 { display: none; }
+
-
#mytabs li.istalk { margin-right: 0; }
+
-
#mytabs li.istalk a { padding-right: 0.5em; }
+
-
#mytabs-ca-addsection a {
+
-
    padding-left: 0.4em;
+
-
    padding-right: 0.4em;
+
-
}
+
-
/* offsets to distinguish the tab groups */
+
-
li#mytabs-ca-talk { margin-right: 1.6em; }
+
-
li#mytabs-ca-watch { margin-left: 1.6em; }
+
-
 
+
-
/* Styling links to Homestar Runner */
+
-
#n-officialsite a,
+
-
#bodyContent a[href ^="http://podstar.homestarrunner.com/"],
+
-
#article a[href ^="http://podstar.homestarrunner.com/"]
+
-
{
+
-
    background: url(/skins/monobook/hr-trans-blacker4.png) center left no-repeat !important;
+
-
    padding-left: 23px !important;
+
-
    padding-right: 0px !important;
+
-
}
+

Current revision as of 02:37, 6 September 2007

	+	/* NOT MY OWN WORK. MADE BY OTHER USERS. */
 	+	/* <nowiki> */
 	+	
 	+	/* Thanks to http://en.wikipedia.org/wiki/User:Trilobite/Tools for the below tweaks! */
 	+	
 	+	window.onload = Main;
 	+	function Main() {
 	+	addtoolboxlinks();
 	+	LivePreviewInstall();
 	+	morelinks();
 	+	}
 	+	
 	+	/* Adds some useful links to the "toolbox" on the sidebar. */
 	+	
 	+	function addlilink(tabs, url, name, id) {
 	+	var na = document.createElement('a');
 	+	na.href = url;
 	+	na.id = id;
 	+	na.appendChild(document.createTextNode(name));
 	+	var li = document.createElement('li');
 	+	li.appendChild(na);
 	+	tabs.appendChild(li);
 	+	return li;
 	+	}
 	+	
 	+	/* I don't mind if the following section is copied. */
 	+	function addtoolboxlinks() {
 	+	var tb = document.getElementById('p-tb').getElementsByTagName('ul')[0];
 	+	addlilink(tb, 'http://s13.invisionfree.com/Fanstuff/', 'Forum','');
 	+	addlilink(tb, '/index.php/User:Super Sonic X/Sig', 'Edit Signature', '');
 	+	addlilink(tb, 'http://fanstuff.hrwiki.org/index.php/User:Super Sonic X/Sig', 'Edit HRFWiki Signature', '');
 	+	addlilink(tb, 'http://fanstuff.hrwiki.org/index.php/SSXMails', 'SSXMails', '');
 	+	addlilink(tb, 'http://fanstuff.hrwiki.org/index.php/Stuff With Class', 'Stuff With Class', '');
 	+	addlilink(tb, 'http://fanstuff.hrwiki.org/index.php/Homestar Adventure Game DX!', 'Homestar Adventure Game DX!', '');
 	+	addlilink(tb, 'http://fanstuff.hrwiki.org/index.php/User:Super Sonic X/Simpsons:H&R', 'Simpsons: Hit & Run Guide', '');
 	+	addlilink(tb, 'http://www.homestarrunner.com', 'Homestar Runner.com', '');
 	+	}
 	+	
 	+	/* Adds "LivePreview" [http://en.wikipedia.org/wiki/User:Pilaf/Live_Preview]. */
 	+	
 	+	wpUserName = 'Super Sonic X';
 	+	wpShowImages = true;
 	+	document.write('<script type="text/javascript" src="http://en.wikipedia.org/w/index.php?title=User:Pilaf/livepreview.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 	+	
 	+	/* </nowiki> */
Personal tools