/**
 * Extra styles for sidebar template
 *
 * @author Christopher Smith <chris@jalakai.co.uk>
 */

/* dokuwiki containers & styles */

/* sidebar orientation and position */
#sidebar {
  width:16%;
  /*width:18em; /* Mats lade till */
  margin: 14px 0 0 0; 
  padding:0;
  position: relative;
}

.sidebar_inside_left #sidebar {
    float:left;
}

.sidebar_inside_left .dokuwiki div.breadcrumbs div.youarehere {
    float: right;
    width: 80%; 
    padding: 0 0 0 0;
}

.sidebar_inside_left .dokuwiki .page, .sidebar_inside_left .dokuwiki .meta  {
    float:right; 
    width:81%;             /* also see IE Win fix below */
    margin-right: 1%;
    padding: 0 0 0 5px;
    margin-left:0;
    border-left: 1px solid #080; /* __border__; */
}


/* 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 20%; */
}

.sidebar_outside_right .dokuwiki, .sidebar_inside_right .dokuwiki {
    /* background: url(images/sidebar-border.gif) repeat-y 80%; */
}

/* hide the line where it passes through .stylehead */
.stylehead {
    background: __white__;
}

/* sidebar contents */
#sidebar {
    font-size:10px;
}

#sidebar a {
    color: __existing__;
}

#sidebar a.wikilink2 {
    color: __darkgray__;
}

#sidebar a.wikilink2:hover {
    text-decoration:none; 
    cursor:default;
}

#sidebar h1 {
    font-size:140%; 
    margin-left: 0px; 
    padding-left: 2px; 
    font-weight:bold; 
    padding-bottom:0; 
    background-color: __medium__;
}
#sidebar h2 {
    font-size:120%; 
    margin-left: 4px; 
    font-weight:bold; 
    padding-bottom:0;
}
#sidebar h3 {
    font-size:120%; 
    margin-left: 8px; 
    font-weight:normal; 
    padding-bottom:0;
}
#sidebar h4 {
    font-size:100%; 
    margin-left: 12px; 
    font-weight:bold; 
    padding-bottom:0;
}
#sidebar h5 {
    font-size:100%; 
    margin-left: 16px; 
    font-weight:normal; 
    padding-bottom:0;
}
#sidebar .toc {
     display:none;
}

#sidebar .secedit {
}

/* reduced section indentation */
#sidebar div.level1 {margin-left: 2px;}
#sidebar div.level2 {margin-left: 6px;}
#sidebar div.level3 {margin-left: 10px;}
#sidebar div.level4 {margin-left: 14px;}
#sidebar 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) */

