shipyard-framework 0.6.1 → 0.7.0
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/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
@@ -1,4 +1,4 @@
|
|
1
|
-
// Font
|
1
|
+
// Font: Family
|
2
2
|
$font-family: Helvetica, Arial, sans-serif !default
|
3
3
|
$font-monospace: monospace !default
|
4
4
|
|
@@ -10,7 +10,8 @@ $medium-italic: 600 !default
|
|
10
10
|
$bold: 700 !default
|
11
11
|
$bold-italic: 800 !default
|
12
12
|
|
13
|
-
|
13
|
+
// Font: Sizes
|
14
|
+
$font-sizes: (xxs: 12px, xs: 13px, sm: 14px, md: 16px, lg: 18px, xl: 20px, xxl: 22px, xxxl: 24px)
|
14
15
|
$font-size: map-get($font-sizes, md) !default
|
15
16
|
$font-size-xxxl: map-get($font-sizes, xxxl) !default
|
16
17
|
$font-size-xxl: map-get($font-sizes, xxl) !default
|
data/lib/shipyard-framework.rb
CHANGED
@@ -90,14 +90,12 @@ module Shipyard
|
|
90
90
|
|
91
91
|
def register_jekyll_tags
|
92
92
|
require 'shipyard-framework/jekyll/shipyard_variables'
|
93
|
-
require 'shipyard-framework/jekyll/tags/button_tag'
|
94
93
|
require 'shipyard-framework/jekyll/tags/icon_tag'
|
95
94
|
require 'shipyard-framework/jekyll/tags/box_tag'
|
96
95
|
require 'shipyard-framework/jekyll/tags/note_tag'
|
97
96
|
require 'shipyard-framework/jekyll/tags/alert_tag'
|
98
97
|
require 'shipyard-framework/jekyll/tags/shipyard_version_tag'
|
99
98
|
require 'shipyard-framework/jekyll/shipyard_css_classes'
|
100
|
-
Liquid::Template.register_tag('btn', Shipyard::Jekyll::Button)
|
101
99
|
Liquid::Template.register_tag('icon', Shipyard::Jekyll::Icon)
|
102
100
|
Liquid::Template.register_tag('box', Shipyard::Jekyll::Box)
|
103
101
|
Liquid::Template.register_tag('note', Shipyard::Jekyll::Note)
|
@@ -109,7 +107,6 @@ module Shipyard
|
|
109
107
|
def register_helpers
|
110
108
|
require 'shipyard-framework/helpers/alert_helper'
|
111
109
|
require 'shipyard-framework/helpers/box_helper'
|
112
|
-
require 'shipyard-framework/helpers/button_helper'
|
113
110
|
require 'shipyard-framework/helpers/form_helper'
|
114
111
|
require 'shipyard-framework/helpers/icon_helper'
|
115
112
|
require 'shipyard-framework/helpers/layout_helper'
|
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.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Codeship
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -213,13 +213,17 @@ files:
|
|
213
213
|
- assets/stylesheets/shipyard/_mixins.sass
|
214
214
|
- assets/stylesheets/shipyard/_utilities.sass
|
215
215
|
- assets/stylesheets/shipyard/_variables.sass
|
216
|
+
- assets/stylesheets/shipyard/components/_accordion.sass
|
216
217
|
- assets/stylesheets/shipyard/components/_alerts.sass
|
217
218
|
- assets/stylesheets/shipyard/components/_boxes.sass
|
219
|
+
- assets/stylesheets/shipyard/components/_bullet.sass
|
218
220
|
- assets/stylesheets/shipyard/components/_buttons.sass
|
219
221
|
- assets/stylesheets/shipyard/components/_code.sass
|
222
|
+
- assets/stylesheets/shipyard/components/_container.sass
|
220
223
|
- assets/stylesheets/shipyard/components/_empty.sass
|
221
224
|
- assets/stylesheets/shipyard/components/_form-errors.sass
|
222
225
|
- assets/stylesheets/shipyard/components/_forms.sass
|
226
|
+
- assets/stylesheets/shipyard/components/_grid.sass
|
223
227
|
- assets/stylesheets/shipyard/components/_hamburger.sass
|
224
228
|
- assets/stylesheets/shipyard/components/_header.sass
|
225
229
|
- assets/stylesheets/shipyard/components/_horizontal-rules.sass
|
@@ -247,34 +251,49 @@ files:
|
|
247
251
|
- assets/stylesheets/shipyard/mixins/_box-model.sass
|
248
252
|
- assets/stylesheets/shipyard/mixins/_buttons.sass
|
249
253
|
- assets/stylesheets/shipyard/mixins/_components.sass
|
254
|
+
- assets/stylesheets/shipyard/mixins/_grid.sass
|
250
255
|
- assets/stylesheets/shipyard/mixins/_icons.sass
|
251
256
|
- assets/stylesheets/shipyard/mixins/_positioning.sass
|
252
257
|
- assets/stylesheets/shipyard/mixins/_prefixed.sass
|
253
258
|
- assets/stylesheets/shipyard/mixins/_responsive.sass
|
254
259
|
- assets/stylesheets/shipyard/mixins/_selectors.sass
|
255
|
-
- assets/stylesheets/shipyard/
|
260
|
+
- assets/stylesheets/shipyard/mixins/_utility.sass
|
256
261
|
- assets/stylesheets/shipyard/utilities/_border-radius.sass
|
262
|
+
- assets/stylesheets/shipyard/utilities/_box-shadow.sass
|
257
263
|
- assets/stylesheets/shipyard/utilities/_center.sass
|
258
264
|
- assets/stylesheets/shipyard/utilities/_colors.sass
|
265
|
+
- assets/stylesheets/shipyard/utilities/_cursor.sass
|
259
266
|
- assets/stylesheets/shipyard/utilities/_display.sass
|
260
|
-
- assets/stylesheets/shipyard/utilities/
|
261
|
-
- assets/stylesheets/shipyard/utilities/
|
267
|
+
- assets/stylesheets/shipyard/utilities/_flex-direction.sass
|
268
|
+
- assets/stylesheets/shipyard/utilities/_float.sass
|
269
|
+
- assets/stylesheets/shipyard/utilities/_font-family.sass
|
270
|
+
- assets/stylesheets/shipyard/utilities/_font-size.sass
|
271
|
+
- assets/stylesheets/shipyard/utilities/_font-style.sass
|
272
|
+
- assets/stylesheets/shipyard/utilities/_font-weight.sass
|
273
|
+
- assets/stylesheets/shipyard/utilities/_height.sass
|
274
|
+
- assets/stylesheets/shipyard/utilities/_margin.sass
|
262
275
|
- assets/stylesheets/shipyard/utilities/_opacity.sass
|
263
276
|
- assets/stylesheets/shipyard/utilities/_overflow.sass
|
277
|
+
- assets/stylesheets/shipyard/utilities/_padding.sass
|
264
278
|
- assets/stylesheets/shipyard/utilities/_position.sass
|
265
|
-
- assets/stylesheets/shipyard/utilities/
|
279
|
+
- assets/stylesheets/shipyard/utilities/_text-align.sass
|
280
|
+
- assets/stylesheets/shipyard/utilities/_text-decoration.sass
|
281
|
+
- assets/stylesheets/shipyard/utilities/_text-overflow.sass
|
282
|
+
- assets/stylesheets/shipyard/utilities/_text-shadow.sass
|
283
|
+
- assets/stylesheets/shipyard/utilities/_text-transform.sass
|
284
|
+
- assets/stylesheets/shipyard/utilities/_transform.sass
|
285
|
+
- assets/stylesheets/shipyard/utilities/_transition.sass
|
286
|
+
- assets/stylesheets/shipyard/utilities/_white-space.sass
|
287
|
+
- assets/stylesheets/shipyard/utilities/_z-index.sass
|
266
288
|
- assets/stylesheets/shipyard/variables/_color_utilities.sass
|
267
289
|
- assets/stylesheets/shipyard/variables/_colors.scss
|
268
290
|
- assets/stylesheets/shipyard/variables/_components.scss
|
269
|
-
- assets/stylesheets/shipyard/variables/_grid.sass
|
270
291
|
- assets/stylesheets/shipyard/variables/_misc.sass
|
271
|
-
- assets/stylesheets/shipyard/variables/
|
292
|
+
- assets/stylesheets/shipyard/variables/_options.scss
|
272
293
|
- assets/stylesheets/shipyard/variables/_typography.sass
|
273
|
-
- assets/stylesheets/shipyard/variables/_z-index.scss
|
274
294
|
- lib/shipyard-framework.rb
|
275
295
|
- lib/shipyard-framework/helpers/alert_helper.rb
|
276
296
|
- lib/shipyard-framework/helpers/box_helper.rb
|
277
|
-
- lib/shipyard-framework/helpers/button_helper.rb
|
278
297
|
- lib/shipyard-framework/helpers/form_helper.rb
|
279
298
|
- lib/shipyard-framework/helpers/icon_helper.rb
|
280
299
|
- lib/shipyard-framework/helpers/layout_helper.rb
|
@@ -285,7 +304,6 @@ files:
|
|
285
304
|
- lib/shipyard-framework/jekyll/shipyard_variables.rb
|
286
305
|
- lib/shipyard-framework/jekyll/tags/alert_tag.rb
|
287
306
|
- lib/shipyard-framework/jekyll/tags/box_tag.rb
|
288
|
-
- lib/shipyard-framework/jekyll/tags/button_tag.rb
|
289
307
|
- lib/shipyard-framework/jekyll/tags/icon_tag.rb
|
290
308
|
- lib/shipyard-framework/jekyll/tags/note_tag.rb
|
291
309
|
- lib/shipyard-framework/jekyll/tags/shipyard_version_tag.rb
|
@@ -1,74 +0,0 @@
|
|
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
|
-
|
3
|
-
@mixin column-style($property, $width)
|
4
|
-
@if $width == 0 and $property == max-width
|
5
|
-
max-width: none
|
6
|
-
@else if $width == 66
|
7
|
-
#{$property}: 66.6666666666%
|
8
|
-
@else if $width == 33
|
9
|
-
#{$property}: 33.3333333333%
|
10
|
-
@else
|
11
|
-
#{$property}: percentage($width / 100)
|
12
|
-
|
13
|
-
@mixin column-sizes
|
14
|
-
@each $width in $widths
|
15
|
-
&-#{$width}
|
16
|
-
+column-style(max-width, $width)
|
17
|
-
+column-style(flex-basis, $width)
|
18
|
-
&-offset-#{$width}
|
19
|
-
+column-style(margin-left, $width)
|
20
|
-
|
21
|
-
.container
|
22
|
-
+clearfix
|
23
|
-
margin: 0 auto
|
24
|
-
max-width: 1440px
|
25
|
-
position: relative
|
26
|
-
+responsive-padding(left right, $divisor: 1)
|
27
|
-
|
28
|
-
.content
|
29
|
-
@extend .container
|
30
|
-
+responsive-padding(top bottom, $divisor: 1)
|
31
|
-
|
32
|
-
+component('col')
|
33
|
-
display: block
|
34
|
-
position: relative
|
35
|
-
flex-basis: 0
|
36
|
-
flex-grow: 1
|
37
|
-
flex-shrink: 1
|
38
|
-
flex-direction: column
|
39
|
-
+responsive-padding(left right)
|
40
|
-
|
41
|
-
&-container
|
42
|
-
display: flex
|
43
|
-
flex-wrap: wrap
|
44
|
-
+responsive-margin(left right, $divisor: -2)
|
45
|
-
+all-media-sizes
|
46
|
-
&-nowrap
|
47
|
-
display: flex
|
48
|
-
flex-wrap: nowrap
|
49
|
-
+responsive-margin(left right, $divisor: -2)
|
50
|
-
|
51
|
-
+all-media-sizes
|
52
|
-
&-center,
|
53
|
-
&-v-center
|
54
|
-
display: flex
|
55
|
-
justify-content: center
|
56
|
-
&-center
|
57
|
-
align-items: center
|
58
|
-
|
59
|
-
+column-sizes
|
60
|
-
|
61
|
-
.flex
|
62
|
-
+all-media-sizes
|
63
|
-
&-row
|
64
|
-
display: flex
|
65
|
-
flex-direction: row
|
66
|
-
&-row-reverse
|
67
|
-
display: flex
|
68
|
-
flex-direction: row-reverse
|
69
|
-
&-col
|
70
|
-
display: flex
|
71
|
-
flex-direction: column
|
72
|
-
&-col-reverse
|
73
|
-
display: flex
|
74
|
-
flex-direction: column-reverse
|
@@ -1,40 +0,0 @@
|
|
1
|
-
@function get-value($value)
|
2
|
-
@if $value == auto
|
3
|
-
@return $value
|
4
|
-
@else
|
5
|
-
@return #{$value}px
|
6
|
-
|
7
|
-
// Margin utilities for text
|
8
|
-
.ml-xs
|
9
|
-
margin-left: .2em
|
10
|
-
.ml-sm
|
11
|
-
margin-left: .4em
|
12
|
-
.ml-md
|
13
|
-
margin-left: .6em
|
14
|
-
.mr-xs
|
15
|
-
margin-right: .2em
|
16
|
-
.mr-sm
|
17
|
-
margin-right: .4em
|
18
|
-
.mr-md
|
19
|
-
margin-right: .6em
|
20
|
-
|
21
|
-
// Margin & padding utilities for building grids
|
22
|
-
@each $property-label, $property-name in (m: margin, p: padding)
|
23
|
-
.#{$property-label}
|
24
|
-
$values: (0,5,10,15,20,30,40)
|
25
|
-
@if $property-name == margin
|
26
|
-
$values: append($values, auto)
|
27
|
-
|
28
|
-
// Outputs: .p-10, .p-x1-10, etc...
|
29
|
-
+all-media-sizes
|
30
|
-
@each $value in $values
|
31
|
-
&-#{$value}
|
32
|
-
#{$property-name}: get-value($value)
|
33
|
-
|
34
|
-
// Outputs: .pt-0, .pt-x1-0, .pt-10, .pt-x1-10, etc...
|
35
|
-
@each $direction-name, $direction-label in (top: t, bottom: b, left: l, right: r)
|
36
|
-
&#{$direction-label}
|
37
|
-
+all-media-sizes
|
38
|
-
@each $value in $values
|
39
|
-
&-#{$value}
|
40
|
-
#{$property-name}-#{$direction-name}: get-value($value)
|
@@ -1,104 +0,0 @@
|
|
1
|
-
.monospace
|
2
|
-
font-family: $font-monospace
|
3
|
-
|
4
|
-
.em
|
5
|
-
color: $teal
|
6
|
-
|
7
|
-
.p
|
8
|
-
margin: 15px 0
|
9
|
-
|
10
|
-
.normal
|
11
|
-
+all-media-sizes
|
12
|
-
font-weight: $normal
|
13
|
-
|
14
|
-
.medium
|
15
|
-
+all-media-sizes
|
16
|
-
font-weight: $medium
|
17
|
-
|
18
|
-
.bold,
|
19
|
-
.strong
|
20
|
-
+all-media-sizes
|
21
|
-
font-weight: $bold
|
22
|
-
|
23
|
-
+component('bullet')
|
24
|
-
margin: 0 5px
|
25
|
-
color: text-color(.2)
|
26
|
-
&-inverse
|
27
|
-
+extend
|
28
|
-
color: rgba(#fff,.4)
|
29
|
-
|
30
|
-
.white-space-nowrap
|
31
|
-
white-space: nowrap
|
32
|
-
|
33
|
-
.line-through
|
34
|
-
text-decoration: line-through
|
35
|
-
|
36
|
-
.italic
|
37
|
-
font-style: italic
|
38
|
-
|
39
|
-
.align
|
40
|
-
+all-media-sizes
|
41
|
-
@each $value in (center, left, right)
|
42
|
-
&-#{$value}
|
43
|
-
text-align: $value
|
44
|
-
|
45
|
-
.text
|
46
|
-
&-shadow
|
47
|
-
text-shadow: 0 1px 0 rgba(#000,.08)
|
48
|
-
|
49
|
-
&-overflow
|
50
|
-
+all-media-sizes
|
51
|
-
&-ellipsis
|
52
|
-
white-space: nowrap
|
53
|
-
text-overflow: ellipsis
|
54
|
-
overflow: hidden
|
55
|
-
|
56
|
-
+all-media-sizes
|
57
|
-
&-clip
|
58
|
-
white-space: normal
|
59
|
-
text-overflow: clip
|
60
|
-
overflow: visible
|
61
|
-
|
62
|
-
// Text Colors
|
63
|
-
&-normal
|
64
|
-
color: $text-color-normal
|
65
|
-
&-light
|
66
|
-
color: $text-color-light
|
67
|
-
&-lighter
|
68
|
-
color: $text-color-lighter
|
69
|
-
&-lightest
|
70
|
-
color: $text-color-lightest
|
71
|
-
&-dark
|
72
|
-
color: $text-color-dark
|
73
|
-
&-darker
|
74
|
-
color: $text-color-darker
|
75
|
-
&-darkest
|
76
|
-
color: $text-color-darkest
|
77
|
-
|
78
|
-
// Inverse Text Colors
|
79
|
-
&-inverse
|
80
|
-
&-lightest
|
81
|
-
color: rgba(#fff,1)
|
82
|
-
&-lighter
|
83
|
-
color: rgba(#fff,.9)
|
84
|
-
&-light
|
85
|
-
color: rgba(#fff,.8)
|
86
|
-
&-normal
|
87
|
-
color: rgba(#fff,.7)
|
88
|
-
&-dark
|
89
|
-
color: rgba(#fff,.6)
|
90
|
-
&-darker
|
91
|
-
color: rgba(#fff,.5)
|
92
|
-
&-darkest
|
93
|
-
color: rgba(#fff,.4)
|
94
|
-
|
95
|
-
// Font Sizes
|
96
|
-
+all-media-sizes
|
97
|
-
@each $size, $value in $font-sizes
|
98
|
-
&-#{$size}
|
99
|
-
font-size: $value
|
100
|
-
|
101
|
-
.rotate-45
|
102
|
-
transform: rotate(45deg)
|
103
|
-
.rotate-90
|
104
|
-
transform: rotate(90deg)
|
@@ -1,22 +0,0 @@
|
|
1
|
-
$opacities: (
|
2
|
-
'95': .95,
|
3
|
-
'90': .9,
|
4
|
-
'85': .85,
|
5
|
-
'80': .8,
|
6
|
-
'75': .75,
|
7
|
-
'70': .7,
|
8
|
-
'65': .65,
|
9
|
-
'60': .6,
|
10
|
-
'55': .55,
|
11
|
-
'50': .5,
|
12
|
-
'45': .45,
|
13
|
-
'40': .4,
|
14
|
-
'35': .35,
|
15
|
-
'30': .3,
|
16
|
-
'25': .25,
|
17
|
-
'20': .2,
|
18
|
-
'15': .15,
|
19
|
-
'10': .1,
|
20
|
-
'05': .05,
|
21
|
-
'0': 0
|
22
|
-
) !default;
|
@@ -1,39 +0,0 @@
|
|
1
|
-
module Shipyard
|
2
|
-
module ButtonHelper
|
3
|
-
include ActionView::Helpers::TagHelper
|
4
|
-
include ActionView::Helpers::UrlHelper
|
5
|
-
|
6
|
-
def btn(text, *args, &block)
|
7
|
-
if block_given?
|
8
|
-
args << text
|
9
|
-
text = capture(&block)
|
10
|
-
end
|
11
|
-
|
12
|
-
# Save any options that were passed in.
|
13
|
-
options = {}
|
14
|
-
args.each do |arg|
|
15
|
-
options = options.merge(arg) if arg.is_a?(Hash)
|
16
|
-
end
|
17
|
-
|
18
|
-
# Output the appropriate button.
|
19
|
-
if options.key?(:href)
|
20
|
-
options[:role] = :button
|
21
|
-
link_to text, options[:href], btn_options(args, options)
|
22
|
-
else
|
23
|
-
content_tag :button, text, btn_options(args, options)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
private
|
28
|
-
|
29
|
-
def btn_options(args, options)
|
30
|
-
options[:class] ||= ''
|
31
|
-
options[:class] += ' btn'
|
32
|
-
args.each do |arg|
|
33
|
-
options[:class] += " btn-#{arg.to_s.tr('_', '-')}" if arg.is_a?(Symbol)
|
34
|
-
end
|
35
|
-
options[:class].strip!
|
36
|
-
options
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|