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.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/assets/javascripts/{shipyard.es6 → shipyard.js} +0 -0
  3. data/assets/javascripts/shipyard/{accordion-trigger.es6 → accordion-trigger.js} +0 -0
  4. data/assets/javascripts/shipyard/{accordion.es6 → accordion.js} +0 -0
  5. data/assets/javascripts/shipyard/{alert-timer.es6 → alert-timer.js} +0 -0
  6. data/assets/javascripts/shipyard/{alert.es6 → alert.js} +0 -0
  7. data/assets/javascripts/shipyard/{core.es6 → core.js} +0 -0
  8. data/assets/javascripts/shipyard/{hamburger.es6 → hamburger.js} +0 -0
  9. data/assets/javascripts/shipyard/{modal-trigger.es6 → modal-trigger.js} +0 -0
  10. data/assets/javascripts/shipyard/{modal.es6 → modal.js} +0 -0
  11. data/assets/javascripts/shipyard/{scroll.es6 → scroll.js} +0 -0
  12. data/assets/stylesheets/shipyard/_functions.sass +1 -0
  13. data/assets/stylesheets/shipyard/components/_tooltips.sass +140 -40
  14. data/assets/stylesheets/shipyard/core/_reset.sass +5 -1
  15. data/assets/stylesheets/shipyard/functions/_opposite-direction.sass +9 -0
  16. data/assets/stylesheets/shipyard/utilities/_typography.sass +2 -1
  17. data/lib/shipyard-framework/version.rb +1 -1
  18. metadata +19 -114
  19. data/.gitignore +0 -13
  20. data/.rspec +0 -3
  21. data/.ruby-version +0 -1
  22. data/.travis.yml +0 -40
  23. data/Brewfile +0 -4
  24. data/CODE_OF_CONDUCT.md +0 -74
  25. data/Gemfile +0 -3
  26. data/LICENSE.txt +0 -21
  27. data/README.md +0 -46
  28. data/Rakefile +0 -16
  29. data/ci/build.rb +0 -5
  30. data/ci/deploy +0 -31
  31. data/ci/jekyll +0 -16
  32. data/ci/percy +0 -16
  33. data/ci/sass_lint +0 -47
  34. data/ci/setup +0 -6
  35. data/shipyard.gemspec +0 -28
  36. data/spec/helpers/alert_helper_spec.rb +0 -27
  37. data/spec/helpers/box_helper_spec.rb +0 -27
  38. data/spec/helpers/button_helper_spec.rb +0 -37
  39. data/spec/helpers/form_helper_spec.rb +0 -29
  40. data/spec/helpers/icon_helper_spec.rb +0 -21
  41. data/spec/helpers/note_helper_spec.rb +0 -19
  42. data/spec/shipyard_spec.rb +0 -7
  43. data/spec/spec_helper.rb +0 -104
  44. data/styleguide/.gitignore +0 -3
  45. data/styleguide/.nojekyll +0 -0
  46. data/styleguide/.ruby-version +0 -1
  47. data/styleguide/Gemfile +0 -9
  48. data/styleguide/Gemfile.lock +0 -125
  49. data/styleguide/_assets/css/application.sass +0 -3
  50. data/styleguide/_assets/css/fonts.sass +0 -2
  51. data/styleguide/_assets/css/layout.sass +0 -10
  52. data/styleguide/_assets/css/syntax.css +0 -209
  53. data/styleguide/_assets/css/vendor.sass +0 -4
  54. data/styleguide/_assets/css/views.sass +0 -103
  55. data/styleguide/_assets/img/arrows/down.svg +0 -3
  56. data/styleguide/_assets/img/checkmark.svg +0 -3
  57. data/styleguide/_assets/js/application.es6 +0 -6
  58. data/styleguide/_assets/js/views/components/alert-trigger.es6 +0 -20
  59. data/styleguide/_assets/js/views/utilities/colors.es6 +0 -14
  60. data/styleguide/_config.yml +0 -67
  61. data/styleguide/_data/breakpoints.yml +0 -15
  62. data/styleguide/_includes/css-stats.html +0 -14
  63. data/styleguide/_includes/page-heading.html +0 -4
  64. data/styleguide/_layouts/application.html +0 -45
  65. data/styleguide/_plugins/color_css_class.rb +0 -13
  66. data/styleguide/_plugins/component_css_class.rb +0 -9
  67. data/styleguide/_plugins/css_declarations.rb +0 -16
  68. data/styleguide/_plugins/css_selectors.rb +0 -16
  69. data/styleguide/_plugins/css_size.rb +0 -20
  70. data/styleguide/_plugins/human_size_filter.rb +0 -12
  71. data/styleguide/_plugins/icon_item.rb +0 -28
  72. data/styleguide/_plugins/opacity_css_class.rb +0 -12
  73. data/styleguide/_plugins/sass_generator.rb +0 -55
  74. data/styleguide/_plugins/sass_output.rb +0 -24
  75. data/styleguide/components/alerts.md +0 -107
  76. data/styleguide/components/boxes.md +0 -97
  77. data/styleguide/components/buttons.md +0 -192
  78. data/styleguide/components/checkboxes.md +0 -281
  79. data/styleguide/components/code.html +0 -49
  80. data/styleguide/components/empty-states.html +0 -12
  81. data/styleguide/components/forms.md +0 -151
  82. data/styleguide/components/horizontal-rules.md +0 -82
  83. data/styleguide/components/icons.md +0 -129
  84. data/styleguide/components/index.md +0 -18
  85. data/styleguide/components/modals/_modal.html +0 -100
  86. data/styleguide/components/modals/example-billing.html +0 -80
  87. data/styleguide/components/modals/example-downgrade.html +0 -33
  88. data/styleguide/components/modals/example-small.html +0 -19
  89. data/styleguide/components/modals/example-survey.html +0 -52
  90. data/styleguide/components/modals/example-tall.html +0 -6
  91. data/styleguide/components/modals/index.md +0 -41
  92. data/styleguide/components/notes.md +0 -67
  93. data/styleguide/components/radio-buttons.md +0 -195
  94. data/styleguide/components/statuses.md +0 -324
  95. data/styleguide/components/tables.md +0 -34
  96. data/styleguide/components/tooltips.md +0 -16
  97. data/styleguide/index.md +0 -27
  98. data/styleguide/stats.md +0 -49
  99. data/styleguide/utilities/accordion.md +0 -55
  100. data/styleguide/utilities/border-radius.md +0 -104
  101. data/styleguide/utilities/colors.md +0 -45
  102. data/styleguide/utilities/grid.md +0 -256
  103. data/styleguide/utilities/index.md +0 -19
  104. data/styleguide/utilities/margin-padding.md +0 -124
  105. data/styleguide/utilities/opacity.md +0 -28
  106. data/styleguide/utilities/position.md +0 -24
  107. data/styleguide/utilities/responsive.md +0 -20
  108. data/styleguide/utilities/typography.md +0 -74
@@ -1,19 +0,0 @@
1
- ---
2
- title: Shipyard Utilities
3
- description: The utility classes below can be applied to any component to override or extend the base styles of the component.
4
- utilities: [Accordion, Responsive, Grid, Typography, Margin & Padding, Colors, Border Radius, Position, Opacity]
5
- ---
6
-
7
- {% include page-heading.html page=page %}
8
-
9
- ---
10
-
11
- <ul class="col-container">
12
- {% for utility in page.utilities %}
13
- <li class="mb-10 mb-x1-15 mb-x2-30 col col-100 col-x1-33 col-x2-25">
14
- <a href="{{ site.baseurl }}/utilities/{{ utility | replace: ' ', '-' | replace: '&', '' | replace: '--', '-' | downcase }}" class="box-link box-padding align-center text-md text-x1-lg text-x2-xl">
15
- {{ utility }}
16
- </a>
17
- </li>
18
- {% endfor %}
19
- </ul>
@@ -1,124 +0,0 @@
1
- ---
2
- title: Margin & Padding Utilities
3
- description: Shipyard's margin & padding utilities are useful for overriding the default margin and padding in any component, and can be extremely useful in a wide array of situations.
4
- sass_file: shipyard/utilities/_margin-padding
5
- box_classes: utilities-margin-padding-box box-secondary btn-sm medium text-light
6
- options: [0,5,10,15,20,30,40]
7
- directions:
8
- -
9
- name: left
10
- css: l
11
- -
12
- name: right
13
- css: r
14
- ---
15
-
16
- {% include page-heading.html page=page %}
17
-
18
- ---
19
-
20
- ### Margin All Sides `.m-{ x1..x4 }-{ 0..40 }`
21
- The examples below demonstrate how much margin will be added to the top and bottom of any element the classes is applied to.
22
- {: .section-description }
23
-
24
- <div class="col-container">
25
- <div class="col">
26
- <div class="align-center">
27
- {% for option in page.options %}
28
- <div class="{{ page.box_classes }} m-{{ option }}">.m-{{ option }}</div>
29
- {% endfor %}
30
- <div class="{{ page.box_classes }} col-55 col-x1-75 col-x2-85 m-auto">.m-auto</div>
31
- </div>
32
- </div>
33
- </div>
34
-
35
- ---
36
-
37
- ### Margin Top & Bottom `.m{ t, b }-{ x1..x4 }-{ 0..40 }`
38
- The examples below demonstrate how much margin will be added to the top and bottom of any element the classes is applied to.
39
- {: .section-description }
40
-
41
- <div class="col-container">
42
- {% for option in page.options %}
43
- <div class="col align-center">
44
- <div class="{{ page.box_classes }} mb-{{ option }}">.mb-{{ option }}</div>
45
- <div class="{{ page.box_classes }} mt-{{ option }}">.mt-{{ option }}</div>
46
- </div>
47
- {% endfor %}
48
- </div>
49
-
50
- ---
51
-
52
- ### Margin Left & Right `.m{ l, r }-{ x1..x4 }-{ 0..40 }`
53
- The examples below demonstrate how much margin will be added to the left and right sides of any element the classes is applied to.
54
- {: .section-description }
55
-
56
- <div class="col-container">
57
- {% for direction in page.directions %}
58
- <div class="col">
59
- <div class="align-{{ direction.name }}">
60
- {% for option in page.options %}
61
- <div class="{{ page.box_classes }} m{{ direction.css }}-{{ option }} mb-20">.m{{ direction.css }}-{{ option }}</div>
62
- {% endfor %}
63
- </div>
64
- </div>
65
- {% endfor %}
66
- </div>
67
-
68
- ---
69
-
70
- ### Padding All Sides `.p-{ x1..x4 }-{ 0..40 }`
71
- The examples below demonstrate how much padding will be added to the top and bottom of any element the classes is applied to.
72
- {: .section-description }
73
-
74
- <div class="col-container">
75
- {% for option in page.options %}
76
- <div class="col align-center">
77
- <div class="box-secondary medium text-light text-sm p-{{ option }} mb-10">.p-{{ option }}</div>
78
- </div>
79
- {% endfor %}
80
- </div>
81
-
82
- ---
83
-
84
- ### Padding Top & Bottom `.p{ t, b }-{ x1..x4 }-{ 0..40 }`
85
- The examples below demonstrate how much padding will be added to the top and bottom of any element the classes is applied to.
86
- {: .section-description }
87
-
88
- <div class="col-container">
89
- {% for option in page.options %}
90
- <div class="col align-center">
91
- <div class="box-secondary medium text-light text-sm pb-{{ option }} mb-10">.pb-{{ option }}</div>
92
- <div class="box-secondary medium text-light text-sm pt-{{ option }}">.pt-{{ option }}</div>
93
- </div>
94
- {% endfor %}
95
- </div>
96
-
97
- ---
98
-
99
- ### Padding Left & Right `.p{ l, r }-{ x1..x4 }-{ 0..40 }`
100
- The examples below demonstrate how much padding will be added to the left and right sides of any element the classes is applied to
101
- {: .section-description }
102
-
103
- <div class="col-container">
104
- {% for direction in page.directions %}
105
- <div class="col">
106
- <div class="align-{{ direction.name }}">
107
- {% for option in page.options %}
108
- <div class="{{ page.box_classes }} p{{ direction.css }}-{{ option }} mb-20">.p{{ direction.css }}-{{ option }}</div>
109
- {% endfor %}
110
- </div>
111
- </div>
112
- {% endfor %}
113
- </div>
114
-
115
- ---
116
-
117
- ### Component CSS
118
- ```css
119
- {% sass_output -%}
120
- ```
121
-
122
- ---
123
-
124
- {% include css-stats.html %}
@@ -1,28 +0,0 @@
1
- ---
2
- title: Opacity Utilities
3
- description: Shipyard's opacity utilities are useful when you need to overwrite the default opacity of a component.
4
- options: [0,05,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95]
5
- sass_file: shipyard/utilities/_opacity
6
- ---
7
-
8
- {% include page-heading.html page=page %}
9
-
10
- ---
11
-
12
- <ul class="col-container strong align-center">
13
- {% for option in page.options reversed -%}
14
- <li class="col col-20 mb-15">
15
- <div class="bg-gray-dark white rounded-sm p-10 o-{{ option | opacity_css_class }}">
16
- .{{ option | opacity_css_class }}
17
- </div>
18
- </li>
19
- {% endfor -%}
20
- </ul>
21
-
22
- ```css
23
- {% sass_output -%}
24
- ```
25
-
26
- ---
27
-
28
- {% include css-stats.html %}
@@ -1,24 +0,0 @@
1
- ---
2
- title: Position Utilities
3
- description: Shipyard's position utilities are helpful to override the default styles of component.
4
- sass_file: shipyard/utilities/_position
5
- position_utilities: [static, relative, absolute, fixed]
6
- ---
7
-
8
- {% include page-heading.html page=page %}
9
-
10
- ---
11
-
12
- ## Position Utilities `.{ position }-{ x1..x4 }`
13
- Useful when you need to overwrite the default styles of an element or component.
14
- {: .section-description }
15
-
16
- ```css
17
- {% for utility in page.position_utilities -%}
18
- .{{ utility }} { position: {{ utility }} }
19
- {% endfor -%}
20
- ```
21
-
22
- ---
23
-
24
- {% include css-stats.html %}
@@ -1,20 +0,0 @@
1
- ---
2
- title: Mobile-first Methodology
3
- description: Shipyard is a CSS Framework is built from mobile-first approach to front-end development. This means that by default, a class applies to all screen sizes unless otherwise specifed. In order to make something truly responsive, you need to first think about how you want it to look on all screen sizes, and then using the modifiers `(x1-x4)` to define how the style will change as the screen size grows.
4
- ---
5
-
6
- {% include page-heading.html page=page %}
7
-
8
- ---
9
-
10
- ## Responsive Demo
11
-
12
- <div class="box-secondary box-padding align-center">
13
- <button class="btn btn-xs btn-x1-sm btn-x2-md btn-x3-lg btn-x4-xl">
14
- <span class="display-inline display-x1-none">All Screens (.btn-xs)</span>
15
- <span class="display-none display-x1-inline display-x2-none">Tablets &amp; Up (.btn-x1-sm)</span>
16
- <span class="display-none display-x2-inline display-x3-none">Small Laptops &amp; Up (.btn-x2-md)</span>
17
- <span class="display-none display-x3-inline display-x4-none">Wide Laptos &amp; Up (.btn-x3-lg)</span>
18
- <span class="display-none display-x4-inline">Large Monitors &amp; Up (.btn-x4-xl)</span>
19
- </button>
20
- </div>
@@ -1,74 +0,0 @@
1
- ---
2
- title: Shipyard Typography
3
- sass_file: shipyard/utilities/_typography
4
- text_sizes: [xxs, xs, sm, md, lg, xl, xxl, xxxl]
5
- text_shades: [darkest, darker, dark, normal, light, lighter, lightest]
6
- ---
7
-
8
- {% include page-heading.html page=page %}
9
-
10
- ---
11
-
12
- <div class="col-container">
13
- <div class="col">
14
- <h1>h1. Heading</h1>
15
- <h2>h2. Heading</h2>
16
- <h3>h3. Heading</h3>
17
- <h4>h4. Heading</h4>
18
- <h5>h5. Heading</h5>
19
- <h6>h6. Heading</h6>
20
- </div>
21
- <div class="col">
22
- <h3>Text Sizes</h3>
23
- {% for size in page.text_sizes %}
24
- <p class="text-{{ size }}">.text-{{ size }}</p>
25
- {% endfor %}
26
- </div>
27
- <div class="col">
28
- <h3>Font Weights</h3>
29
- <ul>
30
- <li class="normal">.normal</li>
31
- <li class="medium">.medium</li>
32
- <li class="strong">.strong</li>
33
- </ul>
34
- </div>
35
- <div class="col">
36
- <h3>Text Alignment</h3>
37
- <ul>
38
- <li class="align-left">.align-left</li>
39
- <li class="align-center">.align-center</li>
40
- <li class="align-right">.align-right</li>
41
- </ul>
42
- </div>
43
- </div>
44
-
45
- ---
46
-
47
- <div class="col-container">
48
- <div class="col">
49
- <h3>Text Shades</h3>
50
- <div class="box box-padding mt-10">
51
- <ul class="list medium">
52
- {% for shade in page.text_shades %}
53
- <li class="text-{{ shade }}">.text-{{ shade }}</li>
54
- {% endfor %}
55
- </ul>
56
- </div>
57
- </div>
58
- <div class="col">
59
- <h3>Inverse Text Shades</h3>
60
- <div class="box-secondary box-padding bg-gray-dark mt-10">
61
- <ul class="list medium">
62
- {% for shade in page.text_shades %}
63
- <li class="text-inverse{{ '-' | append: shade | replace: '-normal', '' }}">
64
- .text-inverse{{ '-' | append: shade | replace: '-normal', '' }}
65
- </li>
66
- {% endfor %}
67
- </ul>
68
- </div>
69
- </div>
70
- </div>
71
-
72
- ---
73
-
74
- {% include css-stats.html %}