0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00
Bootstrap/docs/getting-started/third-party-support.md

26 lines
1.0 KiB
Markdown
Raw Normal View History

2014-07-12 11:06:18 +02:00
---
layout: page
title: Third party support
---
While we don't officially support any third party plugins or add-ons, we do offer some useful advice to help avoid potential issues in your projects.
### Box-sizing
Some third-party software, including Google Maps and Google Custom Search Engine, conflict with Bootstrap due to `* { box-sizing: border-box; }`, a rule which makes it so `padding` does not affect the final computed width of an element. These widgets expect the box model to be `content-box` instead. Learn more about [box model and sizing at CSS Tricks](http://css-tricks.com/box-sizing/).
2014-07-12 11:06:18 +02:00
You can deal with this conflict by overriding the box model back to `content-box` just for the third-party widget's section of the page:
2014-03-17 03:03:53 +01:00
{% highlight scss %}
/* Box-sizing reset
2014-03-17 03:03:53 +01:00
*
* Override an entire region's box model via CSS
* to avoid conflicts due to the global box model settings of Bootstrap.
2014-03-17 03:03:53 +01:00
*/
.selector-for-some-widget {
2014-03-17 03:03:53 +01:00
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
{% endhighlight %}