shipyard-framework 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/assets/javascripts/shipyard/modal.js +2 -2
  3. data/assets/stylesheets/shipyard/_components.sass +4 -0
  4. data/assets/stylesheets/shipyard/_mixins.sass +2 -0
  5. data/assets/stylesheets/shipyard/_utilities.sass +22 -8
  6. data/assets/stylesheets/shipyard/_variables.sass +1 -3
  7. data/assets/stylesheets/shipyard/{utilities → components}/_accordion.sass +4 -4
  8. data/assets/stylesheets/shipyard/components/_alerts.sass +8 -10
  9. data/assets/stylesheets/shipyard/components/_boxes.sass +1 -15
  10. data/assets/stylesheets/shipyard/components/_bullet.sass +6 -0
  11. data/assets/stylesheets/shipyard/components/_buttons.sass +0 -3
  12. data/assets/stylesheets/shipyard/components/_container.sass +6 -0
  13. data/assets/stylesheets/shipyard/components/_forms.sass +1 -1
  14. data/assets/stylesheets/shipyard/components/_grid.sass +62 -0
  15. data/assets/stylesheets/shipyard/components/_hamburger.sass +4 -4
  16. data/assets/stylesheets/shipyard/components/_header.sass +14 -14
  17. data/assets/stylesheets/shipyard/components/_horizontal-rules.sass +1 -1
  18. data/assets/stylesheets/shipyard/components/_input-radio-checkbox.sass +1 -1
  19. data/assets/stylesheets/shipyard/components/_input-select.sass +1 -1
  20. data/assets/stylesheets/shipyard/components/_input-text.sass +1 -1
  21. data/assets/stylesheets/shipyard/components/_modals.sass +2 -3
  22. data/assets/stylesheets/shipyard/components/_notes.sass +6 -6
  23. data/assets/stylesheets/shipyard/components/_tables.sass +1 -1
  24. data/assets/stylesheets/shipyard/components/_tooltips.sass +8 -4
  25. data/assets/stylesheets/shipyard/core/_typography.sass +0 -19
  26. data/assets/stylesheets/shipyard/functions/_color.sass +4 -7
  27. data/assets/stylesheets/shipyard/mixins/_components.sass +0 -6
  28. data/assets/stylesheets/shipyard/mixins/_grid.sass +17 -0
  29. data/assets/stylesheets/shipyard/mixins/_responsive.sass +38 -42
  30. data/assets/stylesheets/shipyard/mixins/_utility.sass +50 -0
  31. data/assets/stylesheets/shipyard/utilities/_border-radius.sass +29 -39
  32. data/assets/stylesheets/shipyard/utilities/_box-shadow.sass +1 -0
  33. data/assets/stylesheets/shipyard/utilities/_center.sass +8 -14
  34. data/assets/stylesheets/shipyard/utilities/_colors.sass +2 -12
  35. data/assets/stylesheets/shipyard/utilities/_cursor.sass +1 -0
  36. data/assets/stylesheets/shipyard/utilities/_display.sass +1 -14
  37. data/assets/stylesheets/shipyard/utilities/_flex-direction.sass +1 -0
  38. data/assets/stylesheets/shipyard/utilities/_float.sass +4 -0
  39. data/assets/stylesheets/shipyard/utilities/_font-family.sass +1 -0
  40. data/assets/stylesheets/shipyard/utilities/_font-size.sass +1 -0
  41. data/assets/stylesheets/shipyard/utilities/_font-style.sass +1 -0
  42. data/assets/stylesheets/shipyard/utilities/_font-weight.sass +1 -0
  43. data/assets/stylesheets/shipyard/utilities/_height.sass +1 -0
  44. data/assets/stylesheets/shipyard/utilities/_margin.sass +1 -0
  45. data/assets/stylesheets/shipyard/utilities/_opacity.sass +1 -4
  46. data/assets/stylesheets/shipyard/utilities/_overflow.sass +3 -11
  47. data/assets/stylesheets/shipyard/utilities/_padding.sass +1 -0
  48. data/assets/stylesheets/shipyard/utilities/_position.sass +1 -4
  49. data/assets/stylesheets/shipyard/utilities/_text-align.sass +1 -0
  50. data/assets/stylesheets/shipyard/utilities/_text-decoration.sass +1 -0
  51. data/assets/stylesheets/shipyard/utilities/_text-overflow.sass +1 -0
  52. data/assets/stylesheets/shipyard/utilities/_text-shadow.sass +1 -0
  53. data/assets/stylesheets/shipyard/utilities/_text-transform.sass +1 -0
  54. data/assets/stylesheets/shipyard/utilities/_transform.sass +1 -0
  55. data/assets/stylesheets/shipyard/utilities/_transition.sass +1 -0
  56. data/assets/stylesheets/shipyard/utilities/_white-space.sass +1 -0
  57. data/assets/stylesheets/shipyard/utilities/_z-index.sass +1 -0
  58. data/assets/stylesheets/shipyard/variables/_color_utilities.sass +54 -54
  59. data/assets/stylesheets/shipyard/variables/_colors.scss +101 -88
  60. data/assets/stylesheets/shipyard/variables/_components.scss +0 -1
  61. data/assets/stylesheets/shipyard/variables/_options.scss +322 -0
  62. data/assets/stylesheets/shipyard/variables/_typography.sass +3 -2
  63. data/lib/shipyard-framework.rb +0 -3
  64. data/lib/shipyard-framework/helpers/alert_helper.rb +1 -1
  65. data/lib/shipyard-framework/version.rb +1 -1
  66. metadata +29 -11
  67. data/assets/stylesheets/shipyard/utilities/_grid.sass +0 -74
  68. data/assets/stylesheets/shipyard/utilities/_margin-padding.sass +0 -40
  69. data/assets/stylesheets/shipyard/utilities/_typography.sass +0 -104
  70. data/assets/stylesheets/shipyard/variables/_grid.sass +0 -2
  71. data/assets/stylesheets/shipyard/variables/_opacities.scss +0 -22
  72. data/assets/stylesheets/shipyard/variables/_z-index.scss +0 -9
  73. data/lib/shipyard-framework/helpers/button_helper.rb +0 -39
  74. data/lib/shipyard-framework/jekyll/tags/button_tag.rb +0 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc87e3db7742c825fe1c4b811f94e28ede7ad52e9fdb81466af935da395fd568
