User:Iritscen/vector.css: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(carrying over XEB customization from Monobook)
 
(um, yeah; let's try adding CSS to a CSS page instead of Javascript; carrying over changes from my monobook.css)
Line 1: Line 1:
// Load XEB to augment the editing toolbar; see [[XEB]] for documentation
/* Fix the sidebar in place when scrolling */
// The onlyinclude and pre tags below allow me to transclude the enclosed code onto the XEB docs page
div[id=column-one] /* using the attribute selector hides this from IE */
//<onlyinclude><pre>
if (wgAction == "edit" || wgAction == "submit" || wgPageName == "Special:Upload")
{
{
  XEBOrder="0,1,U,S,F,I1,I2,J1,J2,D,C,D1,4,A,R1,R2,R3,2,3,K,T,Y1,Y2,Z,E,5,AI,G,8,P,T1,O,H,FS,9,V,N,B";
    position: fixed;
    height: 100%; /* if you shrink the browser too small, the side column will */
    overflow: auto; /* become scrollable, so stuff is always accessible, albeit ugly */
    z-index: 2;
}


  //myButtons=[];
/* Fix the footer so it looks nice and doesn't overlap the sidebar */
 
#footer
  importScript('MediaWiki:Common.js/edit.js');
{
}//</pre></onlyinclude>
    margin-left: 13.6em;
    border-left: solid 1px rgb(250, 189, 35);
}

Revision as of 14:46, 5 May 2012

/* Fix the sidebar in place when scrolling */
div[id=column-one] /* using the attribute selector hides this from IE */
{
    position: fixed;
    height: 100%; /* if you shrink the browser too small, the side column will */
    overflow: auto; /* become scrollable, so stuff is always accessible, albeit ugly */
    z-index: 2;
}

/* Fix the footer so it looks nice and doesn't overlap the sidebar */
#footer
{
    margin-left: 13.6em;
    border-left: solid 1px rgb(250, 189, 35);
}