shipyard-framework 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/stylesheets/shipyard/components/_boxes.sass +5 -1
- data/assets/stylesheets/shipyard/components/_buttons.sass +2 -1
- data/assets/stylesheets/shipyard/core/_type.sass +12 -6
- data/assets/stylesheets/shipyard/utilities/_display.sass +1 -1
- data/lib/shipyard-framework/rails/form_helper.rb +13 -0
- data/lib/shipyard-framework/rails/railtie.rb +2 -0
- data/lib/shipyard-framework/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e960dcc67cd266229721717aa3db24c69ab2697
|
4
|
+
data.tar.gz: 87cf4904eb06b97c58f9432be4acf6ca206afffc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff61950a64d033b3c280480ea05f3b1ca9e95b7f3156e5d6fd65059a53f216fde03f48207d26c2fbc5c0fe1ed6d968bceb37e7f071e5c3b864323eb0f5442451
|
7
|
+
data.tar.gz: 353649128cea65ce6bbbb413d4cb6fd56eb919397f7604fe7ba7fa62a80080e03a8e7ff744cfdcc3855e6b29e67c13c570012ed1cb0b6ea70d4d7404955ada71
|
@@ -27,8 +27,12 @@
|
|
27
27
|
&-padding
|
28
28
|
+respond-to(padding, $margins)
|
29
29
|
|
30
|
+
// Box: Margins
|
30
31
|
&-margin
|
31
|
-
|
32
|
+
+all-media-sizes
|
33
|
+
@each $size, $margin in (sm: 10px 0, md: 15px 0, lg: 30px 0)
|
34
|
+
&-#{$size}
|
35
|
+
margin: $margin
|
32
36
|
|
33
37
|
// Box Sizes
|
34
38
|
+all-media-sizes
|
@@ -26,9 +26,14 @@ hr
|
|
26
26
|
border-width: 1px 0 0
|
27
27
|
|
28
28
|
.medium
|
29
|
-
|
29
|
+
+all-media-sizes
|
30
|
+
font-weight: $medium
|
31
|
+
|
32
|
+
.strong, .bold
|
33
|
+
+all-media-sizes
|
34
|
+
font-weight: $bold
|
30
35
|
|
31
|
-
strong
|
36
|
+
strong
|
32
37
|
font-weight: $bold
|
33
38
|
|
34
39
|
ul, ol
|
@@ -108,7 +113,7 @@ h1, h2, h3, h4, h5, h6
|
|
108
113
|
@each $direction in (top, right, bottom, left)
|
109
114
|
&-#{$direction}
|
110
115
|
+all-media-sizes
|
111
|
-
@each $size, $value in (xxs: 5px, xs: 10px, sm: 15px, md: 20px, lg: 30px, xl: 40px, xxl: 50px)
|
116
|
+
@each $size, $value in (none: 0, xxs: 5px, xs: 10px, sm: 15px, md: 20px, lg: 30px, xl: 40px, xxl: 50px)
|
112
117
|
&-#{$size}
|
113
118
|
margin-#{$direction}: $value
|
114
119
|
|
@@ -145,9 +150,10 @@ h1, h2, h3, h4, h5, h6
|
|
145
150
|
color: rgba(#fff,.6)
|
146
151
|
|
147
152
|
// Font Sizes
|
148
|
-
|
149
|
-
|
150
|
-
|
153
|
+
+all-media-sizes
|
154
|
+
@each $size, $value in $font-sizes
|
155
|
+
&-#{$size}
|
156
|
+
font-size: $value
|
151
157
|
|
152
158
|
.rotate-45
|
153
159
|
transform: rotate(45deg)
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Shipyard
|
2
|
+
module Rails
|
3
|
+
module FormHelper
|
4
|
+
def input_select_tag(name, choices, container_options={}, select_options={})
|
5
|
+
container_options[:class] = "input-select-container #{container_options[:class]}"
|
6
|
+
content_tag :div, container_options do
|
7
|
+
select_options[:class] = "input input-select #{select_options[:class]}"
|
8
|
+
select_tag name, choices, select_options
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -2,6 +2,7 @@ require 'shipyard-framework/rails/layout_helpers'
|
|
2
2
|
require 'shipyard-framework/rails/icon_helper'
|
3
3
|
require 'shipyard-framework/rails/button_helper'
|
4
4
|
require 'shipyard-framework/rails/alert_helper'
|
5
|
+
require 'shipyard-framework/rails/form_helper'
|
5
6
|
|
6
7
|
module Shipyard
|
7
8
|
module Rails
|
@@ -11,6 +12,7 @@ module Shipyard
|
|
11
12
|
ActionView::Base.send :include, IconHelper
|
12
13
|
ActionView::Base.send :include, ButtonHelper
|
13
14
|
ActionView::Base.send :include, AlertHelper
|
15
|
+
ActionView::Base.send :include, FormHelper
|
14
16
|
end
|
15
17
|
|
16
18
|
initializer 'shipyard.reload_cached_icons' do
|
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.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shipyard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- lib/shipyard-framework/rails/alert_helper.rb
|
109
109
|
- lib/shipyard-framework/rails/button_helper.rb
|
110
110
|
- lib/shipyard-framework/rails/engine.rb
|
111
|
+
- lib/shipyard-framework/rails/form_helper.rb
|
111
112
|
- lib/shipyard-framework/rails/icon_helper.rb
|
112
113
|
- lib/shipyard-framework/rails/layout_helpers.rb
|
113
114
|
- lib/shipyard-framework/rails/railtie.rb
|