mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
Add use case description and example
This commit is contained in:
@@ -18,3 +18,18 @@ Utilize the `.text-hide` class or mixin to help replace an element's text conten
|
|||||||
@include text-hide;
|
@include text-hide;
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% 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 %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user