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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c66e1da05cdb58a2929334fb2aeb4a9bfcddb92
4
- data.tar.gz: 0168d3676a02258f038c28641ad96ce040dbe382
3
+ metadata.gz: 3e960dcc67cd266229721717aa3db24c69ab2697
4
+ data.tar.gz: 87cf4904eb06b97c58f9432be4acf6ca206afffc
5
5
  SHA512:
6
- metadata.gz: 08b4ddade9a619d0eda88c03be756daea1a4d843a7928469711b889bd4252ece8cd08a5126e0ba521c849b6b70bae40b0ac19431b2fc80e551436f77a62b091a
7
- data.tar.gz: bad513f9e0186aa7415b978bb9f8f74c2a5a6d2a92734c95391b3c6abaf742e9e7d236033c9dcd00ba02348a7cc293d4760c02ed4f33f72939dab77ceade1d0b
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
- margin: 15px 0
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
@@ -108,7 +108,8 @@
108
108
  +btn-hover(none, darken($text-color-light, 20%), darken($gray-light, 5%))
109
109
 
110
110
  &-checked
111
- +btn-color($green-dark, #fff)
111
+ &, &:active, &:hover, &:focus
112
+ +btn-color($green-dark, #fff)
112
113
 
113
114
  &-disabled
114
115
  cursor: not-allowed
@@ -26,9 +26,14 @@ hr
26
26
  border-width: 1px 0 0
27
27
 
28
28
  .medium
29
- font-weight: $medium
29
+ +all-media-sizes
30
+ font-weight: $medium
31
+
32
+ .strong, .bold
33
+ +all-media-sizes
34
+ font-weight: $bold
30
35
 
31
- strong, .strong, .bold
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
- @each $size, $value in $font-sizes
149
- &-#{$size}
150
- font-size: $value
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)
@@ -6,7 +6,7 @@
6
6
 
7
7
  .display
8
8
  +all-media-sizes
9
- @each $value in (block, inline, inline-block, none)
9
+ @each $value in (block, table, inline, inline-block, none)
10
10
  &-#{$value}
11
11
  display: $value
12
12
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Shipyard
2
- VERSION = '0.2.7'
2
+ VERSION = '0.2.8'
3
3
  end
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.7
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-02 00:00:00.000000000 Z
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