Commit c25306f3 by Galen Frechette

fixes header on course object to accept very long course titles

parent 48d39ee7
...@@ -68,30 +68,39 @@ ...@@ -68,30 +68,39 @@
hgroup { hgroup {
left: 0px; left: 0px;
padding: 5px 10px; padding: 0px 10px;
position: absolute; position: absolute;
right: 60px; right: 60px;
top: 0px; top: 0px;
h2 { h2 {
color: $base-font-color; color: $base-font-color;
display: table-cell;
font-family: $sans-serif; font-family: $sans-serif;
font-size: 1em; font-size: 0.8em;
font-weight: 700; font-weight: 700;
height: 48px;
letter-spacing: 0px;
margin-bottom: 0px; margin-bottom: 0px;
overflow: hidden; padding-top: 0px;
padding-top: 9px;
text-shadow: 0 1px rgba(255,255,255, 0.6); text-shadow: 0 1px rgba(255,255,255, 0.6);
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; text-transform: none;
vertical-align: middle;
.course-number {
font-weight: 700;
text-transform: none;
}
} }
} }
.info-link { .info-link {
border-left: 1px solid rgba(150,150,150, 0.5); border-left: 1px solid rgba(150,150,150, 0.5);
@include box-sizing(border-box); @include box-sizing(border-box);
color: $base-font-color; color: $base-font-color;
display: block; display: inline-block;
font: bold 1.6em/1.2em $sans-serif; font: bold 1.6em/1.2em $sans-serif;
height: 100%; height: 100%;
opacity: 0.6; opacity: 0.6;
...@@ -102,19 +111,20 @@ ...@@ -102,19 +111,20 @@
text-shadow: 0 1px rgba(255,255,255, 0.6); text-shadow: 0 1px rgba(255,255,255, 0.6);
top: 0px; top: 0px;
width: 60px; width: 60px;
vertical-align: middle;
} }
&:hover { &:hover {
@include background-image(linear-gradient(-90deg, rgba(255,255,255, 1), rgba(255,255,255, 0.8))); @include background-image(linear-gradient(-90deg, rgba(255,255,255, 1), rgba(255,255,255, 0.8)));
text-decoration: none; text-decoration: none;
h2, .info-link { .info-link {
color: $blue; color: $blue;
opacity: 1; opacity: 1;
} }
h2 { h2 {
text-decoration: underline; color: $blue;
} }
} }
} }
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
<article id="${course.id}"class="course"> <article id="${course.id}"class="course">
<div class="inner-wrapper"> <div class="inner-wrapper">
<header class="course-preview"> <header class="course-preview">
<a href="${reverse('about_course', args=[course.id])}"> <a href="${reverse('about_course', args=[course.id])}">
<hgroup> <hgroup>
<h2>${course.number} ${get_course_about_section(course, 'title')}</h2> <h2><span class="course-number">${course.number}</span> ${get_course_about_section(course, 'title')}</h2>
</hgroup> </hgroup>
<div class="info-link">&#x2794;</div> <div class="info-link">&#x2794;</div>
</a> </a>
......
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