File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 8787 margin : 0 !important ;
8888}
8989
90+ /// /////////////////
91+ // Truncation
92+ /// /////////////////
93+
94+ .text-truncate {
95+ overflow : hidden ;
96+ text-overflow : ellipsis ;
97+ white-space : nowrap ;
98+ }
99+
100+ .clamp-2 {
101+ @include line-clamp (2 );
102+ }
103+
104+ .clamp-3 {
105+ @include line-clamp (3 );
106+ }
107+
90108/// /////////////////
91109// Logo
92110/// /////////////////
Original file line number Diff line number Diff line change 1+ // Limits a block of text to a certain number of lines
2+ // @include line-clamp(max-lines);
3+
4+ @mixin line-clamp ($lines : 2 ) {
5+ // Use line-clamp if supported (will have a trailing ellipsis)
6+ @supports (-webkit-line-clamp : 1 ) {
7+ overflow : hidden ;
8+ display : -webkit-box ;
9+ -webkit-box-orient : vertical ;
10+ -webkit-line-clamp : $lines ;
11+ }
12+ }
Original file line number Diff line number Diff line change 66// Imports
77/// /////////////////
88
9+ @import " mixins/line-clamp" ;
10+
911@import " base/units" ;
1012@import " base/colors" ;
1113@import " base/normalize" ;
You can’t perform that action at this time.
0 commit comments