Skip to content

Commit

Permalink
Update styles/doc.css
Browse files Browse the repository at this point in the history
display quick toc horizontally at top of doc entry and added some styles for switching to fixed pos when the user scrolls passed it.
also removed right margin on .docs #layout .layout-content to free up more horizontal space.
  • Loading branch information
schweickism committed Oct 1, 2012
1 parent 93a8e7b commit c7d1d05
Showing 1 changed file with 34 additions and 10 deletions.
44 changes: 34 additions & 10 deletions styles/doc.css
Expand Up @@ -3,33 +3,55 @@

/* {{{ The Quick TOC reference top on man pages */
aside#quicktoc {
border-top: 1px solid #9999CC;
border-left: 1px solid #9999CC;
border-bottom: none;
margin: 0 0 20px 20px;
width: 160px;
border: 1px solid #9999CC;
margin: 0;
width: auto;
background: white;
position: fixed;
right: 0px;
z-index: 100;
}

aside.quicktoc-fixed {
position: fixed;
top: 0;
border-top: 0 !important;
box-shadow: 0 0 5px #222;
}

#quicktoc .content, #quicktoc .language {
padding: 10px 0 10px 10px;
}

#quicktoc .language {
float: left;
}

#quicktoc .links, #quicktoc .content {
display: none;
}

#quicktoc .links a:first-child {
border-top: 1px solid #9F8A8A;
#quicktoc .content ul {
margin: 0;
list-style: none;
}

#quicktoc .content li {
display: inline;
padding: 0 5px;
}

#quicktoc .toc_item_curr {
color: #001155;
border-bottom: 1px solid #3F438D;
}

#quicktoc .links {
float: right;
}

#quicktoc .links a {
display: block;
color: black;
padding-left: 5px;
border-top: 1px solid #9F8A8A;
border-bottom: 1px solid #9F8A8A;
background-color: #F3F3F3;
}
Expand Down Expand Up @@ -440,6 +462,7 @@ ul.chunklist_children {
}

/* Default rule for non-@media supporting browsers (IE<9, basically). */
/* TODO - ok to remove this entirely to make use of more horizontal space?
.docs #layout .layout-content {
margin-right: 160px;
}
Expand All @@ -455,6 +478,7 @@ ul.chunklist_children {
margin-right: 80px;
}
}
*/

#changelang-langs {
width:120px;
Expand Down

0 comments on commit c7d1d05

Please sign in to comment.