]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add use case description and example
authorDillon Chanis <dillonchanis92@gmail.com>
Tue, 13 Jun 2017 01:40:19 +0000 (21:40 -0400)
committerMark Otto <markd.otto@gmail.com>
Fri, 11 Aug 2017 05:45:35 +0000 (22:45 -0700)
docs/4.0/utilities/image-replacement.md

index b11c936c4bba42132d226d05148f3d0e2165f7de..1331a789e12e24d1bb0f88017299c041dd13fbe1 100644 (file)
@@ -18,3 +18,18 @@ Utilize the `.text-hide` class or mixin to help replace an element's text conten
   @include text-hide;
 }
 {% endhighlight %}
+
+The `.text-hide` class is useful for when you want the benefits heading tags like accessibility and SEO, but want to utilize your brand's logo image instead of text.
+
+{% example html %}
+<h1 class="text-hide" style="background-image: url('/assets/brand/bootstrap-solid.svg'); width: 50px; height: 50px;">Bootstrap</h1>
+{% endexample %}
+{% highlight html %}
+<h1 class="text-hide logo">Bootstrap</h1>
+{% endhighlight %}
+{% highlight scss %}
+.logo {
+  background-image: url('/assets/brand/bootstrap-solid.svg');
+}
+{% endhighlight %}
+