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; +}