From d50b070a647509725dc0f49bdcf90a2f00ab9655 Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Thu, 18 Sep 2025 10:47:55 +0200 Subject: [PATCH] :tada: Add usefull mixins to DS (#7340) --- frontend/src/app/main/ui/ds/mixins.scss | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 frontend/src/app/main/ui/ds/mixins.scss diff --git a/frontend/src/app/main/ui/ds/mixins.scss b/frontend/src/app/main/ui/ds/mixins.scss new file mode 100644 index 0000000000..c8de5deced --- /dev/null +++ b/frontend/src/app/main/ui/ds/mixins.scss @@ -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; +}