Commit b1c57840 by Kyle Fiedler

merged new navigation branch

parents 77b6c862 b0614d12
No preview for this file type
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
</hgroup> </hgroup>
<nav class="${active_page}"> <nav class="${active_page}">
<ul class="coursenav"> <ul class="coursenav">
<li class="courseware"><a href="/courseware">Courseware</a></li> <li class="courseware"><a href="/courseware">Courseware</a></li>
<li class="info"><a href="/info">Course Info</a></li> <li class="info"><a href="/info">Course Info</a></li>
......
div.header-wrapper { div.header-wrapper {
// @include linear-gradient(lighten($mit-red, 5%), darken($mit-red, 5%)); @include box-shadow(inset 0 -4px 6px darken($mit-red, 5%));
@include box-shadow(inset 0 -1px 2px darken($mit-red, 10%));
background: $mit-red; background: $mit-red;
border-bottom: 1px solid #fff; border-bottom: 1px solid #fff;
...@@ -13,25 +12,38 @@ div.header-wrapper { ...@@ -13,25 +12,38 @@ div.header-wrapper {
hgroup { hgroup {
@extend .clearfix; @extend .clearfix;
float: left; float: left;
padding-top: 13px;
min-width: flex-grid(3);
h1 { h1 {
border-right: 1px solid darken($mit-red, 5%); @include inline-block();
color: darken($mit-red, 25%); color: darken($mit-red, 25%);
font-size: 20px; font-size: 18px;
font-weight: 800; font-weight: 800;
margin: 0 lh() 0 0;
padding: 17px lh() 14px 0;
text-shadow: 0 1px 0 lighten($mit-red, 10%);
line-height: lh(); line-height: lh();
@include inline-block(); margin: 0;
padding: 0 lh(.5) 0 0;
text-shadow: 0 1px 0 lighten($mit-red, 10%);
&:after {
color: darken($mit-red, 10%);
content: "•";
display: inline-block;
font-size: 10px;
letter-spacing: -2px;
padding-left: lh(.5);
text-shadow: 0;
}
} }
h2 { h2 {
@include inline-block(); @include inline-block();
margin: 0 lh() 0 0; margin: 0;
padding: 19px lh() 9px 0; font-size: 16px;
line-height: lh(); padding: 0 lh() 0px 0;
border-right: 1px solid darken($mit-red, 5%); text-transform: none;
letter-spacing: 0;
text-shadow: 0 -1px 0 darken($mit-red, 10%);
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
a { a {
...@@ -44,61 +56,123 @@ div.header-wrapper { ...@@ -44,61 +56,123 @@ div.header-wrapper {
} }
} }
@media screen and (max-width: 920px) {
border-bottom: 1px solid darken($mit-red, 5%); @media screen and (max-width: 900px) {
display: block; display: block;
float: none; float: none;
h1 { h1 {
float: right; float: left;
border: 0; border: 0;
margin-right: 0;
padding-right: 0;
} }
h2 { h2 {
float: left; float: left;
border: 0; border: 0;
margin-right: 0; margin-right: 0;
padding-right: 0;
} }
} }
} }
nav { nav {
float: left; -webkit-font-smoothing: antialiased;
@include border-radius(3px 3px 0 0);
@include box-shadow(inset 0 0 0 1px darken(#501016, 5%), inset 0 2px 0 lighten(#501016, 5%));
background: #501016;
border-bottom: 1px solid darken(#501016, 10%);
display: block; display: block;
margin: 0; float: left;
margin: 5px 0 0;
padding: 0; padding: 0;
text-shadow: 0 -1px 0 darken($mit-red, 10%); text-shadow: 0 -1px 0 darken($mit-red, 10%);
max-height: 52px; //fix for firefox
-webkit-font-smoothing: antialiased;
ul { ul {
@extend .clearfix; @extend .clearfix;
display: inline-block;
padding: 19px 0 9px;
margin: 0; margin: 0;
li { li {
margin-right: lh();
display: inline-block;
margin-bottom: 0;
line-height: lh(); line-height: lh();
margin-bottom: 0;
float: left;
a { a {
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
padding: 10px lh() 8px;
display: block;
font-weight: bold;
@media screen and (max-width: 1020px) {
padding: 10px lh(.7) 8px;
}
&:hover { &:hover {
color: rgba(#fff, .7); color: rgba(#fff, .7);
background-color: none; background-color: none;
text-decoration: none;
} }
} }
} }
} }
@media screen and (max-width: 900px) {
width: 100%;
float: none;
ul {
li {
padding: auto;
display: table-cell;
width: 16.6666666667%;
text-align: center;
}
}
}
.active {
background: #F4F4F4;
color: #333;
text-shadow: 0 1px 0 #fff;
border: 1px solid darken(#501016, 10%);
border-bottom: 0;
@include box-shadow(0 2px 0 #f4f4f4, inset 0 1px 0 #fff);
@include border-radius(3px 3px 0 0);
}
&.courseware {
li.courseware a {
@extend .active;
}
}
&.book {
li.book a {
@extend .active;
}
}
&.info {
li.info a {
@extend .active;
}
}
&.discussion {
li.discussion a {
@extend .active;
}
}
&.wiki {
li.wiki a {
@extend .active;
}
}
&.profile {
li.profile a {
@extend .active;
}
}
} }
} }
} }
...@@ -12,15 +12,15 @@ html { ...@@ -12,15 +12,15 @@ html {
@extend .clearfix; @extend .clearfix;
@extend .wrapper; @extend .wrapper;
@include box-sizing(border-box); @include box-sizing(border-box);
@include border-radius(4px);
overflow: hidden; overflow: hidden;
background: #fff; background: #fff;
border-bottom: 1px solid #bbb; border-bottom: 1px solid #bbb;
margin-top: 3px;
@media screen and (min-width: 1400px) {
// @include border-radius(3px);
@include box-shadow(0 0 4px #dfdfdf); @include box-shadow(0 0 4px #dfdfdf);
border: 1px solid #bbb; border: 1px solid #bbb;
@media screen and (min-width: 1400px) {
@include border-radius(4px);
margin-top: lh(.5); margin-top: lh(.5);
} }
} }
......
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