/**
 * Extra styles for sidebar template
 *
 * @author Christopher Smith <chris@jalakai.co.uk>
 */

/* dokuwiki containers & styles */

@media screen {

	
/* sidebar orientation and position */
#sidebar_idx {
    width:160px; 
	margin:0;
	padding:0;
	margin-left:0;
	margin-top:0;
	overflow: scroll;
	height: 400px;	/* IE wants fixed height */
	max-height: 400px;
	min-height: 40px;
}

#sidebar {
    /*width:16%;*/
    width:160px;
	margin:0;
	padding:0;
	margin-left:0;
	margin-top:0px;
}


.sidebar_inside_left #sidebar {
	float:left; 
}

.sidebar_inside_right #sidebar {
	float:right; 
}

.sidebar_inside_left .page, .sidebar_inside_left .meta {
	float:right; 
	/*width:78%;*/ 			/* also see IE Win fix below */
	/*width:100%;*/
	margin-right:0px;
	margin-left:0px;
}

.sidebar_inside_right .page, .sidebar_inside_right .meta {
	float:left; 
	/* width:78%; */
	/*width:100%;*/ 
	margin-left: 0%;
	margin-right: 0;
}

.sidebar_outside_left #sidebar {
	position:absolute; 
	top:0; 
	left:0;
}

.sidebar_outside_right #sidebar {
	position:absolute; 
	top:0; 
	right:0;
}

.sidebar_outside_left .dokuwiki {
	padding-left:21%;
}

.sidebar_outside_right .dokuwiki {
    padding-right:21%;
}

.sidebar_outside_left .footerinc {
	padding-left: 21%;
}

.sidebar_outside_right .footerinc {
	padding-right: 21%;
}

/* sidebar presentation */
/* the following three styles use a faux-column image to place a separating line 
   between the sidebar and dokuwiku */
/*
.sidebar_outside_left .dokuwiki, .sidebar_inside_left .dokuwiki {
	background: url(images/sidebar-border.gif) repeat-y 18%;
}

.sidebar_outside_right .dokuwiki, .sidebar_inside_right .dokuwiki {
	background: url(images/sidebar-border.gif) repeat-y 82%;
}
*/

/* hide the line where it passes through .stylehead */
.stylehead {
	/* background: white; */
}

/* sidebar contents */
#sidebar_idx {
	font-size:11px;
	background-color:#f0f0f0;
	border: 1px solid #606060;
}

#sidebar_idx a {
	color:#0070D0;
}

#sidebar_idx a:hover {
	color:#ffa000;
	text-decoration:none; 	
}

#sidebar_idx a:active {
	color:#ffa000;
	text-decoration:none; 	
}

#sidebar_idx a.wikilink2 {
	color:#999999;
}

#sidebar_idx a.wikilink2:hover {
	text-decoration:none; 
	cursor:default;
}

#sidebar_idx h1 {
	font-size:100%; 
	margin: 2px;
	padding-left: 2px; 
	font-weight:bold; 
	padding-bottom:2px; 
	color:#FFFFFF;
	/*	background-color:#e0c060; */
	text-align:center;
	background-color:#0081ea; 
	background:#0081ea url("images/bg_degBlue128.jpg"); 
	background-repeat:repeat-y;
	/* border-bottom:1px solid #303030; */
}
#sidebar_idx h2 {
	font-size:120%; 
	margin-left: 4px; 
	font-weight:bold; 
	padding-bottom:0;
}
#sidebar_idx h3 {
	font-size:120%; 
	margin-left: 8px; 
	font-weight:normal; 
	padding-bottom:0;
}
#sidebar_idx h4 {
	font-size:100%; 
	margin-left: 12px; 
	font-weight:bold; 
	padding-bottom:0;
}
#sidebar_idx h5 {
	font-size:100%; 
	margin-left: 16px; 
	font-weight:normal; 
	padding-bottom:0;
}
#sidebar_idx .toc {
	display:none;
}

/* reduced section indentation */
#sidebar_idx div.level1 {margin-left: 2px;}
#sidebar_idx div.level2 {margin-left: 6px;}
#sidebar_idx div.level3 {margin-left: 10px;}
#sidebar_idx div.level4 {margin-left: 14px;}
#sidebar_idx div.level5 {margin-left: 18px;}

/* IE fixes (hide from IE Mac) \*/

* html .page .toc {height:1px}    /* General Dokuwiki fix. IE needs this to always display TOC contents \*/
* html pre {width:95%;}           /* General Dokuwiki fix - very important for Sidebar. IE needs this to get the overflow:auto style to kick in \*/
* html .stylehead {height:1px;}   /* Get IE in hasLayout mode to ensure the background covers the whole element \*/

* html .sidebar_inside_left .page, * .sidebar_inside_right .page, 
* html .sidebar_inside_left .meta, * .sidebar_inside_right .meta {
    /* width: 77%; */             /* IE needs extra gap to ensure #sidebar & .page float next to each other \*/
	overflow-x: auto;             /* IE proprietary property to prevent wide images in wiki page forcing sidebar down below wiki page \*/
                                  /* 'overflow-x:auto;' maybe replaced by 'overflow:auto;' to ensure template passes w3c validation \*/
}

/* (end IE Mac hiding) */

} /* end @media screen */

/* prevent the sidebar being included when printing wiki pages */
@media print {
	#sidebar {display:none;}
}
