Commit cb9d960a by Brian Talbot

studio - soft landing: style dropdown arrows

parent d00a1f35
...@@ -51,12 +51,13 @@ $(document).ready(function() { ...@@ -51,12 +51,13 @@ $(document).ready(function() {
if ($subnav.hasClass('is-shown')) { if ($subnav.hasClass('is-shown')) {
$subnav.removeClass('is-shown'); $subnav.removeClass('is-shown');
$title.removeClass('is-selected');
} }
else { else {
$('.nav-dropdown .nav-item .title').removeClass('is-selected'); $('.nav-dropdown .nav-item .title').removeClass('is-selected');
$('.nav-dropdown .nav-item .wrapper-nav-sub').removeClass('is-shown'); $('.nav-dropdown .nav-item .wrapper-nav-sub').removeClass('is-shown');
$title.toggleClass('is-selected'); $title.addClass('is-selected');
$subnav.addClass('is-shown'); $subnav.addClass('is-shown');
} }
}); });
......
...@@ -164,19 +164,19 @@ nav .nav-item { ...@@ -164,19 +164,19 @@ nav .nav-item {
font-weight: 400; font-weight: 400;
} }
.ss-icon {
}
&.is-selected { &.is-selected {
color: $blue; color: $blue-d1;
.icon-expand {
color: $blue-d1;
}
} }
} }
// current state // current state
&.is-current { &.is-current {
.title { .title, .icon-expanded {
color: $blue; color: $blue;
} }
} }
...@@ -231,7 +231,16 @@ nav .nav-item { ...@@ -231,7 +231,16 @@ nav .nav-item {
position: relative; position: relative;
.icon-expand { .icon-expand {
@include transition (color 0.5s ease-in-out);
margin-left: 2px;
color: $gray-l2;
}
&:hover {
.icon-expand {
color: $blue;
}
} }
} }
...@@ -268,7 +277,7 @@ nav .nav-item { ...@@ -268,7 +277,7 @@ nav .nav-item {
border-color: rgba(255, 255, 255, 0); border-color: rgba(255, 255, 255, 0);
border-bottom-color: #fff; border-bottom-color: #fff;
border-width: 5px; border-width: 5px;
right: ($baseline/4); right: 3px;
margin-left: -5px; margin-left: -5px;
} }
...@@ -276,7 +285,7 @@ nav .nav-item { ...@@ -276,7 +285,7 @@ nav .nav-item {
border-color: rgba(178, 178, 178, 0); border-color: rgba(178, 178, 178, 0);
border-bottom-color: $gray-l2; border-bottom-color: $gray-l2;
border-width: 6px; border-width: 6px;
right: ($baseline/4); right: 3px;
margin-left: -6px; margin-left: -6px;
} }
...@@ -315,12 +324,12 @@ nav .nav-item { ...@@ -315,12 +324,12 @@ nav .nav-item {
.nav-sub:after { .nav-sub:after {
left: auto; left: auto;
right: 10px; right: 11px;
} }
.nav-sub:before { .nav-sub:before {
left: auto; left: auto;
right: 9px; right: 10px;
} }
} }
...@@ -329,22 +338,22 @@ nav .nav-item { ...@@ -329,22 +338,22 @@ nav .nav-item {
.nav-course-courseware { .nav-course-courseware {
.nav-sub:after { .nav-sub:after {
left: 86px; left: 88px;
} }
.nav-sub:before { .nav-sub:before {
left: 86px; left: 88px;
} }
} }
.nav-course-settings { .nav-course-settings {
.nav-sub:after { .nav-sub:after {
left: 86px; left: 88px;
} }
.nav-sub:before { .nav-sub:before {
left: 86px; left: 88px;
} }
} }
...@@ -356,11 +365,11 @@ nav .nav-item { ...@@ -356,11 +365,11 @@ nav .nav-item {
} }
.nav-sub:after { .nav-sub:after {
left: 66px; left: 68px;
} }
.nav-sub:before { .nav-sub:before {
left: 66px; left: 68px;
} }
} }
} }
......
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