From 17727decc3cfb2aed83f1e9478b5592f8325a905 Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Thu, 26 Dec 2024 20:09:37 +0530 Subject: [PATCH] add text util css --- src/app/styles/Text.css.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/app/styles/Text.css.ts diff --git a/src/app/styles/Text.css.ts b/src/app/styles/Text.css.ts new file mode 100644 index 00000000..4e2bd4b9 --- /dev/null +++ b/src/app/styles/Text.css.ts @@ -0,0 +1,19 @@ +import { style } from '@vanilla-extract/css'; + +export const BreakWord = style({ + wordBreak: 'break-word', +}); + +export const LineClamp2 = style({ + display: '-webkit-box', + WebkitLineClamp: 2, + WebkitBoxOrient: 'vertical', + overflow: 'hidden', +}); + +export const LineClamp3 = style({ + display: '-webkit-box', + WebkitLineClamp: 3, + WebkitBoxOrient: 'vertical', + overflow: 'hidden', +});