4
- data.tar.gz: 0c4cfaa39dc369b15b0e8d96c550a108e4e4ed09b8f9f809db0f173172a8c9ff
3
+ metadata.gz: 327ccadbf284c48439153c77a21a869e547dcc7c652030b54cbc93a30e143f24
4
+ data.tar.gz: be43d5a69c118f8251a8587a7a8123c0e10d7dbc4817297957eff43e0fe8ff9b
5
5
  SHA512:
6
- metadata.gz: 91d8b90eb0ee22e149d78be4fe7d91776eda9325063233c96f679fd4f7311d548b8ac15036de9c37eb7500d1031027373126cb007b37d0780ac2d14fb9516229
7
- data.tar.gz: 881b21fd3dcfd8e864b298fd8f84e00b44b816496f01a12790c9f9f6913df02baf50c7233ed63393c9c72cad484b3e795a8a02cef2e0e3c293c04a3b7038fd9a
6
+ metadata.gz: 9efb830d33141a1dbbb1037cbcfaf44ba7f14c6bc7e00faa2ca9c58670d14eb2afca6bd4c424316077ef8b7f59f994fa38217501c22d934427c7db114c8178b8
7
+ data.tar.gz: dda83882ab12be9ce76e9539aa4e0a93b3eb4f8fb768186a61d811e1665c4961338fc906366f9bc6ac9513344908c1641a5c70a2bb6cd41d27da1b8d89c03054
@@ -6,12 +6,12 @@ class Modal extends Shipyard {
6
6
  }
7
7
 
8
8
  open () {
9
- this.removeClass('display-none')
9
+ this.removeClass('hidden')
10
10
  shipyard.addClass('modal-open')
11
11
  }
12
12
 
13
13
  close () {
14
- this.addClass('display-none')
14
+ this.addClass('hidden')
15
15
  shipyard.removeClass('modal-open')
16
16
  }
17
17
  }
@@ -1,3 +1,6 @@
1
+ @import "shipyard/components/accordion"
2
+ @import "shipyard/components/container"
3
+ @import "shipyard/components/bullet"
1
4
  @import "shipyard/components/code"
