Commit 4d137446 by Brian Talbot Committed by Carlos Andrés Rocha

added new visual status to course listings on edx.org

parent 89527281
...@@ -24,6 +24,31 @@ ...@@ -24,6 +24,31 @@
width: 100%; width: 100%;
@include transition(all, 0.15s, linear); @include transition(all, 0.15s, linear);
.status {
background: $blue;
color: white;
font-size: 10px;
left: 10px;
padding: 2px 10px;
@include border-radius(2px);
position: absolute;
text-transform: uppercase;
top: -6px;
z-index: 100;
}
.status:after {
border-bottom: 6px solid shade($blue, 50%);
border-right: 6px solid transparent;
content: "";
display: block;
height: 0;
position: absolute;
right: -6px;
top: 0;
width: 0;
}
a:hover { a:hover {
text-decoration: none; text-decoration: none;
} }
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
%> %>
<%page args="course" /> <%page args="course" />
<article id="${course.id}" class="course"> <article id="${course.id}" class="course">
<span class="status">New</span>
<a href="${reverse('about_course', args=[course.id])}"> <a href="${reverse('about_course', args=[course.id])}">
<div class="inner-wrapper"> <div class="inner-wrapper">
<header class="course-preview"> <header class="course-preview">
......
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