User:Kernigh/monobook.css

From NetHackWiki
< User:Kernigh
Revision as of 04:41, 12 April 2006 by Kernigh (talk | contribs) (Experimental CSS: logo override, firstHeading test, pre overflow test.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After saving, 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)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* LOGO OVERRIDES
 * Namespaces: 2 is User, 4 is Project */
body #p-logo a {
  background-image: url(/images/a/a0/Wikihack_logo.png)
    ! important;
}
body[class="ns-2"] #p-logo a {
  background-image: url(/images/d/d2/Wikihack-cursed-logo.png)
    ! important;
}
body[class="ns-3"] #p-logo a {
  background-image: url(/images/d/d2/Wikihack-cursed-logo.png)
    ! important;
}
body[class="ns-4"] #p-logo a {
  background-image: url(/images/d/d2/Wikihack-cursed-logo.png)
    ! important;
}
body[class="ns-5"] #p-logo a {
  background-image: url(/images/d/d2/Wikihack-cursed-logo.png)
    ! important;
}

/* HEADING TEST
 * Put square brackets around titles */
h1.firstHeading:before {
  content: "[[";
}

h1.firstHeading:after {
  content: "]]";
}

/* PRE OVERFLOW TEST
 * Scroll wide "pre" boxes */
pre {
  overflow: auto;
}