Commit 51f96ad7 by Brian Talbot

studio - revises button styling/states for primary nav

parent 33d0302f
...@@ -136,6 +136,26 @@ ...@@ -136,6 +136,26 @@
// ==================== // ====================
// layout-based buttons // layout-based buttons
.btn-nav-primary {
@extend .btn-nav-simple;
background: $white;
border-color: $white;
color: $gray;
&:hover, &:active {
background: $white;
color: $blue-s1;
}
&.current, &.active {
background: $white;
color: $gray-d4;
&:hover, &:active {
color: $blue-s1;
}
}
}
// ==================== // ====================
......
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
@extend .t-action2; @extend .t-action2;
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
margin-right: ($baseline);
font-weight: 600; font-weight: 600;
&:last-child { &:last-child {
...@@ -56,17 +55,18 @@ ...@@ -56,17 +55,18 @@
.title { .title {
@extend .t-action2; @extend .t-action2;
@extend .btn-nav-primary;
@include transition(all 0.25s ease-in-out 0);
.label, .icon-caret-down {
&:hover {
@extend .fake-link;
} }
.label, .icon-caret-down { .label {
} }
.icon-caret-down { .icon-caret-down {
@include transition(opacity 0.25s ease-in-out 0);
opacity: 0.25; opacity: 0.25;
} }
...@@ -98,6 +98,9 @@ ...@@ -98,6 +98,9 @@
// specific elements - course name/info // specific elements - course name/info
.info-course { .info-course {
margin-right: ($baseline/4);
border-right: 1px solid $gray-l3;
padding: ($baseline/2) $baseline ($baseline/2) 0;
.course-org, .course-number { .course-org, .course-number {
@extend .text-sr; @extend .text-sr;
...@@ -111,8 +114,7 @@ ...@@ -111,8 +114,7 @@
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
font-weight: 600; font-weight: 600;
color: $gray-d1; color: $gray;
} }
// entire link // entire link
...@@ -162,22 +164,24 @@ ...@@ -162,22 +164,24 @@
// CASE: user signed in // CASE: user signed in
.is-signedin { .is-signedin {
.branding { .wrapper-header {
width: flex-grid(2, 12);
margin-right: flex-gutter();
}
.info-course { .branding {
width: flex-grid(3, 12); width: flex-grid(2, 12);
margin-right: flex-gutter(); margin-right: flex-gutter();
} }
.nav-course { .info-course {
width: flex-grid(4, 12); width: flex-grid(3, 12);
} }
.nav-account { .nav-course {
width: flex-grid(3, 12); width: flex-grid(4, 12);
}
.nav-account {
width: flex-grid(3, 12);
}
} }
} }
...@@ -186,11 +190,22 @@ ...@@ -186,11 +190,22 @@
// CASE: user not signed in // CASE: user not signed in
.not-signedin { .not-signedin {
.branding { .wrapper-header {
width: flex-grid(2, 12);
}
.nav-pitch { nav > ol > .nav-item {
width: flex-grid(10, 12); margin-right: $baseline;
&:last-child {
margin-right: 0;
}
}
.branding {
width: flex-grid(2, 12);
}
.nav-pitch {
width: flex-grid(10, 12);
}
} }
} }
...@@ -28,8 +28,7 @@ nav { ...@@ -28,8 +28,7 @@ nav {
.title { .title {
.label, .icon-caret-down { .label, .icon-caret-down {
display: inline-block;
vertical-align: middle;
} }
.icon-caret-down { .icon-caret-down {
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<ol> <ol>
<li class="nav-item nav-account-help nav-dd"> <li class="nav-item nav-account-help nav-dd">
<a href="#" class="title"><span class="label">Help</span> <i class="icon-caret-down"></i></a> <h3 class="title"><span class="label">Help</span> <i class="icon-caret-down"></i></h3>
<div class="wrapper wrapper-nav-sub"> <div class="wrapper wrapper-nav-sub">
<div class="nav-sub"> <div class="nav-sub">
...@@ -113,8 +113,7 @@ ...@@ -113,8 +113,7 @@
</li> </li>
<li class="nav-item nav-account-user nav-dd"> <li class="nav-item nav-account-user nav-dd">
<span class="sr">Currently signed in as:</span> <h3 class="title"><span class="label"><span class="sr">Currently signed in as:</span><span class="label account-username">${ user.username }</span></span> <i class="icon-caret-down"></i></h3>
<a href="#" class="title"><span class="label account-username">${ user.username }</span> <i class="icon-caret-down"></i></a>
<div class="wrapper wrapper-nav-sub"> <div class="wrapper wrapper-nav-sub">
<div class="nav-sub"> <div class="nav-sub">
......
...@@ -190,6 +190,27 @@ ...@@ -190,6 +190,27 @@
} }
} }
// simple nav button styling - should we move this elsewhere?
.btn-nav-simple {
@extend .btn;
@extend .btn-pill;
padding:($baseline/4) ($baseline/2);
border-width: 1px;
border-style: solid;
border-color: transparent;
text-align: center;
&:hover, &:active {
@extend .fake-link;
border-color: $gray-l3;
}
&.current, &.active {
@include box-shadow(inset 0 1px 2px 1px $shadow);
border-color: $gray-l2;
}
}
// UI archetypes - well // UI archetypes - well
.ui-well { .ui-well {
@include box-shadow(inset 0 1px 2px 1px $shadow); @include box-shadow(inset 0 1px 2px 1px $shadow);
......
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