File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
projects/igniteui-angular/src/lib/core/styles Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments