diff --git a/_sass/modules/_content-area.scss b/_sass/modules/_content-area.scss index 26bde52..d75fc6e 100644 --- a/_sass/modules/_content-area.scss +++ b/_sass/modules/_content-area.scss @@ -2,8 +2,32 @@ margin-bottom: $spacing-unit * 2; } -.code--input { +.code-block { + pre { + border-radius: 0 0 3px 3px; + border-top: none; + } + &:before { - content: 'stuff' + padding: 8px 12px; + display: block; + box-sizing: border-box; + font-weight: bold; + color: $color-white; + background: $color-blue-5; + border-bottom: none; + border-radius: 3px 3px 0 0; + } +} + +.code-block--input { + &:before { + content: 'Input'; + } +} + +.code-block--output { + &:before { + content: 'Output'; } } diff --git a/basics/handles.md b/basics/handles.md index 40c0e60..fca2b14 100644 --- a/basics/handles.md +++ b/basics/handles.md @@ -29,8 +29,7 @@ You can change an object's handle manually (TK how to change a handle manually) In many cases you may know the handle of a object whose attributes you want to access. You can access its attributes by pluralizing the name of the object, then using either the square bracket ( [ ] ) or dot ( . ) notation. -
Input
-Output
-Input
-{% highlight liquid %}{% raw %} +Output
+Input
+Output
+Input
- +Output
- +Input
+Output
+Input
+Output
+Creates a switch statement to compare a variable with different values. case initializes the switch statement, and when compares its values.
Input
-Output
- -Executes a block of code only if a certain condition is met.
-Input
- -Output
-Adds more conditions within an if or unless block.
Input
-Output
- -Similar to if, but executes a block of code only if a certain condition is not met.
Input
- -Output
- -Input
-Output
-Input
-Output
-Input
-Output
-Input
-Output
- -Input
-Output
- -Input
-Output
- -Input
-Output
-cycle must be used within a for loop block.
-Input
-Output
-cycle include:
cycle accepts a parameter called cycle group in cases where you need multiple cycle blocks in one template. If no name is supplied for the cycle group, then it is assumed that multiple calls with the same parameters are one group.
The example below shows why cycle groups are necessary when there are multiple instances of the cycle block.
@@ -334,9 +287,7 @@ Uses forcycle include:
Generates an HTML <table>. Must be wrapped in an opening <table> and closing </table> HTML tags. For a full list of attributes available within a tablerow loop, see tablerow (object).
Input
- -