Cleanup table of contents styling

This commit is contained in:
Michael Rose 2014-02-13 10:26:04 -05:00
parent b43254c2ee
commit 17c20823eb
2 changed files with 12 additions and 11 deletions

View file

@ -75,7 +75,7 @@
position: absolute; position: absolute;
top: 5.5em; top: 5.5em;
right: 0; right: 0;
.box-shadow(0 0 5px rgba(0,0,0,.50)); background-color: @white;
} }
.image-grid { .image-grid {
li { li {

View file

@ -181,11 +181,6 @@ body {
.toc { .toc {
display: none; display: none;
font-size: 95%; font-size: 95%;
.opacity(0.7);
.transition(opacity 0.2s ease-in-out);
&:hover {
.opacity(1);
}
header { header {
background: lighten(@black, 10); background: lighten(@black, 10);
} }
@ -193,6 +188,8 @@ body {
margin: 0; margin: 0;
padding: 5px 10px; padding: 5px 10px;
color: @white; color: @white;
.font-rem(16);
text-transform: uppercase;
&:hover { &:hover {
cursor: pointer; cursor: pointer;
} }
@ -200,15 +197,14 @@ body {
ul { ul {
margin: 2px 0 0; margin: 2px 0 0;
padding: 0; padding: 0;
background: lighten(@black, 30);
line-height: 1; line-height: 1;
} }
li { li {
display: block; display: block;
margin: 0; margin: 0 0 1px 0;
padding: 0; padding: 0;
font-family: @heading-font; font-family: @heading-font;
border-bottom: 1px solid darken(@white, 50); list-style-type: none;
&:last-child { &:last-child {
border-bottom-width: 0; border-bottom-width: 0;
} }
@ -217,10 +213,15 @@ body {
display: block; display: block;
color: @white; color: @white;
border-bottom-width: 0; border-bottom-width: 0;
background: lighten(@black, 30);
.opacity(0.7);
.transition(opacity 0.2s ease-in-out);
&:hover {
.opacity(1);
}
} }
ul { ul {
margin: 0; margin: 1px 0 0;
border-top: 1px solid darken(@white, 50);
} }
} }
} }