fix: SASS challenge and code indentation (#17036)
This commit is contained in:
@ -191,9 +191,9 @@
|
|||||||
],
|
],
|
||||||
"description": [
|
"description": [
|
||||||
"The <code>@if</code> directive in Sass is useful to test for a specific case - it works just like the <code>if</code> statement in JavaScript</code>.",
|
"The <code>@if</code> directive in Sass is useful to test for a specific case - it works just like the <code>if</code> statement in JavaScript</code>.",
|
||||||
"<blockquote>@mixin make-bold($bool) {<br> @if $bool == bold { font-weight: bold; }<br>}</blockquote>",
|
"<blockquote>@mixin make-bold($bool) {<br> @if $bool == true {<br> font-weight: bold;<br> }<br>}</blockquote>",
|
||||||
"And just like in JavaScript, <code>@else if</code> and <code>@else</code> test for more conditions:",
|
"And just like in JavaScript, <code>@else if</code> and <code>@else</code> test for more conditions:",
|
||||||
"<blockquote>@mixin text-effect($val) {<br> @if $val == danger {color: red;}<br> @else if $val == alert {color: yellow;}<br> @else if $val == success {color: green;}<br> @else {color: black;}<br>}</blockquote>",
|
"<blockquote>@mixin text-effect($val) {<br> @if $val == danger {<br> color: red;<br> }<br> @else if $val == alert {<br> color: yellow;<br> }<br> @else if $val == success {<br> color: green;<br> }<br> @else {<br> color: black;<br> }<br>}</blockquote>",
|
||||||
"<hr>",
|
"<hr>",
|
||||||
"Create a <code>mixin</code> called <code>border-stroke</code> that takes a parameter <code>$val</code>. The <code>mixin</code> should check for the following conditions using <code>@if</code>, <code>@else if</code>, and <code>@else</code>:",
|
"Create a <code>mixin</code> called <code>border-stroke</code> that takes a parameter <code>$val</code>. The <code>mixin</code> should check for the following conditions using <code>@if</code>, <code>@else if</code>, and <code>@else</code>:",
|
||||||
"<blockquote>light - 1px solid black<br>medium - 3px solid black<br>heavy - 6px solid black<br>none - no border</blockquote>"
|
"<blockquote>light - 1px solid black<br>medium - 3px solid black<br>heavy - 6px solid black<br>none - no border</blockquote>"
|
||||||
|
Reference in New Issue
Block a user