aboutsummaryrefslogtreecommitdiff
path: root/docs/4.0/getting-started
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2017-10-30 23:53:57 +0200
committerGitHub <[email protected]>2017-10-30 23:53:57 +0200
commitb67a4be8de353bfab41443d705a6f595391cc482 (patch)
tree572deac3ba4ae7600fc571a6c400e27d916d5541 /docs/4.0/getting-started
parent1870b871d0b6ad7c842aab780dbd5541d84f3428 (diff)
downloadbootstrap-b67a4be8de353bfab41443d705a6f595391cc482.tar.xz
bootstrap-b67a4be8de353bfab41443d705a6f595391cc482.zip
Minor Markdown consistency cleanup. (#24605)
Diffstat (limited to 'docs/4.0/getting-started')
-rw-r--r--docs/4.0/getting-started/javascript.md2
-rw-r--r--docs/4.0/getting-started/webpack.md1
2 files changed, 3 insertions, 0 deletions
diff --git a/docs/4.0/getting-started/javascript.md b/docs/4.0/getting-started/javascript.md
index a0094d154..ed2d18bf9 100644
--- a/docs/4.0/getting-started/javascript.md
+++ b/docs/4.0/getting-started/javascript.md
@@ -67,6 +67,7 @@ Each plugin also exposes its raw constructor on a `Constructor` property: `$.fn.
All programmatic API methods are **asynchronous** and returns to the caller once the transition is started but **before it ends**.
In order to execute an action once the transition is complete, you can listen to the corresponding event.
+
{% highlight js %}
$('#myCollapse').on('shown.bs.collapse', function (e) {
// Action to execute once the collapsible area is expanded
@@ -74,6 +75,7 @@ $('#myCollapse').on('shown.bs.collapse', function (e) {
{% endhighlight %}
In addition a method call on a **transitioning component will be ignored**.
+
{% highlight js %}
$('#myCarousel').on('slid.bs.carousel', function (e) {
$('#myCarousel').carousel('2') // Will slide to the slide 2 as soon as the transition to slide 1 is finished
diff --git a/docs/4.0/getting-started/webpack.md b/docs/4.0/getting-started/webpack.md
index 04af8d4f6..082f835ad 100644
--- a/docs/4.0/getting-started/webpack.md
+++ b/docs/4.0/getting-started/webpack.md
@@ -56,6 +56,7 @@ Notice that if you chose to **import plugins individually**, you must also insta
To enjoy the full potential of Bootstrap and customize it to your needs, use the source files as a part of your project's bundling process.
First, create your own `_custom.scss` and use it to override the [built-in custom variables]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/options/). Then, use your main sass file to import your custom variables, followed by Bootstrap:
+
{% highlight scss %}
@import "custom";
@import "~bootstrap/scss/bootstrap";