shipyard-framework 0.5.63 → 0.5.64

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77da96d81489555d590d00ec526ae635643dc71e89f82ca8df62a89ec721e8cd
4
- data.tar.gz: c28e1672fe9d9ae8ea65b58e9d801341998a5d91848f1bf9780d9055f5ed5625
3
+ metadata.gz: 2b899dcde9ba640ac775ed7d6e3bdd287802068a498ba6b566d684c89d2a88a7
4
+ data.tar.gz: 8f3e60766d63e63124f42d8c6b4af63ba77f7ea07d4a8ca90dcb45a855572792
5
5
  SHA512:
6
- metadata.gz: 0f62e4ed3172c20c23408eca7562ef302bb15dd69c712688e400b81bdcabbc2bd0e1e13fd85762b0aad93793e21ef2ab51ffa117b588d331e3e922cae2ada997
7
- data.tar.gz: de621c35d2f5dad50aaf9b1b27fcfc5dfa1c6e224b346ffdf77dc9fe3b6847026ed7673ced9df9fe03992590afc4c3497402fc2aac18dc8f857e153fd5631d22
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 == auto
5
- #{$property}: auto
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)
@@ -1,3 +1,7 @@
1
+ // Black & White
2
+ $black: color('black') !default
3
+ $white: color('white') !default
4
+
1
5
  // Gray
2
6
  $gray: color('gray') !default
3
7
  $gray-light: color('gray', 'light') !default
@@ -1,4 +1,10 @@
1
1
  $colors: (
2
+ "black": (
3
+ base: #000
4
+ ),
5
+ "white": (
6
+ base: #fff
7
+ ),
2
8
  "gray": (
3
9
  base: #788594,
4
10
  light: #bac5d2,
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Shipyard
2
- VERSION = '0.5.63'
2
+ VERSION = '0.5.64'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- shipyard-framework (0.5.63)
4
+ shipyard-framework (0.5.64)
5
5
  actionview (~> 5.0)
6
6
  sprockets-es6 (~> 0.9.2)
7
7
 
@@ -14,16 +14,10 @@ hr
14
14
  // Utilities: Colors
15
15
  +component('shade')
16
16
  &-list
17
- display: table
18
- width: 100%
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
- colors: [Gray, Blue, Teal, Green, Yellow, Orange, Red, Coral, Purple]
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.colors %}
13
- <ul class="shade-list margin-bottom-xxl" shade-list>
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 | append: '-' | append: shade | downcase | replace: '-base', '' }} shade-{{ shade | downcase | replace: 'er', '' | replace: 'est', '' }}">
17
- <div class="shade-color text-xxl bold bg-{{ color | append: '-' | append: shade | downcase | replace: '-base', '' }}" shade-color></div>
18
- <p class="shade-text text-sm medium {{ color | append: '-' | append: shade | downcase | replace: '-base', '' }}">
19
- ${{ color | append: '-' | append: shade | downcase | replace: '-base', '' }}
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..5) %}
108
- <div class="col col-100 col-x1-33 col-x2-25 col-x3-20">
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">20</span>
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-20"><!-- column 1 --></div>
122
- <div class="col col-100 col-x1-33 col-x2-25 col-x3-20"><!-- column 2 --></div>
123
- <div class="col col-100 col-x1-33 col-x2-25 col-x3-20"><!-- column 3 --></div>
124
- <div class="col col-100 col-x1-33 col-x2-25 col-x3-20"><!-- column 4 --></div>
125
- <div class="col col-100 col-x1-33 col-x2-25 col-x3-20"><!-- column 5 --></div>
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.63
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-08 00:00:00.000000000 Z
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