User:Iritscen/vector.css: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(um, yeah; let's try adding CSS to a CSS page instead of Javascript; carrying over changes from my monobook.css)
(OK, turns out that the div name is different in Vector; here's what WP recommends)
Line 1: Line 1:
/* Fix the sidebar in place when scrolling */
/* Fix the sidebar in place when scrolling */
div[id=column-one] /* using the attribute selector hides this from IE */
div#mw-panel
{
{
    position: fixed;
  position: fixed;
    height: 100%; /* if you shrink the browser too small, the side column will */
  overflow: auto;
    overflow: auto; /* become scrollable, so stuff is always accessible, albeit ugly */
  top: 0px;
    z-index: 2;
  bottom: 0px;
  height: 100%;
  /* Prevent content overlay when sidewards scrolling */
  background-color: #F6F6F6;
  border-right: 1px solid #A7D7F9;
}
}


/* Fix the footer so it looks nice and doesn't overlap the sidebar */
/* Prevent sidewards scrolling in pre elements */
#footer
pre
{
{
    margin-left: 13.6em;
  overflow: auto;
    border-left: solid 1px rgb(250, 189, 35);
  max-height: 25em;
}
}

Revision as of 14:50, 5 May 2012

/* Fix the sidebar in place when scrolling */
div#mw-panel
{
  position: fixed;
  overflow: auto;
  top: 0px;
  bottom: 0px;
  height: 100%;
  /* Prevent content overlay when sidewards scrolling */
  background-color: #F6F6F6;
  border-right: 1px solid #A7D7F9;
}

/* Prevent sidewards scrolling in pre elements */
pre
{
  overflow: auto;
  max-height: 25em;
}