shipyard-framework 0.5.86 → 0.5.87
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/Brewfile +4 -0
- data/assets/icons/status/error.svg +4 -0
- data/assets/icons/status/fail.svg +4 -0
- data/assets/icons/status/idle.svg +4 -0
- data/assets/icons/status/running.svg +3 -0
- data/assets/icons/status/skipped.svg +3 -0
- data/assets/icons/status/success.svg +3 -0
- data/assets/icons/status/waiting.svg +5 -0
- data/assets/stylesheets/shipyard/_components.sass +1 -0
- data/assets/stylesheets/shipyard/components/_code.sass +1 -5
- data/assets/stylesheets/shipyard/components/_icons.sass +19 -10
- data/assets/stylesheets/shipyard/components/_statuses.sass +196 -0
- data/assets/stylesheets/shipyard/core/_animations.sass +12 -0
- data/assets/stylesheets/shipyard/utilities/_border-radius.sass +2 -0
- data/assets/stylesheets/shipyard/utilities/_margin-padding.sass +35 -17
- data/assets/stylesheets/shipyard/utilities/_typography.sass +3 -0
- data/assets/stylesheets/shipyard/variables/_components.scss +7 -0
- data/lib/shipyard-framework/jekyll/tags/icon_tag.rb +8 -3
- data/lib/shipyard-framework/version.rb +1 -1
- data/styleguide/.ruby-version +1 -1
- data/styleguide/Gemfile.lock +9 -9
- data/styleguide/_assets/css/views.sass +1 -1
- data/styleguide/_includes/page-heading.html +1 -1
- data/styleguide/_plugins/icon_item.rb +1 -1
- data/styleguide/_plugins/sass_output.rb +4 -1
- data/styleguide/components/alerts.md +2 -2
- data/styleguide/components/boxes.md +2 -2
- data/styleguide/components/buttons.md +26 -26
- data/styleguide/components/checkboxes.md +30 -30
- data/styleguide/components/code.html +4 -4
- data/styleguide/components/forms.md +7 -7
- data/styleguide/components/horizontal-rules.md +1 -1
- data/styleguide/components/icons.md +18 -2
- data/styleguide/components/index.md +2 -2
- data/styleguide/components/modals/_modal.html +15 -15
- data/styleguide/components/modals/example-billing.html +12 -12
- data/styleguide/components/modals/example-downgrade.html +2 -2
- data/styleguide/components/modals/example-survey.html +5 -5
- data/styleguide/components/modals/index.md +1 -1
- data/styleguide/components/radio-buttons.md +18 -18
- data/styleguide/components/statuses.md +324 -0
- data/styleguide/utilities/accordion.md +2 -2
- data/styleguide/utilities/border-radius.md +10 -3
- data/styleguide/utilities/colors.md +4 -4
- data/styleguide/utilities/grid.md +3 -3
- data/styleguide/utilities/index.md +1 -1
- data/styleguide/utilities/margin-padding.md +32 -19
- data/styleguide/utilities/opacity.md +2 -2
- data/styleguide/utilities/typography.md +2 -2
- metadata +13 -3
@@ -11,13 +11,13 @@ sass_file: shipyard/components/_buttons
|
|
11
11
|
Shipyard gives you more buttons than you can shake a stick at.
|
12
12
|
{: .section-description }
|
13
13
|
|
14
|
-
<div class="
|
15
|
-
{% btn Default, :default, class: '
|
16
|
-
{% btn Primary, :primary, class: '
|
17
|
-
{% btn Primary Dark, :primary_dark, class: '
|
18
|
-
{% btn CTA, :cta, class: '
|
19
|
-
{% btn Caution, :caution, class: '
|
20
|
-
{% btn Disabled, :disabled, class: '
|
14
|
+
<div class="mb-20">
|
15
|
+
{% btn Default, :default, class: 'mr-10' %}
|
16
|
+
{% btn Primary, :primary, class: 'mr-10' %}
|
17
|
+
{% btn Primary Dark, :primary_dark, class: 'mr-10' %}
|
18
|
+
{% btn CTA, :cta, class: 'mr-10' %}
|
19
|
+
{% btn Caution, :caution, class: 'mr-10' %}
|
20
|
+
{% btn Disabled, :disabled, class: 'mr-10' %}
|
21
21
|
{% btn Link, :link %}
|
22
22
|
</div>
|
23
23
|
|
@@ -37,9 +37,9 @@ Shipyard gives you more buttons than you can shake a stick at.
|
|
37
37
|
Useful when you have a button on a darker background.
|
38
38
|
{: .section-description }
|
39
39
|
|
40
|
-
<div class="
|
41
|
-
{% btn Secondary, :secondary, class: '
|
42
|
-
{% btn Secondary Dark, :secondary_dark, class: '
|
40
|
+
<div class="mb-20">
|
41
|
+
{% btn Secondary, :secondary, class: 'mr-10' %}
|
42
|
+
{% btn Secondary Dark, :secondary_dark, class: 'mr-10' %}
|
43
43
|
{% btn Secondary Link, :secondary_link %}
|
44
44
|
</div>
|
45
45
|
|
@@ -55,8 +55,8 @@ Useful when you have a button on a darker background.
|
|
55
55
|
Useful when you have a button on a darker background.
|
56
56
|
{: .section-description }
|
57
57
|
|
58
|
-
<div class="box-secondary box-padding bg-gray-dark
|
59
|
-
{% btn Inverse, :inverse, class: '
|
58
|
+
<div class="box-secondary box-padding bg-gray-dark mb-20">
|
59
|
+
{% btn Inverse, :inverse, class: 'mr-10' %}
|
60
60
|
{% btn Inverse Secondary, :inverse_secondary %}
|
61
61
|
</div>
|
62
62
|
|
@@ -71,11 +71,11 @@ Useful when you have a button on a darker background.
|
|
71
71
|
Useful when you want a button with completely rounded corners.
|
72
72
|
{: .section-description }
|
73
73
|
|
74
|
-
<div class="
|
75
|
-
{% btn Default, :rounded, class: '
|
76
|
-
{% btn Primary, :primary :rounded, class: '
|
77
|
-
{% btn CTA, :cta :rounded, class: '
|
78
|
-
{% btn Caution, :caution :rounded, class: '
|
74
|
+
<div class="mb-20">
|
75
|
+
{% btn Default, :rounded, class: 'mr-10' %}
|
76
|
+
{% btn Primary, :primary :rounded, class: 'mr-10' %}
|
77
|
+
{% btn CTA, :cta :rounded, class: 'mr-10' %}
|
78
|
+
{% btn Caution, :caution :rounded, class: 'mr-10' %}
|
79
79
|
{% btn Secondary, :secondary :rounded %}
|
80
80
|
</div>
|
81
81
|
|
@@ -89,13 +89,13 @@ Useful when you want a button with completely rounded corners.
|
|
89
89
|
Useful when you have a button that triggers an asynchronous action.
|
90
90
|
{: .section-description }
|
91
91
|
|
92
|
-
<div class="
|
93
|
-
{% btn Default, :loading, class: '
|
94
|
-
{% btn Primary, :primary :loading, class: '
|
95
|
-
{% btn CTA, :cta :loading, class: '
|
96
|
-
{% btn Caution, :caution :loading, class: '
|
97
|
-
{% btn Secondary, :secondary :loading, class: '
|
98
|
-
{% btn Secondary Link, :secondary_link :loading, class: '
|
92
|
+
<div class="mb-20">
|
93
|
+
{% btn Default, :loading, class: 'mr-10' %}
|
94
|
+
{% btn Primary, :primary :loading, class: 'mr-10' %}
|
95
|
+
{% btn CTA, :cta :loading, class: 'mr-10' %}
|
96
|
+
{% btn Caution, :caution :loading, class: 'mr-10' %}
|
97
|
+
{% btn Secondary, :secondary :loading, class: 'mr-10' %}
|
98
|
+
{% btn Secondary Link, :secondary_link :loading, class: 'mr-10' %}
|
99
99
|
</div>
|
100
100
|
|
101
101
|
```html
|
@@ -108,7 +108,7 @@ Useful when you have a button that triggers an asynchronous action.
|
|
108
108
|
Often really useful on mobile screens or in combination with other grids.
|
109
109
|
{: .section-description }
|
110
110
|
|
111
|
-
<div class="
|
111
|
+
<div class="mb-20">
|
112
112
|
{% btn Save Changes, :full %}
|
113
113
|
</div>
|
114
114
|
|
@@ -122,7 +122,7 @@ Often really useful on mobile screens or in combination with other grids.
|
|
122
122
|
The button classes can be applied to any type of html tag to achieve the desired result. The most common examples being the `button`, `a`, and `input` tags as seen in the example below.
|
123
123
|
{: .section-description }
|
124
124
|
|
125
|
-
<div class="
|
125
|
+
<div class="mb-30">
|
126
126
|
{% btn Button %}
|
127
127
|
<a href="#" class="btn">Link</a>
|
128
128
|
<input type="button" class="btn" value="Input" />
|
@@ -16,7 +16,7 @@ labels:
|
|
16
16
|
Useful when you want to group a series of checkboxes together on a single line.
|
17
17
|
{: .section-description }
|
18
18
|
|
19
|
-
<ul class="input-list
|
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="checkbox-inline-{{ forloop.index }}" name="checkbox-list" type="checkbox" class="input input-checkbox" {% if forloop.index == 1 %}checked{% endif %} />
|
@@ -40,8 +40,8 @@ Useful when you want to group a series of checkboxes together on a single line.
|
|
40
40
|
Useful when you want to group a series of checkboxes together in a list (stacked by default).
|
41
41
|
{: .section-description }
|
42
42
|
|
43
|
-
<div class="col-container
|
44
|
-
<div class="col col-100 col-x1-50
|
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 %}
|
@@ -129,35 +129,35 @@ Useful when you want to the user to proceed with caution about the choices they'
|
|
129
129
|
---
|
130
130
|
|
131
131
|
## Checkboxes Nested in Buttons
|
132
|
-
{: .
|
132
|
+
{: .mb-20 }
|
133
133
|
|
134
|
-
<button class="btn btn-secondary
|
135
|
-
<input type="checkbox" class="input input-checkbox
|
134
|
+
<button class="btn btn-secondary mr-10 mb-10">
|
135
|
+
<input type="checkbox" class="input input-checkbox mr-5" />
|
136
136
|
Unchecked
|
137
137
|
</button>
|
138
|
-
<button class="btn btn-secondary
|
139
|
-
<input type="checkbox" class="input input-checkbox
|
138
|
+
<button class="btn btn-secondary mr-10 mb-10">
|
139
|
+
<input type="checkbox" class="input input-checkbox mr-5" checked />
|
140
140
|
Checked
|
141
141
|
</button>
|
142
|
-
<button class="btn btn-cta
|
143
|
-
<input type="checkbox" class="input input-checkbox input-checkbox-inverse
|
142
|
+
<button class="btn btn-cta mr-10 mb-10">
|
143
|
+
<input type="checkbox" class="input input-checkbox input-checkbox-inverse mr-5" />
|
144
144
|
Inverse Unchecked
|
145
145
|
</button>
|
146
|
-
<button class="btn btn-cta
|
147
|
-
<input type="checkbox" class="input input-checkbox input-checkbox-inverse
|
146
|
+
<button class="btn btn-cta mr-10 mb-10">
|
147
|
+
<input type="checkbox" class="input input-checkbox input-checkbox-inverse mr-5" checked />
|
148
148
|
Inverse Checked
|
149
149
|
</button>
|
150
150
|
|
151
151
|
```html
|
152
152
|
<!-- Secondary button with a checkbox in the unchecked state. -->
|
153
153
|
<button class="btn btn-secondary">
|
154
|
-
<input type="checkbox" class="input input-checkbox
|
154
|
+
<input type="checkbox" class="input input-checkbox mr-5" />
|
155
155
|
Button Text
|
156
156
|
</button>
|
157
157
|
|
158
158
|
<!-- CTA button with a checkbox in the checked state. -->
|
159
159
|
<button class="btn btn-cta">
|
160
|
-
<input type="checkbox" class="input input-checkbox input-checkbox-inverse
|
160
|
+
<input type="checkbox" class="input input-checkbox input-checkbox-inverse mr-5" checked />
|
161
161
|
Button Text
|
162
162
|
</button>
|
163
163
|
```
|
@@ -168,18 +168,18 @@ Useful when you want to the user to proceed with caution about the choices they'
|
|
168
168
|
Switches are useful when the user has a choice to toggle on and off. Note: For the best UX, please make sure that the switch saves immediately each time it changes state.
|
169
169
|
{: .section-description }
|
170
170
|
|
171
|
-
<div class="box box-xs
|
171
|
+
<div class="box box-xs mb-15 pt-20 pb-20 pl-15 pr-15 pl-x1-30 pr-x1-30">
|
172
172
|
<div class="col-container-nowrap">
|
173
173
|
<div class="components-checkboxes-switch-col col col-100 text-light text-overflow-ellipsis">Praesent commodo cursus magna, vel scelerisque aenean eu leo quam pellentesque ornare sem lacinia quam.</div>
|
174
|
-
<div class="col
|
174
|
+
<div class="col ml-15">
|
175
175
|
<input type="checkbox" class="input input-switch" checked />
|
176
176
|
</div>
|
177
177
|
</div>
|
178
178
|
</div>
|
179
|
-
<div class="box-secondary box-xs
|
179
|
+
<div class="box-secondary box-xs pt-20 pb-20 pl-15 pr-15 pl-x1-30 pr-x1-30">
|
180
180
|
<div class="col-container-nowrap">
|
181
181
|
<div class="components-checkboxes-switch-col col col-100 text-light text-overflow-ellipsis">Praesent commodo cursus magna, vel scelerisque aenean eu leo quam pellentesque ornare sem lacinia quam.</div>
|
182
|
-
<div class="col
|
182
|
+
<div class="col ml-15">
|
183
183
|
<input type="checkbox" class="input input-switch" />
|
184
184
|
</div>
|
185
185
|
</div>
|
@@ -195,18 +195,18 @@ Switches are useful when the user has a choice to toggle on and off. Note: For t
|
|
195
195
|
Useful when you don't need to draw attention to the bright-red, off state.
|
196
196
|
{: .section-description }
|
197
197
|
|
198
|
-
<div class="box box-xs
|
198
|
+
<div class="box box-xs mb-15 pt-20 pb-20 pl-15 pr-15 pl-x1-30 pr-x1-30">
|
199
199
|
<div class="col-container-nowrap">
|
200
200
|
<div class="components-checkboxes-switch-col col col-100 text-light text-overflow-ellipsis">Praesent commodo cursus magna, vel scelerisque aenean eu leo quam pellentesque ornare sem lacinia quam.</div>
|
201
|
-
<div class="col
|
201
|
+
<div class="col ml-15">
|
202
202
|
<input type="checkbox" class="input input-switch-secondary" checked />
|
203
203
|
</div>
|
204
204
|
</div>
|
205
205
|
</div>
|
206
|
-
<div class="box-secondary box-xs
|
206
|
+
<div class="box-secondary box-xs pt-20 pb-20 pl-15 pr-15 pl-x1-30 pr-x1-30">
|
207
207
|
<div class="col-container-nowrap">
|
208
208
|
<div class="components-checkboxes-switch-col col col-100 text-light text-overflow-ellipsis">Praesent commodo cursus magna, vel scelerisque aenean eu leo quam pellentesque ornare sem lacinia quam.</div>
|
209
|
-
<div class="col
|
209
|
+
<div class="col ml-15">
|
210
210
|
<input type="checkbox" class="input input-switch-secondary" />
|
211
211
|
</div>
|
212
212
|
</div>
|
@@ -221,18 +221,18 @@ Useful when you don't need to draw attention to the bright-red, off state.
|
|
221
221
|
Useful to communicate that your object is only partially connected, and it needs additional attention.
|
222
222
|
{: .section-description }
|
223
223
|
|
224
|
-
<div class="box box-xs
|
224
|
+
<div class="box box-xs mb-15 pt-20 pb-20 pl-15 pr-15 pl-x1-30 pr-x1-30">
|
225
225
|
<div class="col-container-nowrap">
|
226
226
|
<div class="components-checkboxes-switch-col col col-100 text-light text-overflow-ellipsis">Praesent commodo cursus magna, vel scelerisque aenean eu leo quam pellentesque ornare sem lacinia quam.</div>
|
227
|
-
<div class="col
|
227
|
+
<div class="col ml-15">
|
228
228
|
<input type="checkbox" class="input input-switch-secondary input-switch-warning" checked />
|
229
229
|
</div>
|
230
230
|
</div>
|
231
231
|
</div>
|
232
|
-
<div class="box-secondary box-xs
|
232
|
+
<div class="box-secondary box-xs pt-20 pb-20 pl-15 pr-15 pl-x1-30 pr-x1-30">
|
233
233
|
<div class="col-container-nowrap">
|
234
234
|
<div class="components-checkboxes-switch-col col col-100 text-light text-overflow-ellipsis">Praesent commodo cursus magna, vel scelerisque aenean eu leo quam pellentesque ornare sem lacinia quam.</div>
|
235
|
-
<div class="col
|
235
|
+
<div class="col ml-15">
|
236
236
|
<input type="checkbox" class="input input-switch-secondary input-switch-warning" />
|
237
237
|
</div>
|
238
238
|
</div>
|
@@ -250,19 +250,19 @@ Each size can be used or altered at any breakpoint.
|
|
250
250
|
<ul class="input-list">
|
251
251
|
<li class="input-item">
|
252
252
|
<input id="small-switch-on" type="checkbox" class="input input-switch input-switch-sm align-middle" checked />
|
253
|
-
<label for="small-switch-on" class="text-sm text-light
|
253
|
+
<label for="small-switch-on" class="text-sm text-light ml-5 medium">Small</label>
|
254
254
|
</li>
|
255
255
|
<li class="input-item">
|
256
256
|
<input id="small-switch-on" type="checkbox" class="input input-switch align-middle" checked />
|
257
|
-
<label for="small-switch-on" class="text-sm text-light
|
257
|
+
<label for="small-switch-on" class="text-sm text-light ml-5 medium">Medium (Default)</label>
|
258
258
|
</li>
|
259
259
|
<li class="input-item">
|
260
260
|
<input id="small-switch-on" type="checkbox" class="input input-switch input-switch-lg align-middle" checked />
|
261
|
-
<label for="small-switch-on" class="text-sm text-light
|
261
|
+
<label for="small-switch-on" class="text-sm text-light ml-5 medium">Large</label>
|
262
262
|
</li>
|
263
263
|
<li class="input-item">
|
264
264
|
<input id="small-switch-on" type="checkbox" class="input input-switch input-switch-xl align-middle" checked />
|
265
|
-
<label for="small-switch-on" class="text-sm text-light
|
265
|
+
<label for="small-switch-on" class="text-sm text-light ml-5 medium">X-Large</label>
|
266
266
|
</li>
|
267
267
|
</ul>
|
268
268
|
|
@@ -7,13 +7,13 @@ sass_file: shipyard/components/_code
|
|
7
7
|
|
8
8
|
<hr />
|
9
9
|
|
10
|
-
<h2>Inline Code Example <code class="code-inline
|
10
|
+
<h2>Inline Code Example <code class="code-inline ml-5">.code-inline</code></h2>
|
11
11
|
<p class="p">Vestibulum id ligula porta felis <code class="code-inline">euismod semper</code>. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec ullamcorper nulla non metus auctor fringilla. Sed posuere consectetur est at lobortis. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia <code class="code-inline">bibendum nulla sed</code> consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cras mattis consectetur purus sit amet fermentum. Maecenas faucibus mollis interdum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. <code class="code-inline">Nullam id</code> dolor id nibh ultricies vehicula ut id elit. <code class="code-inline">Cras mattis consectetur</code> purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula ut id elit. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
|
12
12
|
|
13
13
|
<hr />
|
14
14
|
|
15
|
-
<h2>Code Block Example <code class="code-inline
|
16
|
-
<pre class="code-block
|
15
|
+
<h2>Code Block Example <code class="code-inline ml-5">.code-block</code></h2>
|
16
|
+
<pre class="code-block mt-15"><code>class Shipyard
|
17
17
|
def foo
|
18
18
|
end
|
19
19
|
|
@@ -23,7 +23,7 @@ end</code></pre>
|
|
23
23
|
|
24
24
|
<hr />
|
25
25
|
|
26
|
-
<h2 class="
|
26
|
+
<h2 class="mb-15">Code Alert Examples</h2>
|
27
27
|
{% alert :info %}
|
28
28
|
Ten other people are also viewing tickets for this flight.
|
29
29
|
Use the code <code class="code-inline">Travel_Light_2017</code> before you book your flight.
|
@@ -7,15 +7,15 @@ title: Shipyard Forms
|
|
7
7
|
---
|
8
8
|
|
9
9
|
<div class="col-container input-group">
|
10
|
-
<div class="col col-100 col-x1-33
|
10
|
+
<div class="col col-100 col-x1-33 mb-15 mb-x1-0">
|
11
11
|
<label class="label">Textbox</label>
|
12
12
|
<input type="text" class="input input-text" placeholder=".input-text" />
|
13
13
|
</div>
|
14
|
-
<div class="col col-100 col-x1-33
|
14
|
+
<div class="col col-100 col-x1-33 mb-15 mb-x1-0">
|
15
15
|
<label class="label">Textbox Read-Only</label>
|
16
16
|
<input type="text" class="input input-text input-readonly" placeholder=".input-readonly" value="copy-paste-me" readonly />
|
17
17
|
</div>
|
18
|
-
<div class="col col-100 col-x1-33
|
18
|
+
<div class="col col-100 col-x1-33 mb-15 mb-x1-0">
|
19
19
|
<label class="label">Textbox Disabled</label>
|
20
20
|
<input type="text" class="input input-text" placeholder=".input-text" disabled />
|
21
21
|
</div>
|
@@ -84,14 +84,14 @@ title: Shipyard Forms
|
|
84
84
|
|
85
85
|
---
|
86
86
|
|
87
|
-
<h2 class="
|
87
|
+
<h2 class="mb-10">Input Boxes</h2>
|
88
88
|
<div class="input-box">
|
89
89
|
<input type="text" class="input input-text" placeholder=".input .input-text" />
|
90
90
|
</div>
|
91
91
|
|
92
92
|
---
|
93
93
|
|
94
|
-
<h2 class="
|
94
|
+
<h2 class="mb-10">Required Fields</h2>
|
95
95
|
<div class="col-container">
|
96
96
|
<div class="col col-50">
|
97
97
|
<div class="input-required">
|
@@ -114,7 +114,7 @@ title: Shipyard Forms
|
|
114
114
|
|
115
115
|
---
|
116
116
|
|
117
|
-
<h2 class="
|
117
|
+
<h2 class="mb-10">Form Errors</h2>
|
118
118
|
<div class="form-error-container">
|
119
119
|
<ul class="form-error-list">
|
120
120
|
<li class="form-error-item">
|
@@ -128,7 +128,7 @@ title: Shipyard Forms
|
|
128
128
|
</li>
|
129
129
|
</ul>
|
130
130
|
</div>
|
131
|
-
<div class="col-container
|
131
|
+
<div class="col-container mt-20 mb-20">
|
132
132
|
<div class="col col-50 input-error">
|
133
133
|
<label class="label">Required Select Box</label>
|
134
134
|
<div class="input-required">
|
@@ -29,6 +29,22 @@ The following icons are the most frequently used in just about any application.
|
|
29
29
|
|
30
30
|
---
|
31
31
|
|
32
|
+
### Status Icons
|
33
|
+
The following icons are used primarily in the <a href="{{ site.baseurl }}/components/statuses">status component</a>.
|
34
|
+
{: .section-description }
|
35
|
+
|
36
|
+
<ul class="icon-list col-container">
|
37
|
+
{% iconitem :error, class: 'center' %}
|
38
|
+
{% iconitem :fail, class: 'center' %}
|
39
|
+
{% iconitem :idle, class: 'center' %}
|
40
|
+
{% iconitem :running, class: 'center' %}
|
41
|
+
{% iconitem :skipped, class: 'center' %}
|
42
|
+
{% iconitem :success, class: 'center' %}
|
43
|
+
{% iconitem 'waiting', class: 'center' %}
|
44
|
+
</ul>
|
45
|
+
|
46
|
+
---
|
47
|
+
|
32
48
|
### Brand Icons
|
33
49
|
If you need to style several paths inside of the icon, it's important to make sure you use the *injected* version of the icon.
|
34
50
|
{: .section-description }
|
@@ -97,8 +113,8 @@ The icon size utility classes can be applied to any icon, and are useful when yo
|
|
97
113
|
One of the most common problems when using an icon is that doesn't line up with the text content next to it. Don't worry though, we've got you covered — simply apply the `.align-middle` class to any icon to fix this issue.
|
98
114
|
{: .section-description }
|
99
115
|
|
100
|
-
<div class="
|
101
|
-
<button class="btn btn-secondary">{% icon :plus, class: 'align-middle icon-sm
|
116
|
+
<div class="mb-30">
|
117
|
+
<button class="btn btn-secondary">{% icon :plus, class: 'align-middle icon-sm mr-5' %} Create</button>
|
102
118
|
</div>
|
103
119
|
|
104
120
|
```erb
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
title: Shipyard Components
|
3
|
-
components: [Boxes, Buttons, Empty States, Alerts, Notes, Forms, Radio Buttons, Checkboxes, Icons, Modals, Tooltips, Code, Tables, Horizontal Rules]
|
3
|
+
components: [Boxes, Buttons, Empty States, Alerts, Notes, Forms, Statuses, Radio Buttons, Checkboxes, Icons, Modals, Tooltips, Code, Tables, Horizontal Rules]
|
4
4
|
---
|
5
5
|
|
6
6
|
{% include page-heading.html page=page %}
|
@@ -9,7 +9,7 @@ components: [Boxes, Buttons, Empty States, Alerts, Notes, Forms, Radio Buttons,
|
|
9
9
|
|
10
10
|
<ul class="col-container">
|
11
11
|
{% for component in page.components %}
|
12
|
-
<li class="
|
12
|
+
<li class="mb-10 mb-x1-15 mb-x2-30 col col-100 col-x1-33 col-x2-25">
|
13
13
|
<a href="{{ site.baseurl }}/components/{{ component | replace: ' ', '-' | downcase }}" class="box-link box-padding align-center text-md text-x1-lg text-x2-xl">
|
14
14
|
{{ component }}
|
15
15
|
</a>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<div class="modal-container {{ include.css_class }}" modal="example">
|
2
2
|
<div class="modal" role="dialog">
|
3
3
|
<div class="modal-content">
|
4
|
-
<div class="modal-title-border
|
4
|
+
<div class="modal-title-border mb-x1-20">
|
5
5
|
<h1 class="text-lg text-x1-xl">Billing Info</h1>
|
6
6
|
</div>
|
7
7
|
<form>
|
8
|
-
<div class="col-container
|
8
|
+
<div class="col-container mb-20">
|
9
9
|
<div class="col">
|
10
10
|
<label class="label">First Name</label>
|
11
11
|
<div class="input-required">
|
@@ -19,8 +19,8 @@
|
|
19
19
|
</div>
|
20
20
|
</div>
|
21
21
|
</div>
|
22
|
-
<div class="col-container
|
23
|
-
<div class="col col-100 col-x1-50
|
22
|
+
<div class="col-container mb-20">
|
23
|
+
<div class="col col-100 col-x1-50 mb-15 mb-x1-0">
|
24
24
|
<label class="label">Email Address</label>
|
25
25
|
<input type="text" class="input input-text" />
|
26
26
|
</div>
|
@@ -31,23 +31,23 @@
|
|
31
31
|
</div>
|
32
32
|
</div>
|
33
33
|
</div>
|
34
|
-
<div class="col-container
|
35
|
-
<div class="col col-100
|
34
|
+
<div class="col-container mb-20">
|
35
|
+
<div class="col col-100 mb-15">
|
36
36
|
<label class="label">Billing Address</label>
|
37
37
|
<input type="text" class="input input-text" placeholder="Company Name" />
|
38
38
|
</div>
|
39
|
-
<div class="col col-100
|
39
|
+
<div class="col col-100 mb-15">
|
40
40
|
<input type="text" class="input input-text" placeholder="Street Address" />
|
41
41
|
</div>
|
42
|
-
<div class="col col-100 col-x1-33
|
42
|
+
<div class="col col-100 col-x1-33 mb-15">
|
43
43
|
<div class="input-required">
|
44
44
|
<input type="text" class="input input-text" placeholder="Postal Code" />
|
45
45
|
</div>
|
46
46
|
</div>
|
47
|
-
<div class="col col-50 col-x1-33
|
47
|
+
<div class="col col-50 col-x1-33 mb-15">
|
48
48
|
<input type="text" class="input input-text" placeholder="City" />
|
49
49
|
</div>
|
50
|
-
<div class="col col-50 col-x1-33
|
50
|
+
<div class="col col-50 col-x1-33 mb-15">
|
51
51
|
<input type="text" class="input input-text" placeholder="State" />
|
52
52
|
</div>
|
53
53
|
<div class="col col-100">
|
@@ -64,13 +64,13 @@
|
|
64
64
|
</div>
|
65
65
|
</div>
|
66
66
|
</div>
|
67
|
-
<div class="col-container
|
67
|
+
<div class="col-container mb-20">
|
68
68
|
<div class="col">
|
69
69
|
<label class="label">Tax Information</label>
|
70
70
|
<input type="text" class="input input-text" placeholder="VAT Number" />
|
71
71
|
</div>
|
72
72
|
</div>
|
73
|
-
<div class="col-container
|
73
|
+
<div class="col-container mb-15 mb-x1-0">
|
74
74
|
<div class="col">
|
75
75
|
<label class="label">Additional Invoice Information</label>
|
76
76
|
<p class="label-note">This information will appear on each invoice. Don't include any confidential financial information.</p>
|
@@ -86,11 +86,11 @@
|
|
86
86
|
Save
|
87
87
|
<span class="display-none display-x1-inline">& Close</span>
|
88
88
|
</button>
|
89
|
-
<button class="btn btn-secondary btn-sm btn-x1-md
|
89
|
+
<button class="btn btn-secondary btn-sm btn-x1-md ml-5 ml-x1-10" modal-close>Cancel</button>
|
90
90
|
</div>
|
91
91
|
<div class="col align-right">
|
92
|
-
<span class="btn-sm btn-x1-md white-space-nowrap
|
93
|
-
{% icon :lock, class: 'green-dark align-middle
|
92
|
+
<span class="btn-sm btn-x1-md white-space-nowrap p-0">
|
93
|
+
{% icon :lock, class: 'green-dark align-middle mr-5' %}
|
94
94
|
<span class="text-sm text-lighter medium">Secure Server</span>
|
95
95
|
</span>
|
96
96
|
</div>
|
@@ -7,7 +7,7 @@ title: Shipyard Modal Example
|
|
7
7
|
<div class="modal-container" modal="example-small">
|
8
8
|
<div class="modal modal-sm modal-billing" role="dialog">
|
9
9
|
<div class="modal-content">
|
10
|
-
<div class="modal-title-border
|
10
|
+
<div class="modal-title-border mb-20 mb-x1-30">
|
11
11
|
<div class="col-container">
|
12
12
|
<h1 class="text-lg text-x1-xl col">Payment Period</h1>
|
13
13
|
<p class="col text-light medium align-right display-none display-x1-block">
|
@@ -17,27 +17,27 @@ title: Shipyard Modal Example
|
|
17
17
|
</p>
|
18
18
|
</div>
|
19
19
|
</div>
|
20
|
-
<button class="btn btn-cta btn-sm btn-x1-md
|
21
|
-
<input type="radio" class="input input-radio-checkbox input-radio-inverse
|
20
|
+
<button class="btn btn-cta btn-sm btn-x1-md mr-10 mr-x1-15 mb-10 mb-x1-0">
|
21
|
+
<input type="radio" class="input input-radio-checkbox input-radio-inverse mr-10" checked />
|
22
22
|
Monthly — $39
|
23
23
|
</button>
|
24
24
|
<button class="btn btn-secondary-link btn-sm btn-x1-md">
|
25
|
-
<input type="radio" class="input input-radio-checkbox
|
25
|
+
<input type="radio" class="input input-radio-checkbox mr-10" />
|
26
26
|
Yearly — $390
|
27
|
-
<span class="btn btn-cta btn-rounded btn-xxs
|
27
|
+
<span class="btn btn-cta btn-rounded btn-xxs ml-10 modal-billing-yearly-promo">2 Months Free</span>
|
28
28
|
{% icon :tag, class: 'icon-inverse' %}
|
29
29
|
</button>
|
30
|
-
<p class="text-light
|
30
|
+
<p class="text-light mt-10 mt-x1-15" markdown="1">
|
31
31
|
Your new subscription will be prorated on your next invoice. If you have any questions, don't hesitate to <a href="#" class="medium">contact our support team</a>.
|
32
32
|
</p>
|
33
|
-
<div class="modal-title-border
|
33
|
+
<div class="modal-title-border mt-30 mb-20 mb-x1-30">
|
34
34
|
<h1 class="text-lg text-x1-xl">Payment Info</h1>
|
35
35
|
</div>
|
36
36
|
<form>
|
37
37
|
<div class="input-required">
|
38
38
|
<input type="text" class="input input-text" placeholder="Card Number" />
|
39
39
|
</div>
|
40
|
-
<div class="col-container
|
40
|
+
<div class="col-container mt-20">
|
41
41
|
<div class="col col-50 col-x1-33">
|
42
42
|
<label class="label">Expiry Date</label>
|
43
43
|
<div class="input-required">
|
@@ -50,7 +50,7 @@ title: Shipyard Modal Example
|
|
50
50
|
<input type="text" class="input input-text" placeholder="3 or 4 digits" />
|
51
51
|
</div>
|
52
52
|
</div>
|
53
|
-
<div class="col col-100 col-x1-33
|
53
|
+
<div class="col col-100 col-x1-33 mt-20 mt-x1-0 mb-15 mb-x1-0">
|
54
54
|
<label class="label">Zip Code</label>
|
55
55
|
<div class="input-required">
|
56
56
|
<input type="text" class="input input-text" />
|
@@ -66,11 +66,11 @@ title: Shipyard Modal Example
|
|
66
66
|
Save
|
67
67
|
<span class="display-none display-x1-inline">& Continue</span>
|
68
68
|
</button>
|
69
|
-
<button class="btn btn-secondary btn-sm btn-x1-md
|
69
|
+
<button class="btn btn-secondary btn-sm btn-x1-md ml-5 ml-x1-10" modal-close>Cancel</button>
|
70
70
|
</div>
|
71
71
|
<div class="col align-right">
|
72
|
-
<span class="btn-sm btn-x1-md white-space-nowrap
|
73
|
-
{% icon :lock, class: 'green-dark align-middle
|
72
|
+
<span class="btn-sm btn-x1-md white-space-nowrap p-0">
|
73
|
+
{% icon :lock, class: 'green-dark align-middle mr-5' %}
|
74
74
|
<span class="text-sm text-lighter medium">Secure Server</span>
|
75
75
|
</span>
|
76
76
|
</div>
|
@@ -11,7 +11,7 @@ answers:
|
|
11
11
|
<div class="modal modal-sm modal-billing" role="dialog">
|
12
12
|
<div class="modal-content">
|
13
13
|
<h1 class="modal-title text-lg text-x1-xl">Codeship Basic Downgrade</h1>
|
14
|
-
<p class="text-light
|
14
|
+
<p class="text-light mb-20">
|
15
15
|
Our mission is to ensure that Codeship enables all users to be successful with their projects. The best way to do this is through continuous feedback. Before we process your request, please let us know why you're canceling your current Codeship Basic plan.
|
16
16
|
</p>
|
17
17
|
<form>
|
@@ -26,7 +26,7 @@ answers:
|
|
26
26
|
</form>
|
27
27
|
</div>
|
28
28
|
<div class="modal-ctas">
|
29
|
-
<a href="{{ site.baseurl }}/components/modals/example-survey" class="btn btn-primary btn-sm btn-x1-md
|
29
|
+
<a href="{{ site.baseurl }}/components/modals/example-survey" class="btn btn-primary btn-sm btn-x1-md mr-5 mr-x1-10" modal-close>Continue</a>
|
30
30
|
<button class="btn btn-secondary btn-sm btn-x1-md" modal-close>Cancel</button>
|
31
31
|
</div>
|
32
32
|
</div>
|
@@ -12,9 +12,9 @@ answers:
|
|
12
12
|
|
13
13
|
<div class="modal-container" modal="example-small">
|
14
14
|
<div class="modal modal-sm modal-billing" role="dialog">
|
15
|
-
<div class="alert alert-success
|
15
|
+
<div class="alert alert-success mb-0 rounded-top medium text-sm">
|
16
16
|
We'd like to offer you
|
17
|
-
<span class="modal-downgrade-coupon code-inline strong"><span class="modal-downgrade-tag bg-green-dark
|
17
|
+
<span class="modal-downgrade-coupon code-inline strong"><span class="modal-downgrade-tag bg-green-dark mr-0 rounded-left">{% icon :tag, class: 'align-middle modal-downgrade-tag-icon' %}</span><span class="modal-downgrade-coupon-txt">50% OFF</span></span>
|
18
18
|
one month if you decide to stay.
|
19
19
|
<button class="alert-cta btn btn-cta btn-sm" modal-close>Apply Discount</button>
|
20
20
|
</div>
|
@@ -22,7 +22,7 @@ answers:
|
|
22
22
|
<div class="modal-title">
|
23
23
|
<h1 class="text-lg text-x1-xl">Codeship Basic Downgrade</h1>
|
24
24
|
</div>
|
25
|
-
<p class="text-light
|
25
|
+
<p class="text-light mb-20">
|
26
26
|
We'd appreciate it if you would take a moment to share your thoughts
|
27
27
|
and experience on why Codeship wasn't a good fit for your team.
|
28
28
|
</p>
|
@@ -42,10 +42,10 @@ answers:
|
|
42
42
|
</form>
|
43
43
|
</div>
|
44
44
|
<div class="modal-ctas">
|
45
|
-
<button class="btn btn-caution btn-sm btn-x1-md
|
45
|
+
<button class="btn btn-caution btn-sm btn-x1-md mr-5 mr-x1-10" modal-close>
|
46
46
|
<span class="display-none display-x1-inline">Confirm</span> Downgrade
|
47
47
|
</button>
|
48
|
-
<button class="btn btn-cta btn-sm btn-x1-md
|
48
|
+
<button class="btn btn-cta btn-sm btn-x1-md mr-5 mr-x1-10" modal-close>Apply Discount</button>
|
49
49
|
<button class="btn btn-secondary btn-sm btn-x1-md" modal-close>Cancel</button>
|
50
50
|
</div>
|
51
51
|
</div>
|
@@ -11,7 +11,7 @@ sass_file: shipyard/components/_modals
|
|
11
11
|
<div class="col-container-x1-nowrap">
|
12
12
|
<div class="col col-100">
|
13
13
|
<h3 class="col-100">Building Modals</h3>
|
14
|
-
<p class="text-light
|
14
|
+
<p class="text-light mb-15">Useful when you need to draw attention to information that requires additional action.</p>
|
15
15
|
</div>
|
16
16
|
<div class="col">
|
17
17
|
<button class="btn btn-sm btn-x1-md btn-secondary white-space-nowrap" modal-trigger="example">Demo Modal</button>
|