Skip to content

Instantly share code, notes, and snippets.

@juliuscsurgo
Created January 3, 2013 01:29
Show Gist options
  • Save juliuscsurgo/4440047 to your computer and use it in GitHub Desktop.
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;
}
@nodox
Copy link

nodox commented Jun 24, 2016

Thank you! So helpful!

@saoron
Copy link

saoron commented Jun 27, 2016

Thanks!

@3ssom
Copy link

3ssom commented Oct 7, 2016

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

Copy link

ghost commented Sep 4, 2017

thanks

@yoni-g
Copy link

yoni-g commented Jan 9, 2018

Thanks man..

@nikki7788
Copy link

Thanks!
It worked.

@jeeohly
Copy link

jeeohly commented Jul 30, 2018

THANK YOU

@VikramThory
Copy link

Thanks! It worked pretty fine.

@edgarMejia
Copy link

¡Gracias! :)

@thewilliamchan
Copy link

Thanks! It works perfectly!

@vedhaperi
Copy link

Thank you!

@omer2500
Copy link

thank you!

@theAmazingJiang
Copy link

Thx

@waska11
Copy link

waska11 commented Jul 5, 2019

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

thanks

@tranduclinh2067
Copy link

Thank you!

@l33t-daniel
Copy link

Good!

@ChiragDhussa
Copy link

It worked. Thanks.

@LoffeKoffe
Copy link

Saved my day :D

@AlvexGR
Copy link

AlvexGR commented Dec 10, 2019

Thank you!

@Alirezamxz
Copy link

Thank you!

@seanquijote
Copy link

Thanks!

@y377
Copy link

y377 commented May 27, 2024

try shadow-none or shadow-sm

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