Commit 44a5c695 by Kyle Fiedler

Added more style for main navigation

--HG--
branch : templates-ky-new-nav
parent f155d26b
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 linear-gradient(lighten($mit-red, 5%), darken($mit-red, 5%));
@include box-shadow(inset 0 -1px 2px darken($mit-red, 10%)); @include box-shadow(inset 0 -4px 6px darken($mit-red, 5%));
background: $mit-red; background: $mit-red;
border-bottom: 1px solid #fff; border-bottom: 1px solid #fff;
...@@ -13,26 +13,38 @@ div.header-wrapper { ...@@ -13,26 +13,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; margin: 0;
padding: 19px lh() 9px 0; font-size: 16px;
line-height: lh(); padding: 0 lh() 0px 0;
text-transform: none; text-transform: none;
letter-spacing: 0; letter-spacing: 0;
text-shadow: 0 -1px 0 darken($mit-red, 10%);
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
a { a {
...@@ -72,15 +84,15 @@ div.header-wrapper { ...@@ -72,15 +84,15 @@ div.header-wrapper {
margin: 0; margin: 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; -webkit-font-smoothing: antialiased;
background: #501016; background: #501016;
margin-top: 10px; margin-top: 5px;
border-bottom: 1px solid darken(#501016, 10%);
@include border-radius(3px 3px 0 0); @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%));
ul { ul {
@extend .clearfix; @extend .clearfix;
display: inline-block;
margin: 0; margin: 0;
li { li {
...@@ -91,7 +103,7 @@ div.header-wrapper { ...@@ -91,7 +103,7 @@ div.header-wrapper {
a { a {
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
padding: 12px lh() 6px; padding: 10px lh() 8px;
display: block; display: block;
font-weight: bold; font-weight: bold;
...@@ -103,6 +115,52 @@ div.header-wrapper { ...@@ -103,6 +115,52 @@ div.header-wrapper {
} }
} }
} }
.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