2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

docs: switch to fenced codeblocks (#31806)

This commit is contained in:
XhmikosR
2020-10-19 12:56:49 +03:00
committed by GitHub
parent 48177c946f
commit e6618a6ebb
43 changed files with 494 additions and 446 deletions
+4 -4
View File
@@ -10,9 +10,9 @@ Easily clear `float`s by adding `.clearfix` **to the parent element**. Can also
Use in HTML:
{{< highlight html >}}
```html
<div class="clearfix">...</div>
{{< /highlight >}}
```
The mixin source code:
@@ -20,11 +20,11 @@ The mixin source code:
Use the mixin in SCSS:
{{< highlight scss >}}
```scss
.element {
@include clearfix;
}
{{< /highlight >}}
```
The following example shows how the clearfix can be used. Without the clearfix the wrapping div would not span around the buttons which would cause a broken layout.