1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-13 17:14:04 +02:00

Truncate text to prevent multiline floating label

This commit is contained in:
HDPham
2022-05-10 23:49:08 -05:00
committed by Mark Otto
parent 8d87997303
commit 7ed1a5f821

View File

@@ -12,8 +12,12 @@
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%; // allow textareas
padding: $form-floating-padding-y $form-floating-padding-x;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
pointer-events: none;
border: $input-border-width solid transparent; // Required for aligning label's text with the input as it affects inner box model
transform-origin: 0 0;