Skip to content

Commit

Permalink
feat(cxl-ui): cxl-course-card update styles when on large devices
Browse files Browse the repository at this point in the history
  • Loading branch information
anoblet committed May 29, 2024
1 parent 9d44ec9 commit c2cdf33
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/cxl-ui/scss/cxl-course-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* stylelint-disable declaration-no-important */

@use "~@conversionxl/cxl-ui/scss/mixins";
@use "~@conversionxl/cxl-lumo-styles/scss/mq";
@use "~@conversionxl/cxl-lumo-styles/scss/typography";

:host {
Expand Down Expand Up @@ -134,8 +135,10 @@ footer {

:host([theme~="course"]) {
.name {
font-size: var(--lumo-font-size-m);
-webkit-line-clamp: unset;
@media #{mq.$medium} {
-webkit-line-clamp: 3;
font-size: var(--lumo-font-size-m);
}
}
}

Expand Down

0 comments on commit c2cdf33

Please sign in to comment.