-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.html
66 lines (56 loc) · 2.7 KB
/
utils.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
title: Utilities
layout: default
permalink: /utils/
subnav:
colors: Colors
font-weight: Font Weight
font-size: Font Size
text-align: Text Align
text-decoration: Text Decoration
text-transform: Text Transform
margins: Margins
padding: Padding
borders: Borders
shadows: Shadows
---
<h2 id="colors" class="s-h2">Colors</h2>
{% assign color_utils = site.data.utils | where: "util_type", "color" %}
{% assign color_groups = "text, background, border" | split: ", " %}
{% for color_group in color_groups %}
<h3 class="s-h3">{{ color_group | capitalize}}</h3>
{% assign utils = color_utils | where: "color_group", color_group %}
{% include utils-table.html utils=utils table_class="utils-table-colors"%}
{% endfor %}
<h2 id="font-weight" class="s-h2 s-mt-5">Font Weight</h2>
{% assign text_utils = site.data.utils | where: "util_type", "font-weight" %}
{% include utils-table.html utils=text_utils %}
<h2 id="font-size" class="s-h2 s-mt-5">Font Size</h2>
{% assign text_utils = site.data.utils | where: "util_type", "font-size" %}
{% include utils-table.html utils=text_utils %}
<h2 id="text-align" class="s-h2 s-mt-5">Text Align</h2>
{% assign text_utils = site.data.utils | where: "util_type", "text-align" %}
{% include utils-table.html utils=text_utils %}
<h2 id="text-decoration" class="s-h2 s-mt-5">Text Decoration</h2>
{% assign text_utils = site.data.utils | where: "util_type", "text-decoration" %}
{% include utils-table.html utils=text_utils %}
<h2 id="text-transform" class="s-h2 s-mt-5">Text Transform</h2>
{% assign text_utils = site.data.utils | where: "util_type", "text-transform" %}
{% include utils-table.html utils=text_utils %}
<h2 id="margins" class="s-h2 s-mt-5">Margins</h2>
{% assign margin_utils = site.data.utils | where: "util_type", "margin" %}
{% include utils-table.html utils=margin_utils table_class="utils-table-margins" %}
<h2 id="padding" class="s-h2 s-mt-5">Padding</h2>
{% assign padding_utils = site.data.utils | where: "util_type", "padding" %}
{% include utils-table.html utils=padding_utils table_class="utils-table-padding" %}
<h2 id="borders" class="s-h2 s-mt-5">Borders</h2>
{% assign border_utils = site.data.utils | where: "util_type", "border" %}
{% assign border_groups = "sides, width, radius" | split: ", " %}
{% for border_group in border_groups %}
<h3 class="s-h3">{{ border_group | capitalize}}</h3>
{% assign utils = border_utils | where: "border_group", border_group %}
{% include utils-table.html utils=utils table_class="utils-table-borders" %}
{% endfor %}
<h2 id="shadows" class="s-h2 s-mt-5">Shadows</h2>
{% assign shadow_utils = site.data.utils | where: "util_type", "shadow" %}
{% include utils-table.html utils=shadow_utils table_class="utils-table-padding" %}