@use '../../../styles/abstracts/tokens' as *; .customGrid{ margin: 0px 100px 0px 100px; } @media (max-width: 768px) { .customGrid { margin: 0px 0px 0px 0px; } } .courseTemplate { border-radius: 15%; position: relative; left: 26%; top: 30%; width: 70px; height: 70px; object-fit: cover; box-shadow: 0 2px 2px $lms-shadow-overlay-1, 0 3px 10px $lms-shadow-overlay-2; border: 1px solid $lms-border-navy; } :host ::ng-deep a{ color: $color-black; } :host ::ng-deep .center { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); } :host ::ng-deep .courseCard { width: 100%; height: 180px; background-color: $color-white; background: linear-gradient($lms-bg-card-gradient-top, $color-white); box-shadow: 0 8px 16px -8px rgba($color-black,0.4); border-radius: 6px; overflow: hidden; position: relative; cursor: pointer; } :host ::ng-deep .courseCard h1 { text-align: center; } :host ::ng-deep .courseCard .additional { position: absolute; width: 30%; height: 100%; background: linear-gradient($lms-red-gradient-start, $lms-red-gradient-end); transition: width 0.4s; overflow: hidden; z-index: 2; } :host ::ng-deep .courseCard .green .additional { background: linear-gradient($lms-green-gradient-start, $lms-green-gradient-end); } :host ::ng-deep .courseCard:hover .additional { width: 100%; border-radius: 0 5px 5px 0; } :host ::ng-deep .courseCard .additional .user-card { width: 125px; height: 100%; position: relative; float: left; } :host ::ng-deep .courseCard .additional .user-card::after { content: ""; display: block; position: absolute; top: 10%; right: -2px; height: 80%; border-left: 2px solid rgba($color-black,0.025); } :host ::ng-deep .courseCard .additional .user-card .level, :host ::ng-deep .courseCard .additional .user-card .points { top: 15%; color: $color-white; text-transform: uppercase; font-size: 0.75em; font-weight: bold; background: rgba($color-black,0.15); padding: 0.125rem 0.75rem; border-radius: 100px; white-space: nowrap; } :host ::ng-deep .courseCard .additional .user-card .points { top: 85%; } :host ::ng-deep .courseCard .additional .user-card svg { top: 50%; } :host ::ng-deep .courseCard .additional .more-info { width: 300px; float: left; position: absolute; left: 128px; height: 100%; padding: 8px; } :host ::ng-deep .courseCard .additional .more-info h1 { color: $color-white; margin-bottom: 0; } :host ::ng-deep .courseCard .green .additional .more-info h1 { color: $lms-green-text-dark; } :host ::ng-deep .courseCard .additional .coords { margin: 0rem; color: $color-white; font-size: 1rem; } :host ::ng-deep .courseCard .green .additional .coords { color: $lms-green-text; } .card .additional .coords span + span { float: right; } :host ::ng-deep .courseCard .additional .stats { font-size: 2rem; display: flex; position: absolute; bottom: 1rem; left: 0rem; right: 0rem; top: auto; color: $color-white; } :host ::ng-deep .courseCard .green .additional .stats { color: $lms-green-text; } :host ::ng-deep .courseCard .additional .stats > div { flex: 1; text-align: center; } :host ::ng-deep .courseCard .additional .stats i { display: block; } :host ::ng-deep .courseCard .additional .stats div.title { font-size: 0.75rem; font-weight: bold; text-transform: uppercase; } :host ::ng-deep .courseCard .additional .stats div.value { font-size: 15px; font-weight: bold; line-height: 1.5rem; } :host ::ng-deep .courseCard .general { width: 70%; height: 100%; position: absolute; top: 0; right: 0; z-index: 1; box-sizing: border-box; padding: 8px; } :host ::ng-deep .courseCard .general .more { position: absolute; bottom: 1rem; right: 1rem; font-size: 0.9em; width: 30%; } $color_white: $color-white; $color_prime: $lms-accent-green; $color_grey: $lms-gray-light; $color_grey_dark: $lms-gray-mid; .blog-card { display: flex; flex-direction: column; margin: 1rem auto; box-shadow: 0 2px 8px rgba($color-black, .12); margin-bottom: 1.6%; background: $color_white; line-height: 1.4; font-family: sans-serif; border-radius: 5px; overflow: hidden; z-index: 0; cursor: pointer; a { color: inherit; &:hover { color: $color_prime; } } &:hover { .photo { transform: scale(1.3) rotate(3deg); } } .meta { position: relative; z-index: 0; height: 200px; } .photo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-size: cover; background-position: center; transition: transform .2s; } .details, .details ul { margin: auto; padding: 0; list-style: none; } .details { position: absolute; top: 0; bottom: 0; left: -100%; margin: auto; transition: left .2s; background: rgba($color-black, .6); color: $color_white; padding: 10px; width: 100%; font-size: .9rem; a { text-decoration: dotted underline } ul li { display: inline-block; } .author:before { font-family: FontAwesome; margin-right: 10px; content: "\f007"; } .date:before { font-family: FontAwesome; margin-right: 10px; content: "\f133"; } .tags { ul:before { font-family: FontAwesome; content: "\f02b"; margin-right: 10px; } li { margin-right: 2px; &:first-child { margin-left: -4px; } } } } .description { padding: 1rem; background: $color_white; position: relative; z-index: 1; h1, h2 { font-family: Poppins, sans-serif; } h1 { line-height: 1; margin: 0; font-size: 1.7rem; } h2 { font-size: 1rem; font-weight: 300; text-transform: uppercase; color: $color_grey_dark; margin-top: 5px; } .read-more { text-align: left; a { color: $color_prime; display: inline-block; position: relative; &:after { content: "\f061"; font-family: FontAwesome; margin-left: -10px; opacity: 0; vertical-align: middle; transition: margin .3s, opacity .3s; } &:hover:after { margin-left: 5px; opacity: 1; } } } } p { position: relative; margin: 1rem 0 0; &:first-of-type { margin-top: 1.25rem; &:before { content: ""; position: absolute; height: 5px; background: $color_prime; width: 35px; top: -0.75rem; border-radius: 3px; } } } &:hover { .details { left: 0%; } } @media (min-width: 640px) { flex-direction: row; max-width: 100%; .meta { flex-basis: 40%; height: auto; } .description { flex-basis: 60%; &:before { transform: skewX(-3deg); content: ""; background: $color-white; width: 30px; position: absolute; left: -10px; top: 0; bottom: 0; z-index: -1; } } &.alt { flex-direction: row-reverse; .description { &:before { left: inherit; right: -10px; transform: skew(3deg) } } .details { padding-left: 25px; } } } }