pusher-chameleon 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -2
- data/Gemfile.lock +3 -38
- data/docs/_posts/2016-03-17-forms.md +19 -1
- data/docs/_sass/_base.scss +1 -1
- data/package.json +1 -1
- data/stylesheets/components/_statistic.scss +1 -1
- data/stylesheets/forms/_fieldset.scss +1 -1
- data/stylesheets/forms/_forms.scss +3 -1
- data/stylesheets/forms/_input.scss +1 -1
- data/stylesheets/forms/_validation_alert.scss +57 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78648560b78ca0e085d979957cbadd3a0abf1227
|
4
|
+
data.tar.gz: 553d1dbebed36d3013ea3964c52df712ea800657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9cd05678ce3a22d03bad2f49ed577c26535e4bf8deec580198e4029c76f2d2021cb7d0e53359e39e19cca7f2c5e5ab51f2db50add355ac121b112be221614db
|
7
|
+
data.tar.gz: 3e8d202fdad4ac56320fbae1aefd0980c8f3226a9df583d945786b5791b9982c12009dfc3f320a46a6e8ca482b23d35c22da49967a6af12c28aee9ece988d583
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,58 +1,23 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pusher-chameleon (1.4.
|
4
|
+
pusher-chameleon (1.4.4)
|
5
5
|
sass (>= 3.2.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
addressable (2.5.0)
|
11
|
-
public_suffix (~> 2.0, >= 2.0.2)
|
12
|
-
colorator (1.1.0)
|
13
|
-
ffi (1.9.14)
|
14
|
-
forwardable-extended (2.6.0)
|
15
10
|
gem_publisher (1.3.1)
|
16
|
-
jekyll (3.3.1)
|
17
|
-
addressable (~> 2.4)
|
18
|
-
colorator (~> 1.0)
|
19
|
-
jekyll-sass-converter (~> 1.0)
|
20
|
-
jekyll-watch (~> 1.1)
|
21
|
-
kramdown (~> 1.3)
|
22
|
-
liquid (~> 3.0)
|
23
|
-
mercenary (~> 0.3.3)
|
24
|
-
pathutil (~> 0.9)
|
25
|
-
rouge (~> 1.7)
|
26
|
-
safe_yaml (~> 1.0)
|
27
|
-
jekyll-sass-converter (1.5.0)
|
28
|
-
sass (~> 3.4)
|
29
|
-
jekyll-watch (1.5.0)
|
30
|
-
listen (~> 3.0, < 3.1)
|
31
|
-
kramdown (1.13.1)
|
32
|
-
liquid (3.0.6)
|
33
|
-
listen (3.0.8)
|
34
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
35
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
36
|
-
mercenary (0.3.6)
|
37
|
-
pathutil (0.14.0)
|
38
|
-
forwardable-extended (~> 2.6)
|
39
|
-
public_suffix (2.0.4)
|
40
11
|
rake (0.9.2.2)
|
41
|
-
|
42
|
-
rb-inotify (0.9.7)
|
43
|
-
ffi (>= 0.5.0)
|
44
|
-
rouge (1.11.1)
|
45
|
-
safe_yaml (1.0.4)
|
46
|
-
sass (3.4.22)
|
12
|
+
sass (3.4.23)
|
47
13
|
|
48
14
|
PLATFORMS
|
49
15
|
ruby
|
50
16
|
|
51
17
|
DEPENDENCIES
|
52
18
|
gem_publisher (= 1.3.1)
|
53
|
-
jekyll
|
54
19
|
pusher-chameleon!
|
55
20
|
rake (= 0.9.2.2)
|
56
21
|
|
57
22
|
BUNDLED WITH
|
58
|
-
1.
|
23
|
+
1.14.3
|
@@ -37,6 +37,24 @@ As well as classes to indicate status:
|
|
37
37
|
<input type="password" class="error" placeholder="Password">
|
38
38
|
```
|
39
39
|
|
40
|
+
## Inline Validation Alerts
|
41
|
+
|
42
|
+
These inline alerts can be used to display form validation notices to users. Note that these require the input to be wrapped in a `form__field` container. The alert can be animated in by toggling the `has-validation-alert` class on the `form__field` wrapper.
|
43
|
+
|
44
|
+
<div class="pattern">
|
45
|
+
<div class="form__field has-validation-alert">
|
46
|
+
<input type="email" placeholder="Email address">
|
47
|
+
<span class="input-validation-alert input-validation-alert--error">Sorry, we were unable to subscribe you</span>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
``` html
|
52
|
+
<div class="form__field has-validation-alert">
|
53
|
+
<input type="email" placeholder="Email address">
|
54
|
+
<span class="input-validation-alert input-validation-alert--error">Sorry, we were unable to subscribe you</span>
|
55
|
+
</div>
|
56
|
+
```
|
57
|
+
|
40
58
|
## Select
|
41
59
|
<div class="pattern">
|
42
60
|
<select>
|
@@ -63,4 +81,4 @@ As well as classes to indicate status:
|
|
63
81
|
|
64
82
|
```html
|
65
83
|
<input type="checkbox" value="1" checked="checked" name="hello" id="hello">
|
66
|
-
```
|
84
|
+
```
|
data/docs/_sass/_base.scss
CHANGED
data/package.json
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
@import 'input';
|
9
9
|
@import 'textarea';
|
10
10
|
@import 'checkbox';
|
11
|
+
@import 'validation_alert';
|
11
12
|
|
12
13
|
@mixin CHAMELEON-forms {
|
13
14
|
@include CHAMELEON-forms-buttons;
|
@@ -18,4 +19,5 @@
|
|
18
19
|
@include CHAMELEON-forms-input;
|
19
20
|
@include CHAMELEON-forms-textarea;
|
20
21
|
@include CHAMELEON-forms-checkbox;
|
21
|
-
|
22
|
+
@include CHAMELEON-forms-validation-alert;
|
23
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
2
|
+
// Input Validation Alerts
|
3
|
+
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
4
|
+
|
5
|
+
@mixin CHAMELEON-forms-validation-alert {
|
6
|
+
.input-validation-alert {
|
7
|
+
display: block;
|
8
|
+
font-size: rem-calc(14px);
|
9
|
+
font-weight: 400;
|
10
|
+
opacity: 0;
|
11
|
+
padding: 12px 5px;
|
12
|
+
position: absolute;
|
13
|
+
text-align: center;
|
14
|
+
transform: translateY(20px);
|
15
|
+
transition: all 180ms ease-in-out;
|
16
|
+
width: 100%;
|
17
|
+
z-index: 10;
|
18
|
+
|
19
|
+
&:before {
|
20
|
+
border-bottom: 8px solid transparent;
|
21
|
+
border-left: 8px solid transparent;
|
22
|
+
border-right: 8px solid transparent;
|
23
|
+
content: '';
|
24
|
+
display: block;
|
25
|
+
height: 0;
|
26
|
+
left: 50%;
|
27
|
+
position: absolute;
|
28
|
+
top: -7px;
|
29
|
+
transform: translate(-50%, 0);
|
30
|
+
width: 0;
|
31
|
+
}
|
32
|
+
|
33
|
+
.form__field.has-validation-alert & {
|
34
|
+
opacity: 1;
|
35
|
+
// Negative Y position in order to overlay the input border
|
36
|
+
transform: translateY(-1px);
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
.input-validation-alert--information {
|
41
|
+
background-color: $color-information;
|
42
|
+
color: #fff;
|
43
|
+
|
44
|
+
&::before {
|
45
|
+
border-bottom-color: $color-information;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
.input-validation-alert--error {
|
50
|
+
background-color: $color-danger;
|
51
|
+
color: #fff;
|
52
|
+
|
53
|
+
&::before {
|
54
|
+
border-bottom-color: $color-danger;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pusher-chameleon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Pate
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-01-
|
13
|
+
date: 2017-01-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sass
|
@@ -149,6 +149,7 @@ files:
|
|
149
149
|
- stylesheets/forms/_range.scss
|
150
150
|
- stylesheets/forms/_select.scss
|
151
151
|
- stylesheets/forms/_textarea.scss
|
152
|
+
- stylesheets/forms/_validation_alert.scss
|
152
153
|
- stylesheets/grid/_classes.scss
|
153
154
|
- stylesheets/grid/_column.scss
|
154
155
|
- stylesheets/grid/_flex-grid.scss
|
@@ -198,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
199
|
version: '0'
|
199
200
|
requirements: []
|
200
201
|
rubyforge_project:
|
201
|
-
rubygems_version: 2.
|
202
|
+
rubygems_version: 2.6.10
|
202
203
|
signing_key:
|
203
204
|
specification_version: 4
|
204
205
|
summary: Pusher Chameleon front-end asset library
|