2
5
  @import "shipyard/components/buttons"
3
6
  @import "shipyard/components/icons"
@@ -21,3 +24,4 @@
21
24
  @import "shipyard/components/tables"
22
25
  @import "shipyard/components/statuses"
23
26
  @import "shipyard/components/horizontal-rules"
27
+ @import "shipyard/components/grid"
@@ -4,5 +4,7 @@
4
4
  @import "shipyard/mixins/responsive"
5
5
  @import "shipyard/mixins/components"
6
6
  @import "shipyard/mixins/positioning"
7
+ @import "shipyard/mixins/grid"
7
8
  @import "shipyard/mixins/icons"
8
9
  @import "shipyard/mixins/buttons"
10
+ @import "shipyard/mixins/utility"
@@ -1,11 +1,25 @@
1
- @import "shipyard/utilities/grid"
1
+ @import "shipyard/utilities/border-radius"
2
+ @import "shipyard/utilities/box-shadow"
3
+ @import "shipyard/utilities/center"
2
4
  @import "shipyard/utilities/colors"
3
- @import "shipyard/utilities/opacity"
5
+ @import "shipyard/utilities/cursor"
4
6
  @import "shipyard/utilities/display"
5
- @import "shipyard/utilities/center"
6
- @import "shipyard/utilities/position"
7
- @import "shipyard/utilities/typography"
8
- @import "shipyard/utilities/margin-padding"
9
- @import "shipyard/utilities/border-radius"
10
- @import "shipyard/utilities/accordion"
7
+ @import "shipyard/utilities/float"
8
+ @import "shipyard/utilities/font-size"
9
+ @import "shipyard/utilities/font-family"
10
+ @import "shipyard/utilities/font-weight"
11
+ @import "shipyard/utilities/height"
12
+ @import "shipyard/utilities/margin"
13
+ @import "shipyard/utilities/opacity"
11
14
  @import "shipyard/utilities/overflow"
15
+ @import "shipyard/utilities/position"
16
+ @import "shipyard/utilities/padding"
17
+ @import "shipyard/utilities/text-align"
18
+ @import "shipyard/utilities/text-decoration"
19
+ @import "shipyard/utilities/text-overflow"
20
+ @import "shipyard/utilities/text-shadow"
21
+ @import "shipyard/utilities/text-transform"
22
+ @import "shipyard/utilities/transition"
23
+ @import "shipyard/utilities/transform"
24
+ @import "shipyard/utilities/white-space"
25
+ @import "shipyard/utilities/z-index"
@@ -1,8 +1,6 @@
1
1
  @import "shipyard/variables/colors"
2
2
  @import "shipyard/variables/color_utilities"
3
3
  @import "shipyard/variables/typography"
4
- @import "shipyard/variables/grid"
5
4
  @import "shipyard/variables/misc"
6
5
  @import "shipyard/variables/components"
7
- @import "shipyard/variables/opacities"
8
- @import "shipyard/variables/z-index"
6
+ @import "shipyard/variables/options"
@@ -11,7 +11,7 @@
11
11
  opacity: 0
12
12
  max-height: 0
13
13
  overflow: hidden
14
- padding-top: 0
15
- padding-bottom: 0
16
- margin-top: 0
17
- margin-bottom: 0
14
+ padding-top: 0 !important
15
+ padding-bottom: 0 !important
16
+ margin-top: 0 !important
17
+ margin-bottom: 0 !important
@@ -5,14 +5,12 @@
5
5
  position: relative
