shipyard-framework 0.5.76 → 0.5.77

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +2 -0
  4. data/assets/icons/check.svg +3 -0
  5. data/assets/stylesheets/_shipyard.sass +3 -3
  6. data/assets/stylesheets/shipyard/_components.sass +22 -16
  7. data/assets/stylesheets/shipyard/_core.sass +6 -6
  8. data/assets/stylesheets/shipyard/_functions.sass +3 -2
  9. data/assets/stylesheets/shipyard/_mixins.sass +7 -7
  10. data/assets/stylesheets/shipyard/_utilities.sass +8 -8
  11. data/assets/stylesheets/shipyard/_variables.sass +6 -6
  12. data/assets/stylesheets/shipyard/components/_buttons.sass +4 -3
  13. data/assets/stylesheets/shipyard/components/_forms.sass +1 -128
  14. data/assets/stylesheets/shipyard/components/_horizontal-rules.sass +2 -0
  15. data/assets/stylesheets/shipyard/components/_icons.sass +4 -0
  16. data/assets/stylesheets/shipyard/components/_input-radio-checkbox.sass +18 -15
  17. data/assets/stylesheets/shipyard/components/_input-readonly.sass +4 -0
  18. data/assets/stylesheets/shipyard/components/_input-required.sass +21 -0
  19. data/assets/stylesheets/shipyard/components/_input-select.sass +54 -0
  20. data/assets/stylesheets/shipyard/components/_input-sizes.sass +4 -0
  21. data/assets/stylesheets/shipyard/components/_input-text.sass +39 -0
  22. data/assets/stylesheets/shipyard/components/_input.sass +23 -0
  23. data/assets/stylesheets/shipyard/functions/_text-color.sass +3 -0
  24. data/assets/stylesheets/shipyard/utilities/_border-radius.sass +24 -8
  25. data/assets/stylesheets/shipyard/utilities/_positioning.sass +5 -0
  26. data/assets/stylesheets/shipyard/utilities/_typography.sass +21 -6
  27. data/assets/stylesheets/shipyard/variables/_typography.sass +10 -8
  28. data/ci/sass_lint +39 -0
  29. data/lib/shipyard-framework/version.rb +1 -1
  30. data/styleguide/Gemfile.lock +1 -1
  31. data/styleguide/components/buttons.md +4 -0
  32. data/styleguide/components/checkboxes.md +39 -6
  33. data/styleguide/components/forms.md +11 -11
  34. data/styleguide/components/horizontal-rules.md +4 -2
  35. data/styleguide/components/icons.md +11 -5
  36. data/styleguide/components/modals/_modal.html +11 -11
  37. data/styleguide/components/modals/example-billing.html +4 -4
  38. data/styleguide/components/modals/example-survey.html +1 -1
  39. data/styleguide/components/notes.md +8 -4
  40. data/styleguide/components/radio-buttons.md +33 -4
  41. data/styleguide/utilities/border-radius.md +33 -4
  42. data/styleguide/utilities/grid.md +15 -8
  43. data/styleguide/utilities/index.md +1 -1
  44. data/styleguide/utilities/margin-padding.md +12 -6
  45. data/styleguide/utilities/position.md +19 -0
  46. data/styleguide/utilities/typography.md +4 -4
  47. metadata +12 -2
@@ -40,12 +40,41 @@ directions:
40
40
 
41
41
  ---
42
42
 
43
- ## Responsive Options `.rounded-{ breakpoint }-{ direction }`
44
- <p class="text-light margin-bottom-md">The examples below demonstrate the utility classes on each breakpoint.</p>
43
+ ## Sizes `.rounded-{ x1..x4 }-{ size }`
44
+ The examples below demonstrate the utility classes at each size.
45
+ {: .section-description }
46
+
47
+ <div class="col-container">
48
+ <div class="{{ page.col_classes }}">
49
+ <div class="{{ page.box_classes }} rounded">default</div>
50
+ </div>
51
+ <div class="{{ page.col_classes }}">
52
+ <div class="{{ page.box_classes }} rounded-sm">sm</div>
53
+ </div>
54
+ <div class="{{ page.col_classes }}">
55
+ <div class="{{ page.box_classes }} rounded-xs">xs</div>
56
+ </div>
57
+ <div class="{{ page.col_classes }}">
58
+ <div class="{{ page.box_classes }} rounded-0">0</div>
59
+ </div>
60
+ </div>
61
+
62
+ ```css
63
+ .rounded { border-radius: 5px }
64
+ .rounded-sm { border-radius: 3px }
65
+ .rounded-xs { border-radius: 2px }
66
+ .rounded-0 { border-radius: 0 }
67
+ ```
68
+
69
+ ---
70
+
71
+ ## Responsive Options `.rounded-{ x1..x4 }-{ direction }`
72
+ The examples below demonstrate the utility classes on each breakpoint.
73
+ {: .section-description }
45
74
 
46
75
  ```html
47
76
  {% for direction in page.directions -%}
48
- <div class="{{ 'rounded' | component_css_class: direction.modifier }}"><!-- {{ direction.label }} --></div>
77
+ <div class="{% if direction.modifier != 0 and direction.modifier != none %}rounded {% endif %}{{ 'rounded' | component_css_class: direction.modifier }}"><!-- {{ direction.label }} --></div>
49
78
  {% endfor -%}
50
79
  ```
51
80
 
@@ -54,7 +83,7 @@ directions:
54
83
  <div class="col-container">
55
84
  {% for direction in page.directions %}
56
85
  <div class="{{ page.col_classes }}">
57
- <div class="{{ page.box_classes }} {{ 'rounded' | component_css_class: breakpoint.modifier, direction.modifier }}" tooltip="{{ '.rounded' | component_css_class: breakpoint.modifier, direction.modifier }}">
86
+ <div class="{{ page.box_classes }} rounded {{ 'rounded' | component_css_class: breakpoint.modifier, direction.modifier }}" tooltip="{{ '.rounded' | component_css_class: breakpoint.modifier, direction.modifier }}">
58
87
  {{ direction.label }}
59
88
  </div>
60
89
  </div>
@@ -2,7 +2,7 @@
2
2
  title: Shipyard Grid
3
3
  description: The Shipyard grid is a percentage-based, flexbox grid and is entirely responsive. Each class needs the foundational `.col` class in order to function properly, and also should be contained inside the `.col-container` as well.
4
4
  container_classes: col-container margin-top-xs margin-top-x1-sm margin-top-x2-md margin-bottom-xs margin-bottom-x1-sm margin-bottom-x2-md
5
- box_classes: utilities-grid-box col-center box-secondary text-light text-sm strong align-center
5
+ box_classes: utilities-grid-box col-center box-secondary text-lighter text-sm strong align-center
6
6
  example_flex_columns: [10,20,25,33,50]
7
7
  example_sizes: [5,10,15,20,25,30,33,35,40,45,50,55,60,65,66,70,75,80,85,90,95,100]
8
8
  example_offsets: [5,10,15,20,25,30,35,40,45,50,55,60,65,70,75]
@@ -13,7 +13,8 @@ example_offsets: [5,10,15,20,25,30,35,40,45,50,55,60,65,70,75]
13
13
  ---
14
14
 
15
15
  ### Flexible Columns `.col`
16
- <p class="text-light margin-bottom-md">By default, the flexbox-based grid will automatically size each column inside the container.</p>
16
+ By default, the flexbox-based grid will automatically size each column inside the container.
17
+ {: .section-description }
17
18
 
18
19
  {% for example in page.example_flex_columns %}
19
20
  <div class="{{ page.container_classes }}">
@@ -45,7 +46,8 @@ example_offsets: [5,10,15,20,25,30,35,40,45,50,55,60,65,70,75]
45
46
  ---
46
47
 
47
48
  ### Column Sizes `.col-{ n }`
48
- <p class="text-light margin-bottom-md" markdown="1">The column sizes are percentage-based and available in any size from `5-100` in increments of 5.</p>
49
+ The column sizes are percentage-based and available in any size from `5-100` in increments of 5.
50
+ {: .section-description }
49
51
 
50
52
  {% for example in page.example_sizes %}
51
53
  <div class="{{ page.container_classes }}">
@@ -76,7 +78,8 @@ example_offsets: [5,10,15,20,25,30,35,40,45,50,55,60,65,70,75]
76
78
  ---
77
79
 
78
80
  ### Offset Columns `.col-offset-{ n }`
79
- <p class="text-light margin-bottom-md">Useful when you need to push columns to the right to fill some empty space.</p>
81
+ Useful when you need to push columns to the right to fill some empty space.
82
+ {: .section-description }
80
83
 
81
84
  {% assign example_offsets = page.example_offsets | reverse %}
82
85
  {% for i in example_offsets %}
@@ -101,7 +104,8 @@ example_offsets: [5,10,15,20,25,30,35,40,45,50,55,60,65,70,75]
101
104
  ---
102
105
 
103
106
  ### Responsive Columns `.col-{ x1..x4 }-{ n }`
104
- <p class="text-light margin-bottom-md" markdown="1">Useful when you want to build a grid that works for any size of screen.</p>
107
+ Useful when you want to build a grid that works for any size of screen.
108
+ {: .section-description }
105
109
 
106
110
  <div class="{{ page.container_classes }}">
107
111
  {% for i in (1..7) %}
@@ -131,7 +135,8 @@ example_offsets: [5,10,15,20,25,30,35,40,45,50,55,60,65,70,75]
131
135
  ---
132
136
 
133
137
  ### Take-Up-The-Rest Columns `.col-container-nowrap`
134
- <p class="text-light margin-bottom-md" markdown="1">This type of layout is useful in all kinds of scenarios, especially when you have the auto-sized column contains some kind of call-to-action.</p>
138
+ This type of layout is useful in all kinds of scenarios, especially when you have the auto-sized column contains some kind of call-to-action.
139
+ {: .section-description }
135
140
 
136
141
  <div class="{{ page.container_classes | replace: 'col-container', 'col-container-nowrap' }}">
137
142
  <div class="col col-100">
@@ -156,7 +161,8 @@ example_offsets: [5,10,15,20,25,30,35,40,45,50,55,60,65,70,75]
156
161
  ---
157
162
 
158
163
  ### Nested Columns
159
- <p class="text-light margin-bottom-md" markdown="1">Nested grids can be tricky to build and somewhat fragile by nature. For the best results, pay special attention to how you want each column to respond at various screen sizes and test each breakpoint thoroughly.</p>
164
+ Nested grids can be tricky to build and somewhat fragile by nature. For the best results, pay special attention to how you want each column to respond at various screen sizes and test each breakpoint thoroughly.
165
+ {: .section-description }
160
166
 
161
167
  <div class="{{ page.container_classes }}">
162
168
  <div class="col col-40 display-flex">
@@ -191,7 +197,8 @@ example_offsets: [5,10,15,20,25,30,35,40,45,50,55,60,65,70,75]
191
197
  ---
192
198
 
193
199
  ### Reversible Columns `.flex-{ x1..x4 }-{ col | col-reverse | row | row-reverse }`
194
- <p class="text-light margin-bottom-md" markdown="1">Useful when the flow of the content should be different at a certain breakpoint.</p>
200
+ Useful when the flow of the content should be different at a certain breakpoint.
201
+ {: .section-description }
195
202
 
196
203
  <div class="{{ page.container_classes }}">
197
204
  <div class="col flex-col flex-x2-col-reverse">
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Shipyard Utilities
3
3
  description: The utility classes below can be applied to any component to override or extend the base styles of the component.
4
- utilities: [Responsive, Grid, Typography, Margin & Padding, Colors, Border Radius]
4
+ utilities: [Responsive, Grid, Typography, Margin & Padding, Colors, Border Radius, Position]
5
5
  ---
6
6
 
7
7
  {% include page-heading.html page=page %}
@@ -11,7 +11,8 @@ directions: [left,right]
11
11
  ---
12
12
 
13
13
  ### Margin All Sides `.margin-{ x1..x4 }-{ xxs..xxl }`
14
- <p class="text-light margin-bottom-md">The examples below demonstrate how much margin will be added to the top and bottom of any element the classes is applied to.</p>
14
+ The examples below demonstrate how much margin will be added to the top and bottom of any element the classes is applied to.
15
+ {: .section-description }
15
16
 
16
17
  <div class="col-container">
17
18
  <div class="col">
@@ -27,7 +28,8 @@ directions: [left,right]
27
28
  ---
28
29
 
29
30
  ### Margin Top & Bottom `.margin-{ top, bottom }-{ x1..x4 }-{ xxs..xxl }`
30
- <p class="text-light margin-bottom-md">The examples below demonstrate how much margin will be added to the top and bottom of any element the classes is applied to.</p>
31
+ The examples below demonstrate how much margin will be added to the top and bottom of any element the classes is applied to.
32
+ {: .section-description }
31
33
 
32
34
  <div class="col-container">
33
35
  {% for option in page.options %}
@@ -41,7 +43,8 @@ directions: [left,right]
41
43
  ---
42
44
 
43
45
  ### Margin Left & Right `.margin-{ left, right }-{ x1..x4 }-{ xxs..xxl }`
44
- <p class="text-light margin-bottom-md">The examples below demonstrate how much margin will be added to the left and right sides of any element the classes is applied to.</p>
46
+ The examples below demonstrate how much margin will be added to the left and right sides of any element the classes is applied to.
47
+ {: .section-description }
45
48
 
46
49
  <div class="col-container">
47
50
  {% for direction in page.directions %}
@@ -58,7 +61,8 @@ directions: [left,right]
58
61
  ---
59
62
 
60
63
  ### Padding All Sides `.padding-{ x1..x4 }-{ xxs..xxl }`
61
- <p class="text-light margin-bottom-md">The examples below demonstrate how much padding will be added to the top and bottom of any element the classes is applied to.</p>
64
+ The examples below demonstrate how much padding will be added to the top and bottom of any element the classes is applied to.
65
+ {: .section-description }
62
66
 
63
67
  <div class="col-container">
64
68
  {% for option in page.options %}
@@ -71,7 +75,8 @@ directions: [left,right]
71
75
  ---
72
76
 
73
77
  ### Padding Top & Bottom `.padding-{ top, bottom }-{ x1..x4 }-{ xxs..xxl }`
74
- <p class="text-light margin-bottom-md">The examples below demonstrate how much padding will be added to the top and bottom of any element the classes is applied to.</p>
78
+ The examples below demonstrate how much padding will be added to the top and bottom of any element the classes is applied to.
79
+ {: .section-description }
75
80
 
76
81
  <div class="col-container">
77
82
  {% for option in page.options %}
@@ -85,7 +90,8 @@ directions: [left,right]
85
90
  ---
86
91
 
87
92
  ### Padding Left & Right `.padding-{ left, right }-{ x1..x4 }-{ xxs..xxl }`
88
- <p class="text-light margin-bottom-md">The examples below demonstrate how much padding will be added to the left and right sides of any element the classes is applied to</p>
93
+ The examples below demonstrate how much padding will be added to the left and right sides of any element the classes is applied to
94
+ {: .section-description }
89
95
 
90
96
  <div class="col-container">
91
97
  {% for direction in page.directions %}
@@ -0,0 +1,19 @@
1
+ ---
2
+ title: Position Utilities
3
+ description: Shipyard's position utilities are helpful to override the default styles of component.
4
+ position_utilities: [static, relative, absolute, fixed]
5
+ ---
6
+
7
+ {% include page-heading.html page=page %}
8
+
9
+ ---
10
+
11
+ ## Position Utilities `.{ position }-{ x1..x4 }`
12
+ Useful when you need to overwrite the default styles of an element or component.
13
+ {: .section-description }
14
+
15
+ ```css
16
+ {% for utility in page.position_utilities -%}
17
+ .{{ utility }} { position: {{ utility }} }
18
+ {% endfor -%}
19
+ ```
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  title: Shipyard Typography
3
3
  text_sizes: [xxs, xs, sm, md, lg, xl, xxl, xxxl]
4
- text_shades: [normal, light, lighter, lightest]
4
+ text_shades: [darkest, darker, dark, normal, light, lighter, lightest]
5
5
  ---
6
6
 
7
7
  {% include page-heading.html page=page %}
8
8
 
9
- <hr />
9
+ ---
10
10
 
11
11
  <div class="col-container">
12
12
  <div class="col">
@@ -47,7 +47,7 @@ text_shades: [normal, light, lighter, lightest]
47
47
  <div class="col">
48
48
  <h3>Text Shades</h3>
49
49
  <div class="box box-padding margin-top-xs">
50
- <ul class="list strong">
50
+ <ul class="list medium">
51
51
  {% for shade in page.text_shades %}
52
52
  <li class="text-{{ shade }}">.text-{{ shade }}</li>
53
53
  {% endfor %}
@@ -57,7 +57,7 @@ text_shades: [normal, light, lighter, lightest]
57
57
  <div class="col">
58
58
  <h3>Inverse Text Shades</h3>
59
59
  <div class="box-secondary box-padding bg-gray-dark margin-top-xs">
60
- <ul class="list strong">
60
+ <ul class="list medium">
61
61
  {% for shade in page.text_shades %}
62
62
  <li class="text-inverse{{ '-' | append: shade | replace: '-normal', '' }}">
63
63
  .text-inverse{{ '-' | append: shade | replace: '-normal', '' }}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipyard-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.76
4
+ version: 0.5.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codeship
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-28 00:00:00.000000000 Z
11
+ date: 2017-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -173,6 +173,7 @@ files:
173
173
  - app/views/shipyard/_alerts.slim
174
174
  - assets/icons/arrows/arrow-down.svg
175
175
  - assets/icons/card.svg
176
+ - assets/icons/check.svg
176
177
  - assets/icons/gear.svg
177
178
  - assets/icons/lock.svg
178
179
  - assets/icons/logos/bitbucket-color.svg
@@ -227,7 +228,13 @@ files:
227
228
  - assets/stylesheets/shipyard/components/_horizontal-rules.sass
228
229
  - assets/stylesheets/shipyard/components/_icons.sass
229
230
  - assets/stylesheets/shipyard/components/_input-radio-checkbox.sass
231
+ - assets/stylesheets/shipyard/components/_input-readonly.sass
232
+ - assets/stylesheets/shipyard/components/_input-required.sass
233
+ - assets/stylesheets/shipyard/components/_input-select.sass
234
+ - assets/stylesheets/shipyard/components/_input-sizes.sass
230
235
  - assets/stylesheets/shipyard/components/_input-switch.sass
236
+ - assets/stylesheets/shipyard/components/_input-text.sass
237
+ - assets/stylesheets/shipyard/components/_input.sass
231
238
  - assets/stylesheets/shipyard/components/_modals.sass
232
239
  - assets/stylesheets/shipyard/components/_notes.sass
233
240
  - assets/stylesheets/shipyard/components/_tables.sass
@@ -237,6 +244,7 @@ files:
237
244
  - assets/stylesheets/shipyard/core/_typography.sass
238
245
  - assets/stylesheets/shipyard/functions/_color.sass
239
246
  - assets/stylesheets/shipyard/functions/_map-merge-options.sass
247
+ - assets/stylesheets/shipyard/functions/_text-color.sass
240
248
  - assets/stylesheets/shipyard/mixins/_box-model.sass
241
249
  - assets/stylesheets/shipyard/mixins/_components.sass
242
250
  - assets/stylesheets/shipyard/mixins/_icons.sass
@@ -262,6 +270,7 @@ files:
262
270
  - ci/deploy
263
271
  - ci/jekyll
264
272
  - ci/percy
273
+ - ci/sass_lint
265
274
  - ci/setup
266
275
  - lib/shipyard-framework.rb
267
276
  - lib/shipyard-framework/helpers/alert_helper.rb
@@ -342,6 +351,7 @@ files:
342
351
  - styleguide/utilities/grid.md
343
352
  - styleguide/utilities/index.md
344
353
  - styleguide/utilities/margin-padding.md
354
+ - styleguide/utilities/position.md
345
355
  - styleguide/utilities/responsive.md
346
356
  - styleguide/utilities/typography.md
347
357
  homepage: https://github.com/codeship/shipyard