Skip to content

Commit

Permalink
fix(cxl-ui): cxl-course-card reduce height to 280px
Browse files Browse the repository at this point in the history
  • Loading branch information
freudFlintstone committed Nov 1, 2023
1 parent 0ffdd30 commit 5740e05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
12 changes: 1 addition & 11 deletions packages/cxl-ui/scss/cxl-base-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ header {
}

.name {
@include mixins.ellipsis-for-lines(3);
@include mixins.ellipsis-for-lines(2);
font-family: var(--lumo-font-family);
font-size: var(--lumo-font-size-xl);
font-style: normal;
Expand Down Expand Up @@ -217,12 +217,6 @@ header {
display: none;
}

:host([theme~="minidegree"]) {
.name a {
color: var(--lumo-tint);
}
}

:host([new]) {
.icon-new {
position: absolute;
Expand Down Expand Up @@ -250,9 +244,5 @@ vaadin-button {
opacity: 0.05;
transition: opacity 0.3s ease;
}

&::part(label) {
text-decoration: underline;
}
}
}
4 changes: 2 additions & 2 deletions packages/cxl-ui/scss/cxl-course-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ header {

.content-wrapper {
height: 100%;
min-height: calc(var(--cxl-lumo-line-height-s) * 6); // Six standard line-heights
line-height: var(--cxl-lumo-line-height-s);
min-height: calc(var(--lumo-line-height-s) * 3); // three standard line-heights
line-height: var(--lumo-line-height-s);

.content {
@include mixins.ellipsis-for-lines(3);
Expand Down

0 comments on commit 5740e05

Please sign in to comment.