Difference between revisions of "Wiki User Style"

440 bytes added ,  18:08, 22 November 2008
m
stupid extra s
imported>DragoonWraith
(bingo, fixed it)
imported>DragoonWraith
m (stupid extra s)
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Image:CSwiki_User_Style_Example.jpg|thumb|right|Example of Alternate Icon]]
[[Image:User Style Example.jpg|thumb|right|Example of Wiki User Style]]
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.
User Style Sheets are used to modify the display of the Wiki. Your User Style sheet can be found [[Special:MyPage/esstyle.css|here]] - this is a special page associated with your account and with the skin used on this site, known as ESstyle. Here you can place CSS code to change the layout of the site to make it easier for you to see, read, and edit.


Current features:
If you do not wish to do the CSS yourself, this page also serves as a repository for CSS code that you can use. This code can be used as your Style Sheet by using the @import command - simply copy and paste the @import command listed for each style into your esstyle.css page to include it in your personal style sheet.
*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).


<pre>@namespace url(http://www.w3.org/1999/xhtml);
Currently, there is only two public style sheets available:
<ul><li>[[Wiki User Style/Liquid Design.css|Liquid Design]] - copy the following line into [[Special:MyPage/esstyle.css|your esstyle.css file]] to use this style
<pre>@import "/constwiki/index.php?title=Wiki_User_Style/Liquid_Design.css&action=raw&ctype=text/css";</pre>
The Liquid Design style allows the page content to fill your window, so that the black borders are only a small decoration rather than large amounts of wasted space. The banner is modified to fit above the navigation boxes and allow the content to also reach the top of the page. In addition, the navigation boxes are set to stay on screen always, to make the links always handy, and the currently selected tab gets highlighted. Also provides a fix in Firefox for page-stretching code-boxes (unnecessary in Internet Explorer, which will insert wrap the text, and does not work in Opera, which does not support the non-standard "overflow-x" property).</li>
<li>[[Wiki User Style/Thread Archive.css|Thread Archive]] - copy the following line into [[Special:MyPage/esstyle.css|your esstyle.css file]] to use this style
<pre>@import "/constwiki/index.php?title=Wiki_User_Style/Thread_Archive.css&action=raw&ctype=text/css";</pre>
This style sheet enables thread archive pages, which use special style rules which are not (currently) in the general style sheets. Eventually it is planned to include these in the general style sheets, making this unnecessary.</li></ul>


@-moz-document url-prefix(http://cs.elderscrolls.com/constwiki/)
You may also use the style sheets of other users with similar commands, substituting the page title of their esstyle.css pages for the title of the public sheets above.
{
  #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 */
}</pre>