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 +4 -4
- data/app/assets/stylesheets/effective_bootstrap.scss +2 -0
- data/app/assets/stylesheets/effective_rich_text_area/input.scss +25 -0
- data/app/models/effective/form_builder.rb +4 -0
- data/app/models/effective/form_inputs/rich_text_area.rb +11 -0
- data/lib/effective_bootstrap/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ade33f888106bb76e27393ff4df00caa77191edc2cc52a78b7fb4e493c9c9110
|
4
|
+
data.tar.gz: c0e9d1338dd33e388f6d6824bac883f4a3317378800cca7c387e153808452b1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 235ab74535c20e7d94bf83e2a28c7996fd4ff420b923a41de39046f4ff2e6ef36966bf71c5468e016a537a0a5ff88a5f3318ca554fec88dae8c045ddcdc58bf5
|
7
|
+
data.tar.gz: 3a249ed15f0047c90dffe53ea90d677a9c9905f6b3265db7a5c4c5c2093b75bf2600c9318ff0bb64bd834901b524bf78936f49b2390008a9a63aa71e57653197
|
@@ -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
|
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
|
+
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-
|
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.
|
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.
|