use a table to show input/output

This commit is contained in:
Parker Moore
2015-03-13 16:06:31 -07:00
parent 963cd58ab6
commit 1b5ff4c86f
2 changed files with 39 additions and 6 deletions

View File

@@ -4,11 +4,9 @@ title: capitalize
`capitalize` ensures the first character of your string is capitalized.
{% highlight liquid %}
{% raw %}
{{ "title" | capitalize }}
{% endraw %}
# => "Title"
{% endhighlight %}
| Input | Output |
|------------------------------------:|:-----------------|
| `{ "title" | capitalize }` | "Title" |
| `{ "my great title" | capitalize }` | "My great title" |
It only capitalizes the first character, so subsequent words will not be capitalized as well.

View File

@@ -135,3 +135,38 @@ hr {
background-color: lighten($color-slate, 50%);
margin-bottom: $spacing-unit/2;
}
table {
width: 100%;
overflow: auto;
display: block;
margin: 15px 0;
border-collapse: collapse;
thead {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
th {
border: 1px solid #ddd;
padding: 6px 13px;
font-weight: bold;
text-align: center;
}
tbody {
vertical-align: middle;
border-color: inherit;
}
tr {
border-top: 1px solid #ccc;
background-color: #fff;
vertical-align: inherit;
}
td {
border: 1px solid #ddd;
padding: 6px 13px;
}
}