Skip to content

Commit

Permalink
Merge pull request #415 from conversionxl/anoblet/feat/course
Browse files Browse the repository at this point in the history
feat(cxl-ui): cxl-course-card update name styles
  • Loading branch information
paulkirspuu authored May 23, 2024
2 parents 8ca58ce + 9d44ec9 commit 2aeb35b
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions packages/cxl-ui/scss/cxl-course-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,22 +112,35 @@ footer {
}

:host(.cxl-full-card) {
height: 320px;
height: 320px;

header {
.info {
.name {
@include mixins.ellipsis-for-lines(3);
}
header {
.info {
.name {
@include mixins.ellipsis-for-lines(3);
}
}
}

.content-wrapper {
min-height: calc(var(--lumo-line-height-s) * 4); // four standard line-heights
.content-wrapper {
min-height: calc(var(--lumo-line-height-s) * 4); // four standard line-heights

.content {
@include mixins.ellipsis-for-lines(4);
min-height: calc(var(--lumo-line-height-s) * 4); // four standard line-heights
}
.content {
@include mixins.ellipsis-for-lines(4);
min-height: calc(var(--lumo-line-height-s) * 4); // four standard line-heights
}
}
}

:host([theme~="course"]) {
.name {
font-size: var(--lumo-font-size-m);
-webkit-line-clamp: unset;
}
}

:host([theme~="minidegree"]) {
.info {
max-width: unset;
}
}

0 comments on commit 2aeb35b

Please sign in to comment.