shipyard-framework 0.5.86 → 0.5.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.ruby-version +1 -1
  4. data/Brewfile +4 -0
  5. data/assets/icons/status/error.svg +4 -0
  6. data/assets/icons/status/fail.svg +4 -0
  7. data/assets/icons/status/idle.svg +4 -0
  8. data/assets/icons/status/running.svg +3 -0
  9. data/assets/icons/status/skipped.svg +3 -0
  10. data/assets/icons/status/success.svg +3 -0
  11. data/assets/icons/status/waiting.svg +5 -0
  12. data/assets/stylesheets/shipyard/_components.sass +1 -0
  13. data/assets/stylesheets/shipyard/components/_code.sass +1 -5
  14. data/assets/stylesheets/shipyard/components/_icons.sass +19 -10
  15. data/assets/stylesheets/shipyard/components/_statuses.sass +196 -0
  16. data/assets/stylesheets/shipyard/core/_animations.sass +12 -0
  17. data/assets/stylesheets/shipyard/utilities/_border-radius.sass +2 -0
  18. data/assets/stylesheets/shipyard/utilities/_margin-padding.sass +35 -17
  19. data/assets/stylesheets/shipyard/utilities/_typography.sass +3 -0
  20. data/assets/stylesheets/shipyard/variables/_components.scss +7 -0
  21. data/lib/shipyard-framework/jekyll/tags/icon_tag.rb +8 -3
  22. data/lib/shipyard-framework/version.rb +1 -1
  23. data/styleguide/.ruby-version +1 -1
  24. data/styleguide/Gemfile.lock +9 -9
  25. data/styleguide/_assets/css/views.sass +1 -1
  26. data/styleguide/_includes/page-heading.html +1 -1
  27. data/styleguide/_plugins/icon_item.rb +1 -1
  28. data/styleguide/_plugins/sass_output.rb +4 -1
  29. data/styleguide/components/alerts.md +2 -2
  30. data/styleguide/components/boxes.md +2 -2
  31. data/styleguide/components/buttons.md +26 -26
  32. data/styleguide/components/checkboxes.md +30 -30
  33. data/styleguide/components/code.html +4 -4
  34. data/styleguide/components/forms.md +7 -7
  35. data/styleguide/components/horizontal-rules.md +1 -1
  36. data/styleguide/components/icons.md +18 -2
  37. data/styleguide/components/index.md +2 -2
  38. data/styleguide/components/modals/_modal.html +15 -15
  39. data/styleguide/components/modals/example-billing.html +12 -12
  40. data/styleguide/components/modals/example-downgrade.html +2 -2
  41. data/styleguide/components/modals/example-survey.html +5 -5
  42. data/styleguide/components/modals/index.md +1 -1
  43. data/styleguide/components/radio-buttons.md +18 -18
  44. data/styleguide/components/statuses.md +324 -0
  45. data/styleguide/utilities/accordion.md +2 -2
  46. data/styleguide/utilities/border-radius.md +10 -3
  47. data/styleguide/utilities/colors.md +4 -4
  48. data/styleguide/utilities/grid.md +3 -3
  49. data/styleguide/utilities/index.md +1 -1
  50. data/styleguide/utilities/margin-padding.md +32 -19
  51. data/styleguide/utilities/opacity.md +2 -2
  52. data/styleguide/utilities/typography.md +2 -2
  53. metadata +13 -3
@@ -16,7 +16,7 @@ labels:
16
16
  Useful when you want to group a series of radio buttons together on a single line.
17
17
  {: .section-description }
18
18
 
19
- <ul class="input-list margin-bottom-lg">
19
+ <ul class="input-list mb-30">
20
20
  {% for label in page.labels %}
21
21
  <li class="input-item-inline">
22
22
  <input id="radio-inline-{{ forloop.index }}" name="radio-list" type="radio" class="input input-radio" {% if forloop.index == 1 %}checked{% endif %} />
@@ -40,8 +40,8 @@ Useful when you want to group a series of radio buttons together on a single lin
40
40
  Useful when you want to group a series of radio buttons together in a list (stacked by default).
41
41
  {: .section-description }
42
42
 
43
- <div class="col-container margin-bottom-sm margin-bottom-x1-lg">
44
- <div class="col col-100 col-x1-50 margin-bottom-sm margin-bottom-x1-none">
43
+ <div class="col-container mb-15 mb-x1-30">
44
+ <div class="col col-100 col-x1-50 mb-15 mb-x1-0">
45
45
  <div class="rounded bg-white box-padding">
46
46
  <ul class="input-list">
47
47
  {% for label in page.labels %}
@@ -153,43 +153,43 @@ Yep, that's exactly what it sounds like. It behaves like a radio button but look
153
153
  ---
154
154
 
155
155
  ## Radio Buttons Nested in Buttons
156
- {: .margin-bottom-md }
156
+ {: .mb-20 }
157
157
 
