From 1d649f56e40b00a0266c1f0c90066b13c50bb179 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 13 Apr 2021 12:34:19 +0000 Subject: [PATCH] [Library | Trunk]: Add css class to break all words git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/assets@60853 d315682c-612b-4755-9ff5-7f18f6832af3 --- library-css/utils.scss | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/library-css/utils.scss b/library-css/utils.scss index 7e37b32..d7487fd 100644 --- a/library-css/utils.scss +++ b/library-css/utils.scss @@ -62,6 +62,10 @@ h2 .custom-external { text-overflow: ellipsis; } +.multi-line-ellipsis.line-1 p { + -webkit-line-clamp: 1; +} + .multi-line-ellipsis.lines-2 p { -webkit-line-clamp: 2; } @@ -131,3 +135,15 @@ div:not(.uk-logo) > img { .cursor-default { cursor: default !important; } + +.custom-break { + overflow-wrap: break-word; + word-wrap: break-word; + -ms-word-break: break-all; + word-break: break-all; + -ms-hyphens: auto; + -moz-hyphens: auto; + -webkit-hyphens: auto; + hyphens: auto; + +}