Difference between revisions of "Wiki User Style"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(ok, now the code actually works as posted if you omit the fixed-position section)
imported>DragoonWraith
(bingo, fixed it)
Line 34: Line 34:


/* tab highlight */
/* tab highlight */
   #p-cactions .selected a
   #p-cactions .selected a
   {
   {
Line 42: Line 43:


/* Fixed-position nav-boxes */
/* Fixed-position nav-boxes */
/* DO NOT USE THIS CODE UNLESS YOU HAVE A SCREEN WIDTH OF 1268 AND KEEP THE WINDOW MAXIMIZED */
   div#p-logo
   div#p-logo
   {
   {
Line 51: Line 51:
   {
   {
     position: fixed !important;
     position: fixed !important;
     margin-left: 131px !important;
    top: 140px !important;
    left: auto !important;
     margin-left: 50px !important;
   }
   }


/* don't forget the closing bracket */
/* don't forget the closing bracket */
}</pre>
}</pre>

Revision as of 19:21, 17 February 2008

File:CSwiki User Style Example.jpg
Example of Alternate Icon

This code is designed to be a "User Style Sheet" for the CS Wiki. This means that these style changes are affixed by the browser, overriding the code used on the site. How to set this up depends on your browser.

Current features:

  • Reduced-width banner, allowing the main content of the page to have the entire height of the screen
  • Fixed-position left-hand nav-boxes. This way the boxes will scroll with you as you read the page.
    • This code is specifically coded for a screen-width of 1268. If you use another width, or do not have the window maximized, this will cause problems. Please do not use the noted portions of the code if you have a different resolution. A fix for this is being worked on.
  • Highlights for the current Tab you are using (i.e. Article/Discussion/Edit/History).
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document url-prefix(http://cs.elderscrolls.com/constwiki/)
{
  #content2 { position: relative; } /* this is actually to fix a typo in Beth's CSS */

/* Reduced-width banner */
  div#p-logo
  {
    float: left !important;
    width: 152px !important;
    height: 124px !important;
    padding-left: 50px !important;
  }

  div#p-logo a 
  {
    background-image: url("http://cs.elderscrolls.com/constwiki/images/7/7d/CSwiki_Icon.png") !important;
  }

  .portlet
  {
    margin: 5px 0px 1px 0px !important;
  }

/* tab highlight */

  #p-cactions .selected a
  {
    color: #6e5229 !important;
    background-image: url("http://cs.elderscrolls.com/constwiki/skins/esstyle/textbg.jpg") !important;
    border: 1px #6e5229 solid !important;
  }

/* Fixed-position nav-boxes */
  div#p-logo
  {
    position: fixed !important;
    top: 10px !important;
  }
  #column-one
  {
    position: fixed !important;
    top: 140px !important;
    left: auto !important;
    margin-left: 50px !important;
  }

/* don't forget the closing bracket */
}