alert_message 1.0.2 → 1.0.3

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: 1242be76b421f8694e76c2ae0ba486a9c1a58c06
4
- data.tar.gz: 607dc8edaade2fd63cb98a44485fd0aaecb4fa73
3
+ metadata.gz: bb9558898e61bb173fa12e563ba400efc8b5fa61
4
+ data.tar.gz: 396c42426917894a5e4f181ecbc1bc2216d09e93
5
5
  SHA512:
6
- metadata.gz: 8876d1e8791bcecbd25e5c139ff167749172cee364f31a80298dcfa662de9d6ad14208c7bfa39abcf1a3196ec6d500c35704bb0e5567c852cc4c5b4e15a5559c
7
- data.tar.gz: a3f07245eedffa7a87c9405bc29515f4eb3681c1e3fb7748da497ad187f0f9ab656c00f8a94addbcea7c4ede6fdaf18db43ae5c490a8edda660ed33bddb7d30c
6
+ metadata.gz: b3f4c0352d8c95b88173562ea1311b7488936ef341148f956f95a249c1c17447d6153fa71f164e1b3ec31065ea9d8f5416c1f19b5dfae389dd318f963ed3829c
7
+ data.tar.gz: 408abbb825827ec522987bec8d7d02ca824cc65b3fa5b795f3e8a81f78900c3f90be285c80791bb0941d05bbca436aba10bcaa07835828f2499bff14eba7c113
@@ -0,0 +1,57 @@
1
+ // alert
2
+ $text-1: #FFFFFF; // branco
3
+ $alert-success: #27ae60; // verde
4
+ $alert-danger: #e74c3c; // vermelho
5
+ $alert-notice: #2980b9; // azul
6
+
7
+ // box sizing
8
+ @mixin box-sizing($boxmodel){
9
+ -webkit-box-sizing: $boxmodel;
10
+ -moz-box-sizing: $boxmodel;
11
+ box-sizing: $boxmodel;
12
+ }
13
+
14
+ .alert {
15
+ cursor: pointer;
16
+ @include box-sizing(border-box);
17
+
18
+ position: absolute;
19
+
20
+ width: 100%;
21
+
22
+ color: $text-1;
23
+ font-size: 1.4em;
24
+ text-align: center;
25
+
26
+ padding: 10px;
27
+
28
+ .close {
29
+ outline: none;
30
+ @include box-sizing(border-box);
31
+
32
+ position: absolute;
33
+ top: 0;
34
+ right: 0;
35
+
36
+ width: 42px;
37
+ height: 42px;
38
+ line-height: 42px;
39
+
40
+ font-size: 1.4em;
41
+
42
+ border: 0;
43
+ background: none;
44
+ }
45
+ }
46
+
47
+ .alert-success {
48
+ background: $alert-success;
49
+ }
50
+
51
+ .alert-danger {
52
+ background: $alert-danger;
53
+ }
54
+
55
+ .alert-notice {
56
+ background: $alert-success;
57
+ }
@@ -0,0 +1,13 @@
1
+ // alerts
2
+
3
+ $(document).ready(function(){
4
+ var alerts = $('.alert');
5
+
6
+ setTimeout(function(){
7
+ alerts.fadeOut(400);
8
+ }, 3000);
9
+
10
+ alerts.on('click', function(){
11
+ alerts.fadeOut(400);
12
+ });
13
+ })
@@ -1,5 +1,5 @@
1
1
  module AlertMessage
2
2
  module Version
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alert_message
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luiz Picolo
@@ -56,6 +56,8 @@ files:
56
56
  - lib/alert_message.rb
57
57
  - lib/generators/alert_message/install_generator.rb
58
58
  - lib/generators/alert_message/templates/_alerts.html.erb
59
+ - lib/generators/alert_message/templates/alerts.css.scss
60
+ - lib/generators/alert_message/templates/alerts.js
59
61
  - lib/version/version.rb
60
62
  homepage: https://github.com/luizpicolo/alert_message
61
63
  licenses: