shipyard-framework 0.5.73 → 0.5.74

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae8a9a7401919426516f8ed6815761c82a3f9116f1bae031f6f5c7258f468cd1
4
- data.tar.gz: 3f4a665bf2b48ba73f7c636535611018c25e4dbe2dc865e61dc2211d72b85e21
3
+ metadata.gz: 29e4642dfdfa77a61e40583e3f3735de72fe94104c4ddbcb789568516faa60ef
4
+ data.tar.gz: d9a277f730d7601e58bf23d85c2f61bf3bbc19d4be66a654596a7569cc4a0eb9
5
5
  SHA512:
6
- metadata.gz: 9718555f06e7431a332bd03c581a2151b7fa264dda41eaf5cd008bb7d9f41d73372982917825874511dbc54d484c751efef9d377c8bcd7d99bdac1af328f1498
7
- data.tar.gz: 70abaf93e1d7c80d0948b759d309b542b60d65cfb2475b6b5a53cbc6b12328e7a82bb852a1868682e690e4893aec2134bdd4d553e93f9b48e2ed817491128e4e
6
+ metadata.gz: 2793abf72c60e3bfbfd4a8b7f4ef17e5d2336db3217976e595c1578ead80c9f3a19973afa3c4b9c3e02c6ec61fd226e6ec96780529d52a168404a7ce5af7ad28
7
+ data.tar.gz: b59185e1966c9a3a7f2f074e342e09f4a08258925272794c499f169ffbbc456033d3756641893182ffa644c552c8916b5b9f2531bbb9390182d1650075d0d0cd
@@ -1,4 +1,4 @@
1
- $sizes: (sm: 18px, lg: 22px, xl: 24px)
1
+ $sizes: (sm: 18px, md: 20px, lg: 22px, xl: 24px)
2
2
 
3
3
  +component('input-switch')
4
4
  outline: none
@@ -37,8 +37,9 @@ $sizes: (sm: 18px, lg: 22px, xl: 24px)
37
37
  transform: translatex(100%)
38
38
 
39
39
  // Checkbox Switch: Sizes
40
- @each $name, $size in $sizes
41
- &-#{$name}
42
- +width-height($size * 2 - 4px, $size)
43
- &::after
44
- +width-height($size - 4px)
40
+ +all-media-sizes
41
+ @each $name, $size in $sizes
42
+ &-#{$name}
43
+ +width-height($size * 2 - 4px, $size)
44
+ &::after
45
+ +width-height($size - 4px)
@@ -9,17 +9,15 @@
9
9
  overflow: hidden
10
10
 
11
11
  &-container
12
+ @extend .col-center
12
13
  +z-index
13
14
  top: 0
14
15
  left: 0
15
16
  right: 0
16
17
  bottom: 0
17
18
  padding: 10px
18
- display: flex
19
19
  overflow: auto
20
20
  position: fixed
21
- align-items: center
22
- justify-content: center
23
21
  background: rgba($gray-darkest,.9)
24
22
  transition: 300ms padding ease
25
23
  -webkit-overflow-scrolling: touch
@@ -48,11 +48,14 @@ $widths: (0, 5, 10, 15, 20, 25, 30, 33, 35, 40, 45, 50, 55, 60, 65, 66, 70, 75,
48
48
  flex-wrap: nowrap
49
49
  +responsive-margin(left right, $divisor: -2)
50
50
 
51
- &-center
52
- float: none
53
- margin: 0 auto
54
-
55
51
  +all-media-sizes
52
+ &-center,
53
+ &-v-center
54
+ display: flex
55
+ justify-content: center
56
+ &-center
57
+ align-items: center
58
+
56
59
  +column-sizes
57
60
 
58
61
  .flex
@@ -1,3 +1,8 @@
1
+ .margin
2
+ +all-media-sizes
3
+ &-auto
4
+ margin: auto
5
+
1
6
  @each $property in (margin, padding)
2
7
  .#{$property}
3
8
  $sizes: (none: 0, xxs: 5px, xs: 10px, sm: 15px, md: 20px, lg: 30px, xl: 40px, xxl: 50px)
@@ -1,3 +1,3 @@
1
1
  module Shipyard
2
- VERSION = '0.5.73'
2
+ VERSION = '0.5.74'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- shipyard-framework (0.5.73)
4
+ shipyard-framework (0.5.74)
5
5
  actionview (~> 5.0)
6
6
  sprockets-es6 (~> 0.9.2)
7
7
 
@@ -36,9 +36,6 @@ hr
36
36
  &-color
37
37
  height: 120px
38
38
  border-radius: 2px 2px 0 0
39
- display: flex
40
- align-items: center
41
- justify-content: center
42
39
  color: transparent
43
40
  transition: 300ms color ease
44
41
  +when('box:hover')
@@ -60,11 +57,8 @@ hr
60
57
  +component('utilities-grid')
61
58
  &-box
62
59
  width: 100%
63
- display: flex
64
60
  flex-grow: 1
65
61
  min-height: 30px
66
- flex-direction: column
67
- justify-content: center
68
62
 
69
63
  +component('utilities-typography')
70
64
  &-hr
@@ -186,8 +186,8 @@ labels:
186
186
 
187
187
  ---
188
188
 
189
- ## Checkbox-Switch Sizes
190
- <p class="text-light margin-bottom-md">Useful when you want to show checkboxes inline next to a text label.</p>
189
+ ## Checkbox-Switch Sizes `input-switch-{ x1..x4 }-{ sm..xl }`
190
+ <p class="text-light margin-bottom-md">Each size can be used or altered at any breakpoint.</p>
191
191
  <ul class="input-list">
192
192
  <li class="input-item">
193
193
  <input id="small-switch-on" type="checkbox" class="input input-switch input-switch-sm align-middle" checked />
@@ -15,7 +15,7 @@ base_colors: [Black, White]
15
15
  {% for shade in page.shades %}
16
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
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>
18
+ <div class="shade-color col-center text-xxl bold bg-{{ color | color_css_class: shade }}" shade-color></div>
19
19
  <p class="shade-text text-sm medium {{ color | color_css_class: shade }}">
20
20
  ${{ color | color_css_class: shade }}
21
21
  </p>
@@ -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 box-secondary text-light text-sm strong align-center
5
+ box_classes: utilities-grid-box col-center box-secondary text-light 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]
@@ -100,7 +100,7 @@ example_offsets: [5,10,15,20,25,30,35,40,45,50,55,60,65,70,75]
100
100
 
101
101
  ---
102
102
 
103
- ### Responsive Columns `.col-(x1..x4)-{ n }`
103
+ ### Responsive Columns `.col-{ x1..x4 }-{ n }`
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 }}">
@@ -17,8 +17,9 @@ directions: [left,right]
17
17
  <div class="col">
18
18
  <div class="align-center">
19
19
  {% for option in page.options %}
20
- <div class="{{ page.box_classes }} margin-{{ option }} margin-bottom-md">.margin-{{ option }}</div>
20
+ <div class="{{ page.box_classes }} margin-{{ option }}">.margin-{{ option }}</div>
21
21
  {% endfor %}
22
+ <div class="{{ page.box_classes }} col-55 col-x1-75 col-x2-85 margin-auto">.margin-auto</div>
22
23
  </div>
23
24
  </div>
24
25
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipyard-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.73
4
+ version: 0.5.74
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codeship