Skip to content

Commit 51af727

Browse files
committed
apply suggested changes
1 parent 9cf01aa commit 51af727

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

projects/igniteui-angular/src/lib/core/styles/base/utilities/_mixins.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,3 +345,16 @@
345345
@content;
346346
}
347347
}
348+
349+
/// Truncates text at a specific number of lines
350+
/// @param {number|string} $lines - The number of lines to show
351+
/// @param {Boolean} $inline - Sets whether an element displays inline-box or box
352+
/// @param {Boolean} $vertical - Sets whether an element lays out its contents horizontally or vertically
353+
/// @example scss Truncates text after the fourth line
354+
/// @include line-clamp(4, true, true);
355+
@mixin line-clamp($lines, $inline, $vertical) {
356+
display: if($inline, -webkit-inline-box, -webkit-box);
357+
-webkit-line-clamp: if($lines, $lines, initial);
358+
-webkit-box-orient: if($vertical, vertical, initial);
359+
overflow: hidden;
360+
}

projects/igniteui-angular/src/lib/core/styles/components/navbar/_navbar-theme.scss

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@
8383
));
8484
}
8585

86-
@mixin line-clamp($lines, $inline, $vertical) {
87-
display: if($inline, -webkit-inline-box, -webkit-box);
88-
-webkit-line-clamp: if($lines, $lines, 'initial');
89-
-webkit-box-orient: if($vertical, 'vertical', 'initial');
90-
overflow: hidden;
91-
}
92-
9386
/// @param {Map} $theme - The theme used to style the component.
9487
/// @requires {mixin} igx-root-css-vars
9588
/// @requires em

0 commit comments

Comments
 (0)