Critical Thinking

  • Archive
  • RSS

Making jQuery UI look like Bootstrap

I’m using the Bootstrap UI toolkit for a project I’m working on. I like it quite a bit so far. However, it doesn’t do everything. I wanted a date picker and an autocomplete control that bootstrap doesn’t have. Not being one to do work when I don’t have to, I used the jQuery UI controls.

However.. they looked out of place.

I considered a couple of approaches:

  1. Manipulate the classes on the elements to match 
    // too messy 
  2. Using a jQuery theme made to look like Bootstrap 
    // it didn’t look that good on closer inspection
  3. Hacking the jQuery UI styling
    // I only wanted to change a few specific pieces 
  4. Hack in some CSS to override the jQuery UI styling
    // what I ended up doing.. 

After minutes of deliberation I chose the third approach. It turned out to be a bit tricker than I’d expected.

To save someone else the trouble..

Autocomplete
Adapted from the Bootstrap typeahead.  

https://gist.github.com/1868651

Calendar
This one required a bit more interpretation.

https://gist.github.com/1868669
    • #bootstrap
  • 1 year ago
  • Comments
  • Permalink
  • Share
    Tweet

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

I'm Kevin. I'm pretty fun. I have opinions about a lot of things so I figured I'd start writing them down.

What to expect: thoughts about the tech industry, unsolicited feedback on various products, ideas that I won't do anything with

Me, Elsewhere

  • @kgdavis on Twitter
  • Facebook Profile
  • kgdavis on Flickr
  • kgdavis on Delicious

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr