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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf66ca301d57b0e7e97e1f67885be714bd93bfff
4
- data.tar.gz: 6de3cc8d191060150f2b09c75c42bb3ac312f98a
3
+ metadata.gz: 78648560b78ca0e085d979957cbadd3a0abf1227
4
+ data.tar.gz: 553d1dbebed36d3013ea3964c52df712ea800657
5
5
  SHA512:
6
- metadata.gz: 96c1f52a0dfa20cda1da39d68008bded3b1e23d07720640c4486ddbf678d9f40179690dcdb8f7204fbd1465c91594cf5ac6b5944be6f01cadeec4a0403b68068
7
- data.tar.gz: 78e2d1fede8202a5652cc8767c739bcb815d3bc62587dfc780eeb7d89cf54c86a74f22cebed11cffbb8c86e61b39752b91290f111dceaa0014c082497250bbad
6
+ metadata.gz: c9cd05678ce3a22d03bad2f49ed577c26535e4bf8deec580198e4029c76f2d2021cb7d0e53359e39e19cca7f2c5e5ab51f2db50add355ac121b112be221614db
7
+ data.tar.gz: 3e8d202fdad4ac56320fbae1aefd0980c8f3226a9df583d945786b5791b9982c12009dfc3f320a46a6e8ca482b23d35c22da49967a6af12c28aee9ece988d583
data/Gemfile CHANGED
@@ -1,5 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
-
5
- gem 'jekyll'
@@ -1,58 +1,23 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pusher-chameleon (1.4.3)
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
- rb-fsevent (0.9.8)
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.13.6
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
+ ```
@@ -32,5 +32,5 @@ hr {
32
32
  border: 0;
33
33
  border-top: 1px solid #ddd;
34
34
  margin: 30px 0;
35
- padding: 0;
35
+ padding: 0;
36
36
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pusher-chameleon",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "A collection of front-end patterns used across Pusher.",
5
5
  "repository": "https://github.com/pusher/chameleon",
6
6
  "keywords": [
@@ -59,4 +59,4 @@
59
59
  padding-left: 10px;
60
60
  }
61
61
  }
62
- }
62
+ }
@@ -15,4 +15,4 @@
15
15
  width: auto;
16
16
  }
17
17
  }
18
- }
18
+ }
@@ -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
+ }
@@ -11,4 +11,4 @@
11
11
  input[type="phone"] {
12
12
  @include base-input();
13
13
  }
14
- }
14
+ }
@@ -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.3
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-17 00:00:00.000000000 Z
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.4.8
202
+ rubygems_version: 2.6.10
202
203
  signing_key:
203
204
  specification_version: 4
204
205
  summary: Pusher Chameleon front-end asset library