diff options
author | m5o <m5o@gmx.com> | 2018-01-16 01:49:36 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-03-12 22:50:21 +0300 |
commit | b5e6eb22a6da98c489c00e6266daa4599e3ce097 (patch) | |
tree | ca46ac63204c54c0e6c63a78f33f2a2262d82ac3 /docs/4.0/components/scrollspy.md | |
parent | 7b2427cc6b790b2b66dee32ba55b8fa694b789e2 (diff) |
Use callout without custom Jekyll plugin.
Diffstat (limited to 'docs/4.0/components/scrollspy.md')
-rw-r--r-- | docs/4.0/components/scrollspy.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/4.0/components/scrollspy.md b/docs/4.0/components/scrollspy.md index 936f59e956..76dde9509f 100644 --- a/docs/4.0/components/scrollspy.md +++ b/docs/4.0/components/scrollspy.md @@ -256,17 +256,19 @@ After adding `position: relative;` in your CSS, call the scrollspy via JavaScrip $('body').scrollspy({ target: '#navbar-example' }) {% endhighlight %} -{% callout danger %} +{% capture callout %} #### Resolvable ID targets required Navbar links must have resolvable id targets. For example, a `<a href="#home">home</a>` must correspond to something in the DOM like `<div id="home"></div>`. -{% endcallout %} +{% endcapture %} +{% include callout.html content=callout type="danger" %} -{% callout info %} +{% capture callout %} #### Non-`:visible` target elements ignored Target elements that are not [`:visible` according to jQuery](https://api.jquery.com/visible-selector/) will be ignored and their corresponding nav items will never be highlighted. -{% endcallout %} +{% endcapture %} +{% include callout.html content=callout type="info" %} ### Methods |