Form field designation

I am trying to remove the blue "halo" that forms elements in Firefox on OS X. Using CSS, I can remove the halo in Safari on OS X using:

input {
  outline: none;
}

But this does not seem to have an effect in Firefox, as well as the -moz-outline property.

+3
source share
7 answers

I reviewed the various suggestions made here, but none of them seemed to be able to completely solve the problem. Defining a custom border style, i.e.

border: 1px solid #000;

halo, , , . border-style: inset;, , "" , , , , .

0

, "", :

*:focus {outline: none;}

, !important, , .

+2
:focus {outline:none;}
::-moz-focus-inner {border:0;}
+1

, OSX, ... ?

input {
  border: 0;
}
0

, , . ( ). firefox chome forder ( )

input {outline: none!important;}

  • , , ?
  • greasemonkey script, . , .

!

: * * * *

0

, forms.css. OS X, , :

/Applications/Firefox.app/Contents/MacOS/res/forms.css

, - CSS, , . , Windows input -moz-appearance: textfield;, , , , "" -moz-* , , -, .

- , input input2 - ( , ). , , CSS.

Once you have determined that you can stop it (if you can), you can add styles back in half until you find one that produces an effect that you don't need. Perhaps you will speed up this process by excluding styles from your test that are obviously unrelated (for example, you are line-height: normal !important;almost certainly not responsible for the blue glow around the fields).

0
source

I believe this is what you are looking for:

input:focus { outline: none; }
0
source

Source: https://habr.com/ru/post/1718207/


All Articles