effective_bootstrap 0.8.4 → 0.8.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd2b4a321ad92d428321ae94d2b26875a047f209c3b3842ca4f4be921b76071d
4
- data.tar.gz: fe91e9b1898dfb4286470bacf83b7ab09f12b091aa1218109d432c330f991493
3
+ metadata.gz: ade33f888106bb76e27393ff4df00caa77191edc2cc52a78b7fb4e493c9c9110
4
+ data.tar.gz: c0e9d1338dd33e388f6d6824bac883f4a3317378800cca7c387e153808452b1c
5
5
  SHA512:
6
- metadata.gz: 99b921f38e9cc727b520012cb0b4621c127c51dde6491ee69ad297060368af741df1a9b8df83141ff8a84007ffab0f8484e66c53bf03ae0796b1bc1782b6d4bf
7
- data.tar.gz: 03422e1c8f7ab703916ce5a0473266d23560e4ad485306acf01aecb387ca4b94a390b3d87b0f6cd7b282a74a4a634755c0f39889c4f198992512efbbd973e67b
6
+ metadata.gz: 235ab74535c20e7d94bf83e2a28c7996fd4ff420b923a41de39046f4ff2e6ef36966bf71c5468e016a537a0a5ff88a5f3318ca554fec88dae8c045ddcdc58bf5
7
+ data.tar.gz: 3a249ed15f0047c90dffe53ea90d677a9c9905f6b3265db7a5c4c5c2093b75bf2600c9318ff0bb64bd834901b524bf78936f49b2390008a9a63aa71e57653197
@@ -10,3 +10,5 @@
10
10
  @import 'effective_select/input';
11
11
  @import 'effective_select_or_text/input';
12
12
  @import 'effective_radio/input';
13
+
14
+ @import 'effective_rich_text_area/input';
@@ -0,0 +1,25 @@
1
+ .trix-content {
2
+ height: 100%;
3
+ border-color: #ccc;
4
+
5
+ &:hover,
6
+ &:active,
7
+ &:focus, {
8
+ border-color: #ccc;
9
+ outline: 0px !important;
10
+ -webkit-appearance: none;
11
+ box-shadow: none !important;
12
+ }
13
+ }
14
+
15
+ // Bootstrap 4 Feedback client side
16
+ .was-validated .form-control:invalid ~ .trix-content, { border-color: #dc3545 !important; }
17
+ .was-validated .form-control:valid ~ .trix-content { border-color: #28a745 !important; }
18
+ .was-validated .form-control:invalid ~ trix-toolbar, { border-color: #dc3545 !important; }
19
+ .was-validated .form-control:valid ~ trix-toolbar { border-color: #28a745 !important; }
20
+
21
+ // Bootstrap 4 Server side feedback
22
+ .form-control.is-invalid ~ .trix-content { border-color: #dc3545 !important; }
23
+ .form-control.is-invalid ~ trix-toolbar { border-color: #dc3545 !important; }
24
+ .form-control.is-valid ~ .trix-content { border-color: #28a745 !important; }
25
+ .form-control.is-valid ~ trix-toolbar { border-color: #28a745 !important; }
@@ -100,6 +100,10 @@ module Effective
100
100
  Effective::FormInputs::RemoteLinkTo.new(name, options, builder: self).to_html(&block)
101
101
  end
102
102
 
103
+ def rich_text_area(name, options = {})
104
+ Effective::FormInputs::RichTextArea.new(name, options, builder: self).to_html { super(name, options) }
105
+ end
106
+
103
107
  def search_field(name, options = {})
104
108
  Effective::FormInputs::SearchField.new(name, options, builder: self).to_html { super(name, options) }
105
109
  end
@@ -0,0 +1,11 @@
1
+ module Effective
2
+ module FormInputs
3
+ class RichTextArea < Effective::FormInput
4
+
5
+ def input_html_options
6
+ { class: 'form-control effective_rich_text_area trix-content', id: tag_id }
7
+ end
8
+
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.8.4'.freeze
2
+ VERSION = '0.8.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-09 00:00:00.000000000 Z
11
+ date: 2020-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -582,6 +582,7 @@ files:
582
582
  - app/assets/stylesheets/effective_editor/quill.scss
583
583
  - app/assets/stylesheets/effective_file/input.scss
584
584
  - app/assets/stylesheets/effective_radio/input.scss
585
+ - app/assets/stylesheets/effective_rich_text_area/input.scss
585
586
  - app/assets/stylesheets/effective_select/bootstrap-theme.css
586
587
  - app/assets/stylesheets/effective_select/input.scss
587
588
  - app/assets/stylesheets/effective_select/overrides.scss
@@ -621,6 +622,7 @@ files:
621
622
  - app/models/effective/form_inputs/radios.rb
622
623
  - app/models/effective/form_inputs/remote_link_to.rb
623
624
  - app/models/effective/form_inputs/reset.rb
625
+ - app/models/effective/form_inputs/rich_text_area.rb
624
626
  - app/models/effective/form_inputs/save.rb
625
627
  - app/models/effective/form_inputs/search_field.rb
626
628
  - app/models/effective/form_inputs/select.rb
@@ -664,7 +666,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
664
666
  - !ruby/object:Gem::Version
665
667
  version: '0'
666
668
  requirements: []
667
- rubygems_version: 3.1.2
669
+ rubygems_version: 3.1.4
668
670
  signing_key:
669
671
  specification_version: 4
670
672
  summary: Everything you need to get set up with bootstrap 4.