beyond_canvas 0.6.1.pre → 0.6.2.pre

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
  SHA256:
3
- metadata.gz: 8eb7752f5f2a7584399b3e089f4a1f73ee6bbe52acfa851e2766e04b550721a0
4
- data.tar.gz: 3ed152ae2ab994477a09f67304032f06c712a822a0126e2e6c2301988c0a16fa
3
+ metadata.gz: 527c3396fa6ac1f387b17f68082f335a3068c7725f5a94e28e3b2e388cf076a1
4
+ data.tar.gz: a919404b23e1dc9e777c96efabc90ed7ba1aa428095bae79934aa7d9eea3e558
5
5
  SHA512:
6
- metadata.gz: a272439dfb275558ed1cba0f52c7331430b5befa9af390b39161a1c7967a2a29a83617e82be89c8f9162d2f258da978d97a070136f9e96b8ddcbf6cdeddd4783
7
- data.tar.gz: 8b153587d05bccdf3c080ee3cc31da7abaa4e257f8fb2c79f1612fcb32022c003884273117b5492c4a975a6aa24a30e7673741fd11195b93fed6d80bf2c5b6c9
6
+ metadata.gz: ebabc3716a7d88b53c0a553bfe5535750aec9cc3125e1102b2b8dfc518c93da3525738d49711c59c6426d9f5c84d6b3d0f55a9d8025d9df40591f1e6116a0416
7
+ data.tar.gz: 6a84cdc97929c34ff5355f9e2b699e5901d3eb3a2f25461bb52472b3982b980affe64e33125c2e314a9c9bed93d648975385320eda16961c05eba1a8707ba9ab
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ### v0.6.2.pre
2
+
3
+ * bug-fixes
4
+ * Fix button `border-color`
5
+ * Fix error-input's `border-color`
6
+
7
+ * deprecations
8
+ * Update error-input's class to `.input__error`
9
+
1
10
  ### v0.6.1.pre
2
11
 
3
12
  * bug-fixes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- beyond_canvas (0.6.1.pre)
4
+ beyond_canvas (0.6.2.pre)
5
5
  bourbon (~> 5.1)
6
6
  inline_svg (~> 1.5)
7
7
  neat (~> 3.0)
@@ -10,20 +10,20 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actionpack (6.0.1)
14
- actionview (= 6.0.1)
15
- activesupport (= 6.0.1)
16
- rack (~> 2.0)
13
+ actionpack (6.0.2.1)
14
+ actionview (= 6.0.2.1)
15
+ activesupport (= 6.0.2.1)
16
+ rack (~> 2.0, >= 2.0.8)
17
17
  rack-test (>= 0.6.3)
18
18
  rails-dom-testing (~> 2.0)
19
19
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
20
- actionview (6.0.1)
21
- activesupport (= 6.0.1)
20
+ actionview (6.0.2.1)
21
+ activesupport (= 6.0.2.1)
22
22
  builder (~> 3.1)
23
23
  erubi (~> 1.4)
24
24
  rails-dom-testing (~> 2.0)
25
25
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
26
- activesupport (6.0.1)
26
+ activesupport (6.0.2.1)
27
27
  concurrent-ruby (~> 1.0, >= 1.0.2)
28
28
  i18n (>= 0.7, < 2)
29
29
  minitest (~> 5.1)
@@ -54,7 +54,7 @@ GEM
54
54
  thor (~> 0.19)
55
55
  nokogiri (1.10.7)
56
56
  mini_portile2 (~> 2.4.0)
57
- rack (2.0.7)
57
+ rack (2.0.8)
58
58
  rack-test (1.1.0)
59
59
  rack (>= 1.0, < 3)
60
60
  rails-dom-testing (2.0.3)
@@ -62,9 +62,9 @@ GEM
62
62
  nokogiri (>= 1.6)
63
63
  rails-html-sanitizer (1.3.0)
64
64
  loofah (~> 2.3)
65
- railties (6.0.1)
66
- actionpack (= 6.0.1)
67
- activesupport (= 6.0.1)
65
+ railties (6.0.2.1)
66
+ actionpack (= 6.0.2.1)
67
+ activesupport (= 6.0.2.1)
68
68
  method_source
69
69
  rake (>= 0.8.7)
70
70
  thor (>= 0.20.3, < 2.0)
@@ -27,9 +27,10 @@
27
27
  background-color: lighten($background, 40%)
28
28
 
29
29
  @mixin button-border($background)
30
+ border-color: $background
31
+
30
32
  @if $button-box-shadow == true
31
33
  border-bottom-width: 2px
32
- border-color: $background
33
34
  border-bottom-color: darken($background, 10%)
34
35
 
35
36
 
@@ -22,6 +22,15 @@ select
22
22
  background-size: 4px 4px, 4px 4px, 0 0
23
23
  background-repeat: no-repeat
24
24
 
25
+ #{$all-text-inputs},
26
+ select
27
+
28
+ &.input__error
29
+ border-left: 2px solid $input-errors-color
30
+
31
+ &:focus
32
+ border: 1px solid $input-border-color-focus
33
+
25
34
  .input
26
35
 
27
36
  &__label
@@ -35,10 +44,10 @@ select
35
44
  font-size: 13px
36
45
  margin-top: 1px
37
46
 
38
- &__with-error
39
- border-left: 2px solid $input-errors-color
47
+ // &__with-error
48
+ // border-left: 2px solid $input-errors-color
40
49
 
41
- &__errors
50
+ label.input__error
42
51
  +padding(5px 7px)
43
52
  +position(absolute, calc(100% + 8px) null null 0)
44
53
  background-color: $input-errors-color
@@ -11,7 +11,7 @@ class BeyondFormBuilder < ActionView::Helpers::FormBuilder
11
11
  @template.content_tag(:div, class: 'relative') do
12
12
  block.call +
13
13
 
14
- (@template.content_tag(:label, errors, class: "input__errors") unless errors.blank?)
14
+ (@template.content_tag(:label, errors, class: "input__error") unless errors.blank?)
15
15
  end +
16
16
  (@template.content_tag(:div, args[:hint].html_safe, class: 'input__hint') if args[:hint].present?)
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module BeyondCanvas
2
- VERSION = "0.6.1.pre".freeze
2
+ VERSION = "0.6.2.pre".freeze
3
3
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
4
4
  if html_tag =~ /<(input|textarea|select)/
5
- error_class = "form__error"
5
+ error_class = "input__error".freeze
6
6
 
7
7
  doc = Nokogiri::XML(html_tag)
8
8
  doc.children.each do |field|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond_canvas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1.pre
4
+ version: 0.6.2.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Unai Abrisketa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-11 00:00:00.000000000 Z
11
+ date: 2019-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize