Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #169 from metmuseum/lineclamp-mixin-fix
Browse files Browse the repository at this point in the history
Restore -webkit-box
  • Loading branch information
JosephCurley committed Jan 21, 2022
2 parents 33bfb5e + 23a6584 commit d55ff5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/marble.css

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/base/mixins/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
@import "typography";
@import "buttons";

/* stylelint-disable */
@mixin line-clamp($lines) {
-webkit-box-orient: vertical;
display: box;
display: -webkit-box;
-webkit-line-clamp: $lines;
overflow: hidden;
text-overflow: ellipsis;
}
/* stylelint-enable */

0 comments on commit d55ff5d

Please sign in to comment.