shipyard-framework 0.5.87 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/javascripts/{shipyard.es6 → shipyard.js} +0 -0
- data/assets/javascripts/shipyard/{accordion-trigger.es6 → accordion-trigger.js} +0 -0
- data/assets/javascripts/shipyard/{accordion.es6 → accordion.js} +0 -0
- data/assets/javascripts/shipyard/{alert-timer.es6 → alert-timer.js} +0 -0
- data/assets/javascripts/shipyard/{alert.es6 → alert.js} +0 -0
- data/assets/javascripts/shipyard/{core.es6 → core.js} +0 -0
- data/assets/javascripts/shipyard/{hamburger.es6 → hamburger.js} +0 -0
- data/assets/javascripts/shipyard/{modal-trigger.es6 → modal-trigger.js} +0 -0
- data/assets/javascripts/shipyard/{modal.es6 → modal.js} +0 -0
- data/assets/javascripts/shipyard/{scroll.es6 → scroll.js} +0 -0
- data/assets/stylesheets/shipyard/_functions.sass +1 -0
- data/assets/stylesheets/shipyard/components/_tooltips.sass +140 -40
- data/assets/stylesheets/shipyard/core/_reset.sass +5 -1
- data/assets/stylesheets/shipyard/functions/_opposite-direction.sass +9 -0
- data/assets/stylesheets/shipyard/utilities/_typography.sass +2 -1
- data/lib/shipyard-framework/version.rb +1 -1
- metadata +19 -114
- data/.gitignore +0 -13
- data/.rspec +0 -3
- data/.ruby-version +0 -1
- data/.travis.yml +0 -40
- data/Brewfile +0 -4
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -3
- data/LICENSE.txt +0 -21
- data/README.md +0 -46
- data/Rakefile +0 -16
- data/ci/build.rb +0 -5
- data/ci/deploy +0 -31
- data/ci/jekyll +0 -16
- data/ci/percy +0 -16
- data/ci/sass_lint +0 -47
- data/ci/setup +0 -6
- data/shipyard.gemspec +0 -28
- data/spec/helpers/alert_helper_spec.rb +0 -27
- data/spec/helpers/box_helper_spec.rb +0 -27
- data/spec/helpers/button_helper_spec.rb +0 -37
- data/spec/helpers/form_helper_spec.rb +0 -29
- data/spec/helpers/icon_helper_spec.rb +0 -21
- data/spec/helpers/note_helper_spec.rb +0 -19
- data/spec/shipyard_spec.rb +0 -7
- data/spec/spec_helper.rb +0 -104
- data/styleguide/.gitignore +0 -3
- data/styleguide/.nojekyll +0 -0
- data/styleguide/.ruby-version +0 -1
- data/styleguide/Gemfile +0 -9
- data/styleguide/Gemfile.lock +0 -125
- data/styleguide/_assets/css/application.sass +0 -3
- data/styleguide/_assets/css/fonts.sass +0 -2
- data/styleguide/_assets/css/layout.sass +0 -10
- data/styleguide/_assets/css/syntax.css +0 -209
- data/styleguide/_assets/css/vendor.sass +0 -4
- data/styleguide/_assets/css/views.sass +0 -103
- data/styleguide/_assets/img/arrows/down.svg +0 -3
- data/styleguide/_assets/img/checkmark.svg +0 -3
- data/styleguide/_assets/js/application.es6 +0 -6
- data/styleguide/_assets/js/views/components/alert-trigger.es6 +0 -20
- data/styleguide/_assets/js/views/utilities/colors.es6 +0 -14
- data/styleguide/_config.yml +0 -67
- data/styleguide/_data/breakpoints.yml +0 -15
- data/styleguide/_includes/css-stats.html +0 -14
- data/styleguide/_includes/page-heading.html +0 -4
- data/styleguide/_layouts/application.html +0 -45
- data/styleguide/_plugins/color_css_class.rb +0 -13
- data/styleguide/_plugins/component_css_class.rb +0 -9
- data/styleguide/_plugins/css_declarations.rb +0 -16
- data/styleguide/_plugins/css_selectors.rb +0 -16
- data/styleguide/_plugins/css_size.rb +0 -20
- data/styleguide/_plugins/human_size_filter.rb +0 -12
- data/styleguide/_plugins/icon_item.rb +0 -28
- data/styleguide/_plugins/opacity_css_class.rb +0 -12
- data/styleguide/_plugins/sass_generator.rb +0 -55
- data/styleguide/_plugins/sass_output.rb +0 -24
- data/styleguide/components/alerts.md +0 -107
- data/styleguide/components/boxes.md +0 -97
- data/styleguide/components/buttons.md +0 -192
- data/styleguide/components/checkboxes.md +0 -281
- data/styleguide/components/code.html +0 -49
- data/styleguide/components/empty-states.html +0 -12
- data/styleguide/components/forms.md +0 -151
- data/styleguide/components/horizontal-rules.md +0 -82
- data/styleguide/components/icons.md +0 -129
- data/styleguide/components/index.md +0 -18
- data/styleguide/components/modals/_modal.html +0 -100
- data/styleguide/components/modals/example-billing.html +0 -80
- data/styleguide/components/modals/example-downgrade.html +0 -33
- data/styleguide/components/modals/example-small.html +0 -19
- data/styleguide/components/modals/example-survey.html +0 -52
- data/styleguide/components/modals/example-tall.html +0 -6
- data/styleguide/components/modals/index.md +0 -41
- data/styleguide/components/notes.md +0 -67
- data/styleguide/components/radio-buttons.md +0 -195
- data/styleguide/components/statuses.md +0 -324
- data/styleguide/components/tables.md +0 -34
- data/styleguide/components/tooltips.md +0 -16
- data/styleguide/index.md +0 -27
- data/styleguide/stats.md +0 -49
- data/styleguide/utilities/accordion.md +0 -55
- data/styleguide/utilities/border-radius.md +0 -104
- data/styleguide/utilities/colors.md +0 -45
- data/styleguide/utilities/grid.md +0 -256
- data/styleguide/utilities/index.md +0 -19
- data/styleguide/utilities/margin-padding.md +0 -124
- data/styleguide/utilities/opacity.md +0 -28
- data/styleguide/utilities/position.md +0 -24
- data/styleguide/utilities/responsive.md +0 -20
- data/styleguide/utilities/typography.md +0 -74
@@ -1,19 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Shipyard Modal Example
|
3
|
-
---
|
4
|
-
|
5
|
-
{% include page-heading.html page=page %}
|
6
|
-
|
7
|
-
<div class="modal-container" modal="example-small">
|
8
|
-
<div class="modal modal-sm" role="dialog">
|
9
|
-
<div class="modal-content">
|
10
|
-
<div class="modal-title">
|
11
|
-
<h1 class="text-lg text-x1-xl">Trial Requested</h1>
|
12
|
-
</div>
|
13
|
-
<p class="text-light">Your request has been sent to our support team who will be in touch with you shortly to confirm the trial. In the meantime, you’ll stay on the configuration that your team was previously subscribed to.</p>
|
14
|
-
</div>
|
15
|
-
<div class="modal-ctas">
|
16
|
-
<button class="btn btn-primary btn-sm btn-x1-md" modal-close>Okay, thanks!</button>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
</div>
|
@@ -1,52 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Shipyard Modal Example
|
3
|
-
answers:
|
4
|
-
- We're happy with Codeship, but we don't need it anymore.
|
5
|
-
- We've chosen another CI/CD provider.
|
6
|
-
- Codeship is too expensive for our needs.
|
7
|
-
- Codeship is missing a feature that we needed.
|
8
|
-
- We're unsatisfied with our experience.
|
9
|
-
---
|
10
|
-
|
11
|
-
{% include page-heading.html page=page %}
|
12
|
-
|
13
|
-
<div class="modal-container" modal="example-small">
|
14
|
-
<div class="modal modal-sm modal-billing" role="dialog">
|
15
|
-
<div class="alert alert-success mb-0 rounded-top medium text-sm">
|
16
|
-
We'd like to offer you
|
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
|
-
one month if you decide to stay.
|
19
|
-
<button class="alert-cta btn btn-cta btn-sm" modal-close>Apply Discount</button>
|
20
|
-
</div>
|
21
|
-
<div class="modal-content rounded-0">
|
22
|
-
<div class="modal-title">
|
23
|
-
<h1 class="text-lg text-x1-xl">Codeship Basic Downgrade</h1>
|
24
|
-
</div>
|
25
|
-
<p class="text-light mb-20">
|
26
|
-
We'd appreciate it if you would take a moment to share your thoughts
|
27
|
-
and experience on why Codeship wasn't a good fit for your team.
|
28
|
-
</p>
|
29
|
-
<form>
|
30
|
-
<ul class="input-list">
|
31
|
-
{% for answer in page.answers %}
|
32
|
-
<li class="input-item">
|
33
|
-
<input id="checkbox-{{ forloop.index }}" name="checkbox-name" type="checkbox" class="input input-checkbox" />
|
34
|
-
<label for="checkbox-{{ forloop.index }}" class="input-label">{{ answer }}</label>
|
35
|
-
</li>
|
36
|
-
{% endfor %}
|
37
|
-
</ul>
|
38
|
-
<div class="input-group">
|
39
|
-
<label class="label">Please provide additional details:</label>
|
40
|
-
<textarea class="input input-text input-lg" placeholder="How could we have made your experience better?"></textarea>
|
41
|
-
</div>
|
42
|
-
</form>
|
43
|
-
</div>
|
44
|
-
<div class="modal-ctas">
|
45
|
-
<button class="btn btn-caution btn-sm btn-x1-md mr-5 mr-x1-10" modal-close>
|
46
|
-
<span class="display-none display-x1-inline">Confirm</span> Downgrade
|
47
|
-
</button>
|
48
|
-
<button class="btn btn-cta btn-sm btn-x1-md mr-5 mr-x1-10" modal-close>Apply Discount</button>
|
49
|
-
<button class="btn btn-secondary btn-sm btn-x1-md" modal-close>Cancel</button>
|
50
|
-
</div>
|
51
|
-
</div>
|
52
|
-
</div>
|
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Shipyard Modals
|
3
|
-
description: Modals are triggered by applying the following attribute to any button or link (e.g. `modal-trigger="login"`).
|
4
|
-
sass_file: shipyard/components/_modals
|
5
|
-
---
|
6
|
-
|
7
|
-
{% include page-heading.html page=page %}
|
8
|
-
|
9
|
-
---
|
10
|
-
|
11
|
-
<div class="col-container-x1-nowrap">
|
12
|
-
<div class="col col-100">
|
13
|
-
<h3 class="col-100">Building Modals</h3>
|
14
|
-
<p class="text-light mb-15">Useful when you need to draw attention to information that requires additional action.</p>
|
15
|
-
</div>
|
16
|
-
<div class="col">
|
17
|
-
<button class="btn btn-sm btn-x1-md btn-secondary white-space-nowrap" modal-trigger="example">Demo Modal</button>
|
18
|
-
</div>
|
19
|
-
</div>
|
20
|
-
|
21
|
-
```html
|
22
|
-
<div class="modal-container">
|
23
|
-
<div class="modal" role="dialog">
|
24
|
-
<div class="modal-content">
|
25
|
-
<div class="modal-title">
|
26
|
-
<!-- Modal Title -->
|
27
|
-
</div>
|
28
|
-
<!-- Modal Content -->
|
29
|
-
</div>
|
30
|
-
<div class="modal-ctas">
|
31
|
-
{% btn Save, :primary %}
|
32
|
-
{% btn Cancel, :secondary %}
|
33
|
-
</div>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
```
|
37
|
-
|
38
|
-
---
|
39
|
-
|
40
|
-
{% include css-stats.html %}
|
41
|
-
{% include_relative _modal.html css_class="display-none" %}
|
@@ -1,67 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Shipyard Notes
|
3
|
-
description: Notes should be used to grab a user's attention along side of other content.
|
4
|
-
sass_file: shipyard/components/_notes
|
5
|
-
---
|
6
|
-
|
7
|
-
{% include page-heading.html page=page %}
|
8
|
-
|
9
|
-
---
|
10
|
-
|
11
|
-
### Default `.note`
|
12
|
-
Used to display notes, tips, and other non-critical information.
|
13
|
-
{: .section-description }
|
14
|
-
|
15
|
-
{% note %}
|
16
|
-
<p markdown="1">
|
17
|
-
Ten other people are also viewing tickets for [this flight](#).
|
18
|
-
Use the code `Travel_Light_2017` before you book your flight.
|
19
|
-
</p>
|
20
|
-
{% btn Call to Action, :sm, class: 'note-cta' %}
|
21
|
-
{% endnote %}
|
22
|
-
|
23
|
-
---
|
24
|
-
|
25
|
-
### Info `.note-info`
|
26
|
-
Useful when drawing attention to non-critical information or actions we want the user to take.
|
27
|
-
{: .section-description }
|
28
|
-
|
29
|
-
{% note :info %}
|
30
|
-
<p markdown="1">
|
31
|
-
Ten other people are also viewing tickets for [this flight](#).
|
32
|
-
Use the code `Travel_Light_2017` before you book your flight.
|
33
|
-
</p>
|
34
|
-
{% btn Call to Action, :sm, class: 'note-cta' %}
|
35
|
-
{% endnote %}
|
36
|
-
|
37
|
-
---
|
38
|
-
|
39
|
-
### Success `.note-success`
|
40
|
-
Useful when drawing attention to interactions that have produced successful results.
|
41
|
-
{: .section-description }
|
42
|
-
|
43
|
-
{% note :success %}
|
44
|
-
<p markdown="1">
|
45
|
-
Pack your bags! You'll be on the next flight to Hawaii.
|
46
|
-
Use the code `Travel_Light_2017` on your next flight. In the meantime you can [invite a friend](#) to this flight.
|
47
|
-
</p>
|
48
|
-
{% btn Call to Action, :sm, class: 'note-cta' %}
|
49
|
-
{% endnote %}
|
50
|
-
|
51
|
-
---
|
52
|
-
|
53
|
-
### Warning `.note-warning`
|
54
|
-
Useful when drawing attention to critical information.
|
55
|
-
{: .section-description }
|
56
|
-
|
57
|
-
{% note :warning %}
|
58
|
-
<p markdown="1">
|
59
|
-
There are only 2 seats left on this flight! We recommend to [book your tickets](#) as soon as possible.
|
60
|
-
Use the code `Travel_Light_2017` before you book your flight.
|
61
|
-
</p>
|
62
|
-
{% btn Call to Action, :sm, class: 'note-cta' %}
|
63
|
-
{% endnote %}
|
64
|
-
|
65
|
-
---
|
66
|
-
|
67
|
-
{% include css-stats.html %}
|
@@ -1,195 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Radio Buttons
|
3
|
-
labels:
|
4
|
-
- Nulla vitae elit libero, a pharetra augue.
|
5
|
-
- Cras mattis consectetur purus sit amet fermentum.
|
6
|
-
- Cum sociis natoque penatibus et magnis dis parturient montes.
|
7
|
-
- Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia.
|
8
|
-
- Donec id elit non mi porta gravida at eget metus.
|
9
|
-
---
|
10
|
-
|
11
|
-
{% include page-heading.html page=page %}
|
12
|
-
|
13
|
-
---
|
14
|
-
|
15
|
-
## Inline Radio-Button Lists
|
16
|
-
Useful when you want to group a series of radio buttons together on a single line.
|
17
|
-
{: .section-description }
|
18
|
-
|
19
|
-
<ul class="input-list mb-30">
|
20
|
-
{% for label in page.labels %}
|
21
|
-
<li class="input-item-inline">
|
22
|
-
<input id="radio-inline-{{ forloop.index }}" name="radio-list" type="radio" class="input input-radio" {% if forloop.index == 1 %}checked{% endif %} />
|
23
|
-
<label for="radio-inline-{{ forloop.index }}" class="input-label">Inline Label</label>
|
24
|
-
</li>
|
25
|
-
{% endfor %}
|
26
|
-
</ul>
|
27
|
-
|
28
|
-
```html
|
29
|
-
<ul class="input-list">
|
30
|
-
<li class="input-item-inline">
|
31
|
-
<input id="radio-id" name="radio-name" type="radio" class="input input-radio" checked />
|
32
|
-
<label for="radio-id" class="input-label">Radio Button Label</label>
|
33
|
-
</li>
|
34
|
-
</ul>
|
35
|
-
```
|
36
|
-
|
37
|
-
---
|
38
|
-
|
39
|
-
## Stacked Radio-Button Lists
|
40
|
-
Useful when you want to group a series of radio buttons together in a list (stacked by default).
|
41
|
-
{: .section-description }
|
42
|
-
|
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
|
-
<div class="rounded bg-white box-padding">
|
46
|
-
<ul class="input-list">
|
47
|
-
{% for label in page.labels %}
|
48
|
-
<li class="input-item">
|
49
|
-
<input id="radio-light-{{ forloop.index }}" name="radio-light-list" type="radio" class="input input-radio" {% if forloop.index == 1 %}checked{% endif %} />
|
50
|
-
<label for="radio-light-{{ forloop.index }}" class="input-label">{{ label }}</label>
|
51
|
-
</li>
|
52
|
-
{% endfor %}
|
53
|
-
</ul>
|
54
|
-
</div>
|
55
|
-
</div>
|
56
|
-
<div class="col col-100 col-x1-50">
|
57
|
-
<div class="box-secondary box-padding">
|
58
|
-
<ul class="input-list">
|
59
|
-
{% for label in page.labels %}
|
60
|
-
<li class="input-item">
|
61
|
-
<input id="radio-dark-{{ forloop.index }}" name="radio-dark-list" type="radio" class="input input-radio" {% if forloop.index == 1 %}checked{% endif %} />
|
62
|
-
<label for="radio-dark-{{ forloop.index }}" class="input-label">{{ label }}</label>
|
63
|
-
</li>
|
64
|
-
{% endfor %}
|
65
|
-
</ul>
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
</div>
|
69
|
-
|
70
|
-
```html
|
71
|
-
<ul class="input-list">
|
72
|
-
<li class="input-item">
|
73
|
-
<input id="radio-id" name="radio-name" type="radio" class="input input-radio" checked />
|
74
|
-
<label for="radio-id" class="input-label">Radio Button Label</label>
|
75
|
-
</li>
|
76
|
-
</ul>
|
77
|
-
```
|
78
|
-
|
79
|
-
---
|
80
|
-
|
81
|
-
## Inverse Radio-Button Lists
|
82
|
-
Useful when the radio buttons are displayed on a dark background.
|
83
|
-
{: .section-description }
|
84
|
-
|
85
|
-
<div class="box-secondary box-padding bg-gray-darker">
|
86
|
-
<ul class="input-list">
|
87
|
-
{% for label in page.labels %}
|
88
|
-
<li class="input-item">
|
89
|
-
<input id="radio-inverse-{{ forloop.index }}" name="radio-inverse-list" type="radio" class="input input-radio input-radio-inverse" {% if forloop.index == 1 %}checked{% endif %} />
|
90
|
-
<label for="radio-inverse-{{ forloop.index }}" class="input-label-inverse">{{ label }}</label>
|
91
|
-
</li>
|
92
|
-
{% endfor %}
|
93
|
-
</ul>
|
94
|
-
</div>
|
95
|
-
|
96
|
-
```html
|
97
|
-
<ul class="input-list">
|
98
|
-
<li class="input-item">
|
99
|
-
<input id="radio-id" name="radio-name" type="radio" class="input input-radio input-radio-inverse" checked />
|
100
|
-
<label for="radio-id" class="input-label-inverse">Radio Button Inverse Label</label>
|
101
|
-
</li>
|
102
|
-
</ul>
|
103
|
-
```
|
104
|
-
|
105
|
-
---
|
106
|
-
|
107
|
-
## Caution Radio-Button Lists
|
108
|
-
Useful when you want to the user to proceed with caution about the choices they're making.
|
109
|
-
{: .section-description }
|
110
|
-
|
111
|
-
<ul class="input-list">
|
112
|
-
{% for label in page.labels %}
|
113
|
-
<li class="input-item">
|
114
|
-
<input id="radio-caution-{{ forloop.index }}" name="radio-caution-list" type="radio" class="input input-radio input-radio-caution" {% if forloop.index == 1 %}checked{% endif %} />
|
115
|
-
<label for="radio-caution-{{ forloop.index }}" class="input-label">{{ label }}</label>
|
116
|
-
</li>
|
117
|
-
{% endfor %}
|
118
|
-
</ul>
|
119
|
-
|
120
|
-
```html
|
121
|
-
<ul class="input-list">
|
122
|
-
<li class="input-item">
|
123
|
-
<input id="radio-id" name="radio-name" type="radio" class="input input-radio input-radio-caution" checked />
|
124
|
-
<label for="radio-id" class="input-label">Radio Button Caution Label</label>
|
125
|
-
</li>
|
126
|
-
</ul>
|
127
|
-
```
|
128
|
-
|
129
|
-
---
|
130
|
-
|
131
|
-
## Radio-Checkbox Button Lists
|
132
|
-
Yep, that's exactly what it sounds like. It behaves like a radio button but looks a bit like a checkbox. Fancy!
|
133
|
-
{: .section-description }
|
134
|
-
|
135
|
-
<ul class="input-list">
|
136
|
-
{% for label in page.labels %}
|
137
|
-
<li class="input-item">
|
138
|
-
<input id="radio-checkbox-{{ forloop.index }}" name="radio-list" type="radio" class="input input-radio-checkbox" {% if forloop.index == 1 %}checked{% endif %} />
|
139
|
-
<label for="radio-checkbox-{{ forloop.index }}" class="input-label">{{ label }}</label>
|
140
|
-
</li>
|
141
|
-
{% endfor %}
|
142
|
-
</ul>
|
143
|
-
|
144
|
-
```html
|
145
|
-
<ul class="input-list">
|
146
|
-
<li class="input-item">
|
147
|
-
<input id="radio-id" name="radio-name" type="radio" class="input input-radio-checkbox" checked />
|
148
|
-
<label for="radio-id" class="input-label">Radio Button Label</label>
|
149
|
-
</li>
|
150
|
-
</ul>
|
151
|
-
```
|
152
|
-
|
153
|
-
---
|
154
|
-
|
155
|
-
## Radio Buttons Nested in Buttons
|
156
|
-
{: .mb-20 }
|
157
|
-
|
158
|
-
<button class="btn btn-secondary mr-10 mb-10">
|
159
|
-
<input type="radio" class="input input-radio mr-5" />
|
160
|
-
Unchecked
|
161
|
-
</button>
|
162
|
-
<button class="btn btn-secondary mr-10 mb-10">
|
163
|
-
<input type="radio" class="input input-radio mr-5" checked />
|
164
|
-
Checked
|
165
|
-
</button>
|
166
|
-
<button class="btn btn-secondary mr-10 mb-10">
|
167
|
-
<input type="radio" class="input input-radio-checkbox mr-5" checked />
|
168
|
-
Checked w/ Icon
|
169
|
-
</button>
|
170
|
-
<button class="btn btn-cta mr-10 mb-10">
|
171
|
-
<input type="radio" class="input input-radio input-radio-inverse mr-5" />
|
172
|
-
Inverse Unchecked
|
173
|
-
</button>
|
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
|
-
Inverse Checked
|
177
|
-
</button>
|
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
|
-
Inverse Checked w/ Icon
|
181
|
-
</button>
|
182
|
-
|
183
|
-
```html
|
184
|
-
<!-- Secondary button with a radio button in the unchecked state. -->
|
185
|
-
<button class="btn btn-secondary">
|
186
|
-
<input type="radio" class="input input-radio mr-5" />
|
187
|
-
Button Text
|
188
|
-
</button>
|
189
|
-
|
190
|
-
<!-- CTA button with a radio-checkbox in the checked state. -->
|
191
|
-
<button class="btn btn-cta">
|
192
|
-
<input type="radio" class="input input-radio-checkbox input-radio-inverse mr-5" checked />
|
193
|
-
Button Text
|
194
|
-
</button>
|
195
|
-
```
|
@@ -1,324 +0,0 @@
|
|
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 %}
|