Commit 8c079c8a by Kyle Fiedler Committed by David Ormsbee

Added styles for course images to always the right dimentions

parent a8610c38
...@@ -27,14 +27,17 @@ ...@@ -27,14 +27,17 @@
max-width: 1200px; max-width: 1200px;
min-width: 760px; min-width: 760px;
position: relative; position: relative;
width: 100%;
z-index: 2; z-index: 2;
> div.table {
display: table;
width: 100%;
}
.intro { .intro {
@include box-sizing(border-box); @include box-sizing(border-box);
@include clearfix; @include clearfix;
float: left; display: table-cell;
vertical-align: middle;
padding: 20px 20px; padding: 20px 20px;
position: relative; position: relative;
width: flex-grid(8) + flex-gutter(); width: flex-grid(8) + flex-gutter();
...@@ -130,9 +133,7 @@ ...@@ -130,9 +133,7 @@
.media { .media {
background: transparent; background: transparent;
@include box-sizing(border-box); @include box-sizing(border-box);
display: block; display: table-cell;
float: right;
height: 180px;
padding: 20px; padding: 20px;
position: relative; position: relative;
width: flex-grid(4); width: flex-grid(4);
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
<section class="course-info"> <section class="course-info">
<header class="course-profile"> <header class="course-profile">
<div class="intro-inner-wrapper"> <div class="intro-inner-wrapper">
<div class="table">
<section class="intro"> <section class="intro">
<hgroup> <hgroup>
<h1>${course.number}: ${get_course_about_section(course, "title")}<a href="${reverse('university_profile', args=[course.org])}">${get_course_about_section(course, "university")}</a></h1> <h1>${course.number}: ${get_course_about_section(course, "title")}<a href="${reverse('university_profile', args=[course.org])}">${get_course_about_section(course, "university")}</a></h1>
...@@ -84,6 +85,7 @@ ...@@ -84,6 +85,7 @@
</div> </div>
% endif % endif
</div> </div>
</div>
</header> </header>
<section class="container"> <section class="container">
......
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