mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Fix highlighting.
v4-dev is using Jekyll, not Hugo.
This commit is contained in:
parent
b0b8d3c982
commit
f830450ca8
@ -233,7 +233,7 @@ We use the `add` and `subtract` functions to wrap the CSS `calc` function. The p
|
|||||||
|
|
||||||
Example where the calc is valid:
|
Example where the calc is valid:
|
||||||
|
|
||||||
{{< highlight scss >}}
|
{% highlight scss %}
|
||||||
$border-radius: .25rem;
|
$border-radius: .25rem;
|
||||||
$border-width: 1px;
|
$border-width: 1px;
|
||||||
|
|
||||||
@ -246,11 +246,11 @@ $border-width: 1px;
|
|||||||
// Output the same calc(.25rem - 1px) as above
|
// Output the same calc(.25rem - 1px) as above
|
||||||
border-radius: subtract($border-radius, $border-width);
|
border-radius: subtract($border-radius, $border-width);
|
||||||
}
|
}
|
||||||
{{< /highlight >}}
|
{% endhighlight %}
|
||||||
|
|
||||||
Example where the calc is invalid:
|
Example where the calc is invalid:
|
||||||
|
|
||||||
{{< highlight scss >}}
|
{% highlight scss %}
|
||||||
$border-radius: .25rem;
|
$border-radius: .25rem;
|
||||||
$border-width: 0;
|
$border-width: 0;
|
||||||
|
|
||||||
@ -263,7 +263,7 @@ $border-width: 0;
|
|||||||
// Output .25rem
|
// Output .25rem
|
||||||
border-radius: subtract($border-radius, $border-width);
|
border-radius: subtract($border-radius, $border-width);
|
||||||
}
|
}
|
||||||
{{< /highlight >}}
|
{% endhighlight %}
|
||||||
|
|
||||||
## Sass options
|
## Sass options
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user