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;
border: 1px solid transparent;
@include border-radius(4px);
margin-bottom: lh(.5); margin-bottom: lh(.5);
position: relative;
padding: 5px 36px 5px 10px;
a { a {
border: 1px solid transparent;
background: transparent;
@include border-radius(4px);
position: relative;
padding: 5px 36px 5px 10px;
text-decoration: none; text-decoration: none;
display: block; display: block;
color: #666; color: #666;
...@@ -74,67 +74,70 @@ section.course-index { ...@@ -74,67 +74,70 @@ section.course-index {
display: block; display: block;
} }
} }
}
&:after {
background: transparent;
border-top: 1px solid rgb(180,180,180);
border-right: 1px solid rgb(180,180,180);
content: "";
display: block;
height: 12px;
margin-top: -6px;
opacity: 0;
position: absolute;
top: 50%;
right: 30px;
@include transform(rotate(45deg));
width: 12px;
}
&:hover {
@include background-image(linear-gradient(-90deg, rgba(245,245,245, 0.4), rgba(230,230,230, 0.4)));
border-color: rgb(200,200,200);
&:after { &:after {
opacity: 1; background: transparent;
right: 15px; border-top: 1px solid rgb(180,180,180);
@include transition(all, 0.2s, linear); border-right: 1px solid rgb(180,180,180);
content: "";
display: block;
height: 12px;
margin-top: -6px;
opacity: 0;
position: absolute;
top: 50%;
right: 30px;
@include transform(rotate(45deg));
width: 12px;
} }
> a p { &:hover {
color: #333; @include background-image(linear-gradient(-90deg, rgba(245,245,245, 0.4), rgba(230,230,230, 0.4)));
border-color: rgb(200,200,200);
&:after {
opacity: 1;
right: 15px;
@include transition(all, 0.2s, linear);
}
> a p {
color: #333;
}
} }
}
&: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 {
background: rgb(240,240,240);
@include background-image(linear-gradient(-90deg, rgb(245,245,245), rgb(230,230,230)));
border-color: rgb(200,200,200);
font-weight: bold; font-weight: bold;
> a p { > a {
color: #333; background: rgb(240,240,240);
@include background-image(linear-gradient(-90deg, rgb(245,245,245), rgb(230,230,230)));
border-color: rgb(200,200,200);
&:after {
opacity: 1;
right: 15px;
}
p {
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