Commit 2ec12f59 by David Ormsbee

Merge pull request #145 from MITx/kf-sidebar-buttons

Added fix for the sidebar buttons in the courseware
parents 3f9554f2 10c1270b
...@@ -52,14 +52,14 @@ section.course-index { ...@@ -52,14 +52,14 @@ section.course-index {
padding: 1em 1.5em; padding: 1em 1.5em;
li { li {
background: transparent; margin-bottom: lh(.5);
a {
border: 1px solid transparent; border: 1px solid transparent;
background: transparent;
@include border-radius(4px); @include border-radius(4px);
margin-bottom: lh(.5);
position: relative; position: relative;
padding: 5px 36px 5px 10px; padding: 5px 36px 5px 10px;
a {
text-decoration: none; text-decoration: none;
display: block; display: block;
color: #666; color: #666;
...@@ -74,7 +74,6 @@ section.course-index { ...@@ -74,7 +74,6 @@ section.course-index {
display: block; display: block;
} }
} }
}
&:after { &:after {
background: transparent; background: transparent;
...@@ -109,32 +108,36 @@ section.course-index { ...@@ -109,32 +108,36 @@ section.course-index {
&:active { &:active {
@include box-shadow(inset 0 1px 14px 0 rgba(0,0,0, 0.1)); @include box-shadow(inset 0 1px 14px 0 rgba(0,0,0, 0.1));
top: 1px;
&:after { &:after {
opacity: 1; opacity: 1;
right: 15px; right: 15px;
} }
} }
}
&.active { &.active {
font-weight: bold;
> a {
background: rgb(240,240,240); background: rgb(240,240,240);
@include background-image(linear-gradient(-90deg, rgb(245,245,245), rgb(230,230,230))); @include background-image(linear-gradient(-90deg, rgb(245,245,245), rgb(230,230,230)));
border-color: rgb(200,200,200); border-color: rgb(200,200,200);
font-weight: bold;
> a p { &:after {
opacity: 1;
right: 15px;
}
p {
color: #333; color: #333;
} }
}
span.subtitle { span.subtitle {
font-weight: normal; font-weight: normal;
} }
&:after {
opacity: 1;
right: 15px;
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment