shipyard-framework 0.5.63 → 0.5.64
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/assets/stylesheets/shipyard/utilities/_grid.sass +4 -4
- data/assets/stylesheets/shipyard/variables/_color_utilities.sass +4 -0
- data/assets/stylesheets/shipyard/variables/_colors.scss +6 -0
- data/lib/shipyard-framework/helpers/icon_helper.rb +4 -10
- data/lib/shipyard-framework/version.rb +1 -1
- data/styleguide/Gemfile.lock +1 -1
- data/styleguide/_assets/css/views.sass +5 -9
- data/styleguide/_plugins/color_css_class.rb +13 -0
- data/styleguide/utilities/colors.md +23 -8
- data/styleguide/utilities/grid.md +10 -8
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b899dcde9ba640ac775ed7d6e3bdd287802068a498ba6b566d684c89d2a88a7
|
4
|
+
data.tar.gz: 8f3e60766d63e63124f42d8c6b4af63ba77f7ea07d4a8ca90dcb45a855572792
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 669beafa814739847069c86a579b647b4623661731bd2bff294d5656187f0a19067db26d2f6f570732af819114c1c8f9331c25811e415f13f007d042ff9790ac
|
7
|
+
data.tar.gz: 3cc46c5f0a32efddfaa19ed2a0f0dc5dee3e8a4a13728d15ddc9190ea87c510b41986f9db19246df8ef87c17e6b6d6b2c166482a2791afb6dc6b262032503b39
|
@@ -1,8 +1,8 @@
|
|
1
|
-
$widths: (5, 10, 15, 20, 25, 30, 33, 35, 40, 45, 50, 55, 60, 65, 66, 70, 75, 80, 85, 90, 95, 100)
|
1
|
+
$widths: (0, 5, 10, 15, 20, 25, 30, 33, 35, 40, 45, 50, 55, 60, 65, 66, 70, 75, 80, 85, 90, 95, 100)
|
2
2
|
|
3
3
|
@mixin column-style($property, $width)
|
4
|
-
@if $width ==
|
5
|
-
|
4
|
+
@if $width == 0 and $property == max-width
|
5
|
+
max-width: none
|
6
6
|
@else if $width == 66
|
7
7
|
#{$property}: 66.6666666666%
|
8
8
|
@else if $width == 33
|
@@ -43,7 +43,7 @@ $widths: (5, 10, 15, 20, 25, 30, 33, 35, 40, 45, 50, 55, 60, 65, 66, 70, 75, 80,
|
|
43
43
|
flex-wrap: wrap
|
44
44
|
+responsive-margin(left right, $divisor: -2)
|
45
45
|
+all-media-sizes
|
46
|
-
&-nowrap
|
46
|
+
&-nowrap
|
47
47
|
display: flex
|
48
48
|
flex-wrap: nowrap
|
49
49
|
+responsive-margin(left right, $divisor: -2)
|
@@ -4,16 +4,6 @@ module Shipyard
|
|
4
4
|
include ActionView::Helpers::TagHelper
|
5
5
|
|
6
6
|
def icon(name, options={})
|
7
|
-
process_icon(name, options)
|
8
|
-
end
|
9
|
-
|
10
|
-
def get_icon(name, options={})
|
11
|
-
process_icon(name, options)
|
12
|
-
end
|
13
|
-
|
14
|
-
private
|
15
|
-
|
16
|
-
def process_icon(name, options={})
|
17
7
|
if name.is_a? Symbol
|
18
8
|
svg = find_icon(symbol: name)
|
19
9
|
svg_use_tag svg, options
|
@@ -23,6 +13,10 @@ module Shipyard
|
|
23
13
|
end
|
24
14
|
end
|
25
15
|
|
16
|
+
alias_method :get_icon, :icon
|
17
|
+
|
18
|
+
private
|
19
|
+
|
26
20
|
def find_icon(hash)
|
27
21
|
icon = $icons.icons.detect { |i| i[hash.keys.first] == hash.values.first }
|
28
22
|
raise_error(hash.values.first) unless icon
|
data/styleguide/Gemfile.lock
CHANGED
@@ -14,16 +14,10 @@ hr
|
|
14
14
|
// Utilities: Colors
|
15
15
|
+component('shade')
|
16
16
|
&-list
|
17
|
-
|
18
|
-
|
17
|
+
+respond-to(margin-left, (x0: -5px, x1: -10px))
|
18
|
+
+respond-to(margin-right, (x0: -5px, x1: -10px))
|
19
19
|
&-item
|
20
20
|
text-align: center
|
21
|
-
display: table-cell
|
22
|
-
width: 10%
|
23
|
-
&:not(:first-child)
|
24
|
-
border-left: 10px solid transparent
|
25
|
-
&:not(:last-child)
|
26
|
-
border-right: 10px solid transparent
|
27
21
|
&-box
|
28
22
|
height: 165px
|
29
23
|
padding: 5px
|
@@ -32,6 +26,8 @@ hr
|
|
32
26
|
cursor: default
|
33
27
|
&:not(:hover)
|
34
28
|
background: #fff !important
|
29
|
+
&.bg-white
|
30
|
+
background: $gray-darkest !important
|
35
31
|
&-color
|
36
32
|
height: 120px
|
37
33
|
border-radius: 2px 2px 0 0
|
@@ -42,7 +38,7 @@ hr
|
|
42
38
|
transition: 300ms color ease
|
43
39
|
+when('box:hover')
|
44
40
|
color: #fff
|
45
|
-
+when('light:hover')
|
41
|
+
+when('light:hover, white:hover')
|
46
42
|
color: $gray-darker
|
47
43
|
&-text
|
48
44
|
line-height: 40px
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Jekyll
|
2
|
+
module ColorCssClassFilter
|
3
|
+
def color_css_class(color, shade=nil)
|
4
|
+
if shade
|
5
|
+
"#{color}-#{shade}".downcase.chomp '-base'
|
6
|
+
else
|
7
|
+
"#{color}".downcase
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
Liquid::Template.register_filter(Jekyll::ColorCssClassFilter)
|
@@ -1,25 +1,40 @@
|
|
1
1
|
---
|
2
2
|
title: Shipyard Colors
|
3
3
|
description: Shipyard includes **9 standard colors** by default, and each color can be accessed with the corresponding CSS utility class `.color-shade` or by using the SASS variable `$color-shade` in your SASS files.
|
4
|
-
|
4
|
+
primary_colors: [Gray, Blue, Teal, Green, Yellow, Orange, Red, Coral, Purple]
|
5
5
|
shades: [Lightest, Lighter, Light, Base, Dark, Darker, Darkest]
|
6
|
+
base_colors: [Black, White]
|
6
7
|
---
|
7
8
|
|
8
9
|
{% include page-heading.html page=page %}
|
9
10
|
|
10
11
|
---
|
11
12
|
|
12
|
-
{% for color in page.
|
13
|
-
<ul class="shade-list margin-bottom-
|
13
|
+
{% for color in page.primary_colors %}
|
14
|
+
<ul class="col-container shade-list margin-bottom-lg" shade-list>
|
14
15
|
{% for shade in page.shades %}
|
15
|
-
<li class="shade-item shade-{{ shade | downcase }}">
|
16
|
-
<div class="shade-box box bg-{{ color |
|
17
|
-
<div class="shade-color text-xxl bold bg-{{ color |
|
18
|
-
<p class="shade-text text-sm medium {{ color |
|
19
|
-
${{ color |
|
16
|
+
<li class="col col-50 col-x1-25 col-x2-0 padding-left-xxs padding-right-xxs padding-left-x1-xs padding-right-x1-xs margin-bottom-xs margin-bottom-x1-md shade-item shade-{{ shade | downcase }} shade-{{ color | color_css_class: shade }}">
|
17
|
+
<div class="shade-box box bg-{{ color | color_css_class: shade }} shade-{{ shade | downcase | replace: 'er', '' | replace: 'est', '' }}">
|
18
|
+
<div class="shade-color text-xxl bold bg-{{ color | color_css_class: shade }}" shade-color></div>
|
19
|
+
<p class="shade-text text-sm medium {{ color | color_css_class: shade }}">
|
20
|
+
${{ color | color_css_class: shade }}
|
20
21
|
</p>
|
21
22
|
</div>
|
22
23
|
</li>
|
23
24
|
{% endfor %}
|
24
25
|
</ul>
|
25
26
|
{% endfor %}
|
27
|
+
|
28
|
+
<ul class="col-container shade-list margin-bottom-lg" shade-list>
|
29
|
+
{% assign shade = 'Base' %}
|
30
|
+
{% for color in page.base_colors %}
|
31
|
+
<li class="col padding-left-xxs padding-right-xxs padding-left-x1-xs padding-right-x1-xs margin-bottom-xs margin-bottom-x1-md shade-item shade-{{ shade | downcase }} shade-{{ color | color_css_class: shade }}">
|
32
|
+
<div class="shade-box box bg-{{ color | color_css_class: shade }} shade-{{ shade | downcase | replace: 'er', '' | replace: 'est', '' }}">
|
33
|
+
<div class="shade-color text-xxl bold bg-{{ color | color_css_class: shade }}" shade-color></div>
|
34
|
+
<p class="shade-text text-sm medium {{ color | color_css_class: shade }}">
|
35
|
+
${{ color | color_css_class }}
|
36
|
+
</p>
|
37
|
+
</div>
|
38
|
+
</li>
|
39
|
+
{% endfor %}
|
40
|
+
</ul>
|
@@ -104,13 +104,13 @@ example_offsets: [5,10,15,20,25,30,35,40,45,50,55,60,65,70,75]
|
|
104
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>
|
105
105
|
|
106
106
|
<div class="{{ page.container_classes }}">
|
107
|
-
{% for i in (1..
|
108
|
-
<div class="col col-100 col-x1-33 col-x2-25 col-x3-
|
107
|
+
{% for i in (1..7) %}
|
108
|
+
<div class="col col-100 col-x1-33 col-x2-25 col-x3-0">
|
109
109
|
<div class="{{ page.box_classes }}">
|
110
110
|
<span class="display-block display-x1-none">100</span>
|
111
111
|
<span class="display-none display-x1-block display-x2-none">33</span>
|
112
112
|
<span class="display-none display-x2-block display-x3-none">25</span>
|
113
|
-
<span class="display-none display-x3-block">
|
113
|
+
<span class="display-none display-x3-block">auto</span>
|
114
114
|
</div>
|
115
115
|
</div>
|
116
116
|
{% endfor %}
|
@@ -118,11 +118,13 @@ example_offsets: [5,10,15,20,25,30,35,40,45,50,55,60,65,70,75]
|
|
118
118
|
|
119
119
|
```html
|
120
120
|
<div class="col-container-wrap">
|
121
|
-
<div class="col col-100 col-x1-33 col-x2-25 col-x3-
|
122
|
-
<div class="col col-100 col-x1-33 col-x2-25 col-x3-
|
123
|
-
<div class="col col-100 col-x1-33 col-x2-25 col-x3-
|
124
|
-
<div class="col col-100 col-x1-33 col-x2-25 col-x3-
|
125
|
-
<div class="col col-100 col-x1-33 col-x2-25 col-x3-
|
121
|
+
<div class="col col-100 col-x1-33 col-x2-25 col-x3-0"><!-- column 1 --></div>
|
122
|
+
<div class="col col-100 col-x1-33 col-x2-25 col-x3-0"><!-- column 2 --></div>
|
123
|
+
<div class="col col-100 col-x1-33 col-x2-25 col-x3-0"><!-- column 3 --></div>
|
124
|
+
<div class="col col-100 col-x1-33 col-x2-25 col-x3-0"><!-- column 4 --></div>
|
125
|
+
<div class="col col-100 col-x1-33 col-x2-25 col-x3-0"><!-- column 5 --></div>
|
126
|
+
<div class="col col-100 col-x1-33 col-x2-25 col-x3-0"><!-- column 6 --></div>
|
127
|
+
<div class="col col-100 col-x1-33 col-x2-25 col-x3-0"><!-- column 7 --></div>
|
126
128
|
</div>
|
127
129
|
```
|
128
130
|
|
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.
|
4
|
+
version: 0.5.64
|
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-
|
11
|
+
date: 2017-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -301,6 +301,7 @@ files:
|
|
301
301
|
- styleguide/_config.yml
|
302
302
|
- styleguide/_includes/page-heading.html
|
303
303
|
- styleguide/_layouts/application.html
|
304
|
+
- styleguide/_plugins/color_css_class.rb
|
304
305
|
- styleguide/_plugins/icon_item.rb
|
305
306
|
- styleguide/components/alerts.md
|
306
307
|
- styleguide/components/boxes.md
|