Skip to content

Commit 9cf01aa

Browse files
committed
include line-clamp mixin
1 parent 6cb087e commit 9cf01aa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@
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+
8693
/// @param {Map} $theme - The theme used to style the component.
8794
/// @requires {mixin} igx-root-css-vars
8895
/// @requires em
@@ -110,6 +117,7 @@
110117
color: --var($theme, 'text-color');
111118
box-shadow: --var($theme, 'shadow');
112119
z-index: 4;
120+
overflow: hidden;
113121
}
114122

115123
%igx-navbar-part {
@@ -118,6 +126,7 @@
118126
}
119127

120128
%igx-navbar-title {
129+
@include line-clamp(4, true, true);
121130
margin: $navbar-title-margin;
122131
flex-grow: 1;
123132
user-select: text;

0 commit comments

Comments
 (0)