Skip to content

Instantly share code, notes, and snippets.

@juliuscsurgo
Created January 3, 2013 01:29
Show Gist options
  • Select an option

  • Save juliuscsurgo/4440047 to your computer and use it in GitHub Desktop.

Select an option

Save juliuscsurgo/4440047 to your computer and use it in GitHub Desktop.
Twitter Bootstrap: remove the blue glow in the form inputs
input[type="text"], textarea {
outline: none;
box-shadow:none !important;
border:1px solid #ccc !important;
}
@Mandlaness

Copy link
Copy Markdown

Worked like a charm for me. Thank you

@Jamilammar

Copy link
Copy Markdown

Thank you!

@ryandwi

ryandwi commented Apr 28, 2015

Copy link
Copy Markdown

ok, thanks bro :)

@neywen

neywen commented May 19, 2015

Copy link
Copy Markdown

pffffiiiou I've been trying 2784 different solutions from stackoverflow, without any success, and that's the only solution that fully and properly worked. Many thanks...

@daniel-halldorsson

Copy link
Copy Markdown

make sure not to include line 4 if you want validation states on your inputs (red for error, green for success etc)

@tasnim101

Copy link
Copy Markdown

Thanks man :-D

@bigblocho5

bigblocho5 commented May 13, 2016

Copy link
Copy Markdown

Thank you!

@nodox

nodox commented Jun 24, 2016

Copy link
Copy Markdown

Thank you! So helpful!

@saoron

saoron commented Jun 27, 2016

Copy link
Copy Markdown

Thanks!

@3ssom

3ssom commented Oct 7, 2016

Copy link
Copy Markdown

Thanks!

but what about other types? I know I'd have to also put other types like this:

input[type='text'],
input[type='number'],
input[type='password'],
textarea {
outline: none;
box-shadow:none !important;
border:1px solid #ccc !important;
}

but what about fields like body? which is not working with it?

Thank you again

ghost commented Sep 4, 2017

Copy link
Copy Markdown

thanks

@yoni-g

yoni-g commented Jan 9, 2018

Copy link
Copy Markdown

Thanks man..

@nikki7788

Copy link
Copy Markdown

Thanks!
It worked.

@jeeohly

jeeohly commented Jul 30, 2018

Copy link
Copy Markdown

THANK YOU

@VikramThory

Copy link
Copy Markdown

Thanks! It worked pretty fine.

@cybergaala

Copy link
Copy Markdown

¡Gracias! :)

@thewilliamchan

Copy link
Copy Markdown

Thanks! It works perfectly!

@vedhaperi

Copy link
Copy Markdown

Thank you!

@omer2500

Copy link
Copy Markdown

thank you!

@theAmazingJiang

Copy link
Copy Markdown

Thx

@waska11

waska11 commented Jul 5, 2019

Copy link
Copy Markdown

Hello Folks,

I have seen many articles and tricks on multiple websites to get rid of this blue thing which comes on click as :focus,
Here is the way: If you are using bootstrap locally not a CDN then you can head to the bootstrap.css and if you are using .min file then bootstrap.min.css, search "box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);" and replace it with "box-shadow: none!important;" so this will delete all the focus at once, you can use sublime or Atom editor to replace at once.

@BahramIsmayilov

Copy link
Copy Markdown

thanks

@tranduclinh2067

Copy link
Copy Markdown

Thank you!

@l33t-daniel

Copy link
Copy Markdown

Good!

@ChiragDhussa

Copy link
Copy Markdown

It worked. Thanks.

@LoffeKoffe

Copy link
Copy Markdown

Saved my day :D

@AlvexGR

AlvexGR commented Dec 10, 2019

Copy link
Copy Markdown

Thank you!

@Alirezamxz

Copy link
Copy Markdown

Thank you!

@seanquijote

Copy link
Copy Markdown

Thanks!

@y377

y377 commented May 27, 2024

Copy link
Copy Markdown

try shadow-none or shadow-sm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment