Policy 1707 commit to LF
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / CSS / bootstrap / docs / _includes / getting-started / third-party-support.html
1 <div class="bs-docs-section">
2   <h1 id="third-parties" class="page-header">Third party support</h1>
3   <p class="lead">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.</p>
4
5   <h2 id="third-box-sizing">Box-sizing</h2>
6   <p>Some third party software, including Google Maps and Google Custom Search Engine, conflict with Bootstrap due to <code>* { box-sizing: border-box; }</code>, a rule which makes it so <code>padding</code> does not affect the final computed width of an element. Learn more about <a href="http://css-tricks.com/box-sizing/">box model and sizing at CSS Tricks</a>.</p>
7   <p>Depending on the context, you may override as-needed (Option 1) or reset the box-sizing for entire regions (Option 2).</p>
8 {% highlight scss %}
9 /* Box-sizing resets
10  *
11  * Reset individual elements or override regions to avoid conflicts due to
12  * global box model settings of Bootstrap. Two options, individual overrides and
13  * region resets, are available as plain CSS and uncompiled Less formats.
14  */
15
16 /* Option 1A: Override a single element's box model via CSS */
17 .element {
18   -webkit-box-sizing: content-box;
19      -moz-box-sizing: content-box;
20           box-sizing: content-box;
21 }
22
23 /* Option 1B: Override a single element's box model by using a Bootstrap Less mixin */
24 .element {
25   .box-sizing(content-box);
26 }
27
28 /* Option 2A: Reset an entire region via CSS */
29 .reset-box-sizing,
30 .reset-box-sizing *,
31 .reset-box-sizing *:before,
32 .reset-box-sizing *:after {
33   -webkit-box-sizing: content-box;
34      -moz-box-sizing: content-box;
35           box-sizing: content-box;
36 }
37
38 /* Option 2B: Reset an entire region with a custom Less mixin */
39 .reset-box-sizing {
40   &,
41   *,
42   *:before,
43   *:after {
44     .box-sizing(content-box);
45   }
46 }
47 .element {
48   .reset-box-sizing();
49 }
50 {% endhighlight %}
51 </div>