fixed class name header bug

This commit is contained in:
Tom Giannattasio
2012-08-10 11:40:16 -04:00
parent ced521c17d
commit 022c65a6b4
5 changed files with 32 additions and 5 deletions

View File

@@ -89,3 +89,22 @@
border: 1px solid rgb(6, 65, 18);
color: rgb(255, 255, 255);
}
.global {
h2 {
display: none;
float: left;
font-size: 0.9em;
font-weight: 600;
line-height: 40px;
letter-spacing: 0;
text-transform: none;
text-shadow: 0 1px 0 #fff;
.provider {
font: inherit;
font-weight: bold;
color: #6d6d6d;
}
}
}

View File

@@ -1,3 +1,7 @@
body {
min-width: 980px;
}
body, h1, h2, h3, h4, h5, h6, p, p a:link, p a:visited, a {
font-family: $sans-serif;
}

View File

@@ -187,7 +187,12 @@ h1.top-header {
}
.global {
.find-courses-button {
display: none;
}
h2 {
display: block;
float: left;
font-size: 0.9em;
font-weight: 600;

View File

@@ -1,6 +1,5 @@
<%inherit file="main.html" />
<%namespace name='static' file='static_content.html'/>
<%block name="bodyclass">courseware</%block>
<%block name="title"><title>Courseware MITx 6.002x</title></%block>
<%block name="headextra">

View File

@@ -7,16 +7,16 @@
<header class="global" aria-label="Global Navigation">
<nav>
<h1 class="logo"><a href="${reverse('root')}"></a></h1>
%if course:
<h2><span class="provider">${course.org}:</span> ${course.number} ${course.title}</h2>
%else:
<ol class="left">
%endif
<ol class="left find-courses-button">
<li class="primary">
<a href="${reverse('courses')}">Find Courses</a>
</li>
</ol>
%endif
%if user.is_authenticated():
<ol class="user">