2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +03:00

docs: fix path to assets. (#27696)

This commit is contained in:
XhmikosR
2018-11-21 15:11:31 +02:00
committed by GitHub
parent c628921465
commit 487bd521e3
3 changed files with 10 additions and 6 deletions
+8 -4
View File
@@ -8,6 +8,7 @@ toc: true
{% capture callout %}
##### Warning
The `text-hide()` class and mixin has been deprecated as of v4.1. It will be removed entirely in v5.
{% endcapture %}
{% include callout.html content=callout type="warning" %}
@@ -27,7 +28,10 @@ Utilize the `.text-hide` class or mixin to help replace an element's text conten
Use the `.text-hide` class to maintain the accessibility and SEO benefits of heading tags, but want to utilize a `background-image` instead of text.
{% capture example %}
<h1 class="text-hide" style="background-image: url('/docs/{{ site.docs_version }}/assets/brand/bootstrap-solid.svg'); width: 50px; height: 50px;">Bootstrap</h1>
{% endcapture %}
{% include example.html content=example %}
<div class="bd-example">
<h1 class="text-hide" style="background-image: url('{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/brand/bootstrap-solid.svg'); width: 50px; height: 50px;">Bootstrap</h1>
</div>
{% highlight html %}
<h1 class="text-hide" style="background-image: url('..');">Bootstrap</h1>
{% endhighlight %}