🎉 Add usefull mixins to DS (#7340)

This commit is contained in:
Eva Marco 2025-09-18 10:47:55 +02:00 committed by GitHub
parent 80cb48fd6a
commit d50b070a64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,22 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) KALEIDOS INC
@mixin textEllipsis {
display: block;
max-width: 99%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@mixin twoLineTextEllipsis {
max-width: 99%;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}