Skip to content

Commit

Permalink
feat(cxl-ui): cxl-course-card update name styles
Browse files Browse the repository at this point in the history
  • Loading branch information
anoblet committed May 22, 2024
1 parent 2abd89a commit c698713
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 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,29 @@ 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;
}
}

0 comments on commit c698713

Please sign in to comment.