user2102611
user2102611

Reputation:

Is it possible to just use the tabs css/javascript with bootstrap?

I'm adding bootstrap to an existing project. For the time being I only want bootstrap for the tabs. If I include the entire bootstrap CSS file, though, it breaks half the CSS on my page.

Is it possible to just include the tabs css or possible just scope bootstrap to that specific element?

Upvotes: 0

Views: 3050

Answers (1)

Blaise
Blaise

Reputation: 13479

Edit: I was being stupid. Bootstrap has a page where you can customize the components that should get included. You should use http://getbootstrap.com/customize/. What you need is probably this: http://getbootstrap.com/customize/?id=a0f9abe70f737ce00b5f

Old answer below.


Yes, you can compile your own stylesheet using SASS.

  1. Copy _bootstrap.scss and the bootstrap directory from this GitHub repository dir
  2. Comment out everything you don't need in _bootstrap.scss. Be careful, some SCSS files depend on other files.
  3. Compile _bootstrap.scss to CSS and use that in your project.

Alternatively, find a non-minified bootstrap CSS file, and copy all CSS selectors that you use in your project's templates to your project's CSS file.

Upvotes: 1

Related Questions