mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-27 07:14:36 +02:00
audit helpers docs: fix mixins formatting for scss conversion
This commit is contained in:
@@ -103,7 +103,7 @@ Set an element to `display: block;` and center via `margin`. Available as a mixi
|
|||||||
|
|
||||||
// Usage as mixins
|
// Usage as mixins
|
||||||
.element {
|
.element {
|
||||||
.center-block();
|
@include center-block;
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
@@ -128,7 +128,7 @@ Easily clear `float`s by adding `.clearfix` **to the parent element**. Utilizes
|
|||||||
|
|
||||||
// Usage as a Mixin
|
// Usage as a Mixin
|
||||||
.element {
|
.element {
|
||||||
.clearfix();
|
@include clearfix;
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
@@ -161,8 +161,8 @@ Hide an element to all devices **except screen readers** with `.sr-only`. Combin
|
|||||||
{% highlight scss %}
|
{% highlight scss %}
|
||||||
// Usage as a Mixin
|
// Usage as a Mixin
|
||||||
.skip-navigation {
|
.skip-navigation {
|
||||||
.sr-only();
|
@include sr-only;
|
||||||
.sr-only-focusable();
|
@include sr-only-focusable;
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
@@ -177,6 +177,6 @@ Utilize the `.text-hide` class or mixin to help replace an element's text conten
|
|||||||
{% highlight scss %}
|
{% highlight scss %}
|
||||||
// Usage as a Mixin
|
// Usage as a Mixin
|
||||||
.heading {
|
.heading {
|
||||||
.text-hide();
|
@include text-hide;
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
Reference in New Issue
Block a user