158
- <button class="btn btn-secondary margin-right-xs margin-bottom-xs">
159
- <input type="radio" class="input input-radio margin-right-xxs" />
158
+ <button class="btn btn-secondary mr-10 mb-10">
159
+ <input type="radio" class="input input-radio mr-5" />
160
160
  Unchecked
161
161
  </button>
162
- <button class="btn btn-secondary margin-right-xs margin-bottom-xs">
163
- <input type="radio" class="input input-radio margin-right-xxs" checked />
162
+ <button class="btn btn-secondary mr-10 mb-10">
163
+ <input type="radio" class="input input-radio mr-5" checked />
164
164
  Checked
165
165
  </button>
166
- <button class="btn btn-secondary margin-right-xs margin-bottom-xs">
167
- <input type="radio" class="input input-radio-checkbox margin-right-xxs" checked />
166
+ <button class="btn btn-secondary mr-10 mb-10">
167
+ <input type="radio" class="input input-radio-checkbox mr-5" checked />
168
168
  Checked w/ Icon
169
169
  </button>
170
- <button class="btn btn-cta margin-right-xs margin-bottom-xs">
171
- <input type="radio" class="input input-radio input-radio-inverse margin-right-xxs" />
170
+ <button class="btn btn-cta mr-10 mb-10">
171
+ <input type="radio" class="input input-radio input-radio-inverse mr-5" />
172
172
  Inverse Unchecked
173
173
  </button>
174
- <button class="btn btn-cta margin-right-xs margin-bottom-xs">
175
- <input type="radio" class="input input-radio input-radio-inverse margin-right-xxs" checked />
174
+ <button class="btn btn-cta mr-10 mb-10">
175
+ <input type="radio" class="input input-radio input-radio-inverse mr-5" checked />
176
176
  Inverse Checked
177
177
  </button>
178
- <button class="btn btn-cta margin-right-xs margin-bottom-xs">
179
- <input type="radio" class="input input-radio-checkbox input-radio-inverse margin-right-xs" checked />
178
+ <button class="btn btn-cta mr-10 mb-10">
179
+ <input type="radio" class="input input-radio-checkbox input-radio-inverse mr-10" checked />
180
180
  Inverse Checked w/ Icon
181
181
  </button>
182
182
 
183
183
  ```html
184
184
  <!-- Secondary button with a radio button in the unchecked state. -->
185
185
  <button class="btn btn-secondary">
186
- <input type="radio" class="input input-radio margin-right-xxs" />
186
+ <input type="radio" class="input input-radio mr-5" />
187
187
  Button Text
188
188
  </button>
189
189
 
190
190
  <!-- CTA button with a radio-checkbox in the checked state. -->
191
191
  <button class="btn btn-cta">
192
- <input type="radio" class="input input-radio-checkbox input-radio-inverse margin-right-xxs" checked />
192
+ <input type="radio" class="input input-radio-checkbox input-radio-inverse mr-5" checked />
193
193
  Button Text
194
194
  </button>
195
195
  ```
