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.
1 parent 33813ba commit 836df44Copy full SHA for 836df44
src/scss/02-tools/_m-line-clamp.scss
@@ -0,0 +1,12 @@
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
+ color: $color-light;
10
+ -webkit-line-clamp: #{$lines};
11
+ -webkit-box-orient: vertical;
12
+}
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