Header

From Wiki Lyrics

(Difference between revisions)
Line 1: Line 1:
-
/* Plik z którego korzystałem znajdziesz tutaj: http://meta.wikipedia.org/wiki/User:Lupo/monobook.js */
+
/* make the background behind the content area and the tabs a light grey */
 +
#content, #content table
 +
#p-cactions ul li a { background: #f5f5f5; }
-
function catlinksAtTop() {
+
/* stop background image from scrolling with content area */
-
  /* Przemieszcza linki do kategorii przed treść artykułu. */
+
body { background-attachment: fixed; }
-
  var contents  = document.getElementById('column-content');
+
-
  var catlinks = document.getElementById('catlinks');
+
-
  if (catlinks != null) {
+
/* replace the book in the background with something else */
-
    catlinks.parentNode.removeChild (catlinks);
+
body { background: Purple; }
-
    contents.insertBefore(catlinks, contents.firstChild);
+
-
  }
+
-
}
+
-
function languageAtTop() {
+
-
/* Przemieszcza linki do innych wikipedii przed treść artykułu. */
+
-
  var contents  = document.getElementById('column-content');
+
-
  var langlinks = document.getElementById('p-lang');
+
-
  if (langlinks != null) {
+
/* changes the background of pre areas  */
-
    langlinks.parentNode.removeChild (langlinks);
+
pre { background: White }
-
    contents.insertBefore(langlinks, contents.firstChild);
+
-
  }
+
-
}
+
-
function navAtTop() {
+
-
/* Przemieszcza linki nawigacji na samą góre menu. */
+
-
  var contents  = document.getElementById('column-one');
+
-
  var navig = document.getElementById('p-nav');
+
-
  if (navig != null) {
+
/* change the logo */
-
    navig.parentNode.removeChild (navig);
+
#p-logo a { background: url(http://en.wikipedia.org/upload/wiki.png) 35% 50% no-repeat !important; }
-
    navig.id = 'get-' + navig.id;
+
-
    contents.insertBefore(navig, contents.firstChild);
+
-
  }
+
-
}
+
-
function personalAtTop() {
+
-
/* Przemieszcza linki osobiste na samą góre menu. */
+
-
  var contents  = document.getElementById('column-content');
+
-
  var personal = document.getElementById('p-personal');
+
-
  if (personal != null) {
+
/* don't use any logo, move the boxes onto that area instead */
-
    personal.parentNode.removeChild (personal);
+
#p-logo { display: none }
-
    personal.id = 'get-' + personal.id;
+
#column-one { padding-top: 0; }
-
    contents.insertBefore(personal, contents.firstChild);
+
-
  }
+
-
}
+
-
function bottomTabs() {
+
/* suppress the person icon by your username */
-
  /* Klonuje linki do edycji i 1 przenosi na sam dół artykułu */
+
li#pt-userpage { background: none }
-
  var tabs = document.getElementById('p-cactions').cloneNode(true);
+
 
-
  /* Give all the named items new ids to avoid id clashes with the existing top "tabs". */
+
/* use browser prefs for text size and font */
-
  tabs.id = 'mytabs2';
+
body, #globalWrapper { font: inherit !important; }
-
  var listitems = tabs.getElementsByTagName('LI');
+
 
-
  for (i=0;i<listitems.length;i++) {
+
/* always underline links */
-
    if(listitems[i].id) listitems[i].id = 'mytabs-' + listitems[i].id;
+
:link { text-decoration: underline; }
-
   }
+
 
-
  document.getElementById('column-content').appendChild(tabs);
+
/*Display body content in a narrower column for easier reading*/
 +
/*adjust percentages as desired*/
 +
div#bodyContent {
 +
  width: 50%;
 +
   line-height: 105%;
}
}
-
function reformatMyPage() {
+
/* change background of unselected tabs */
-
catlinksAtTop();  
+
#p-cactions ul li a { background: #C7FDC7; }
-
languageAtTop();
+
 
-
navAtTop();
+
/* change background of selected tabs */
-
personalAtTop()
+
#p-cactions ul li.selected a { background: white; }
-
bottomTabs();
+
 
 +
/* change border background of selected tabs */
 +
#p-cactions li.selected { border-color: #aaaaaa; }
 +
 
 +
/* tab bottom not removed on hover */
 +
#p-cactions li a:hover { z-index: 0; text-decoration: none; }
 +
#p-cactions li.selected a:hover { z-index: 3; }
 +
 
 +
/* style the search box and the buttons below it */
 +
input.searchButton {
 +
    background-color: #efefef !important;
 +
    border: 1px outset !important; 
}
}
-
if (window.addEventListener) window.addEventListener("load",reformatMyPage,false);
+
#searchInput { border: 1px inset !important; }
-
else if (window.attachEvent) window.attachEvent("onload",reformatMyPage);
+
 
 +
/* standard link colors */
 +
:link { color: #0000FF; }
 +
:link:visited { color: #7F007F; }
 +
:link:active, :link.new { color: #FF0000; }
 +
:link.interwiki, :link.external { color: #3366BB; }
 +
:link.stub { color: #772233; }
 +
 
 +
/* put scrollbar on pre sections instead of ugly cutoff/overlap in firefox */
 +
pre { overflow: auto; }
 +
 
 +
/* strikeout Upload File link as a reminder to upload to Commons instead */
 +
li#t-upload { text-decoration: line-through; }

Revision as of 07:09, 14 November 2006

/* make the background behind the content area and the tabs a light grey */

  1. content, #content table
  2. p-cactions ul li a { background: #f5f5f5; }

/* stop background image from scrolling with content area */ body { background-attachment: fixed; }

/* replace the book in the background with something else */ body { background: Purple; }

/* changes the background of pre areas */ pre { background: White }

/* change the logo */

  1. p-logo a { background: url(wiki.png) 35% 50% no-repeat !important; }

/* don't use any logo, move the boxes onto that area instead */

  1. p-logo { display: none }
  2. column-one { padding-top: 0; }

/* suppress the person icon by your username */ li#pt-userpage { background: none }

/* use browser prefs for text size and font */ body, #globalWrapper { font: inherit !important; }

/* always underline links */

link { text-decoration: underline; }

/*Display body content in a narrower column for easier reading*/ /*adjust percentages as desired*/ div#bodyContent {

 width: 50%;
 line-height: 105%;

}

/* change background of unselected tabs */

  1. p-cactions ul li a { background: #C7FDC7; }

/* change background of selected tabs */

  1. p-cactions ul li.selected a { background: white; }

/* change border background of selected tabs */

  1. p-cactions li.selected { border-color: #aaaaaa; }

/* tab bottom not removed on hover */

  1. p-cactions li a:hover { z-index: 0; text-decoration: none; }
  2. p-cactions li.selected a:hover { z-index: 3; }

/* style the search box and the buttons below it */ input.searchButton {

   background-color: #efefef !important;
   border: 1px outset !important;  

}

  1. searchInput { border: 1px inset !important; }

/* standard link colors */

link { color: #0000FF; }
link:visited { color: #7F007F; }
link:active, :link.new { color: #FF0000; }
link.interwiki, :link.external { color: #3366BB; }
link.stub { color: #772233; }

/* put scrollbar on pre sections instead of ugly cutoff/overlap in firefox */ pre { overflow: auto; }

/* strikeout Upload File link as a reminder to upload to Commons instead */ li#t-upload { text-decoration: line-through; }

Personal tools