-

-
-
- {{card.start_descriptor}}
+
+

+
+
+
+
+ {{card.start_descriptor}}
+
+
{{card.course.title}}
-
{{card.course.title}}
-
{% endfor %}
diff --git a/frontend/public/scss/product-page/program-courses.scss b/frontend/public/scss/product-page/program-courses.scss
index 643435ad71..bf8d3baf36 100644
--- a/frontend/public/scss/product-page/program-courses.scss
+++ b/frontend/public/scss/product-page/program-courses.scss
@@ -59,23 +59,41 @@ body.new-design {
height: 259px;
transition: .25s;
- img {
- max-width: 262px;
- max-height: 171px;
- height: 171px;
- object-fit: cover;
- object-position: center;
- background: rgba(0, 0, 0, 0.50);
- opacity: 0.5;
- transition: .25s;
-
- @include media-breakpoint-down(sm) {
- display: block;
- float: none;
- margin: 0 auto 10px;
+ .image {
+ position: relative;
+ img {
+ max-width: 262px;
+ max-height: 171px;
+ height: 171px;
+ object-fit: cover;
+ object-position: center;
+ @include media-breakpoint-down(sm) {
+ display: block;
+ float: none;
+ margin: 0 auto 10px;
+ }
+ }
+
+ .overlay {
+ max-width: 262px;
+ max-height: 171px;
+ height: 171px;
+ object-fit: cover;
+ object-position: center;
+ z-index: 101;
+ background: black;
+ transition: .25s;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ position: absolute;
+ opacity: .5;
}
+
}
+
.program-course-card-info {
overflow: hidden;
padding: 15px;
@@ -87,7 +105,7 @@ body.new-design {
.start-date {
font-weight: 400;
font-size: 12px;
- color: rgba(112, 114, 117, 0.5);
+ color: #58585A;
margin-bottom: 0.5rem;
transition: $product-page-hover-time;
}
@@ -96,25 +114,28 @@ body.new-design {
font-size: 14px;
font-weight: 600;
line-height: 16px;
- color: rgba(3, 21, 45, 0.5);
+ color: #58585A;
transition: $product-page-hover-time;
}
}
&:hover {
+ .program-course-card-info {
+ .start-date {
+ color: #03152D;
+ }
+ }
.start-date {
- color: rgba(112, 114, 117, 1);
- transition: $product-page-hover-time;
+ color: #03152D;
}
h3 {
- color: rgba(3, 21, 45, 1);
- transition: $product-page-hover-time;
+ color: #03152D;
}
-
- img {
- opacity: 1;
- transition: $product-page-hover-time;
+ .image {
+ .overlay {
+ opacity: 0;
+ }
}
}
}