Commit 4fd7f293 by Simon Chen Committed by GitHub

ECOM-4219 Add coming soon message styles to the course cards (#12890)

parent ca56dadf
...@@ -108,8 +108,8 @@ define([ ...@@ -108,8 +108,8 @@ define([
expect(view.$('.course-details .course-text .course-key').html()).toEqual(context.key); expect(view.$('.course-details .course-text .course-key').html()).toEqual(context.key);
expect(view.$('.course-details .course-text .run-period').length).toBe(0); expect(view.$('.course-details .course-text .run-period').length).toBe(0);
expect(view.$('.no-action-message').text().trim()).toBe('Coming Soon'); expect(view.$('.no-action-message').text().trim()).toBe('Coming Soon');
expect(view.$('.enroll-open-date').text().trim()) expect(view.$('.enrollment-open-date').text().trim())
.toBe(context.run_modes[0].enrollment_open_date); .toEqual(context.run_modes[0].enrollment_open_date);
}); });
it('should render if enrollment_open_date is not provided', function(){ it('should render if enrollment_open_date is not provided', function(){
......
...@@ -15,9 +15,12 @@ ...@@ -15,9 +15,12 @@
@include float(left); @include float(left);
.header-img { .header-img {
max-width: 100%;
@include susy-media($bp-screen-sm) {
max-width: 191px; max-width: 191px;
} }
} }
}
.course-details { .course-details {
@include float(right); @include float(right);
...@@ -55,16 +58,18 @@ ...@@ -55,16 +58,18 @@
} }
.no-action-message{ .no-action-message{
margin-bottom: $baseline/2; margin-bottom: $baseline/2;
color: palette(grayscale, black); color: palette(grayscale, dark);
font-size: font-size(large); font-size: font-size(large);
text-align: center; text-align: center;
text-transform: uppercase;
margin-top: $baseline*2;
} }
.enrollment-opens{ .enrollment-opens{
text-align: center; text-align: center;
margin-bottom: $baseline/2; margin-bottom: $baseline/2;
.enrollment-open-date{
white-space: nowrap;
} }
.enroll-open-date{
text-align: center;
} }
.run-select-container{ .run-select-container{
margin-bottom: $baseline; margin-bottom: $baseline;
......
...@@ -49,10 +49,10 @@ ...@@ -49,10 +49,10 @@
<%- gettext('Coming Soon') %> <%- gettext('Coming Soon') %>
</div> </div>
<div class="enrollment-opens"> <div class="enrollment-opens">
<%- gettext('Enrollment Opens') %> <%- gettext('Enrollment Opens on') %>
</div> <span class="enrollment-open-date">
<div class="enroll-open-date">
<%- enrollment_open_date %> <%- enrollment_open_date %>
</span>
</div> </div>
<% } %> <% } %>
<% } %> <% } %>
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