@@ -0,0 +1,324 @@
1
+ ---
2
+ title: Shipyard Statuses
3
+ sass_file: shipyard/components/_statuses
4
+ statuses: [skipped, waiting, running, success, idle, error, fail]
5
+ ---
6
+
7
+ {% include page-heading.html page=page %}
8
+
9
+ ---
10
+
11
+ ### Status Dots `.status-xs`
12
+ Useful in tight spaces where it's still important to show status, but not important enough to compete for attention with other elements on the page.
13
+ {: .section-description }
14
+
15
+ <div class="mb-25">
16
+ {% for status in page.statuses -%}
17
+ <button class="btn btn-secondary btn-xs btn-rounded mr-5">
18
+ <span class="status status-xs status-{{ status }}"></span>
19
+ <span class="text-sm medium ml-xs text-{{ status }}">{{ status | capitalize }}</span>
20
+ </button>
21
+ {% endfor %}
22
+ </div>
23
+
24
+ ```html
25
+ {%- for status in page.statuses %}
26
+ <span class="status status-xs status-{{ status }}"></span>
27
+ <span class="text-{{ status }}">{{ status }}</span>
28
+ {% endfor -%}
29
+ ```
30
+
31
+ ---
32
+
33
+ ### Status Circles `.status-sm`
34
+ Useful when next to standard text where where it's important to show the status of a particular object.
35
+ {: .section-description }
36
+
37
+ {% for status in page.statuses -%}
38
+ <button class="btn btn-secondary btn-sm btn-rounded mr-5">
39
+ <span class="status status-{{ status }} status-sm"></span>
40
+ <span class="text-md medium ml-xs text-{{ status }}">{{ status | capitalize }}</span>
41
+ </button>
42
+ {% endfor %}
43
+
44
+ ```html
45
+ {%- for status in page.statuses %}
46
+ <span class="status status-sm status-{{ status }}"></span>
47
+ <span class="text-{{ status }}">{{ status }}</span>
48
+ {% endfor -%}
49
+ ```
50
+
51
+ ---
52
+
53
+ ### Status Icons `.status-md`
54
+ Useful when next to standard text where where it's important to show the status of a particular object.
55
+ {: .section-description }
56
+
57
+ <button tooltip="skipped" class="mr-5">
58
+ <span class="status status-skipped status-md">{% icon :skipped, prefix: 'status-md', class: 'status-icon' %}</span>
59
+ </button>
60
+ <button tooltip="waiting" class="mr-5">
61
+ <span class="status status-waiting status-md">{% icon 'waiting', prefix: 'status-md', class: 'status-icon' %}</span>
62
+ </button>
63
+ <button tooltip="running" class="mr-5">
64
+ <span class="status status-running status-md">{% icon :running, prefix: 'status-md', class: 'status-icon' %}</span>
65
+ </button>
66
+ <button tooltip="success" class="mr-5">
67
+ <span class="status status-success status-md">{% icon :success, prefix: 'status-md', class: 'status-icon' %}</span>
68
+ </button>
69
+ <button tooltip="idle" class="mr-5">
70
+ <span class="status status-idle status-md">{% icon :idle, prefix: 'status-md', class: 'status-icon' %}</span>
71
+ </button>
72
+ <button tooltip="error" class="mr-5">
73
+ <span class="status status-error status-md">{% icon :error, prefix: 'status-md', class: 'status-icon' %}</span>
74
+ </button>
75
+ <button tooltip="fail" class="mr-5">
76
+ <span class="status status-fail status-md">{% icon :fail, prefix: 'status-md', class: 'status-icon' %}</span>
77
+ </button>
78
+
79
+ ```erb
80
+ {%- for status in page.statuses %}
81
+ <span class="status status-md status-{{ status }}">
82
+ <%= icon :{{ status }}, prefix: 'status-md', class: 'status-icon' %>
83
+ </span>
84
+ {% endfor -%}
85
+ ```
86
+
87
+ ---
88
+
89
+ ### Inverse Status Icons `.status-inverse.status-md`
90
+ Useful when next to standard text where where it's important to show the status of a particular object.
91
+ {: .section-description }
92
+
93
+ <div class="col-container m-0 align-center mb-30">
94
+ <div class="status-skipped-bg p-20 pl-0 pr-0 col rounded rounded-left" tooltip="skipped">
95
+ <span class="status status-inverse status-skipped status-md">
96
+ {% icon :skipped, prefix: 'status-md', class: 'status-icon' %}
97
+ </span>
98
+ </div>
99
+ <div class="status-waiting-bg p-20 pl-0 pr-0 col" tooltip="waiting">
100
+ <span class="status status-inverse status-waiting status-md">
101
+ {% icon 'waiting', prefix: 'status-md', class: 'status-icon' %}
102
+ </span>
103
+ </div>
104
+ <div class="status-running-bg p-20 pl-0 pr-0 col" tooltip="running">
105
+ <span class="status status-inverse status-running status-md">
106
+ {% icon :running, prefix: 'status-md', class: 'status-icon' %}
107
+ </span>
108
+ </div>
109
+ <div class="status-success-bg p-20 pl-0 pr-0 col" tooltip="success">
110
+ <span class="status status-inverse status-success status-md">
111
+ {% icon :success, prefix: 'status-md', class: 'status-icon' %}
112
+ </span>
113
+ </div>
114
+ <div class="status-idle-bg p-20 pl-0 pr-0 col" tooltip="idle">
115
+ <span class="status status-inverse status-idle status-md">
116
+ {% icon :idle, prefix: 'status-md', class: 'status-icon' %}
117
+ </span>
118
+ </div>
119
+ <div class="status-error-bg p-20 pl-0 pr-0 col" tooltip="error">
120
+ <span class="status status-inverse status-error status-md">
121
+ {% icon :error, prefix: 'status-md', class: 'status-icon' %}
122
+ </span>
123
+ </div>
124
+ <div class="status-fail-bg p-20 pl-0 pr-0 col rounded rounded-right" tooltip="fail">
125
+ <span class="status status-inverse status-fail status-md">
126
+ {% icon :fail, prefix: 'status-md', class: 'status-icon' %}
127
+ </span>
128
+ </div>
129
+ </div>
130
+
131
+ ```erb
132
+ {%- for status in page.statuses %}
133
+ <span class="status status-inverse status-md status-{{ status }}">
134
+ <%= icon :{{ status }}, prefix: 'status-md', class: 'status-icon' %>
135
+ </span>
136
+ {% endfor -%}
137
+ ```
138
+
139
+ ---
140
+
141
+ ### Large Status Icons `.status-lg`
142
+ Useful when next to standard text where where it's important to show the status of a particular object.
143
+ {: .section-description }
144
+
145
+ <button tooltip="skipped" class="mr-5">
146
+ <span class="status status-skipped status-lg">{% icon :skipped, prefix: 'status-lg', class: 'status-icon' %}</span>
147
+ </button>
148
+ <button tooltip="waiting" class="mr-5">
149
+ <span class="status status-waiting status-lg">{% icon 'waiting', prefix: 'status-lg', class: 'status-icon' %}</span>
150
+ </button>
151
+ <button tooltip="running" class="mr-5">
152
+ <span class="status status-running status-lg">{% icon :running, prefix: 'status-lg', class: 'status-icon' %}</span>
153
+ </button>
154
+ <button tooltip="success" class="mr-5">
155
+ <span class="status status-success status-lg">{% icon :success, prefix: 'status-lg', class: 'status-icon' %}</span>
156
+ </button>
157
+ <button tooltip="idle" class="mr-5">
158
+ <span class="status status-idle status-lg">{% icon :idle, prefix: 'status-lg', class: 'status-icon' %}</span>
159
+ </button>
160
+ <button tooltip="error" class="mr-5">
161
+ <span class="status status-error status-lg">{% icon :error, prefix: 'status-lg', class: 'status-icon' %}</span>
162
+ </button>
163
+ <button tooltip="fail" class="mr-5">
164
+ <span class="status status-fail status-lg">{% icon :fail, prefix: 'status-lg', class: 'status-icon' %}</span>
165
+ </button>
166
+
167
+ ```erb
168
+ {%- for status in page.statuses %}
169
+ <span class="status status-lg status-{{ status }}">
170
+ <%= icon :{{ status }}, prefix: 'status-lg', class: 'status-icon' %>
171
+ </span>
172
+ {% endfor -%}
173
+ ```
174
+
175
+ ---
176
+
177
+ ### Large, Inverse Status Icons `.status-inverse.status-lg`
178
+ Useful when next to standard text where where it's important to show the status of a particular object.
179
+ {: .section-description }
180
+
181
+ <div class="col-container m-0 align-center mb-30">
182
+ <div class="status-skipped-bg p-20 pl-0 pr-0 col rounded rounded-left" tooltip="skipped">
183
+ <span class="status status-inverse status-skipped status-lg">
184
+ {% icon :skipped, prefix: 'status-lg', class: 'status-icon' %}
185
+ </span>
186
+ </div>
187
+ <div class="status-waiting-bg p-20 pl-0 pr-0 col" tooltip="waiting">
188
+ <span class="status status-inverse status-waiting status-lg">
189
+ {% icon 'waiting', prefix: 'status-lg', class: 'status-icon' %}
190
+ </span>
191
+ </div>
192
+ <div class="status-running-bg p-20 pl-0 pr-0 col" tooltip="running">
193
+ <span class="status status-inverse status-running status-lg">
194
+ {% icon :running, prefix: 'status-lg', class: 'status-icon' %}
195
+ </span>
196
+ </div>
197
+ <div class="status-success-bg p-20 pl-0 pr-0 col" tooltip="success">
198
+ <span class="status status-inverse status-success status-lg">
199
+ {% icon :success, prefix: 'status-lg', class: 'status-icon' %}
200
+ </span>
201
+ </div>
202
+ <div class="status-idle-bg p-20 pl-0 pr-0 col" tooltip="idle">
203
+ <span class="status status-inverse status-idle status-lg">
204
+ {% icon :idle, prefix: 'status-lg', class: 'status-icon' %}
205
+ </span>
206
+ </div>
207
+ <div class="status-error-bg p-20 pl-0 pr-0 col" tooltip="error">
208
+ <span class="status status-inverse status-error status-lg">
209
+ {% icon :error, prefix: 'status-lg', class: 'status-icon' %}
210
+ </span>
211
+ </div>
212
+ <div class="status-fail-bg p-20 pl-0 pr-0 col rounded rounded-right" tooltip="fail">
213
+ <span class="status status-inverse status-fail status-lg">
214
+ {% icon :fail, prefix: 'status-lg', class: 'status-icon' %}
215
+ </span>
216
+ </div>
217
+ </div>
218
+
219
+ ```erb
220
+ {%- for status in page.statuses %}
221
+ <span class="status status-lg status-{{ status }}">
222
+ <%= icon :{{ status }}, prefix: 'status-lg', class: 'status-icon' %>
223
+ </span>
224
+ {% endfor -%}
225
+ ```
226
+
227
+ ---
228
+
229
+ ### X-Large Status Icons `.status-xl`
230
+ Useful when next to standard text where where it's important to show the status of a particular object.
231
+ {: .section-description }
232
+
233
+ <button tooltip="skipped" class="mr-5">
234
+ <span class="status status-skipped status-xl">{% icon :skipped, prefix: 'status-xl', class: 'status-icon' %}</span>
235
+ </button>
236
+ <button tooltip="waiting" class="mr-5">
237
+ <span class="status status-waiting status-xl">{% icon 'waiting', prefix: 'status-xl', class: 'status-icon' %}</span>
238
+ </button>
239
+ <button tooltip="running" class="mr-5">
240
+ <span class="status status-running status-xl">{% icon :running, prefix: 'status-xl', class: 'status-icon' %}</span>
241
+ </button>
242
+ <button tooltip="success" class="mr-5">
243
+ <span class="status status-success status-xl">{% icon :success, prefix: 'status-xl', class: 'status-icon' %}</span>
244
+ </button>
245
+ <button tooltip="idle" class="mr-5">
246
+ <span class="status status-idle status-xl">{% icon :idle, prefix: 'status-xl', class: 'status-icon' %}</span>
247
+ </button>
248
+ <button tooltip="error" class="mr-5">
249
+ <span class="status status-error status-xl">{% icon :error, prefix: 'status-xl', class: 'status-icon' %}</span>
250
+ </button>
251
+ <button tooltip="fail">
252
+ <span class="status status-fail status-xl">{% icon :fail, prefix: 'status-xl', class: 'status-icon' %}</span>
253
+ </button>
254
+
255
+ ```erb
256
+ {%- for status in page.statuses %}
257
+ <span class="status status-xl status-{{ status }}">
258
+ <%= icon :{{ status }}, prefix: 'status-xl', class: 'status-icon' %>
259
+ </span>
260
+ {% endfor -%}
261
+ ```
262
+
263
+ ---
264
+
265
+ ### X-Large, Inverse Status Icons `.status-inverse.status-xl`
266
+ Useful when next to standard text where where it's important to show the status of a particular object.
267
+ {: .section-description }
268
+
269
+ <div class="col-container m-0 align-center mb-30">
270
+ <div class="status-skipped-bg p-10 p-x1-20 pl-0 pr-0 col rounded rounded-left" tooltip="skipped">
271
+ <span class="status status-inverse status-skipped status-xl">
272
+ {% icon :skipped, prefix: 'status-xl', class: 'status-icon' %}
273
+ </span>
274
+ </div>
275
+ <div class="status-waiting-bg p-10 p-x1-20 pl-0 pr-0 col" tooltip="waiting">
276
+ <span class="status status-inverse status-waiting status-xl">
277
+ {% icon 'waiting', prefix: 'status-xl', class: 'status-icon' %}
278
+ </span>
279
+ </div>
280
+ <div class="status-running-bg p-10 p-x1-20 pl-0 pr-0 col" tooltip="running">
281
+ <span class="status status-inverse status-running status-xl">
282
+ {% icon :running, prefix: 'status-xl', class: 'status-icon' %}
283
+ </span>
284
+ </div>
285
+ <div class="status-success-bg p-10 p-x1-20 pl-0 pr-0 col" tooltip="success">
286
+ <span class="status status-inverse status-success status-xl">
287
+ {% icon :success, prefix: 'status-xl', class: 'status-icon' %}
288
+ </span>
289
+ </div>
290
+ <div class="status-idle-bg p-10 p-x1-20 pl-0 pr-0 col" tooltip="idle">
291
+ <span class="status status-inverse status-idle status-xl">
292
+ {% icon :idle, prefix: 'status-xl', class: 'status-icon' %}
293
+ </span>
294
+ </div>
295
+ <div class="status-error-bg p-10 p-x1-20 pl-0 pr-0 col" tooltip="error">
296
+ <span class="status status-inverse status-error status-xl">
297
+ {% icon :error, prefix: 'status-xl', class: 'status-icon' %}
298
+ </span>
299
+ </div>
300
+ <div class="status-fail-bg p-10 p-x1-20 pl-0 pr-0 col rounded rounded-right" tooltip="fail">
301
+ <span class="status status-inverse status-fail status-xl">
302
+ {% icon :fail, prefix: 'status-xl', class: 'status-icon' %}
303
+ </span>
304
+ </div>
305
+ </div>
306
+
307
+ ```erb
308
+ {%- for status in page.statuses %}
309
+ <span class="status status-inverse status-xl status-{{ status }}">
310
+ <%= icon :{{ status }}, prefix: 'status-xl', class: 'status-icon' %>
311
+ </span>
312
+ {% endfor -%}
313
+ ```
314
+
315
+ ---
316
+
317
+ ### Utility CSS
318
+ ```css
319
+ {% sass_output -%}
320
+ ```
321
+
322
+ ---
323
+
324
+ {% include css-stats.html %}
@@ -24,8 +24,8 @@ sizes:
24
24
 