6
6
  text-shadow: 0 1px 0 rgba(#000,.08)
7
7
  +border-radius
8
- +respond-to(min-height, (x0: 50px, x1: 60px))
9
- +respond-to(margin-bottom, (x0: 10px, x1: 15px))
10
- +respond-to(padding, (x0: 12px 10px, x1: 17px 20px, x2: 17px 30px))
11
- &:last-child
12
- +respond-to(margin-bottom, (x0: 10px, x1: 15px, x2: 30px))
8
+ +respond-to(min-height, (all: 50px, sm: 60px))
9
+ +respond-to(margin-bottom, (all: 10px, sm: 15px))
10
+ +respond-to(padding, (all: 12px 10px, sm: 17px 20px, md: 17px 30px))
13
11
  &-closeable
14
- +respond-to(padding-right, (x0: 60px, x1: 70px, x2: 80px))
15
- a, strong, .strong
12
+ +respond-to(padding-right, (all: 60px, sm: 70px, md: 80px))
13
+ a, strong, .bold
16
14
  color: #fff
17
15
  &:not(.btn)
18
16
  font-weight: $bold
@@ -50,11 +48,11 @@
50
48
  margin: 0
51
49
  font-weight: $medium
52
50
  &-cta
53
- +breakpoint-x0
51
+ +breakpoint-all
54
52
  display: block
55
53
  text-align: center
56
54
  margin-top: 10px
57
- +breakpoint-x1
55
+ +breakpoint-sm
58
56
  top: 50%
59
57
  right: 10px
60
58
  position: absolute
@@ -65,7 +63,7 @@
65
63
  display: inline-block
66
64
  transition: opacity 300ms ease
67
65
  +width-height(30px)
68
- +respond-to(right, (x0: 10px, x2: 20px))
66
+ +respond-to(right, (all: 10px, md: 20px))
69
67
  &:not(:hover)
70
68
  opacity: 0.75
71
69
  &:focus
@@ -5,10 +5,8 @@
5
5
 
6
6
  &, &-link, &-secondary
7
7
  display: block
8
- position: relative
9
- border-radius: 4px
8
+ border-radius: 5px
10
9
  transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease
11
- +clearfix
12
10
 
13
11
  &-secondary
14
12
  background: $gray-lighter
@@ -26,15 +24,3 @@
26
24
  outline: none
27
25
  cursor: default
28
26
  box-shadow: 0 0 4px 1px rgba(darken($green, 5%),.75)
29
-
30
- &-padding
31
- +respond-to(padding, $margins)
32
-
33
- &-rounded
34
- border-radius: 1000px
35
-
36
- // Box Sizes
37
- +all-media-sizes
38
- @each $size, $height in (xxs: 50px, xs: 60px, sm: 70px, md: 80px, lg: 90px, xl: 100px, xxl: 110px)
39
- &-#{$size}
40
- height: $height
@@ -0,0 +1,6 @@
1
+ +component('bullet')
2
+ margin: 0 5px
3
+ color: text-color(.2)
4
+ &-inverse
5
+ +extend
6
+ color: rgba(#fff,.4)
@@ -7,9 +7,6 @@
7
7
  &-#{$size}
8
8
  +btn-size($size)
9
9
 
10
- &-rounded
11
- border-radius: 100px
12
-
13
10
  // Button: Types
14
11
  &-full
15
12
  display: block
@@ -0,0 +1,6 @@
1
+ .container
2
+ +clearfix
3
+ margin: 0 auto
4
+ max-width: 1440px
5
+ position: relative
6
+ +responsive-padding(left right, $divisor: 1)
@@ -26,5 +26,5 @@
26
26
  &-box
27
27
  background: $border-color-light
28
28
  border-radius: 4px
29
- +respond-to(padding, (x0: 10px 15px, x1: 15px 20px))
29
+ +respond-to(padding, (all: 10px 15px, sm: 15px 20px))
30
30
  margin: 0
@@ -0,0 +1,62 @@
1
+ $name: grid
2
+ $utility: map-get($shipyard-options, $name)
3
+
4
+ @if $utility != false
5
+ $prefix: map-get($utility, prefix)
6
+ $utility-values: map-get($utility, values)
7
+ $utility-is-responsive: map-get($utility, responsive)
8
+
9
+ .#{$prefix}
10
+ display: block
11
+ position: relative
12
+ flex-basis: 0
13
+ flex-grow: 1
14
+ flex-shrink: 1
15
+ flex-direction: column
16
+ padding-left: 15px
17
+ padding-right: 15px
18
+
19
+ &-container
20
+ display: flex
21
+ flex-wrap: wrap
22
+ margin-left: -15px
23
+ margin-right: -15px
24
+ &-nowrap
25
+ display: flex
26
+ flex-wrap: nowrap
27
+ margin-left: -15px
28
+ margin-right: -15px
29
+
30
+ &-center,
31
+ &-v-center
32
+ display: flex
33
+ justify-content: center
34
+ &-center
35
+ align-items: center
36
+
37
+ // Print out styles for all screens
38
+ @each $width in $utility-values
39
+ &-#{$width}
40
+ +column-style(max-width, $width)
41
+ +column-style(flex-basis, $width)
42
+ &-offset-#{$width}
43
+ +column-style(margin-left, $width)
44
+
45
+ // Print out styles for all breakpoints
46
+ @if $utility-is-responsive
47
+ @each $breakpoint, $min-width in $breakpoints
48
+ @media screen and (min-width:#{$min-width})
49
+ .#{$breakpoint + '\\:' + $prefix}
50
+ &-center,
51
+ &-v-center
52
+ display: flex
53
+ justify-content: center
54
+ &-center
55
+ align-items: center
56
+
57
+ @each $width in $utility-values
58
+ &-#{$width}
59
+ +column-style(max-width, $width)
60
+ +column-style(flex-basis, $width)
61
+ &-offset-#{$width}
62
+ +column-style(margin-left, $width)
@@ -5,7 +5,7 @@
5
5
  top: 25px
6
6
  left: 10px
7
7
  outline: none
8
- +respond-to(display, (x1: none))
8
+ +respond-to(display, (sm: none))
9
9
  .hamburger-button-clicked &
10
10
  background: transparent
11
11
 
@@ -22,12 +22,12 @@
22
22
  left: 0
23
23
  content: " "
24
24
  &:before
25
- +respond-to(top, (x0: -7px, x1: -8px))
25
+ +respond-to(top, (all: -7px, sm: -8px))
26
26
  .hamburger-button-clicked &
27
27
  top: 0
28
28
  transform: rotate(45deg)
29
29
  &:after
30
- +respond-to(bottom, (x0: -8px, x1: -9px))
30
+ +respond-to(bottom, (all: -8px, sm: -9px))
31
31
  .hamburger-button-clicked &
32
32
  bottom: 0
33
33
  transform: rotate(-45deg)
@@ -49,4 +49,4 @@
49
49
  // Page: Prevent Scrolling When Clicked
50
50
  // --------------------------------------------------
51
51
  &-button-clicked
52
- +respond-to(overflow, (x0: hidden, x1: auto))
52
+ +respond-to(overflow, (all: hidden, sm: auto))
@@ -5,32 +5,32 @@
5
5
  right: 0
6
6
  position: fixed
7
7
  transition: height 250ms ease, background-color 250ms ease
8
- +respond-to(overflow, (x0: hidden, x1: visible))
9
- +respond-to(height, (x0: 50px, x1: 60px, x2: 70px))
10
- +respond-to(text-align, (x0: center, x1: left))
11
- +respond-to(line-height, (x0: 50px, x1: 60px, x2: 70px))
8
+ +respond-to(overflow, (all: hidden, sm: visible))
9
+ +respond-to(height, (all: 50px, sm: 60px, md: 70px))
10
+ +respond-to(text-align, (all: center, sm: left))
11
+ +respond-to(line-height, (all: 50px, sm: 60px, md: 70px))
12
12
  .hamburger-button-clicked &
13
13
  height: 100%
14
14
 
15
15
  +sub-component('logo')
16
16
  display: inline-block
17
- +respond-to(margin, (x0: 0 auto, x1: 0))
18
- +respond-to(font-size, (x0: 20px, x1: 24px))
19
- +respond-to(float, (x1: left))
17
+ +respond-to(margin, (all: 0 auto, sm: 0))
18
+ +respond-to(font-size, (all: 20px, sm: 24px))
19
+ +respond-to(float, (sm: left))
20
20
  a
21
21
  color: $blue-darkest
22
22
 
23
23
  +sub-component('list')
24
- +respond-to(float, (x1: right))
25
- +respond-to(margin-right, (x1: -15px))
24
+ +respond-to(float, (sm: right))
25
+ +respond-to(margin-right, (sm: -15px))
26
26
 
27
27
  &-item
28
- +respond-to(margin, (x1: 0 15px))
29
- +respond-to(display, (x0: block, x1: inline))
28
+ +respond-to(margin, (sm: 0 15px))
29
+ +respond-to(display, (all: block, sm: inline))
30
30
  &-cta
31
- +respond-to(top, (x0: 0, x1: auto))
32
- +respond-to(right, (x0: 10px, x1: auto))
33
- +respond-to(position, (x0: fixed, x1: static))
31
+ +respond-to(top, (all: 0, sm: auto))
32
+ +respond-to(right, (all: 10px, sm: auto))
33
+ +respond-to(position, (all: fixed, sm: static))
34
34
 
35
35
  &-link
36
36
  color: inherit
@@ -4,7 +4,7 @@
4
4
  overflow: visible
5
5
  position: relative
6
6
  border-width: 2px 0 0
7
- +respond-to(margin, (x0: 20px 0, x1: 30px 0))
7
+ +respond-to(margin, (all: 20px 0, sm: 30px 0))
8
8
  &-dark
9
9
  border-color: $border-color
10
10
  &-light
@@ -1,7 +1,7 @@
1
1
  +component('input')
2
2
  &-item
3
3
  position: relative
4
- +respond-to(margin, (x0: 10px 0, x1: 15px 0))
4
+ +respond-to(margin, (all: 10px 0, sm: 15px 0))
5
5
  &-inline
6
6
  display: inline-block
7
7
  margin-right: 25px
@@ -12,7 +12,7 @@
12
12
  cursor: pointer
13
13
  +border-radius
14
14
  +appearance(none)
15
- +respond-to(padding, (x0: 0 15px, x1: 0 20px))
15
+ +respond-to(padding, (all: 0 15px, sm: 0 20px))
16
16
  +when('error')
17
17
  border-color: $red
18
18
  &:hover, &:focus
@@ -10,7 +10,7 @@
10
10
  width: 100%
11
11
  +width-height(100%, 50px)
12
12
  +border-radius
13
- +respond-to(padding, (x0: 10px 15px, x1: 10px 20px))
13
+ +respond-to(padding, (all: 10px 15px, sm: 10px 20px))
14
14
  +placeholder
15
15
  color: $text-color-lightest
16
16
  font-weight: $normal
@@ -10,7 +10,6 @@
10
10
 
11
11
  &-container
12
12
  @extend .col-center !optional
13
- +z-index
14
13
  top: 0
15
14
  left: 0
16
15
  right: 0
@@ -25,7 +24,7 @@
25
24
  &-content
26
25
  background: #fff
27
26
  border-radius: 5px 5px 0 0
28
- +respond-to(padding, (x0: 15px, x1: 20px, x2: 30px))
27
+ +respond-to(padding, (all: 15px, sm: 20px, md: 30px))
29
28
 
30
29
  &-title
31
30
  line-height: 1
@@ -38,4 +37,4 @@
38
37
  &-ctas
39
38
  background: $gray-lightest
40
39
  border-radius: 0 0 5px 5px
41
- +respond-to(padding, (x0: 10px 15px, x1: 15px 20px, x2: 15px 30px))
40
+ +respond-to(padding, (all: 10px 15px, sm: 15px 20px, md: 15px 30px))
@@ -1,10 +1,10 @@
1
1
  +component('note')
2
2
  display: block
3
3
  position: relative
4
- +respond-to(min-height, (x0: 50px, x1: 60px))
5
- +respond-to(margin, (x0: 10px 0, x1: 15px 0))
6
- +respond-to(padding, (x0: 12px 10px, x1: 17px 20px, x2: 17px 30px))
7
- a, strong, .strong
4
+ +respond-to(min-height, (all: 50px, sm: 60px))
5
+ +respond-to(margin, (all: 10px 0, sm: 15px 0))
6
+ +respond-to(padding, (all: 12px 10px, sm: 17px 20px, md: 17px 30px))
7
+ a, strong, .bold
8
8
  &:not(.btn)
9
9
  font-weight: $bold
10
10
 
@@ -19,11 +19,11 @@
19
19
 
20
20
  // Note: CTAs
21
21
  &-cta
22
- +breakpoint-x0
22
+ +breakpoint-all
23
23
  display: block
24
24
  text-align: center
25
25
  margin-top: 10px
26
- +breakpoint-x1
26
+ +breakpoint-sm
27
27
  top: 50%
28
28
  right: 10px
29
29
  position: absolute