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.
- checksums.yaml +4 -4
- data/assets/javascripts/shipyard/modal.js +2 -2
- data/assets/stylesheets/shipyard/_components.sass +4 -0
- data/assets/stylesheets/shipyard/_mixins.sass +2 -0
- data/assets/stylesheets/shipyard/_utilities.sass +22 -8
- data/assets/stylesheets/shipyard/_variables.sass +1 -3
- data/assets/stylesheets/shipyard/{utilities → components}/_accordion.sass +4 -4
- data/assets/stylesheets/shipyard/components/_alerts.sass +8 -10
- data/assets/stylesheets/shipyard/components/_boxes.sass +1 -15
- data/assets/stylesheets/shipyard/components/_bullet.sass +6 -0
- data/assets/stylesheets/shipyard/components/_buttons.sass +0 -3
- data/assets/stylesheets/shipyard/components/_container.sass +6 -0
- data/assets/stylesheets/shipyard/components/_forms.sass +1 -1
- data/assets/stylesheets/shipyard/components/_grid.sass +62 -0
- data/assets/stylesheets/shipyard/components/_hamburger.sass +4 -4
- data/assets/stylesheets/shipyard/components/_header.sass +14 -14
- data/assets/stylesheets/shipyard/components/_horizontal-rules.sass +1 -1
- data/assets/stylesheets/shipyard/components/_input-radio-checkbox.sass +1 -1
- data/assets/stylesheets/shipyard/components/_input-select.sass +1 -1
- data/assets/stylesheets/shipyard/components/_input-text.sass +1 -1
- data/assets/stylesheets/shipyard/components/_modals.sass +2 -3
- data/assets/stylesheets/shipyard/components/_notes.sass +6 -6
- data/assets/stylesheets/shipyard/components/_tables.sass +1 -1
- data/assets/stylesheets/shipyard/components/_tooltips.sass +8 -4
- data/assets/stylesheets/shipyard/core/_typography.sass +0 -19
- data/assets/stylesheets/shipyard/functions/_color.sass +4 -7
- data/assets/stylesheets/shipyard/mixins/_components.sass +0 -6
- data/assets/stylesheets/shipyard/mixins/_grid.sass +17 -0
- data/assets/stylesheets/shipyard/mixins/_responsive.sass +38 -42
- data/assets/stylesheets/shipyard/mixins/_utility.sass +50 -0
- data/assets/stylesheets/shipyard/utilities/_border-radius.sass +29 -39
- data/assets/stylesheets/shipyard/utilities/_box-shadow.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_center.sass +8 -14
- data/assets/stylesheets/shipyard/utilities/_colors.sass +2 -12
- data/assets/stylesheets/shipyard/utilities/_cursor.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_display.sass +1 -14
- data/assets/stylesheets/shipyard/utilities/_flex-direction.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_float.sass +4 -0
- data/assets/stylesheets/shipyard/utilities/_font-family.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_font-size.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_font-style.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_font-weight.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_height.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_margin.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_opacity.sass +1 -4
- data/assets/stylesheets/shipyard/utilities/_overflow.sass +3 -11
- data/assets/stylesheets/shipyard/utilities/_padding.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_position.sass +1 -4
- data/assets/stylesheets/shipyard/utilities/_text-align.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_text-decoration.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_text-overflow.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_text-shadow.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_text-transform.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_transform.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_transition.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_white-space.sass +1 -0
- data/assets/stylesheets/shipyard/utilities/_z-index.sass +1 -0
- data/assets/stylesheets/shipyard/variables/_color_utilities.sass +54 -54
- data/assets/stylesheets/shipyard/variables/_colors.scss +101 -88
- data/assets/stylesheets/shipyard/variables/_components.scss +0 -1
- data/assets/stylesheets/shipyard/variables/_options.scss +322 -0
- data/assets/stylesheets/shipyard/variables/_typography.sass +3 -2
- data/lib/shipyard-framework.rb +0 -3
- data/lib/shipyard-framework/helpers/alert_helper.rb +1 -1
- data/lib/shipyard-framework/version.rb +1 -1
- metadata +29 -11
- data/assets/stylesheets/shipyard/utilities/_grid.sass +0 -74
- data/assets/stylesheets/shipyard/utilities/_margin-padding.sass +0 -40
- data/assets/stylesheets/shipyard/utilities/_typography.sass +0 -104
- data/assets/stylesheets/shipyard/variables/_grid.sass +0 -2
- data/assets/stylesheets/shipyard/variables/_opacities.scss +0 -22
- data/assets/stylesheets/shipyard/variables/_z-index.scss +0 -9
- data/lib/shipyard-framework/helpers/button_helper.rb +0 -39
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 327ccadbf284c48439153c77a21a869e547dcc7c652030b54cbc93a30e143f24
|
4
|
+
data.tar.gz: be43d5a69c118f8251a8587a7a8123c0e10d7dbc4817297957eff43e0fe8ff9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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('
|
9
|
+
this.removeClass('hidden')
|
10
10
|
shipyard.addClass('modal-open')
|
11
11
|
}
|
12
12
|
|
13
13
|
close () {
|
14
|
-
this.addClass('
|
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"
|
@@ -1,11 +1,25 @@
|
|
1
|
-
@import "shipyard/utilities/
|
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/
|
5
|
+
@import "shipyard/utilities/cursor"
|
4
6
|
@import "shipyard/utilities/display"
|
5
|
-
@import "shipyard/utilities/
|
6
|
-
@import "shipyard/utilities/
|
7
|
-
@import "shipyard/utilities/
|
8
|
-
@import "shipyard/utilities/
|
9
|
-
@import "shipyard/utilities/
|
10
|
-
@import "shipyard/utilities/
|
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/
|
8
|
-
@import "shipyard/variables/z-index"
|
6
|
+
@import "shipyard/variables/options"
|
@@ -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, (
|
9
|
-
+respond-to(margin-bottom, (
|
10
|
-
+respond-to(padding, (
|
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, (
|
15
|
-
a, 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-
|
51
|
+
+breakpoint-all
|
54
52
|
display: block
|
55
53
|
text-align: center
|
56
54
|
margin-top: 10px
|
57
|
-
+breakpoint-
|
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, (
|
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
|
-
|
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,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, (
|
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, (
|
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, (
|
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, (
|
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, (
|
9
|
-
+respond-to(height, (
|
10
|
-
+respond-to(text-align, (
|
11
|
-
+respond-to(line-height, (
|
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, (
|
18
|
-
+respond-to(font-size, (
|
19
|
-
+respond-to(float, (
|
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, (
|
25
|
-
+respond-to(margin-right, (
|
24
|
+
+respond-to(float, (sm: right))
|
25
|
+
+respond-to(margin-right, (sm: -15px))
|
26
26
|
|
27
27
|
&-item
|
28
|
-
+respond-to(margin, (
|
29
|
-
+respond-to(display, (
|
28
|
+
+respond-to(margin, (sm: 0 15px))
|
29
|
+
+respond-to(display, (all: block, sm: inline))
|
30
30
|
&-cta
|
31
|
-
+respond-to(top, (
|
32
|
-
+respond-to(right, (
|
33
|
-
+respond-to(position, (
|
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
|
@@ -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, (
|
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, (
|
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, (
|
5
|
-
+respond-to(margin, (
|
6
|
-
+respond-to(padding, (
|
7
|
-
a, 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-
|
22
|
+
+breakpoint-all
|
23
23
|
display: block
|
24
24
|
text-align: center
|
25
25
|
margin-top: 10px
|
26
|
-
+breakpoint-
|
26
|
+
+breakpoint-sm
|
27
27
|
top: 50%
|
28
28
|
right: 10px
|
29
29
|
position: absolute
|