Layout with different colors in TextBox (Safari and Chrome)

6

Safari is fading the colors inside that are not @Html.ComboboxFor, how do I not to remain in the textbox?

I'm using CSS and JQuery, follow the photo

Select does not exist in Safari:

@Html.DropDownListFor(m => m.CEP.IdCidade, (SelectList)ViewBag.Cidades, "Selecione", new { @class = "form-control", @id = "IdCidade", @style = "line-height: 2" })

Text is in Safari:

@Html.TextBoxFor(m => m.Bairro.DescBairro, new { @class = "form-control tam-50", @id = "DescBairro" })

Here is a comparison of Chrome:

    
asked by anonymous 27.11.2015 / 17:29

1 answer

1

I was able to solve by doing the following in the CSS:

input[type="text"]:disabled {
    color: rgba(85, 85, 85, 1);
    -webkit-text-fill-color: rgba(85, 85, 85, 1);
} 

select[disabled='disabled'] {
    color: rgba(85, 85, 85, 1);
    -webkit-text-fill-color: rgba(85, 85, 85, 1);
} 
    
27.11.2015 / 20:05