We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 483d78a + 0c77787 commit 1139e53Copy full SHA for 1139e53
src/scss/02-tools/_m-line-clamp.scss
@@ -0,0 +1,11 @@
1
+/// Truncates text at a specific number of lines.
2
+/// https://css-tricks.com/almanac/properties/l/line-clamp/
3
+///
4
+/// @param {number} $lines
5
+/// The number of lines for the text.
6
+@mixin line-clamp($lines: 2) {
7
+ display: -webkit-box;
8
+ overflow: hidden;
9
+ -webkit-line-clamp: #{$lines};
10
+ -webkit-box-orient: vertical;
11
+}
src/scss/02-tools/tools.scss
@@ -24,6 +24,7 @@
24
@import "./m-editor-only";
25
@import "./m-heading";
26
@import "./m-hover";
27
+@import "./m-line-clamp";
28
@import "./m-placeholder-media";
29
@import "./m-radio-custom";
30
@import "./m-row-fullwidth";
0 commit comments