mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-14 17:44:15 +02:00
Truncate text to prevent multiline floating label
This commit is contained in:
@@ -12,8 +12,12 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
height: 100%; // allow textareas
|
height: 100%; // allow textareas
|
||||||
padding: $form-floating-padding-y $form-floating-padding-x;
|
padding: $form-floating-padding-y $form-floating-padding-x;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
border: $input-border-width solid transparent; // Required for aligning label's text with the input as it affects inner box model
|
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;
|
transform-origin: 0 0;
|
||||||
|
Reference in New Issue
Block a user