25
25
  ---
26
26
 
27
- <div class="box-secondary margin-bottom-lg">
28
- <div class="box box-padding box-link padding-top-md padding-bottom-md" accordion="#accordion-example">
27
+ <div class="box-secondary mb-30">
28
+ <div class="box box-padding box-link pt-20 pb-20" accordion="#accordion-example">
29
29
  Click this box to see an example of the accordion transitions.
30
30
  </div>
31
31
  <div id="accordion-example" class="accordion accordion-xs accordion-closed box-padding rounded-bottom">
@@ -2,8 +2,8 @@
2
2
  title: Border-Radius Utilities
3
3
  description: Shipyard's border-radius utilities are useful for connecting components together.
4
4
  sass_file: shipyard/utilities/_border-radius
5
- col_classes: col col-50 col-x1-20 margin-bottom-xs
6
- box_classes: padding-top-xs padding-bottom-xs text-sm strong align-center bg-gray-light gray-dark
5
+ col_classes: col col-50 col-x1-20 mb-10
6
+ box_classes: pt-10 pb-10 text-sm strong align-center bg-gray-light gray-dark
7
7
  directions:
8
8
  -
9
9
  label: all
@@ -80,7 +80,7 @@ The examples below demonstrate the utility classes on each breakpoint.
80
80
  ```
81
81
 
82
82
  {% for breakpoint in site.data.breakpoints %}
83
- <h3 class="text-md text-light margin-top-lg margin-bottom-xs">{{ breakpoint.label }}</h3>
83
+ <h3 class="text-md text-light mt-30 mb-10">{{ breakpoint.label }}</h3>
84
84
  <div class="col-container">
85
85
  {% for direction in page.directions %}
86
86
  <div class="{{ page.col_classes }}">
@@ -94,4 +94,11 @@ The examples below demonstrate the utility classes on each breakpoint.
94
94
 
95
95
  ---
96
96
 
97
+ ### Utility CSS
98
+ ```css
99
+ {% sass_output -%}
100
+ ```
101
+
102
+ ---
103
+
97
104
  {% include css-stats.html %}
@@ -12,9 +12,9 @@ base_colors: [Black, White]
12
12
  ---
13
13
 
14
14
  {% for color in page.primary_colors %}
15
- <ul class="col-container shade-list margin-bottom-lg" shade-list>
15
+ <ul class="col-container shade-list mb-30" shade-list>
16
16
  {% for shade in page.shades %}
17
- <li class="col col-50 col-x1-25 col-x2-0 padding-left-xxs padding-right-xxs padding-left-x1-xs padding-right-x1-xs margin-bottom-xs margin-bottom-x1-md shade-item shade-{{ shade | downcase }} shade-{{ color | color_css_class: shade }}">
17
+ <li class="col col-50 col-x1-25 col-x2-0 pl-5 pr-5 pl-x1-10 pr-x1-10 mb-10 mb-x1-20 shade-item shade-{{ shade | downcase }} shade-{{ color | color_css_class: shade }}">
18
18
  <div class="shade-box box bg-{{ color | color_css_class: shade }} shade-{{ shade | downcase | replace: 'er', '' | replace: 'est', '' }}">
19
19
  <div class="shade-color col-center text-xxl bold bg-{{ color | color_css_class: shade }}" shade-color></div>
20
20
  <p class="shade-text text-sm medium {{ color | color_css_class: shade }}">
@@ -26,10 +26,10 @@ base_colors: [Black, White]
26
26
  </ul>
27
27
  {% endfor %}
28
28
 
29
- <ul class="col-container shade-list margin-bottom-lg" shade-list>
29
+ <ul class="col-container shade-list mb-30" shade-list>
30
30
  {% assign shade = 'Base' %}
31
31
  {% for color in page.base_colors %}
32
- <li class="col padding-left-xxs padding-right-xxs padding-left-x1-xs padding-right-x1-xs margin-bottom-xs margin-bottom-x1-md shade-item shade-{{ shade | downcase }} shade-{{ color | color_css_class: shade }}">
32
+ <li class="col pl-5 pr-5 pl-x1-10 pr-x1-10 mb-10 mb-x1-20 shade-item shade-{{ shade | downcase }} shade-{{ color | color_css_class: shade }}">
33
33
  <div class="shade-box box bg-{{ color | color_css_class: shade }} shade-{{ shade | downcase | replace: 'er', '' | replace: 'est', '' }}">
34
34
  <div class="shade-color text-xxl bold bg-{{ color | color_css_class: shade }}" shade-color></div>
35
35
  <p class="shade-text text-sm medium {{ color | color_css_class: shade }}">
@@ -2,7 +2,7 @@
2
2
  title: Shipyard Grid
3
3
  description: The Shipyard grid is a percentage-based, flexbox grid and is entirely responsive. Each class needs the foundational `.col` class in order to function properly, and also should be contained inside the `.col-container` as well.
4
4
  sass_file: shipyard/utilities/_grid
5
- container_classes: col-container margin-top-xs margin-top-x1-sm margin-top-x2-md margin-bottom-xs margin-bottom-x1-sm margin-bottom-x2-md
5
+ container_classes: col-container mt-10 mt-x1-15 mt-x2-20 mb-10 mb-x1-15 mb-x2-20
6
6
  box_classes: utilities-grid-box col-center box-secondary text-lighter text-sm strong align-center
7
7
  example_flex_columns: [10,20,25,33,50]
8
8
  example_sizes: [5,10,15,20,25,30,33,35,40,45,50,55,60,65,66,70,75,80,85,90,95,100]
@@ -170,7 +170,7 @@ Nested grids can be tricky to build and somewhat fragile by nature. For the best
170
170
  <div class="{{ page.box_classes }}">40</div>
171
171
  </div>
172
172
  <div class="col col-60">
173
- <div class="{{ page.box_classes }} margin-bottom-xs margin-bottom-x1-sm margin-bottom-x2-md">60</div>
173
+ <div class="{{ page.box_classes }} mb-10 mb-x1-15 mb-x2-20">60</div>
174
174
  <div class="col-container">
175
175
  <div class="col"><div class="{{ page.box_classes }}">20</div></div>
176
176
  <div class="col"><div class="{{ page.box_classes }}">20</div></div>
@@ -207,7 +207,7 @@ Useful when the flow of the content should be different at a certain breakpoint.
207
207
  <span class="teal-darker display-inline display-x2-none">top (mobile)</span>
208
208
  <span class="teal-darker display-none display-x2-inline">bottom (desktop)</span>
209
209
  </div>
210
- <div class="col-container margin-top-xs margin-top-x2-sm margin-bottom-xs margin-bottom-x2-sm flex-row flex-x2-row-reverse">
210
+ <div class="col-container mt-10 mt-x2-15 mb-10 mb-x2-15 flex-row flex-x2-row-reverse">
211
211
  <div class="col">
212
212
  <div class="{{ page.box_classes }} bg-blue-lighter">
213
213
  <span class="blue-darker display-inline display-x2-none">left (mobile)</span>
@@ -10,7 +10,7 @@ utilities: [Accordion, Responsive, Grid, Typography, Margin & Padding, Colors, B
10
10
 
11
11
  <ul class="col-container">
12
12
  {% for utility in page.utilities %}
13
- <li class="margin-bottom-xs margin-bottom-x1-sm margin-bottom-x2-lg col col-100 col-x1-33 col-x2-25">
13
+ <li class="mb-10 mb-x1-15 mb-x2-30 col col-100 col-x1-33 col-x2-25">
14
14
  <a href="{{ site.baseurl }}/utilities/{{ utility | replace: ' ', '-' | replace: '&', '' | replace: '--', '-' | downcase }}" class="box-link box-padding align-center text-md text-x1-lg text-x2-xl">
15
15
  {{ utility }}
16
16
  </a>
@@ -3,15 +3,21 @@ title: Margin & Padding Utilities
3
3
  description: Shipyard's margin & padding utilities are useful for overriding the default margin and padding in any component, and can be extremely useful in a wide array of situations.
4
4
  sass_file: shipyard/utilities/_margin-padding
5
5
  box_classes: utilities-margin-padding-box box-secondary btn-sm medium text-light
6
- options: [none,xxs,xs,sm,md,lg,xl,xxl]
7
- directions: [left,right]
6
+ options: [0,5,10,15,20,30,40]
7
+ directions:
8
+ -
9
+ name: left
10
+ css: l
11
+ -
12
+ name: right
13
+ css: r
8
14
  ---
9
15
 
10
16
  {% include page-heading.html page=page %}
11
17
 
12
18
  ---
13
19
 
14
- ### Margin All Sides `.margin-{ x1..x4 }-{ xxs..xxl }`
20
+ ### Margin All Sides `.m-{ x1..x4 }-{ 0..40 }`
15
21
  The examples below demonstrate how much margin will be added to the top and bottom of any element the classes is applied to.
16
22
  {: .section-description }
17
23
 
@@ -19,40 +25,40 @@ The examples below demonstrate how much margin will be added to the top and bott
19
25
  <div class="col">
20
26
  <div class="align-center">
21
27
  {% for option in page.options %}
22
- <div class="{{ page.box_classes }} margin-{{ option }}">.margin-{{ option }}</div>
28
+ <div class="{{ page.box_classes }} m-{{ option }}">.m-{{ option }}</div>
23
29
  {% endfor %}
24
- <div class="{{ page.box_classes }} col-55 col-x1-75 col-x2-85 margin-auto">.margin-auto</div>
30
+ <div class="{{ page.box_classes }} col-55 col-x1-75 col-x2-85 m-auto">.m-auto</div>
25
31
  </div>
26
32
  </div>
27
33
  </div>
28
34
 
29
35
  ---
30
36
 
31
- ### Margin Top & Bottom `.margin-{ top, bottom }-{ x1..x4 }-{ xxs..xxl }`
37
+ ### Margin Top & Bottom `.m{ t, b }-{ x1..x4 }-{ 0..40 }`
32
38
  The examples below demonstrate how much margin will be added to the top and bottom of any element the classes is applied to.
33
39
  {: .section-description }
34
40
 
35
41
  <div class="col-container">
36
42
  {% for option in page.options %}
37
43
  <div class="col align-center">
38
- <div class="{{ page.box_classes }} margin-bottom-{{ option }}">{{ option }}</div>
39
- <div class="{{ page.box_classes }} margin-top-{{ option }}">{{ option }}</div>
44
+ <div class="{{ page.box_classes }} mb-{{ option }}">.mb-{{ option }}</div>
45
+ <div class="{{ page.box_classes }} mt-{{ option }}">.mt-{{ option }}</div>
40
46
  </div>
41
47
  {% endfor %}
42
48
  </div>
43
49
 
44
50
  ---
45
51
 
46
- ### Margin Left & Right `.margin-{ left, right }-{ x1..x4 }-{ xxs..xxl }`
52
+ ### Margin Left & Right `.m{ l, r }-{ x1..x4 }-{ 0..40 }`
47
53
  The examples below demonstrate how much margin will be added to the left and right sides of any element the classes is applied to.
48
54
  {: .section-description }
49
55
 
50
56
  <div class="col-container">
51
57
  {% for direction in page.directions %}
52
58
  <div class="col">
53
- <div class="align-{{ direction }}">
59
+ <div class="align-{{ direction.name }}">
54
60
  {% for option in page.options %}
55
- <div class="{{ page.box_classes }} margin-{{ direction }}-{{ option }} margin-bottom-md">.margin-{{ direction }}-{{ option }}</div>
61
+ <div class="{{ page.box_classes }} m{{ direction.css }}-{{ option }} mb-20">.m{{ direction.css }}-{{ option }}</div>
56
62
  {% endfor %}
57
63
  </div>
58
64
  </div>
@@ -61,45 +67,45 @@ The examples below demonstrate how much margin will be added to the left and rig
61
67
 
62
68
  ---
63
69
 
64
- ### Padding All Sides `.padding-{ x1..x4 }-{ xxs..xxl }`
70
+ ### Padding All Sides `.p-{ x1..x4 }-{ 0..40 }`
65
71
  The examples below demonstrate how much padding will be added to the top and bottom of any element the classes is applied to.
66
72
  {: .section-description }
67
73
 
68
74
  <div class="col-container">
69
75
  {% for option in page.options %}
70
76
  <div class="col align-center">
71
- <div class="box-secondary medium text-light text-sm padding-{{ option }} margin-bottom-xs">{{ option }}</div>
77
+ <div class="box-secondary medium text-light text-sm p-{{ option }} mb-10">.p-{{ option }}</div>
72
78
  </div>
73
79
  {% endfor %}
74
80
  </div>
75
81
 
76
82
  ---
77
83
 
78
- ### Padding Top & Bottom `.padding-{ top, bottom }-{ x1..x4 }-{ xxs..xxl }`
84
+ ### Padding Top & Bottom `.p{ t, b }-{ x1..x4 }-{ 0..40 }`
79
85
  The examples below demonstrate how much padding will be added to the top and bottom of any element the classes is applied to.
80
86
  {: .section-description }
81
87
 
82
88
  <div class="col-container">
83
89
  {% for option in page.options %}
84
90
  <div class="col align-center">
85
- <div class="box-secondary medium text-light text-sm padding-bottom-{{ option }} margin-bottom-xs">{{ option }}</div>
86
- <div class="box-secondary medium text-light text-sm padding-top-{{ option }}">{{ option }}</div>
91
+ <div class="box-secondary medium text-light text-sm pb-{{ option }} mb-10">.pb-{{ option }}</div>
92
+ <div class="box-secondary medium text-light text-sm pt-{{ option }}">.pt-{{ option }}</div>
87
93
  </div>
88
94
  {% endfor %}
89
95
  </div>
90
96
 
91
97
  ---
92
98
 
93
- ### Padding Left & Right `.padding-{ left, right }-{ x1..x4 }-{ xxs..xxl }`
99
+ ### Padding Left & Right `.p{ l, r }-{ x1..x4 }-{ 0..40 }`
94
100
  The examples below demonstrate how much padding will be added to the left and right sides of any element the classes is applied to
95
101
  {: .section-description }
96
102
 
97
103
  <div class="col-container">
98
104
  {% for direction in page.directions %}
99
105
  <div class="col">
100
- <div class="align-{{ direction }}">
106
+ <div class="align-{{ direction.name }}">
101
107
  {% for option in page.options %}
102
- <div class="{{ page.box_classes }} padding-{{ direction }}-{{ option }} margin-bottom-md">.padding-{{ direction }}-{{ option }}</div>
108
+ <div class="{{ page.box_classes }} p{{ direction.css }}-{{ option }} mb-20">.p{{ direction.css }}-{{ option }}</div>
103
109
  {% endfor %}
104
110
  </div>
105
111
  </div>
@@ -108,4 +114,11 @@ The examples below demonstrate how much padding will be added to the left and ri
108
114
 
109
115
  ---
110
116
 
117
+ ### Component CSS
118
+ ```css
119
+ {% sass_output -%}
120
+ ```
121
+
122
+ ---
123
+
111
124
  {% include css-stats.html %}