shipyard-framework 0.5.76 → 0.5.77
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +2 -0
- data/assets/icons/check.svg +3 -0
- data/assets/stylesheets/_shipyard.sass +3 -3
- data/assets/stylesheets/shipyard/_components.sass +22 -16
- data/assets/stylesheets/shipyard/_core.sass +6 -6
- data/assets/stylesheets/shipyard/_functions.sass +3 -2
- data/assets/stylesheets/shipyard/_mixins.sass +7 -7
- data/assets/stylesheets/shipyard/_utilities.sass +8 -8
- data/assets/stylesheets/shipyard/_variables.sass +6 -6
- data/assets/stylesheets/shipyard/components/_buttons.sass +4 -3
- data/assets/stylesheets/shipyard/components/_forms.sass +1 -128
- data/assets/stylesheets/shipyard/components/_horizontal-rules.sass +2 -0
- data/assets/stylesheets/shipyard/components/_icons.sass +4 -0
- data/assets/stylesheets/shipyard/components/_input-radio-checkbox.sass +18 -15
- data/assets/stylesheets/shipyard/components/_input-readonly.sass +4 -0
- data/assets/stylesheets/shipyard/components/_input-required.sass +21 -0
- data/assets/stylesheets/shipyard/components/_input-select.sass +54 -0
- data/assets/stylesheets/shipyard/components/_input-sizes.sass +4 -0
- data/assets/stylesheets/shipyard/components/_input-text.sass +39 -0
- data/assets/stylesheets/shipyard/components/_input.sass +23 -0
- data/assets/stylesheets/shipyard/functions/_text-color.sass +3 -0
- data/assets/stylesheets/shipyard/utilities/_border-radius.sass +24 -8
- data/assets/stylesheets/shipyard/utilities/_positioning.sass +5 -0
- data/assets/stylesheets/shipyard/utilities/_typography.sass +21 -6
- data/assets/stylesheets/shipyard/variables/_typography.sass +10 -8
- data/ci/sass_lint +39 -0
- data/lib/shipyard-framework/version.rb +1 -1
- data/styleguide/Gemfile.lock +1 -1
- data/styleguide/components/buttons.md +4 -0
- data/styleguide/components/checkboxes.md +39 -6
- data/styleguide/components/forms.md +11 -11
- data/styleguide/components/horizontal-rules.md +4 -2
- data/styleguide/components/icons.md +11 -5
- data/styleguide/components/modals/_modal.html +11 -11
- data/styleguide/components/modals/example-billing.html +4 -4
- data/styleguide/components/modals/example-survey.html +1 -1
- data/styleguide/components/notes.md +8 -4
- data/styleguide/components/radio-buttons.md +33 -4
- data/styleguide/utilities/border-radius.md +33 -4
- data/styleguide/utilities/grid.md +15 -8
- data/styleguide/utilities/index.md +1 -1
- data/styleguide/utilities/margin-padding.md +12 -6
- data/styleguide/utilities/position.md +19 -0
- data/styleguide/utilities/typography.md +4 -4
- metadata +12 -2
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
+component('bullet')
|
|
20
20
|
margin: 0 5px
|
|
21
|
-
color:
|
|
21
|
+
color: text-color(.2)
|
|
22
22
|
&-inverse
|
|
23
23
|
+extend
|
|
24
24
|
color: rgba(#fff,.4)
|
|
@@ -55,23 +55,38 @@
|
|
|
55
55
|
text-overflow: clip
|
|
56
56
|
overflow: visible
|
|
57
57
|
|
|
58
|
-
//
|
|
58
|
+
// Text Colors
|
|
59
59
|
&-normal
|
|
60
|
-
color: $text-color
|
|
60
|
+
color: $text-color-normal
|
|
61
61
|
&-light
|
|
62
62
|
color: $text-color-light
|
|
63
63
|
&-lighter
|
|
64
64
|
color: $text-color-lighter
|
|
65
65
|
&-lightest
|
|
66
66
|
color: $text-color-lightest
|
|
67
|
+
&-dark
|
|
68
|
+
color: $text-color-dark
|
|
69
|
+
&-darker
|
|
70
|
+
color: $text-color-darker
|
|
71
|
+
&-darkest
|
|
72
|
+
color: $text-color-darkest
|
|
73
|
+
|
|
74
|
+
// Inverse Text Colors
|
|
67
75
|
&-inverse
|
|
68
|
-
|
|
76
|
+
&-lightest
|
|
77
|
+
color: rgba(#fff,1)
|
|
78
|
+
&-lighter
|
|
79
|
+
color: rgba(#fff,.9)
|
|
69
80
|
&-light
|
|
70
81
|
color: rgba(#fff,.8)
|
|
71
|
-
&-
|
|
82
|
+
&-normal
|
|
72
83
|
color: rgba(#fff,.7)
|
|
73
|
-
&-
|
|
84
|
+
&-dark
|
|
74
85
|
color: rgba(#fff,.6)
|
|
86
|
+
&-darker
|
|
87
|
+
color: rgba(#fff,.5)
|
|
88
|
+
&-darkest
|
|
89
|
+
color: rgba(#fff,.4)
|
|
75
90
|
|
|
76
91
|
// Font Sizes
|
|
77
92
|
+all-media-sizes
|
|
@@ -20,11 +20,13 @@ $font-size-sm: map-get($font-sizes, sm) !default
|
|
|
20
20
|
$font-size-xs: map-get($font-sizes, xs) !default
|
|
21
21
|
$font-size-xxs: map-get($font-sizes, xxs) !default
|
|
22
22
|
$font: $normal 16px / 1.6 $font-family !default
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
$text-color-
|
|
26
|
-
$text-color-
|
|
27
|
-
$text-color-
|
|
28
|
-
$text-color-
|
|
29
|
-
$text-color-
|
|
30
|
-
$text-color-
|
|
23
|
+
|
|
24
|
+
// Text Colors
|
|
25
|
+
$text-color-base: saturate(darken($gray, 35%), 40%)
|
|
26
|
+
$text-color-darkest: text-color(1) !default
|
|
27
|
+
$text-color-darker: text-color(.9) !default
|
|
28
|
+
$text-color-dark: text-color(.8) !default
|
|
29
|
+
$text-color-normal: text-color(.7) !default
|
|
30
|
+
$text-color-light: text-color(.6) !default
|
|
31
|
+
$text-color-lighter: text-color(.5) !default
|
|
32
|
+
$text-color-lightest: text-color(.4) !default
|
data/ci/sass_lint
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
color_start="\033[32m"
|
|
3
|
+
color_end="\033[m"
|
|
4
|
+
if [[ $CI_NAME = "codeship" ]]
|
|
5
|
+
then
|
|
6
|
+
repository="git@github.com:codeship/shipyard.git"
|
|
7
|
+
else
|
|
8
|
+
repository="https://github.com/codeship/shipyard.git"
|
|
9
|
+
fi
|
|
10
|
+
|
|
11
|
+
echo -e "************** Copy Master Branch **************"
|
|
12
|
+
git clone $repository --branch master --single-branch ci/master-tmp
|
|
13
|
+
|
|
14
|
+
echo -e "\n\n************** Compile Sass **************"
|
|
15
|
+
bundle exec sass --no-cache --style compact assets/stylesheets/_shipyard.sass ci/master-tmp/branch-compact.css
|
|
16
|
+
bundle exec sass --no-cache --style compressed assets/stylesheets/_shipyard.sass ci/master-tmp/branch-compressed.css
|
|
17
|
+
bundle exec sass --no-cache --style compact ci/master-tmp/assets/stylesheets/_shipyard.sass ci/master-tmp/master-compact.css
|
|
18
|
+
bundle exec sass --no-cache --style compressed ci/master-tmp/assets/stylesheets/_shipyard.sass ci/master-tmp/master-compressed.css
|
|
19
|
+
|
|
20
|
+
echo -e "\n\n************** CSS Output Filesize **************"
|
|
21
|
+
branch_compact=$(ls -lah ci/master-tmp/branch-compact.css | awk '{ printf $5 }')
|
|
22
|
+
branch_compressed=$(ls -lah ci/master-tmp/branch-compressed.css | awk '{ printf $5 }')
|
|
23
|
+
branch_compressed_int=${branch_compressed//[a-zA-Z]/}
|
|
24
|
+
master_compact=$(ls -lah ci/master-tmp/master-compact.css | awk '{ printf $5 }')
|
|
25
|
+
master_compressed=$(ls -lah ci/master-tmp/master-compressed.css | awk '{ printf $5 }')
|
|
26
|
+
master_compressed_int=${master_compressed//[a-zA-Z]/}
|
|
27
|
+
|
|
28
|
+
printf "Branch Compact:$color_start $branch_compact $color_end\n"
|
|
29
|
+
printf "Master Compact:$color_start $master_compact $color_end\n"
|
|
30
|
+
printf "Branch Compressed:$color_start $branch_compressed $color_end\n"
|
|
31
|
+
printf "Master Compressed:$color_start $master_compressed $color_end\n"
|
|
32
|
+
printf "Difference:$color_start $(($branch_compressed_int - $master_compressed_int)) $color_end\n"
|
|
33
|
+
|
|
34
|
+
echo -e "\n\n************** CSS Output Line Count **************"
|
|
35
|
+
branch_lines=$(wc -l ci/master-tmp/branch-compact.css | awk '{ printf $1 }')
|
|
36
|
+
master_lines=$(wc -l ci/master-tmp/master-compact.css | awk '{ printf $1 }')
|
|
37
|
+
printf "Branch:$color_start $branch_lines $color_end\n"
|
|
38
|
+
printf "Master:$color_start $master_lines $color_end\n"
|
|
39
|
+
printf "Difference:$color_start $(($branch_lines - $master_lines)) $color_end\n"
|
data/styleguide/Gemfile.lock
CHANGED
|
@@ -125,12 +125,16 @@ The button classes can be applied to any type of html tag to achieve the desired
|
|
|
125
125
|
{% btn Button %}
|
|
126
126
|
<a href="#" class="btn">Link</a>
|
|
127
127
|
<input type="button" class="btn" value="Input" />
|
|
128
|
+
<input type="submit" class="btn" value="Submit" />
|
|
129
|
+
<input type="reset" class="btn" value="Reset" />
|
|
128
130
|
</div>
|
|
129
131
|
|
|
130
132
|
```html
|
|
131
133
|
{% btn Button %}
|
|
132
134
|
<a href="#" class="btn">Link</a>
|
|
133
135
|
<input type="button" class="btn" value="Input" />
|
|
136
|
+
<input type="submit" class="btn" value="Input" />
|
|
137
|
+
<input type="reset" class="btn" value="Input" />
|
|
134
138
|
```
|
|
135
139
|
|
|
136
140
|
---
|
|
@@ -13,7 +13,8 @@ labels:
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
## Inline Checkbox Lists
|
|
16
|
-
|
|
16
|
+
Useful when you want to group a series of checkboxes together on a single line.
|
|
17
|
+
{: .section-description }
|
|
17
18
|
|
|
18
19
|
<ul class="input-list margin-bottom-lg">
|
|
19
20
|
{% for label in page.labels %}
|
|
@@ -36,7 +37,8 @@ labels:
|
|
|
36
37
|
---
|
|
37
38
|
|
|
38
39
|
## Stacked Checkbox Lists
|
|
39
|
-
|
|
40
|
+
Useful when you want to group a series of checkboxes together in a list (stacked by default).
|
|
41
|
+
{: .section-description }
|
|
40
42
|
|
|
41
43
|
<div class="col-container margin-bottom-sm margin-bottom-x1-lg">
|
|
42
44
|
<div class="col col-100 col-x1-50 margin-bottom-sm margin-bottom-x1-none">
|
|
@@ -64,6 +66,7 @@ labels:
|
|
|
64
66
|
</div>
|
|
65
67
|
</div>
|
|
66
68
|
</div>
|
|
69
|
+
|
|
67
70
|
```html
|
|
68
71
|
<ul class="input-list">
|
|
69
72
|
<li class="input-item">
|
|
@@ -76,7 +79,8 @@ labels:
|
|
|
76
79
|
---
|
|
77
80
|
|
|
78
81
|
## Inverse Checkbox Lists
|
|
79
|
-
|
|
82
|
+
Useful when the checkboxes are displayed on a dark background.
|
|
83
|
+
{: .section-description }
|
|
80
84
|
|
|
81
85
|
<div class="box-secondary box-padding bg-gray-darker">
|
|
82
86
|
<ul class="input-list">
|
|
@@ -100,6 +104,30 @@ labels:
|
|
|
100
104
|
|
|
101
105
|
---
|
|
102
106
|
|
|
107
|
+
## Caution Checkbox 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="checkbox-caution-{{ forloop.index }}" name="checkbox-list" type="checkbox" class="input input-checkbox input-checkbox-caution" {% if forloop.index == 1 %}checked{% endif %} />
|
|
115
|
+
<label for="checkbox-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="checkbox-id" name="checkbox-name" type="checkbox" class="input input-checkbox input-checkbox-caution" checked />
|
|
124
|
+
<label for="checkbox-id" class="input-label">Checkbox Label</label>
|
|
125
|
+
</li>
|
|
126
|
+
</ul>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
103
131
|
## Checkboxes Nested in Buttons
|
|
104
132
|
{: .margin-bottom-md }
|
|
105
133
|
|
|
@@ -137,7 +165,8 @@ labels:
|
|
|
137
165
|
---
|
|
138
166
|
|
|
139
167
|
## Checkbox-Switches
|
|
140
|
-
|
|
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
|
+
{: .section-description }
|
|
141
170
|
|
|
142
171
|
<div class="box box-xs margin-bottom-sm padding-top-md padding-bottom-md padding-left-sm padding-right-sm padding-left-x1-lg padding-right-x1-lg">
|
|
143
172
|
<div class="col-container-nowrap">
|
|
@@ -155,6 +184,7 @@ labels:
|
|
|
155
184
|
</div>
|
|
156
185
|
</div>
|
|
157
186
|
</div>
|
|
187
|
+
|
|
158
188
|
```html
|
|
159
189
|
<input type="checkbox" class="input input-switch" />
|
|
160
190
|
```
|
|
@@ -162,7 +192,8 @@ labels:
|
|
|
162
192
|
---
|
|
163
193
|
|
|
164
194
|
## Secondary Checkbox-Switches
|
|
165
|
-
|
|
195
|
+
Useful when you don't need to draw attention to the bright-red, off state.
|
|
196
|
+
{: .section-description }
|
|
166
197
|
|
|
167
198
|
<div class="box box-xs margin-bottom-sm padding-top-md padding-bottom-md padding-left-sm padding-right-sm padding-left-x1-lg padding-right-x1-lg">
|
|
168
199
|
<div class="col-container-nowrap">
|
|
@@ -187,7 +218,9 @@ labels:
|
|
|
187
218
|
---
|
|
188
219
|
|
|
189
220
|
## Checkbox-Switch Sizes `input-switch-{ x1..x4 }-{ sm..xl }`
|
|
190
|
-
|
|
221
|
+
Each size can be used or altered at any breakpoint.
|
|
222
|
+
{: .section-description }
|
|
223
|
+
|
|
191
224
|
<ul class="input-list">
|
|
192
225
|
<li class="input-item">
|
|
193
226
|
<input id="small-switch-on" type="checkbox" class="input input-switch input-switch-sm align-middle" checked />
|
|
@@ -9,15 +9,15 @@ title: Shipyard Forms
|
|
|
9
9
|
<div class="col-container input-group">
|
|
10
10
|
<div class="col col-100 col-x1-33 margin-bottom-sm margin-bottom-x1-none">
|
|
11
11
|
<label class="label">Textbox</label>
|
|
12
|
-
<input type="text" class="input input-text
|
|
12
|
+
<input type="text" class="input input-text" placeholder=".input-text" />
|
|
13
13
|
</div>
|
|
14
14
|
<div class="col col-100 col-x1-33 margin-bottom-sm margin-bottom-x1-none">
|
|
15
15
|
<label class="label">Textbox Read-Only</label>
|
|
16
|
-
<input type="text" class="input input-text input-
|
|
16
|
+
<input type="text" class="input input-text input-readonly" placeholder=".input-readonly" value="copy-paste-me" readonly />
|
|
17
17
|
</div>
|
|
18
18
|
<div class="col col-100 col-x1-33 margin-bottom-sm margin-bottom-x1-none">
|
|
19
19
|
<label class="label">Textbox Disabled</label>
|
|
20
|
-
<input type="text" class="input input-text
|
|
20
|
+
<input type="text" class="input input-text" placeholder=".input-text" disabled />
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
23
23
|
```html
|
|
@@ -36,9 +36,9 @@ title: Shipyard Forms
|
|
|
36
36
|
## Connected Textboxes
|
|
37
37
|
|
|
38
38
|
<div class="input-group">
|
|
39
|
-
<input type="text" class="input input-text input-
|
|
40
|
-
<input type="text" class="input input-text input-
|
|
41
|
-
<input type="text" class="input input-text input-
|
|
39
|
+
<input type="text" class="input input-text input-text-connect-top" placeholder=".input-text-connect-top" />
|
|
40
|
+
<input type="text" class="input input-text input-text-connect-middle" placeholder=".input-text-connect-middle" />
|
|
41
|
+
<input type="text" class="input input-text input-text-connect-bottom" placeholder=".input-text-connect-bottom" />
|
|
42
42
|
</div>
|
|
43
43
|
|
|
44
44
|
```html
|
|
@@ -63,7 +63,7 @@ title: Shipyard Forms
|
|
|
63
63
|
</div>
|
|
64
64
|
<div class="col">
|
|
65
65
|
<label class="label">Select Box Disabled</label>
|
|
66
|
-
<div class="input-select-container">
|
|
66
|
+
<div class="input-select-container input-select-container-disabled">
|
|
67
67
|
<select class="input input-select" disabled>
|
|
68
68
|
<option class="input-option-placeholder">.input-select</option>
|
|
69
69
|
{% for i in (1..10) %}
|
|
@@ -79,14 +79,14 @@ title: Shipyard Forms
|
|
|
79
79
|
<div class="input-group">
|
|
80
80
|
<label class="label">Textbox</label>
|
|
81
81
|
<p class="label-note">Some critically important notes about this field.</p>
|
|
82
|
-
<input type="text" class="input input-text
|
|
82
|
+
<input type="text" class="input input-text" placeholder=".input .input-text" />
|
|
83
83
|
</div>
|
|
84
84
|
|
|
85
85
|
---
|
|
86
86
|
|
|
87
87
|
<h2 class="margin-bottom-xs">Input Boxes</h2>
|
|
88
88
|
<div class="input-box">
|
|
89
|
-
<input type="text" class="input input-text
|
|
89
|
+
<input type="text" class="input input-text" placeholder=".input .input-text" />
|
|
90
90
|
</div>
|
|
91
91
|
|
|
92
92
|
---
|
|
@@ -95,7 +95,7 @@ title: Shipyard Forms
|
|
|
95
95
|
<div class="col-container">
|
|
96
96
|
<div class="col col-50">
|
|
97
97
|
<div class="input-required">
|
|
98
|
-
<input type="text" class="input input-text
|
|
98
|
+
<input type="text" class="input input-text" placeholder=".input .input-text" />
|
|
99
99
|
</div>
|
|
100
100
|
</div>
|
|
101
101
|
<div class="col col-50">
|
|
@@ -145,7 +145,7 @@ title: Shipyard Forms
|
|
|
145
145
|
<div class="col col-50 input-error">
|
|
146
146
|
<label class="label">Required Textbox</label>
|
|
147
147
|
<div class="input-required">
|
|
148
|
-
<input type="text" class="input input-text
|
|
148
|
+
<input type="text" class="input input-text" placeholder=".input .input-text" />
|
|
149
149
|
</div>
|
|
150
150
|
</div>
|
|
151
151
|
</div>
|
|
@@ -52,7 +52,8 @@ text_shades: [normal, light, lighter, lightest]
|
|
|
52
52
|
---
|
|
53
53
|
|
|
54
54
|
## Dark Horizontal Rules
|
|
55
|
-
|
|
55
|
+
Useful when you have a horizontal rule on a darker background.
|
|
56
|
+
{: .section-description }
|
|
56
57
|
|
|
57
58
|
<div class="utilities-typography-hr-box-dark">
|
|
58
59
|
<hr class="utilities-typography-hr hr-dark" />
|
|
@@ -64,7 +65,8 @@ text_shades: [normal, light, lighter, lightest]
|
|
|
64
65
|
---
|
|
65
66
|
|
|
66
67
|
## Light Horizontal Rules
|
|
67
|
-
|
|
68
|
+
Useful when you have a horizontal rule on a lighter background.
|
|
69
|
+
{: .section-description }
|
|
68
70
|
|
|
69
71
|
<div class="utilities-typography-hr-box-light">
|
|
70
72
|
<hr class="utilities-typography-hr hr-light" />
|
|
@@ -8,7 +8,8 @@ description: Shipyard comes with several default icons that you're welcome to us
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
### Common Icons
|
|
11
|
-
|
|
11
|
+
The following icons are the most frequently used in just about any application.
|
|
12
|
+
{: .section-description }
|
|
12
13
|
|
|
13
14
|
<ul class="icon-list col-container">
|
|
14
15
|
{% iconitem :plus, class: 'center' %}
|
|
@@ -19,12 +20,14 @@ description: Shipyard comes with several default icons that you're welcome to us
|
|
|
19
20
|
{% iconitem :tag, class: 'center' %}
|
|
20
21
|
{% iconitem :x, class: 'center' %}
|
|
21
22
|
{% iconitem :arrow_down, class: 'center' %}
|
|
23
|
+
{% iconitem :check, class: 'center' %}
|
|
22
24
|
</ul>
|
|
23
25
|
|
|
24
26
|
---
|
|
25
27
|
|
|
26
28
|
### Brand Icons
|
|
27
|
-
|
|
29
|
+
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.
|
|
30
|
+
{: .section-description }
|
|
28
31
|
|
|
29
32
|
<ul class="icon-list col-container">
|
|
30
33
|
{% iconitem 'bitbucket-white', class: 'center icon-xl' %}
|
|
@@ -50,7 +53,8 @@ description: Shipyard comes with several default icons that you're welcome to us
|
|
|
50
53
|
---
|
|
51
54
|
|
|
52
55
|
### Multi-color Icons
|
|
53
|
-
|
|
56
|
+
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.
|
|
57
|
+
{: .section-description }
|
|
54
58
|
|
|
55
59
|
<ul class="icon-list col-container">
|
|
56
60
|
{% iconitem 'email-color', class: 'icon-xl center' %}
|
|
@@ -62,7 +66,8 @@ description: Shipyard comes with several default icons that you're welcome to us
|
|
|
62
66
|
---
|
|
63
67
|
|
|
64
68
|
### Icon Sizes
|
|
65
|
-
|
|
69
|
+
The icon size utility classes can be applied to any icon, and are useful when you want to override the default icon size.
|
|
70
|
+
{: .section-description }
|
|
66
71
|
|
|
67
72
|
<ul class="icon-list col-container">
|
|
68
73
|
{% iconitem :gear, class: 'center icon-xxs' %}
|
|
@@ -85,7 +90,8 @@ description: Shipyard comes with several default icons that you're welcome to us
|
|
|
85
90
|
---
|
|
86
91
|
|
|
87
92
|
### Centered Icons
|
|
88
|
-
|
|
93
|
+
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.
|
|
94
|
+
{: .section-description }
|
|
89
95
|
|
|
90
96
|
<div class="margin-bottom-lg">
|
|
91
97
|
<button class="btn btn-secondary">{% icon :plus, class: 'align-middle icon-sm margin-right-xxs' %} Create</button>
|
|
@@ -9,46 +9,46 @@
|
|
|
9
9
|
<div class="col">
|
|
10
10
|
<label class="label">First Name</label>
|
|
11
11
|
<div class="input-required">
|
|
12
|
-
<input type="text" class="input input-text
|
|
12
|
+
<input type="text" class="input input-text" />
|
|
13
13
|
</div>
|
|
14
14
|
</div>
|
|
15
15
|
<div class="col">
|
|
16
16
|
<label class="label">Last Name</label>
|
|
17
17
|
<div class="input-required">
|
|
18
|
-
<input type="text" class="input input-text
|
|
18
|
+
<input type="text" class="input input-text" />
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
22
22
|
<div class="col-container margin-bottom-md">
|
|
23
23
|
<div class="col col-100 col-x1-50 margin-bottom-sm margin-bottom-x1-none">
|
|
24
24
|
<label class="label">Email Address</label>
|
|
25
|
-
<input type="text" class="input input-text
|
|
25
|
+
<input type="text" class="input input-text" />
|
|
26
26
|
</div>
|
|
27
27
|
<div class="col col-100 col-x1-50">
|
|
28
28
|
<label class="label">Phone Number</label>
|
|
29
29
|
<div class="input-required">
|
|
30
|
-
<input type="text" class="input input-text
|
|
30
|
+
<input type="text" class="input input-text" />
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
34
|
<div class="col-container margin-bottom-md">
|
|
35
35
|
<div class="col col-100 margin-bottom-sm">
|
|
36
36
|
<label class="label">Billing Address</label>
|
|
37
|
-
<input type="text" class="input input-text
|
|
37
|
+
<input type="text" class="input input-text" placeholder="Company Name" />
|
|
38
38
|
</div>
|
|
39
39
|
<div class="col col-100 margin-bottom-sm">
|
|
40
|
-
<input type="text" class="input input-text
|
|
40
|
+
<input type="text" class="input input-text" placeholder="Street Address" />
|
|
41
41
|
</div>
|
|
42
42
|
<div class="col col-100 col-x1-33 margin-bottom-sm">
|
|
43
43
|
<div class="input-required">
|
|
44
|
-
<input type="text" class="input input-text
|
|
44
|
+
<input type="text" class="input input-text" placeholder="Postal Code" />
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
47
|
<div class="col col-50 col-x1-33 margin-bottom-sm">
|
|
48
|
-
<input type="text" class="input input-text
|
|
48
|
+
<input type="text" class="input input-text" placeholder="City" />
|
|
49
49
|
</div>
|
|
50
50
|
<div class="col col-50 col-x1-33 margin-bottom-sm">
|
|
51
|
-
<input type="text" class="input input-text
|
|
51
|
+
<input type="text" class="input input-text" placeholder="State" />
|
|
52
52
|
</div>
|
|
53
53
|
<div class="col col-100">
|
|
54
54
|
<div class="input-required">
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
<div class="col-container margin-bottom-md">
|
|
68
68
|
<div class="col">
|
|
69
69
|
<label class="label">Tax Information</label>
|
|
70
|
-
<input type="text" class="input input-text
|
|
70
|
+
<input type="text" class="input input-text" placeholder="VAT Number" />
|
|
71
71
|
</div>
|
|
72
72
|
</div>
|
|
73
73
|
<div class="col-container margin-bottom-sm margin-bottom-x1-none">
|
|
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>
|
|
77
|
-
<input type="text" class="input input-text
|
|
77
|
+
<input type="text" class="input input-text" placeholder="e.g. Invoice notes, accounts payable info, additional address info, etc..." />
|
|
78
78
|
</div>
|
|
79
79
|
</div>
|
|
80
80
|
</form>
|
|
@@ -35,25 +35,25 @@ title: Shipyard Modal Example
|
|
|
35
35
|
</div>
|
|
36
36
|
<form>
|
|
37
37
|
<div class="input-required">
|
|
38
|
-
<input type="text" class="input input-text
|
|
38
|
+
<input type="text" class="input input-text" placeholder="Card Number" />
|
|
39
39
|
</div>
|
|
40
40
|
<div class="col-container margin-top-md">
|
|
41
41
|
<div class="col col-50 col-x1-33">
|
|
42
42
|
<label class="label">Expiry Date</label>
|
|
43
43
|
<div class="input-required">
|
|
44
|
-
<input type="text" class="input input-text
|
|
44
|
+
<input type="text" class="input input-text" placeholder="MM/YYYY" />
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
47
|
<div class="col col-50 col-x1-33">
|
|
48
48
|
<label class="label">CCV</label>
|
|
49
49
|
<div class="input-required">
|
|
50
|
-
<input type="text" class="input input-text
|
|
50
|
+
<input type="text" class="input input-text" placeholder="3 or 4 digits" />
|
|
51
51
|
</div>
|
|
52
52
|
</div>
|
|
53
53
|
<div class="col col-100 col-x1-33 margin-top-md margin-top-x1-none margin-bottom-sm margin-bottom-x1-none">
|
|
54
54
|
<label class="label">Zip Code</label>
|
|
55
55
|
<div class="input-required">
|
|
56
|
-
<input type="text" class="input input-text
|
|
56
|
+
<input type="text" class="input input-text" />
|
|
57
57
|
</div>
|
|
58
58
|
</div>
|
|
59
59
|
</div>
|
|
@@ -37,7 +37,7 @@ answers:
|
|
|
37
37
|
</ul>
|
|
38
38
|
<div class="input-group">
|
|
39
39
|
<label class="label">Please provide additional details:</label>
|
|
40
|
-
<textarea class="input input-text input-
|
|
40
|
+
<textarea class="input input-text input-lg" placeholder="How could we have made your experience better?"></textarea>
|
|
41
41
|
</div>
|
|
42
42
|
</form>
|
|
43
43
|
</div>
|
|
@@ -8,7 +8,8 @@ description: Notes should be used to grab a user's attention along side of other
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
### Default `.note`
|
|
11
|
-
|
|
11
|
+
Used to display notes, tips, and other non-critical information.
|
|
12
|
+
{: .section-description }
|
|
12
13
|
|
|
13
14
|
{% note %}
|
|
14
15
|
<p markdown="1">
|
|
@@ -21,7 +22,8 @@ description: Notes should be used to grab a user's attention along side of other
|
|
|
21
22
|
---
|
|
22
23
|
|
|
23
24
|
### Info `.note-info`
|
|
24
|
-
|
|
25
|
+
Useful when drawing attention to non-critical information or actions we want the user to take.
|
|
26
|
+
{: .section-description }
|
|
25
27
|
|
|
26
28
|
{% note :info %}
|
|
27
29
|
<p markdown="1">
|
|
@@ -34,7 +36,8 @@ description: Notes should be used to grab a user's attention along side of other
|
|
|
34
36
|
---
|
|
35
37
|
|
|
36
38
|
### Success `.note-success`
|
|
37
|
-
|
|
39
|
+
Useful when drawing attention to interactions that have produced successful results.
|
|
40
|
+
{: .section-description }
|
|
38
41
|
|
|
39
42
|
{% note :success %}
|
|
40
43
|
<p markdown="1">
|
|
@@ -47,7 +50,8 @@ description: Notes should be used to grab a user's attention along side of other
|
|
|
47
50
|
---
|
|
48
51
|
|
|
49
52
|
### Warning `.note-warning`
|
|
50
|
-
|
|
53
|
+
Useful when drawing attention to critical information.
|
|
54
|
+
{: .section-description }
|
|
51
55
|
|
|
52
56
|
{% note :warning %}
|
|
53
57
|
<p markdown="1">
|
|
@@ -13,7 +13,8 @@ labels:
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
## Inline Radio-Button Lists
|
|
16
|
-
|
|
16
|
+
Useful when you want to group a series of radio buttons together on a single line.
|
|
17
|
+
{: .section-description }
|
|
17
18
|
|
|
18
19
|
<ul class="input-list margin-bottom-lg">
|
|
19
20
|
{% for label in page.labels %}
|
|
@@ -36,7 +37,8 @@ labels:
|
|
|
36
37
|
---
|
|
37
38
|
|
|
38
39
|
## Stacked Radio-Button Lists
|
|
39
|
-
|
|
40
|
+
Useful when you want to group a series of radio buttons together in a list (stacked by default).
|
|
41
|
+
{: .section-description }
|
|
40
42
|
|
|
41
43
|
<div class="col-container margin-bottom-sm margin-bottom-x1-lg">
|
|
42
44
|
<div class="col col-100 col-x1-50 margin-bottom-sm margin-bottom-x1-none">
|
|
@@ -77,7 +79,9 @@ labels:
|
|
|
77
79
|
---
|
|
78
80
|
|
|
79
81
|
## Inverse Radio-Button Lists
|
|
80
|
-
|
|
82
|
+
Useful when the radio buttons are displayed on a dark background.
|
|
83
|
+
{: .section-description }
|
|
84
|
+
|
|
81
85
|
<div class="box-secondary box-padding bg-gray-darker">
|
|
82
86
|
<ul class="input-list">
|
|
83
87
|
{% for label in page.labels %}
|
|
@@ -100,8 +104,33 @@ labels:
|
|
|
100
104
|
|
|
101
105
|
---
|
|
102
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
|
+
|
|
103
131
|
## Radio-Checkbox Button Lists
|
|
104
|
-
|
|
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 }
|
|
105
134
|
|
|
106
135
|
<ul class="input-list">
|
|
107
136
|
{% for label in page.labels %}
|