(fix) search field placeholder overflow

pull/1844/head
Gabriel Rodriguez Alsina 6 years ago
parent 919b29b453
commit 82c8a684f2
  1. 19
      apps/block_scout_web/assets/css/components/_navbar.scss

@ -103,13 +103,16 @@ $navbar-logo-width: auto !default;
margin-top: -8px; margin-top: -8px;
} }
} }
.form-inline { .form-inline {
height: 100%; height: 100%;
} }
.input-group { .input-group {
height: 100%; height: 100%;
position: relative; position: relative;
} }
.form-control { .form-control {
background: $header-textfield-background-color; background: $header-textfield-background-color;
border-color: $header-textfield-background-color; border-color: $header-textfield-background-color;
@ -122,7 +125,21 @@ $navbar-logo-width: auto !default;
width: 100%; width: 100%;
z-index: 1; z-index: 1;
@include textfield-placeholder(); &[placeholder]{
text-overflow: ellipsis !important;
}
&::-webkit-input-placeholder { /* Chrome/Opera/Safari */
text-overflow: ellipsis !important;
}
&::-moz-placeholder { /* Firefox 19+ */
text-overflow: ellipsis !important;
}
&:-ms-input-placeholder { /* IE 10+ */
text-overflow: ellipsis !important;
}
&:-moz-placeholder { /* Firefox 18- */
text-overflow: ellipsis !important;
}
&:focus { &:focus {
box-shadow: none; box-shadow: none;

Loading…
Cancel
Save